@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
@@ -25,6 +25,10 @@ export class Flows extends APIResource {
25
25
  * with at least one action required. Optional settings include target `deviceIds`,
26
26
  * a cooldown (`cooldownSeconds`/`cooldownScope`), and webhook notifications on
27
27
  * success or failure.
28
+ *
29
+ * Supports an optional `Idempotency-Key` header (1-255 printable ASCII
30
+ * characters). Replays with the same key and an identical body return the original
31
+ * 201; a changed body under the same key returns 422 `idempotency_key_reused`.
28
32
  */
29
33
  create(body: FlowCreateParams, options?: RequestOptions): APIPromise<FlowCreateResponse> {
30
34
  return this._client.post('/flows', { body, ...options });
@@ -73,11 +77,24 @@ export class Flows extends APIResource {
73
77
  return this._client.delete(path`/flows/${flowID}`, options);
74
78
  }
75
79
 
80
+ /**
81
+ * Activate a disabled flow only when the supplied verification execution succeeded
82
+ * and the flow graph has not changed since verification. Repeating activation is
83
+ * idempotent for an already-enabled flow.
84
+ */
85
+ activate(
86
+ flowID: string,
87
+ body: FlowActivateParams,
88
+ options?: RequestOptions,
89
+ ): APIPromise<FlowActivateResponse> {
90
+ return this._client.post(path`/flows/${flowID}/activate`, { body, ...options });
91
+ }
92
+
76
93
  /**
77
94
  * Returns an owner-scoped snapshot of finite included workflow-agent capacity
78
- * after locally stored enabled and disabled agents. Available only while slot
79
- * enforcement is enabled; otherwise returns 503. This is advisory; create and
80
- * clone perform authoritative admission under an owner lock.
95
+ * after accounting for enabled and disabled agents. Returns 503 when a finite
96
+ * capacity snapshot is unavailable, including for unlimited plans. This is
97
+ * advisory; create and clone perform the authoritative capacity check.
81
98
  */
82
99
  capacity(options?: RequestOptions): APIPromise<FlowCapacityResponse> {
83
100
  return this._client.get('/flows/capacity', options);
@@ -87,6 +104,10 @@ export class Flows extends APIResource {
87
104
  * Create a copy of an existing flow, including its actions and settings. The
88
105
  * optional body can override the new flow's `name` and target `deviceIds`. Returns
89
106
  * 404 if the source flow does not exist.
107
+ *
108
+ * Supports an optional `Idempotency-Key` header (1-255 printable ASCII
109
+ * characters). Replays with the same key and an identical body return the original
110
+ * 201; a changed body under the same key returns 422 `idempotency_key_reused`.
90
111
  */
91
112
  clone(
92
113
  flowID: string,
@@ -96,6 +117,17 @@ export class Flows extends APIResource {
96
117
  return this._client.post(path`/flows/${flowID}/clone`, { body, ...options });
97
118
  }
98
119
 
120
+ /**
121
+ * Return the recording/delivery readiness for a flow (recording mode, whether
122
+ * delivery can include the recording, whether a files.upload action exists, the
123
+ * first direct OneDrive/Google Drive upload step if any) plus, per destination,
124
+ * whether the flow owner has an active connection. Returns 404 if the flow does
125
+ * not exist.
126
+ */
127
+ deliveryOptions(flowID: string, options?: RequestOptions): APIPromise<FlowDeliveryOptionsResponse> {
128
+ return this._client.get(path`/flows/${flowID}/delivery-options`, options);
129
+ }
130
+
99
131
  /**
100
132
  * Simulate this flow firing without storing events, enqueuing jobs, or consuming
101
133
  * cooldown/rate-limit slots.
@@ -127,6 +159,34 @@ export class Flows extends APIResource {
127
159
  return this._client.get(path`/flows/${flowID}/repairs`, options);
128
160
  }
129
161
 
162
+ /**
163
+ * Immediately enqueue one live execution on every device bound to the flow,
164
+ * regardless of whether its trigger is event-based, custom, or scheduled.
165
+ *
166
+ * Supports an optional `Idempotency-Key` header (1-255 printable ASCII
167
+ * characters). The run identity is derived from the key, so a retry never starts a
168
+ * second run. Replays with the same key and an identical body return the original
169
+ * status and the original `executionIds`; a changed body under the same key
170
+ * returns 422 `idempotency_key_reused`.
171
+ */
172
+ run(
173
+ flowID: string,
174
+ body: FlowRunParams | null | undefined = {},
175
+ options?: RequestOptions,
176
+ ): APIPromise<FlowRunResponse> {
177
+ return this._client.post(path`/flows/${flowID}/run`, { body, ...options });
178
+ }
179
+
180
+ /**
181
+ * Get flow template context
182
+ */
183
+ templateContext(
184
+ query: FlowTemplateContextParams | null | undefined = {},
185
+ options?: RequestOptions,
186
+ ): APIPromise<FlowTemplateContextResponse> {
187
+ return this._client.get('/flows/template-context', { query, ...options });
188
+ }
189
+
130
190
  /**
131
191
  * Clear a flow's blocked status after fixing the underlying issue. Idempotent —
132
192
  * safe to call on already-healthy flows.
@@ -134,6 +194,38 @@ export class Flows extends APIResource {
134
194
  unblock(flowID: string, options?: RequestOptions): APIPromise<FlowUnblockResponse> {
135
195
  return this._client.post(path`/flows/${flowID}/unblock`, options);
136
196
  }
197
+
198
+ /**
199
+ * Validate a flow
200
+ */
201
+ validate(body: FlowValidateParams, options?: RequestOptions): APIPromise<FlowValidateResponse> {
202
+ return this._client.post('/flows/validate', { body, ...options });
203
+ }
204
+
205
+ /**
206
+ * Run a bound, deduplicated **verification** of this flow on exactly one device as
207
+ * a real run.
208
+ *
209
+ * Unlike a normal trigger firing, verification:
210
+ *
211
+ * - runs a flow that is `enabled` OR `disabled` (an archived flow returns 404);
212
+ * - targets one device (`deviceId`, or the single bound device);
213
+ * - is idempotent per `invocationId`: a repeat returns the existing run
214
+ * (`deduplicated: true`, HTTP 200) instead of enqueuing another (HTTP 202);
215
+ * - never mutates flow health, `lastTriggeredAt`, or the repair loop.
216
+ *
217
+ * Per-activation payload gate:
218
+ *
219
+ * - `custom`: validates the payload against the custom payload schema (422 on
220
+ * failure).
221
+ * - `event`: validates the payload against the event catalog schema and evaluates
222
+ * the trigger conditions; a failing gate returns 409 `conditions_not_met` with
223
+ * the dry-run report.
224
+ * - `schedule`: the payload is ignored.
225
+ */
226
+ verify(flowID: string, body: FlowVerifyParams, options?: RequestOptions): APIPromise<FlowVerifyResponse> {
227
+ return this._client.post(path`/flows/${flowID}/verify`, { body, ...options });
228
+ }
137
229
  }
138
230
 
139
231
  export interface FlowCreateResponse {
@@ -158,6 +250,8 @@ export namespace FlowCreateResponse {
158
250
 
159
251
  createdBy: string | null;
160
252
 
253
+ delivery: Data.Delivery | null;
254
+
161
255
  description: string | null;
162
256
 
163
257
  deviceIds: Array<string>;
@@ -210,10 +304,11 @@ export namespace FlowCreateResponse {
210
304
  status: 'healthy' | 'failing' | 'blocked';
211
305
 
212
306
  /**
213
- * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
307
+ * Template-resolver semantics this flow runs under. 1 = legacy
214
308
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
215
- * a whole-token null stays JSON null). Existing flows stay 1; new flows default
216
- * to 2.
309
+ * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
310
+ * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
311
+ * Existing flows stay 1; new flows default to the current version.
217
312
  */
218
313
  templateResolutionVersion: number;
219
314
 
@@ -228,6 +323,25 @@ export namespace FlowCreateResponse {
228
323
  }
229
324
 
230
325
  export namespace Data {
326
+ export interface Delivery {
327
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
328
+
329
+ /**
330
+ * not allowed when destination is mobilerun
331
+ */
332
+ folder?: string;
333
+
334
+ recording?: Delivery.Recording;
335
+
336
+ screenshots?: unknown;
337
+ }
338
+
339
+ export namespace Delivery {
340
+ export interface Recording {
341
+ filename: string;
342
+ }
343
+ }
344
+
231
345
  export interface RecordingPolicy {
232
346
  mode: 'off' | 'flow' | 'selected_steps';
233
347
  }
@@ -256,6 +370,8 @@ export namespace FlowRetrieveResponse {
256
370
 
257
371
  createdBy: string | null;
258
372
 
373
+ delivery: Data.Delivery | null;
374
+
259
375
  description: string | null;
260
376
 
261
377
  deviceIds: Array<string>;
@@ -308,10 +424,11 @@ export namespace FlowRetrieveResponse {
308
424
  status: 'healthy' | 'failing' | 'blocked';
309
425
 
310
426
  /**
311
- * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
427
+ * Template-resolver semantics this flow runs under. 1 = legacy
312
428
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
313
- * a whole-token null stays JSON null). Existing flows stay 1; new flows default
314
- * to 2.
429
+ * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
430
+ * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
431
+ * Existing flows stay 1; new flows default to the current version.
315
432
  */
316
433
  templateResolutionVersion: number;
317
434
 
@@ -326,6 +443,25 @@ export namespace FlowRetrieveResponse {
326
443
  }
327
444
 
328
445
  export namespace Data {
446
+ export interface Delivery {
447
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
448
+
449
+ /**
450
+ * not allowed when destination is mobilerun
451
+ */
452
+ folder?: string;
453
+
454
+ recording?: Delivery.Recording;
455
+
456
+ screenshots?: unknown;
457
+ }
458
+
459
+ export namespace Delivery {
460
+ export interface Recording {
461
+ filename: string;
462
+ }
463
+ }
464
+
329
465
  export interface RecordingPolicy {
330
466
  mode: 'off' | 'flow' | 'selected_steps';
331
467
  }
@@ -354,6 +490,8 @@ export namespace FlowUpdateResponse {
354
490
 
355
491
  createdBy: string | null;
356
492
 
493
+ delivery: Data.Delivery | null;
494
+
357
495
  description: string | null;
358
496
 
359
497
  deviceIds: Array<string>;
@@ -406,10 +544,11 @@ export namespace FlowUpdateResponse {
406
544
  status: 'healthy' | 'failing' | 'blocked';
407
545
 
408
546
  /**
409
- * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
547
+ * Template-resolver semantics this flow runs under. 1 = legacy
410
548
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
411
- * a whole-token null stays JSON null). Existing flows stay 1; new flows default
412
- * to 2.
549
+ * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
550
+ * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
551
+ * Existing flows stay 1; new flows default to the current version.
413
552
  */
414
553
  templateResolutionVersion: number;
415
554
 
@@ -424,6 +563,25 @@ export namespace FlowUpdateResponse {
424
563
  }
425
564
 
426
565
  export namespace Data {
566
+ export interface Delivery {
567
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
568
+
569
+ /**
570
+ * not allowed when destination is mobilerun
571
+ */
572
+ folder?: string;
573
+
574
+ recording?: Delivery.Recording;
575
+
576
+ screenshots?: unknown;
577
+ }
578
+
579
+ export namespace Delivery {
580
+ export interface Recording {
581
+ filename: string;
582
+ }
583
+ }
584
+
427
585
  export interface RecordingPolicy {
428
586
  mode: 'off' | 'flow' | 'selected_steps';
429
587
  }
@@ -454,6 +612,8 @@ export namespace FlowListResponse {
454
612
 
455
613
  createdBy: string | null;
456
614
 
615
+ delivery: Item.Delivery | null;
616
+
457
617
  description: string | null;
458
618
 
459
619
  deviceIds: Array<string>;
@@ -506,10 +666,11 @@ export namespace FlowListResponse {
506
666
  status: 'healthy' | 'failing' | 'blocked';
507
667
 
508
668
  /**
509
- * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
669
+ * Template-resolver semantics this flow runs under. 1 = legacy
510
670
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
511
- * a whole-token null stays JSON null). Existing flows stay 1; new flows default
512
- * to 2.
671
+ * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
672
+ * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
673
+ * Existing flows stay 1; new flows default to the current version.
513
674
  */
514
675
  templateResolutionVersion: number;
515
676
 
@@ -524,6 +685,25 @@ export namespace FlowListResponse {
524
685
  }
525
686
 
526
687
  export namespace Item {
688
+ export interface Delivery {
689
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
690
+
691
+ /**
692
+ * not allowed when destination is mobilerun
693
+ */
694
+ folder?: string;
695
+
696
+ recording?: Delivery.Recording;
697
+
698
+ screenshots?: unknown;
699
+ }
700
+
701
+ export namespace Delivery {
702
+ export interface Recording {
703
+ filename: string;
704
+ }
705
+ }
706
+
527
707
  export interface RecordingPolicy {
528
708
  mode: 'off' | 'flow' | 'selected_steps';
529
709
  }
@@ -534,6 +714,126 @@ export interface FlowDeleteResponse {
534
714
  message: string;
535
715
  }
536
716
 
717
+ export interface FlowActivateResponse {
718
+ data: FlowActivateResponse.Data;
719
+ }
720
+
721
+ export namespace FlowActivateResponse {
722
+ export interface Data {
723
+ id: string;
724
+
725
+ archivedAt: string | null;
726
+
727
+ blockedAt: string | null;
728
+
729
+ consecutiveFailures: number;
730
+
731
+ cooldownScope: 'flow' | 'device';
732
+
733
+ cooldownSeconds: number | null;
734
+
735
+ createdAt: string | null;
736
+
737
+ createdBy: string | null;
738
+
739
+ delivery: Data.Delivery | null;
740
+
741
+ description: string | null;
742
+
743
+ deviceIds: Array<string>;
744
+
745
+ /**
746
+ * Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
747
+ * enabled.
748
+ */
749
+ enabled: boolean;
750
+
751
+ healthMonitoringEnabled: boolean;
752
+
753
+ lastFailureAt: string | null;
754
+
755
+ lastFailureCode:
756
+ | 'device_not_found'
757
+ | 'permission_denied'
758
+ | 'client_error'
759
+ | 'transient'
760
+ | 'logic'
761
+ | 'invalid_config'
762
+ | null;
763
+
764
+ lastTriggeredAt: string | null;
765
+
766
+ lifecycleStatus: 'enabled' | 'disabled' | 'archived';
767
+
768
+ name: string;
769
+
770
+ notifyOnFailure: boolean;
771
+
772
+ notifyOnSuccess: boolean;
773
+
774
+ notifyWebhookId: string | null;
775
+
776
+ ownerId: string;
777
+
778
+ /**
779
+ * @deprecated Deprecated: use recordingPolicy.mode ("flow" =
780
+ * recordingEnabled=true, "off" = recordingEnabled=false).
781
+ */
782
+ recordingEnabled: boolean;
783
+
784
+ recordingPolicy: Data.RecordingPolicy;
785
+
786
+ selfHealingEnabled: boolean;
787
+
788
+ selfHealingMaxAttempts: number;
789
+
790
+ status: 'healthy' | 'failing' | 'blocked';
791
+
792
+ /**
793
+ * Template-resolver semantics this flow runs under. 1 = legacy
794
+ * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
795
+ * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
796
+ * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
797
+ * Existing flows stay 1; new flows default to the current version.
798
+ */
799
+ templateResolutionVersion: number;
800
+
801
+ triggerId: string;
802
+
803
+ updatedAt: string | null;
804
+
805
+ /**
806
+ * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
807
+ */
808
+ userId: string;
809
+ }
810
+
811
+ export namespace Data {
812
+ export interface Delivery {
813
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
814
+
815
+ /**
816
+ * not allowed when destination is mobilerun
817
+ */
818
+ folder?: string;
819
+
820
+ recording?: Delivery.Recording;
821
+
822
+ screenshots?: unknown;
823
+ }
824
+
825
+ export namespace Delivery {
826
+ export interface Recording {
827
+ filename: string;
828
+ }
829
+ }
830
+
831
+ export interface RecordingPolicy {
832
+ mode: 'off' | 'flow' | 'selected_steps';
833
+ }
834
+ }
835
+ }
836
+
537
837
  export interface FlowCapacityResponse {
538
838
  data: FlowCapacityResponse.Data;
539
839
  }
@@ -570,6 +870,8 @@ export namespace FlowCloneResponse {
570
870
 
571
871
  createdBy: string | null;
572
872
 
873
+ delivery: Data.Delivery | null;
874
+
573
875
  description: string | null;
574
876
 
575
877
  deviceIds: Array<string>;
@@ -622,10 +924,11 @@ export namespace FlowCloneResponse {
622
924
  status: 'healthy' | 'failing' | 'blocked';
623
925
 
624
926
  /**
625
- * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
927
+ * Template-resolver semantics this flow runs under. 1 = legacy
626
928
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
627
- * a whole-token null stays JSON null). Existing flows stay 1; new flows default
628
- * to 2.
929
+ * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
930
+ * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
931
+ * Existing flows stay 1; new flows default to the current version.
629
932
  */
630
933
  templateResolutionVersion: number;
631
934
 
@@ -640,12 +943,72 @@ export namespace FlowCloneResponse {
640
943
  }
641
944
 
642
945
  export namespace Data {
946
+ export interface Delivery {
947
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
948
+
949
+ /**
950
+ * not allowed when destination is mobilerun
951
+ */
952
+ folder?: string;
953
+
954
+ recording?: Delivery.Recording;
955
+
956
+ screenshots?: unknown;
957
+ }
958
+
959
+ export namespace Delivery {
960
+ export interface Recording {
961
+ filename: string;
962
+ }
963
+ }
964
+
643
965
  export interface RecordingPolicy {
644
966
  mode: 'off' | 'flow' | 'selected_steps';
645
967
  }
646
968
  }
647
969
  }
648
970
 
971
+ export interface FlowDeliveryOptionsResponse {
972
+ data: FlowDeliveryOptionsResponse.Data;
973
+ }
974
+
975
+ export namespace FlowDeliveryOptionsResponse {
976
+ export interface Data {
977
+ canDeliverRecording: boolean;
978
+
979
+ /**
980
+ * Delivery destinations in their canonical order.
981
+ */
982
+ destinations: Array<Data.Destination>;
983
+
984
+ directUploadStep: Data.DirectUploadStep | null;
985
+
986
+ hasFilesUpload: boolean;
987
+
988
+ recordingMode: 'off' | 'flow' | 'selected_steps';
989
+ }
990
+
991
+ export namespace Data {
992
+ export interface Destination {
993
+ connection: 'connected' | 'not_connected' | 'expired' | 'unknown';
994
+
995
+ connectKey: string;
996
+
997
+ iconUrl: string | null;
998
+
999
+ key: 'mobilerun' | 'one_drive' | 'google_drive';
1000
+
1001
+ label: string;
1002
+ }
1003
+
1004
+ export interface DirectUploadStep {
1005
+ flowActionId: string;
1006
+
1007
+ name: string;
1008
+ }
1009
+ }
1010
+ }
1011
+
649
1012
  export interface FlowDryRunResponse {
650
1013
  data: FlowDryRunResponse.Data;
651
1014
  }
@@ -675,13 +1038,15 @@ export namespace FlowDryRunResponse {
675
1038
 
676
1039
  flowActionId: string;
677
1040
 
1041
+ key: string;
1042
+
678
1043
  method: string;
679
1044
 
680
1045
  name: string;
681
1046
 
682
1047
  recordingEnabled: boolean;
683
1048
 
684
- service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
1049
+ service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
685
1050
 
686
1051
  /**
687
1052
  * Nested child actions (loop/branch bodies), each the same shape as a
@@ -776,6 +1141,70 @@ export namespace FlowListRepairsResponse {
776
1141
  }
777
1142
  }
778
1143
 
1144
+ export interface FlowRunResponse {
1145
+ data: FlowRunResponse.Data;
1146
+ }
1147
+
1148
+ export namespace FlowRunResponse {
1149
+ export interface Data {
1150
+ enqueuedCount: number;
1151
+
1152
+ /**
1153
+ * Ids of the executions this run created. An idempotent replay returns the ids of
1154
+ * the original run.
1155
+ */
1156
+ executionIds: Array<string>;
1157
+ }
1158
+ }
1159
+
1160
+ export interface FlowTemplateContextResponse {
1161
+ data: FlowTemplateContextResponse.Data;
1162
+ }
1163
+
1164
+ export namespace FlowTemplateContextResponse {
1165
+ export interface Data {
1166
+ grammar: string;
1167
+
1168
+ loop: Data.Loop;
1169
+
1170
+ payloadAliases: Array<string>;
1171
+
1172
+ roots: Array<Data.Root>;
1173
+
1174
+ stepReference: Data.StepReference;
1175
+
1176
+ templateResolutionVersion: number;
1177
+ }
1178
+
1179
+ export namespace Data {
1180
+ export interface Loop {
1181
+ context: Array<string>;
1182
+
1183
+ itemVariableDefault: string;
1184
+
1185
+ name: string;
1186
+ }
1187
+
1188
+ export interface Root {
1189
+ description: string;
1190
+
1191
+ name: string;
1192
+
1193
+ shape?: unknown;
1194
+ }
1195
+
1196
+ export interface StepReference {
1197
+ note: string;
1198
+
1199
+ pattern: string;
1200
+
1201
+ keyRule?: string;
1202
+
1203
+ slugRule?: string;
1204
+ }
1205
+ }
1206
+ }
1207
+
779
1208
  export interface FlowUnblockResponse {
780
1209
  data: FlowUnblockResponse.Data;
781
1210
  }
@@ -798,6 +1227,8 @@ export namespace FlowUnblockResponse {
798
1227
 
799
1228
  createdBy: string | null;
800
1229
 
1230
+ delivery: Data.Delivery | null;
1231
+
801
1232
  description: string | null;
802
1233
 
803
1234
  deviceIds: Array<string>;
@@ -850,10 +1281,11 @@ export namespace FlowUnblockResponse {
850
1281
  status: 'healthy' | 'failing' | 'blocked';
851
1282
 
852
1283
  /**
853
- * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
1284
+ * Template-resolver semantics this flow runs under. 1 = legacy
854
1285
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
855
- * a whole-token null stays JSON null). Existing flows stay 1; new flows default
856
- * to 2.
1286
+ * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
1287
+ * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
1288
+ * Existing flows stay 1; new flows default to the current version.
857
1289
  */
858
1290
  templateResolutionVersion: number;
859
1291
 
@@ -868,12 +1300,101 @@ export namespace FlowUnblockResponse {
868
1300
  }
869
1301
 
870
1302
  export namespace Data {
1303
+ export interface Delivery {
1304
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
1305
+
1306
+ /**
1307
+ * not allowed when destination is mobilerun
1308
+ */
1309
+ folder?: string;
1310
+
1311
+ recording?: Delivery.Recording;
1312
+
1313
+ screenshots?: unknown;
1314
+ }
1315
+
1316
+ export namespace Delivery {
1317
+ export interface Recording {
1318
+ filename: string;
1319
+ }
1320
+ }
1321
+
871
1322
  export interface RecordingPolicy {
872
1323
  mode: 'off' | 'flow' | 'selected_steps';
873
1324
  }
874
1325
  }
875
1326
  }
876
1327
 
1328
+ export interface FlowValidateResponse {
1329
+ data: FlowValidateResponse.Data;
1330
+ }
1331
+
1332
+ export namespace FlowValidateResponse {
1333
+ export interface Data {
1334
+ errors: Array<Data.Error>;
1335
+
1336
+ valid: boolean;
1337
+
1338
+ warnings: Array<Data.Warning>;
1339
+ }
1340
+
1341
+ export namespace Data {
1342
+ export interface Error {
1343
+ code: string;
1344
+
1345
+ field: string;
1346
+
1347
+ message: string;
1348
+
1349
+ knownSteps?: Array<string>;
1350
+
1351
+ reference?: string;
1352
+ }
1353
+
1354
+ export interface Warning {
1355
+ code: string;
1356
+
1357
+ message: string;
1358
+
1359
+ connectKey?: string;
1360
+
1361
+ destination?: string;
1362
+ }
1363
+ }
1364
+ }
1365
+
1366
+ export interface FlowVerifyResponse {
1367
+ data: FlowVerifyResponse.Data;
1368
+ }
1369
+
1370
+ export namespace FlowVerifyResponse {
1371
+ export interface Data {
1372
+ /**
1373
+ * True when this run already existed for the (flow, invocationId) key (HTTP 200);
1374
+ * false for a newly enqueued run (HTTP 202).
1375
+ */
1376
+ deduplicated: boolean;
1377
+
1378
+ /**
1379
+ * Device the verification runs on; null for a device-free verification (a 0-device
1380
+ * flow whose actions are all device-free allowlisted).
1381
+ */
1382
+ deviceId: string | null;
1383
+
1384
+ executionId: string;
1385
+
1386
+ flowId: string;
1387
+
1388
+ invocationId: string;
1389
+
1390
+ kind: 'verification';
1391
+
1392
+ status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid';
1393
+
1394
+ triggerId: string;
1395
+ }
1396
+ }
1397
+
877
1398
  export interface FlowCreateParams {
878
1399
  actions: Array<FlowCreateParams.Action>;
879
1400
 
@@ -885,6 +1406,8 @@ export interface FlowCreateParams {
885
1406
 
886
1407
  cooldownSeconds?: number | null;
887
1408
 
1409
+ delivery?: FlowCreateParams.Delivery;
1410
+
888
1411
  description?: string;
889
1412
 
890
1413
  deviceIds?: Array<string>;
@@ -899,10 +1422,6 @@ export interface FlowCreateParams {
899
1422
 
900
1423
  notifyWebhookId?: string | null;
901
1424
 
902
- /**
903
- * @deprecated Deprecated compatibility field. true maps to
904
- * recordingPolicy.mode="flow"; false maps to "off".
905
- */
906
1425
  recordingEnabled?: boolean;
907
1426
 
908
1427
  recordingPolicy?: FlowCreateParams.RecordingPolicy;
@@ -922,6 +1441,15 @@ export namespace FlowCreateParams {
922
1441
 
923
1442
  continueOnError?: boolean;
924
1443
 
1444
+ /**
1445
+ * Stable identifier used by template resolution v2+ to address this step as
1446
+ * {{key.field}}. Omitted keys are derived from the step name whenever a flow is
1447
+ * created. For template resolution v3, replacing an existing flow's full action
1448
+ * tree requires every step to carry an explicit key — a missing key is rejected
1449
+ * there, not derived, so a name change can never silently move a step's key.
1450
+ */
1451
+ key?: string;
1452
+
925
1453
  nameOverride?: string;
926
1454
 
927
1455
  overrides?: Action.Overrides | null;
@@ -937,6 +1465,15 @@ export namespace FlowCreateParams {
937
1465
 
938
1466
  continueOnError?: boolean;
939
1467
 
1468
+ /**
1469
+ * Stable identifier used by template resolution v2+ to address this step as
1470
+ * {{key.field}}. Omitted keys are derived from the step name whenever a flow is
1471
+ * created. For template resolution v3, replacing an existing flow's full action
1472
+ * tree requires every step to carry an explicit key — a missing key is rejected
1473
+ * there, not derived, so a name change can never silently move a step's key.
1474
+ */
1475
+ key?: string;
1476
+
940
1477
  nameOverride?: string;
941
1478
 
942
1479
  overrides?: Child.Overrides | null;
@@ -955,6 +1492,25 @@ export namespace FlowCreateParams {
955
1492
  }
956
1493
  }
957
1494
 
1495
+ export interface Delivery {
1496
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
1497
+
1498
+ /**
1499
+ * not allowed when destination is mobilerun
1500
+ */
1501
+ folder?: string;
1502
+
1503
+ recording?: Delivery.Recording;
1504
+
1505
+ screenshots?: unknown;
1506
+ }
1507
+
1508
+ export namespace Delivery {
1509
+ export interface Recording {
1510
+ filename: string;
1511
+ }
1512
+ }
1513
+
958
1514
  export interface RecordingPolicy {
959
1515
  mode: 'off' | 'flow' | 'selected_steps';
960
1516
  }
@@ -965,6 +1521,8 @@ export interface FlowUpdateParams {
965
1521
 
966
1522
  cooldownSeconds?: number | null;
967
1523
 
1524
+ delivery?: FlowUpdateParams.Delivery | null;
1525
+
968
1526
  description?: string;
969
1527
 
970
1528
  deviceIds?: Array<string>;
@@ -1002,6 +1560,25 @@ export interface FlowUpdateParams {
1002
1560
  }
1003
1561
 
1004
1562
  export namespace FlowUpdateParams {
1563
+ export interface Delivery {
1564
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
1565
+
1566
+ /**
1567
+ * not allowed when destination is mobilerun
1568
+ */
1569
+ folder?: string;
1570
+
1571
+ recording?: Delivery.Recording;
1572
+
1573
+ screenshots?: unknown;
1574
+ }
1575
+
1576
+ export namespace Delivery {
1577
+ export interface Recording {
1578
+ filename: string;
1579
+ }
1580
+ }
1581
+
1005
1582
  export interface RecordingPolicy {
1006
1583
  mode: 'off' | 'flow' | 'selected_steps';
1007
1584
  }
@@ -1035,6 +1612,10 @@ export interface FlowListParams {
1035
1612
  triggerId?: string;
1036
1613
  }
1037
1614
 
1615
+ export interface FlowActivateParams {
1616
+ verificationExecutionId: string;
1617
+ }
1618
+
1038
1619
  export interface FlowCloneParams {
1039
1620
  deviceIds?: Array<string>;
1040
1621
 
@@ -1045,6 +1626,199 @@ export interface FlowDryRunParams {
1045
1626
  payload?: { [key: string]: unknown };
1046
1627
  }
1047
1628
 
1629
+ export interface FlowRunParams {
1630
+ /**
1631
+ * Record and keep this run's scripts.run screenshots
1632
+ * (device.screenshot(save=True)) even without flow delivery. Used for a one-off
1633
+ * proof run.
1634
+ */
1635
+ captureScreenshots?: boolean;
1636
+
1637
+ payload?: { [key: string]: unknown };
1638
+ }
1639
+
1640
+ export interface FlowTemplateContextParams {
1641
+ templateResolutionVersion?: number;
1642
+ }
1643
+
1644
+ export interface FlowValidateParams {
1645
+ actions: Array<FlowValidateParams.FlowActionInput | FlowValidateParams.FlowDraftActionInput>;
1646
+
1647
+ name: string;
1648
+
1649
+ cooldownScope?: 'flow' | 'device';
1650
+
1651
+ cooldownSeconds?: number | null;
1652
+
1653
+ delivery?: FlowValidateParams.Delivery;
1654
+
1655
+ description?: string;
1656
+
1657
+ deviceIds?: Array<string>;
1658
+
1659
+ enabled?: boolean;
1660
+
1661
+ healthMonitoringEnabled?: boolean;
1662
+
1663
+ notifyOnFailure?: boolean;
1664
+
1665
+ notifyOnSuccess?: boolean;
1666
+
1667
+ notifyWebhookId?: string | null;
1668
+
1669
+ recordingEnabled?: boolean;
1670
+
1671
+ recordingPolicy?: FlowValidateParams.RecordingPolicy;
1672
+
1673
+ selfHealingEnabled?: boolean;
1674
+
1675
+ selfHealingMaxAttempts?: number;
1676
+
1677
+ triggerId?: string;
1678
+ }
1679
+
1680
+ export namespace FlowValidateParams {
1681
+ export interface FlowActionInput {
1682
+ actionId: string;
1683
+
1684
+ position: number;
1685
+
1686
+ children?: Array<FlowActionInput.Child>;
1687
+
1688
+ continueOnError?: boolean;
1689
+
1690
+ /**
1691
+ * Stable identifier used by template resolution v2+ to address this step as
1692
+ * {{key.field}}. Omitted keys are derived from the step name whenever a flow is
1693
+ * created. For template resolution v3, replacing an existing flow's full action
1694
+ * tree requires every step to carry an explicit key — a missing key is rejected
1695
+ * there, not derived, so a name change can never silently move a step's key.
1696
+ */
1697
+ key?: string;
1698
+
1699
+ nameOverride?: string;
1700
+
1701
+ overrides?: FlowActionInput.Overrides | null;
1702
+
1703
+ recordingEnabled?: boolean;
1704
+ }
1705
+
1706
+ export namespace FlowActionInput {
1707
+ export interface Child {
1708
+ actionId: string;
1709
+
1710
+ position: number;
1711
+
1712
+ continueOnError?: boolean;
1713
+
1714
+ /**
1715
+ * Stable identifier used by template resolution v2+ to address this step as
1716
+ * {{key.field}}. Omitted keys are derived from the step name whenever a flow is
1717
+ * created. For template resolution v3, replacing an existing flow's full action
1718
+ * tree requires every step to carry an explicit key — a missing key is rejected
1719
+ * there, not derived, so a name change can never silently move a step's key.
1720
+ */
1721
+ key?: string;
1722
+
1723
+ nameOverride?: string;
1724
+
1725
+ overrides?: Child.Overrides | null;
1726
+
1727
+ recordingEnabled?: boolean;
1728
+ }
1729
+
1730
+ export namespace Child {
1731
+ export interface Overrides {
1732
+ params?: { [key: string]: unknown };
1733
+ }
1734
+ }
1735
+
1736
+ export interface Overrides {
1737
+ params?: { [key: string]: unknown };
1738
+ }
1739
+ }
1740
+
1741
+ export interface FlowDraftActionInput {
1742
+ draft: FlowDraftActionInput.Draft;
1743
+
1744
+ position: number;
1745
+
1746
+ continueOnError?: boolean;
1747
+
1748
+ /**
1749
+ * Stable identifier used by template resolution v2+ to address this step as
1750
+ * {{key.field}}. Omitted keys are derived from the step name whenever a flow is
1751
+ * created. For template resolution v3, replacing an existing flow's full action
1752
+ * tree requires every step to carry an explicit key — a missing key is rejected
1753
+ * there, not derived, so a name change can never silently move a step's key.
1754
+ */
1755
+ key?: string;
1756
+
1757
+ nameOverride?: string;
1758
+
1759
+ overrides?: FlowDraftActionInput.Overrides | null;
1760
+
1761
+ recordingEnabled?: boolean;
1762
+ }
1763
+
1764
+ export namespace FlowDraftActionInput {
1765
+ export interface Draft {
1766
+ method: string;
1767
+
1768
+ name: string;
1769
+
1770
+ service: string;
1771
+
1772
+ params?: { [key: string]: unknown };
1773
+ }
1774
+
1775
+ export interface Overrides {
1776
+ params?: { [key: string]: unknown };
1777
+ }
1778
+ }
1779
+
1780
+ export interface Delivery {
1781
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
1782
+
1783
+ /**
1784
+ * not allowed when destination is mobilerun
1785
+ */
1786
+ folder?: string;
1787
+
1788
+ recording?: Delivery.Recording;
1789
+
1790
+ screenshots?: unknown;
1791
+ }
1792
+
1793
+ export namespace Delivery {
1794
+ export interface Recording {
1795
+ filename: string;
1796
+ }
1797
+ }
1798
+
1799
+ export interface RecordingPolicy {
1800
+ mode: 'off' | 'flow' | 'selected_steps';
1801
+ }
1802
+ }
1803
+
1804
+ export interface FlowVerifyParams {
1805
+ /**
1806
+ * Client-supplied idempotency key. A repeat request for the same (flow,
1807
+ * invocationId) returns the existing verification run (`deduplicated: true`,
1808
+ * HTTP 200) instead of enqueuing another.
1809
+ */
1810
+ invocationId: string;
1811
+
1812
+ /**
1813
+ * Device to run the verification on. Must be one the flow is bound to. Optional
1814
+ * only when the flow is bound to exactly one device (that device is used);
1815
+ * otherwise required.
1816
+ */
1817
+ deviceId?: string;
1818
+
1819
+ payload?: { [key: string]: unknown };
1820
+ }
1821
+
1048
1822
  Flows.Actions = Actions;
1049
1823
 
1050
1824
  export declare namespace Flows {
@@ -1054,16 +1828,27 @@ export declare namespace Flows {
1054
1828
  type FlowUpdateResponse as FlowUpdateResponse,
1055
1829
  type FlowListResponse as FlowListResponse,
1056
1830
  type FlowDeleteResponse as FlowDeleteResponse,
1831
+ type FlowActivateResponse as FlowActivateResponse,
1057
1832
  type FlowCapacityResponse as FlowCapacityResponse,
1058
1833
  type FlowCloneResponse as FlowCloneResponse,
1834
+ type FlowDeliveryOptionsResponse as FlowDeliveryOptionsResponse,
1059
1835
  type FlowDryRunResponse as FlowDryRunResponse,
1060
1836
  type FlowListRepairsResponse as FlowListRepairsResponse,
1837
+ type FlowRunResponse as FlowRunResponse,
1838
+ type FlowTemplateContextResponse as FlowTemplateContextResponse,
1061
1839
  type FlowUnblockResponse as FlowUnblockResponse,
1840
+ type FlowValidateResponse as FlowValidateResponse,
1841
+ type FlowVerifyResponse as FlowVerifyResponse,
1062
1842
  type FlowCreateParams as FlowCreateParams,
1063
1843
  type FlowUpdateParams as FlowUpdateParams,
1064
1844
  type FlowListParams as FlowListParams,
1845
+ type FlowActivateParams as FlowActivateParams,
1065
1846
  type FlowCloneParams as FlowCloneParams,
1066
1847
  type FlowDryRunParams as FlowDryRunParams,
1848
+ type FlowRunParams as FlowRunParams,
1849
+ type FlowTemplateContextParams as FlowTemplateContextParams,
1850
+ type FlowValidateParams as FlowValidateParams,
1851
+ type FlowVerifyParams as FlowVerifyParams,
1067
1852
  };
1068
1853
 
1069
1854
  export {