@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
@@ -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 });
@@ -66,16 +70,44 @@ export class Flows extends APIResource {
66
70
  }
67
71
 
68
72
  /**
69
- * Delete a flow by its ID. Returns 404 if no flow matches.
73
+ * Terminally archive a flow by its ID. Archived flows cannot be restored and are
74
+ * hidden from customer reads. Repeating the request is idempotent for the owner.
70
75
  */
71
76
  delete(flowID: string, options?: RequestOptions): APIPromise<FlowDeleteResponse> {
72
77
  return this._client.delete(path`/flows/${flowID}`, options);
73
78
  }
74
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
+
93
+ /**
94
+ * Returns an owner-scoped snapshot of finite included workflow-agent capacity
95
+ * after locally stored enabled and disabled agents. Available only while slot
96
+ * enforcement is enabled; otherwise returns 503. This is advisory; create and
97
+ * clone perform authoritative admission under an owner lock.
98
+ */
99
+ capacity(options?: RequestOptions): APIPromise<FlowCapacityResponse> {
100
+ return this._client.get('/flows/capacity', options);
101
+ }
102
+
75
103
  /**
76
104
  * Create a copy of an existing flow, including its actions and settings. The
77
105
  * optional body can override the new flow's `name` and target `deviceIds`. Returns
78
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`.
79
111
  */
80
112
  clone(
81
113
  flowID: string,
@@ -85,6 +117,17 @@ export class Flows extends APIResource {
85
117
  return this._client.post(path`/flows/${flowID}/clone`, { body, ...options });
86
118
  }
87
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 integrations-api connection. Returns 404 if
125
+ * the flow does not exist.
126
+ */
127
+ deliveryOptions(flowID: string, options?: RequestOptions): APIPromise<FlowDeliveryOptionsResponse> {
128
+ return this._client.get(path`/flows/${flowID}/delivery-options`, options);
129
+ }
130
+
88
131
  /**
89
132
  * Simulate this flow firing without storing events, enqueuing jobs, or consuming
90
133
  * cooldown/rate-limit slots.
@@ -116,6 +159,34 @@ export class Flows extends APIResource {
116
159
  return this._client.get(path`/flows/${flowID}/repairs`, options);
117
160
  }
118
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
+
119
190
  /**
120
191
  * Clear a flow's blocked status after fixing the underlying issue. Idempotent —
121
192
  * safe to call on already-healthy flows.
@@ -123,6 +194,38 @@ export class Flows extends APIResource {
123
194
  unblock(flowID: string, options?: RequestOptions): APIPromise<FlowUnblockResponse> {
124
195
  return this._client.post(path`/flows/${flowID}/unblock`, options);
125
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
207
+ * through the real worker.
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
+ }
126
229
  }
127
230
 
128
231
  export interface FlowCreateResponse {
@@ -133,6 +236,8 @@ export namespace FlowCreateResponse {
133
236
  export interface Data {
134
237
  id: string;
135
238
 
239
+ archivedAt: string | null;
240
+
136
241
  blockedAt: string | null;
137
242
 
138
243
  consecutiveFailures: number;
@@ -145,10 +250,16 @@ export namespace FlowCreateResponse {
145
250
 
146
251
  createdBy: string | null;
147
252
 
253
+ delivery: Data.Delivery | null;
254
+
148
255
  description: string | null;
149
256
 
150
257
  deviceIds: Array<string>;
151
258
 
259
+ /**
260
+ * Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
261
+ * enabled.
262
+ */
152
263
  enabled: boolean;
153
264
 
154
265
  healthMonitoringEnabled: boolean;
@@ -166,6 +277,8 @@ export namespace FlowCreateResponse {
166
277
 
167
278
  lastTriggeredAt: string | null;
168
279
 
280
+ lifecycleStatus: 'enabled' | 'disabled' | 'archived';
281
+
169
282
  name: string;
170
283
 
171
284
  notifyOnFailure: boolean;
@@ -176,8 +289,14 @@ export namespace FlowCreateResponse {
176
289
 
177
290
  ownerId: string;
178
291
 
292
+ /**
293
+ * @deprecated Deprecated: use recordingPolicy.mode ("flow" =
294
+ * recordingEnabled=true, "off" = recordingEnabled=false).
295
+ */
179
296
  recordingEnabled: boolean;
180
297
 
298
+ recordingPolicy: Data.RecordingPolicy;
299
+
181
300
  selfHealingEnabled: boolean;
182
301
 
183
302
  selfHealingMaxAttempts: number;
@@ -187,8 +306,9 @@ export namespace FlowCreateResponse {
187
306
  /**
188
307
  * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
189
308
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
190
- * a whole-token null stays JSON null). Existing flows stay 1; new flows default
191
- * 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.
192
312
  */
193
313
  templateResolutionVersion: number;
194
314
 
@@ -201,6 +321,28 @@ export namespace FlowCreateResponse {
201
321
  */
202
322
  userId: string;
203
323
  }
324
+
325
+ export namespace Data {
326
+ export interface Delivery {
327
+ destination: 'one_drive' | 'google_drive';
328
+
329
+ folder?: string;
330
+
331
+ recording?: Delivery.Recording;
332
+
333
+ screenshots?: unknown;
334
+ }
335
+
336
+ export namespace Delivery {
337
+ export interface Recording {
338
+ filename: string;
339
+ }
340
+ }
341
+
342
+ export interface RecordingPolicy {
343
+ mode: 'off' | 'flow' | 'selected_steps';
344
+ }
345
+ }
204
346
  }
205
347
 
206
348
  export interface FlowRetrieveResponse {
@@ -211,6 +353,8 @@ export namespace FlowRetrieveResponse {
211
353
  export interface Data {
212
354
  id: string;
213
355
 
356
+ archivedAt: string | null;
357
+
214
358
  blockedAt: string | null;
215
359
 
216
360
  consecutiveFailures: number;
@@ -223,10 +367,16 @@ export namespace FlowRetrieveResponse {
223
367
 
224
368
  createdBy: string | null;
225
369
 
370
+ delivery: Data.Delivery | null;
371
+
226
372
  description: string | null;
227
373
 
228
374
  deviceIds: Array<string>;
229
375
 
376
+ /**
377
+ * Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
378
+ * enabled.
379
+ */
230
380
  enabled: boolean;
231
381
 
232
382
  healthMonitoringEnabled: boolean;
@@ -244,6 +394,8 @@ export namespace FlowRetrieveResponse {
244
394
 
245
395
  lastTriggeredAt: string | null;
246
396
 
397
+ lifecycleStatus: 'enabled' | 'disabled' | 'archived';
398
+
247
399
  name: string;
248
400
 
249
401
  notifyOnFailure: boolean;
@@ -254,8 +406,14 @@ export namespace FlowRetrieveResponse {
254
406
 
255
407
  ownerId: string;
256
408
 
409
+ /**
410
+ * @deprecated Deprecated: use recordingPolicy.mode ("flow" =
411
+ * recordingEnabled=true, "off" = recordingEnabled=false).
412
+ */
257
413
  recordingEnabled: boolean;
258
414
 
415
+ recordingPolicy: Data.RecordingPolicy;
416
+
259
417
  selfHealingEnabled: boolean;
260
418
 
261
419
  selfHealingMaxAttempts: number;
@@ -265,8 +423,9 @@ export namespace FlowRetrieveResponse {
265
423
  /**
266
424
  * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
267
425
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
268
- * a whole-token null stays JSON null). Existing flows stay 1; new flows default
269
- * to 2.
426
+ * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
427
+ * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
428
+ * Existing flows stay 1; new flows default to the current version.
270
429
  */
271
430
  templateResolutionVersion: number;
272
431
 
@@ -279,6 +438,28 @@ export namespace FlowRetrieveResponse {
279
438
  */
280
439
  userId: string;
281
440
  }
441
+
442
+ export namespace Data {
443
+ export interface Delivery {
444
+ destination: 'one_drive' | 'google_drive';
445
+
446
+ folder?: string;
447
+
448
+ recording?: Delivery.Recording;
449
+
450
+ screenshots?: unknown;
451
+ }
452
+
453
+ export namespace Delivery {
454
+ export interface Recording {
455
+ filename: string;
456
+ }
457
+ }
458
+
459
+ export interface RecordingPolicy {
460
+ mode: 'off' | 'flow' | 'selected_steps';
461
+ }
462
+ }
282
463
  }
283
464
 
284
465
  export interface FlowUpdateResponse {
@@ -289,6 +470,8 @@ export namespace FlowUpdateResponse {
289
470
  export interface Data {
290
471
  id: string;
291
472
 
473
+ archivedAt: string | null;
474
+
292
475
  blockedAt: string | null;
293
476
 
294
477
  consecutiveFailures: number;
@@ -301,10 +484,16 @@ export namespace FlowUpdateResponse {
301
484
 
302
485
  createdBy: string | null;
303
486
 
487
+ delivery: Data.Delivery | null;
488
+
304
489
  description: string | null;
305
490
 
306
491
  deviceIds: Array<string>;
307
492
 
493
+ /**
494
+ * Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
495
+ * enabled.
496
+ */
308
497
  enabled: boolean;
309
498
 
310
499
  healthMonitoringEnabled: boolean;
@@ -322,6 +511,8 @@ export namespace FlowUpdateResponse {
322
511
 
323
512
  lastTriggeredAt: string | null;
324
513
 
514
+ lifecycleStatus: 'enabled' | 'disabled' | 'archived';
515
+
325
516
  name: string;
326
517
 
327
518
  notifyOnFailure: boolean;
@@ -332,8 +523,14 @@ export namespace FlowUpdateResponse {
332
523
 
333
524
  ownerId: string;
334
525
 
526
+ /**
527
+ * @deprecated Deprecated: use recordingPolicy.mode ("flow" =
528
+ * recordingEnabled=true, "off" = recordingEnabled=false).
529
+ */
335
530
  recordingEnabled: boolean;
336
531
 
532
+ recordingPolicy: Data.RecordingPolicy;
533
+
337
534
  selfHealingEnabled: boolean;
338
535
 
339
536
  selfHealingMaxAttempts: number;
@@ -343,8 +540,9 @@ export namespace FlowUpdateResponse {
343
540
  /**
344
541
  * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
345
542
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
346
- * a whole-token null stays JSON null). Existing flows stay 1; new flows default
347
- * to 2.
543
+ * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
544
+ * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
545
+ * Existing flows stay 1; new flows default to the current version.
348
546
  */
349
547
  templateResolutionVersion: number;
350
548
 
@@ -357,6 +555,28 @@ export namespace FlowUpdateResponse {
357
555
  */
358
556
  userId: string;
359
557
  }
558
+
559
+ export namespace Data {
560
+ export interface Delivery {
561
+ destination: 'one_drive' | 'google_drive';
562
+
563
+ folder?: string;
564
+
565
+ recording?: Delivery.Recording;
566
+
567
+ screenshots?: unknown;
568
+ }
569
+
570
+ export namespace Delivery {
571
+ export interface Recording {
572
+ filename: string;
573
+ }
574
+ }
575
+
576
+ export interface RecordingPolicy {
577
+ mode: 'off' | 'flow' | 'selected_steps';
578
+ }
579
+ }
360
580
  }
361
581
 
362
582
  export interface FlowListResponse {
@@ -369,6 +589,8 @@ export namespace FlowListResponse {
369
589
  export interface Item {
370
590
  id: string;
371
591
 
592
+ archivedAt: string | null;
593
+
372
594
  blockedAt: string | null;
373
595
 
374
596
  consecutiveFailures: number;
@@ -381,10 +603,16 @@ export namespace FlowListResponse {
381
603
 
382
604
  createdBy: string | null;
383
605
 
606
+ delivery: Item.Delivery | null;
607
+
384
608
  description: string | null;
385
609
 
386
610
  deviceIds: Array<string>;
387
611
 
612
+ /**
613
+ * Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
614
+ * enabled.
615
+ */
388
616
  enabled: boolean;
389
617
 
390
618
  healthMonitoringEnabled: boolean;
@@ -402,6 +630,8 @@ export namespace FlowListResponse {
402
630
 
403
631
  lastTriggeredAt: string | null;
404
632
 
633
+ lifecycleStatus: 'enabled' | 'disabled' | 'archived';
634
+
405
635
  name: string;
406
636
 
407
637
  notifyOnFailure: boolean;
@@ -412,8 +642,14 @@ export namespace FlowListResponse {
412
642
 
413
643
  ownerId: string;
414
644
 
645
+ /**
646
+ * @deprecated Deprecated: use recordingPolicy.mode ("flow" =
647
+ * recordingEnabled=true, "off" = recordingEnabled=false).
648
+ */
415
649
  recordingEnabled: boolean;
416
650
 
651
+ recordingPolicy: Item.RecordingPolicy;
652
+
417
653
  selfHealingEnabled: boolean;
418
654
 
419
655
  selfHealingMaxAttempts: number;
@@ -423,8 +659,9 @@ export namespace FlowListResponse {
423
659
  /**
424
660
  * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
425
661
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
426
- * a whole-token null stays JSON null). Existing flows stay 1; new flows default
427
- * to 2.
662
+ * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
663
+ * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
664
+ * Existing flows stay 1; new flows default to the current version.
428
665
  */
429
666
  templateResolutionVersion: number;
430
667
 
@@ -437,20 +674,44 @@ export namespace FlowListResponse {
437
674
  */
438
675
  userId: string;
439
676
  }
677
+
678
+ export namespace Item {
679
+ export interface Delivery {
680
+ destination: 'one_drive' | 'google_drive';
681
+
682
+ folder?: string;
683
+
684
+ recording?: Delivery.Recording;
685
+
686
+ screenshots?: unknown;
687
+ }
688
+
689
+ export namespace Delivery {
690
+ export interface Recording {
691
+ filename: string;
692
+ }
693
+ }
694
+
695
+ export interface RecordingPolicy {
696
+ mode: 'off' | 'flow' | 'selected_steps';
697
+ }
698
+ }
440
699
  }
441
700
 
442
701
  export interface FlowDeleteResponse {
443
702
  message: string;
444
703
  }
445
704
 
446
- export interface FlowCloneResponse {
447
- data: FlowCloneResponse.Data;
705
+ export interface FlowActivateResponse {
706
+ data: FlowActivateResponse.Data;
448
707
  }
449
708
 
450
- export namespace FlowCloneResponse {
709
+ export namespace FlowActivateResponse {
451
710
  export interface Data {
452
711
  id: string;
453
712
 
713
+ archivedAt: string | null;
714
+
454
715
  blockedAt: string | null;
455
716
 
456
717
  consecutiveFailures: number;
@@ -463,10 +724,16 @@ export namespace FlowCloneResponse {
463
724
 
464
725
  createdBy: string | null;
465
726
 
727
+ delivery: Data.Delivery | null;
728
+
466
729
  description: string | null;
467
730
 
468
731
  deviceIds: Array<string>;
469
732
 
733
+ /**
734
+ * Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
735
+ * enabled.
736
+ */
470
737
  enabled: boolean;
471
738
 
472
739
  healthMonitoringEnabled: boolean;
@@ -484,6 +751,8 @@ export namespace FlowCloneResponse {
484
751
 
485
752
  lastTriggeredAt: string | null;
486
753
 
754
+ lifecycleStatus: 'enabled' | 'disabled' | 'archived';
755
+
487
756
  name: string;
488
757
 
489
758
  notifyOnFailure: boolean;
@@ -494,8 +763,14 @@ export namespace FlowCloneResponse {
494
763
 
495
764
  ownerId: string;
496
765
 
766
+ /**
767
+ * @deprecated Deprecated: use recordingPolicy.mode ("flow" =
768
+ * recordingEnabled=true, "off" = recordingEnabled=false).
769
+ */
497
770
  recordingEnabled: boolean;
498
771
 
772
+ recordingPolicy: Data.RecordingPolicy;
773
+
499
774
  selfHealingEnabled: boolean;
500
775
 
501
776
  selfHealingMaxAttempts: number;
@@ -505,8 +780,9 @@ export namespace FlowCloneResponse {
505
780
  /**
506
781
  * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
507
782
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
508
- * a whole-token null stays JSON null). Existing flows stay 1; new flows default
509
- * to 2.
783
+ * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
784
+ * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
785
+ * Existing flows stay 1; new flows default to the current version.
510
786
  */
511
787
  templateResolutionVersion: number;
512
788
 
@@ -519,142 +795,54 @@ export namespace FlowCloneResponse {
519
795
  */
520
796
  userId: string;
521
797
  }
522
- }
523
-
524
- export interface FlowDryRunResponse {
525
- data: FlowDryRunResponse.Data;
526
- }
527
-
528
- export namespace FlowDryRunResponse {
529
- export interface Data {
530
- actions: Array<Data.Action>;
531
-
532
- activation: 'event' | 'schedule' | 'custom';
533
-
534
- conditionsPassed: boolean | null;
535
-
536
- gates: Data.Gates;
537
-
538
- nextFireTime: string | null;
539
-
540
- rateLimited: boolean;
541
-
542
- validation: Data.Validation;
543
-
544
- wouldFire: boolean;
545
- }
546
798
 
547
799
  export namespace Data {
548
- export interface Action {
549
- continueOnError: boolean;
550
-
551
- method: string;
552
-
553
- name: string;
554
-
555
- service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
556
-
557
- /**
558
- * Nested child actions (loop/branch bodies), each the same shape as a
559
- * ResolvedAction.
560
- */
561
- children?: Array<unknown>;
562
-
563
- params?: { [key: string]: unknown };
564
- }
565
-
566
- export interface Gates {
567
- blocked: boolean;
568
-
569
- cooldownActive: boolean | null;
800
+ export interface Delivery {
801
+ destination: 'one_drive' | 'google_drive';
570
802
 
571
- deviceAttached: boolean;
803
+ folder?: string;
572
804
 
573
- deviceIds: Array<string>;
805
+ recording?: Delivery.Recording;
574
806
 
575
- enabled: boolean;
807
+ screenshots?: unknown;
576
808
  }
577
809
 
578
- export interface Validation {
579
- valid: boolean;
580
-
581
- errors?: Array<Validation.Error>;
810
+ export namespace Delivery {
811
+ export interface Recording {
812
+ filename: string;
813
+ }
582
814
  }
583
815
 
584
- export namespace Validation {
585
- export interface Error {
586
- field: string;
587
-
588
- message: string;
589
- }
816
+ export interface RecordingPolicy {
817
+ mode: 'off' | 'flow' | 'selected_steps';
590
818
  }
591
819
  }
592
820
  }
593
821
 
594
- export interface FlowListRepairsResponse {
595
- data: Array<FlowListRepairsResponse.Data>;
822
+ export interface FlowCapacityResponse {
823
+ data: FlowCapacityResponse.Data;
596
824
  }
597
825
 
598
- export namespace FlowListRepairsResponse {
826
+ export namespace FlowCapacityResponse {
599
827
  export interface Data {
600
- id: string;
601
-
602
- agentRunId: string | null;
603
-
604
- attempt: number;
605
-
606
- candidateSlug: string;
607
-
608
- chatSessionId: string | null;
609
-
610
- createdAt: string | null;
611
-
612
- deviceId: string | null;
613
-
614
- episode: number;
615
-
616
- error: string | null;
617
-
618
- failedStepIndex: number;
619
-
620
- finishedAt: string | null;
621
-
622
- flowId: string;
623
-
624
- maxAttempts: number;
625
-
626
- originalSlug: string;
627
-
628
- sourceExecutionId: string;
629
-
630
- startedAt: string | null;
828
+ included: number;
631
829
 
632
- status: 'pending' | 'running' | 'canary' | 'promoting' | 'repaired' | 'failed' | 'escalated';
633
-
634
- updatedAt: string | null;
635
-
636
- verdict: Data.Verdict | null;
637
- }
638
-
639
- export namespace Data {
640
- export interface Verdict {
641
- outcome: 'ok' | 'flaky' | 'broken';
642
-
643
- summary: string;
830
+ remaining: number;
644
831
 
645
- reason?: string;
646
- }
832
+ status: 'available' | 'exhausted' | 'not_included';
647
833
  }
648
834
  }
649
835
 
650
- export interface FlowUnblockResponse {
651
- data: FlowUnblockResponse.Data;
836
+ export interface FlowCloneResponse {
837
+ data: FlowCloneResponse.Data;
652
838
  }
653
839
 
654
- export namespace FlowUnblockResponse {
840
+ export namespace FlowCloneResponse {
655
841
  export interface Data {
656
842
  id: string;
657
843
 
844
+ archivedAt: string | null;
845
+
658
846
  blockedAt: string | null;
659
847
 
660
848
  consecutiveFailures: number;
@@ -667,10 +855,16 @@ export namespace FlowUnblockResponse {
667
855
 
668
856
  createdBy: string | null;
669
857
 
858
+ delivery: Data.Delivery | null;
859
+
670
860
  description: string | null;
671
861
 
672
862
  deviceIds: Array<string>;
673
863
 
864
+ /**
865
+ * Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
866
+ * enabled.
867
+ */
674
868
  enabled: boolean;
675
869
 
676
870
  healthMonitoringEnabled: boolean;
@@ -688,6 +882,8 @@ export namespace FlowUnblockResponse {
688
882
 
689
883
  lastTriggeredAt: string | null;
690
884
 
885
+ lifecycleStatus: 'enabled' | 'disabled' | 'archived';
886
+
691
887
  name: string;
692
888
 
693
889
  notifyOnFailure: boolean;
@@ -698,8 +894,14 @@ export namespace FlowUnblockResponse {
698
894
 
699
895
  ownerId: string;
700
896
 
897
+ /**
898
+ * @deprecated Deprecated: use recordingPolicy.mode ("flow" =
899
+ * recordingEnabled=true, "off" = recordingEnabled=false).
900
+ */
701
901
  recordingEnabled: boolean;
702
902
 
903
+ recordingPolicy: Data.RecordingPolicy;
904
+
703
905
  selfHealingEnabled: boolean;
704
906
 
705
907
  selfHealingMaxAttempts: number;
@@ -709,8 +911,9 @@ export namespace FlowUnblockResponse {
709
911
  /**
710
912
  * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
711
913
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
712
- * a whole-token null stays JSON null). Existing flows stay 1; new flows default
713
- * to 2.
914
+ * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
915
+ * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
916
+ * Existing flows stay 1; new flows default to the current version.
714
917
  */
715
918
  templateResolutionVersion: number;
716
919
 
@@ -723,10 +926,456 @@ export namespace FlowUnblockResponse {
723
926
  */
724
927
  userId: string;
725
928
  }
726
- }
727
929
 
728
- export interface FlowCreateParams {
729
- actions: Array<FlowCreateParams.Action>;
930
+ export namespace Data {
931
+ export interface Delivery {
932
+ destination: 'one_drive' | 'google_drive';
933
+
934
+ folder?: string;
935
+
936
+ recording?: Delivery.Recording;
937
+
938
+ screenshots?: unknown;
939
+ }
940
+
941
+ export namespace Delivery {
942
+ export interface Recording {
943
+ filename: string;
944
+ }
945
+ }
946
+
947
+ export interface RecordingPolicy {
948
+ mode: 'off' | 'flow' | 'selected_steps';
949
+ }
950
+ }
951
+ }
952
+
953
+ export interface FlowDeliveryOptionsResponse {
954
+ data: FlowDeliveryOptionsResponse.Data;
955
+ }
956
+
957
+ export namespace FlowDeliveryOptionsResponse {
958
+ export interface Data {
959
+ canDeliverRecording: boolean;
960
+
961
+ /**
962
+ * Delivery destinations in registry order.
963
+ */
964
+ destinations: Array<Data.Destination>;
965
+
966
+ directUploadStep: Data.DirectUploadStep | null;
967
+
968
+ hasFilesUpload: boolean;
969
+
970
+ recordingMode: 'off' | 'flow' | 'selected_steps';
971
+ }
972
+
973
+ export namespace Data {
974
+ export interface Destination {
975
+ connection: 'connected' | 'not_connected' | 'expired' | 'unknown';
976
+
977
+ connectKey: string;
978
+
979
+ iconUrl: string | null;
980
+
981
+ key: 'one_drive' | 'google_drive';
982
+
983
+ label: string;
984
+ }
985
+
986
+ export interface DirectUploadStep {
987
+ flowActionId: string;
988
+
989
+ name: string;
990
+ }
991
+ }
992
+ }
993
+
994
+ export interface FlowDryRunResponse {
995
+ data: FlowDryRunResponse.Data;
996
+ }
997
+
998
+ export namespace FlowDryRunResponse {
999
+ export interface Data {
1000
+ actions: Array<Data.Action>;
1001
+
1002
+ activation: 'event' | 'schedule' | 'custom';
1003
+
1004
+ conditionsPassed: boolean | null;
1005
+
1006
+ gates: Data.Gates;
1007
+
1008
+ nextFireTime: string | null;
1009
+
1010
+ rateLimited: boolean;
1011
+
1012
+ validation: Data.Validation;
1013
+
1014
+ wouldFire: boolean;
1015
+ }
1016
+
1017
+ export namespace Data {
1018
+ export interface Action {
1019
+ continueOnError: boolean;
1020
+
1021
+ flowActionId: string;
1022
+
1023
+ key: string;
1024
+
1025
+ method: string;
1026
+
1027
+ name: string;
1028
+
1029
+ recordingEnabled: boolean;
1030
+
1031
+ service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
1032
+
1033
+ /**
1034
+ * Nested child actions (loop/branch bodies), each the same shape as a
1035
+ * ResolvedAction.
1036
+ */
1037
+ children?: Array<unknown>;
1038
+
1039
+ params?: { [key: string]: unknown };
1040
+ }
1041
+
1042
+ export interface Gates {
1043
+ blocked: boolean;
1044
+
1045
+ cooldownActive: boolean | null;
1046
+
1047
+ deviceAttached: boolean;
1048
+
1049
+ deviceIds: Array<string>;
1050
+
1051
+ enabled: boolean;
1052
+ }
1053
+
1054
+ export interface Validation {
1055
+ valid: boolean;
1056
+
1057
+ errors?: Array<Validation.Error>;
1058
+ }
1059
+
1060
+ export namespace Validation {
1061
+ export interface Error {
1062
+ field: string;
1063
+
1064
+ message: string;
1065
+ }
1066
+ }
1067
+ }
1068
+ }
1069
+
1070
+ export interface FlowListRepairsResponse {
1071
+ data: Array<FlowListRepairsResponse.Data>;
1072
+ }
1073
+
1074
+ export namespace FlowListRepairsResponse {
1075
+ export interface Data {
1076
+ id: string;
1077
+
1078
+ agentRunId: string | null;
1079
+
1080
+ attempt: number;
1081
+
1082
+ candidateSlug: string;
1083
+
1084
+ chatSessionId: string | null;
1085
+
1086
+ createdAt: string | null;
1087
+
1088
+ deviceId: string | null;
1089
+
1090
+ episode: number;
1091
+
1092
+ error: string | null;
1093
+
1094
+ failedStepIndex: number;
1095
+
1096
+ finishedAt: string | null;
1097
+
1098
+ flowId: string;
1099
+
1100
+ maxAttempts: number;
1101
+
1102
+ originalSlug: string;
1103
+
1104
+ sourceExecutionId: string;
1105
+
1106
+ startedAt: string | null;
1107
+
1108
+ status: 'pending' | 'running' | 'canary' | 'promoting' | 'repaired' | 'failed' | 'escalated';
1109
+
1110
+ updatedAt: string | null;
1111
+
1112
+ verdict: Data.Verdict | null;
1113
+ }
1114
+
1115
+ export namespace Data {
1116
+ export interface Verdict {
1117
+ outcome: 'ok' | 'flaky' | 'broken';
1118
+
1119
+ summary: string;
1120
+
1121
+ reason?: string;
1122
+ }
1123
+ }
1124
+ }
1125
+
1126
+ export interface FlowRunResponse {
1127
+ data: FlowRunResponse.Data;
1128
+ }
1129
+
1130
+ export namespace FlowRunResponse {
1131
+ export interface Data {
1132
+ enqueuedCount: number;
1133
+
1134
+ /**
1135
+ * Ids of the executions this run created. An idempotent replay returns the ids of
1136
+ * the original run.
1137
+ */
1138
+ executionIds: Array<string>;
1139
+ }
1140
+ }
1141
+
1142
+ export interface FlowTemplateContextResponse {
1143
+ data: FlowTemplateContextResponse.Data;
1144
+ }
1145
+
1146
+ export namespace FlowTemplateContextResponse {
1147
+ export interface Data {
1148
+ grammar: string;
1149
+
1150
+ loop: Data.Loop;
1151
+
1152
+ payloadAliases: Array<string>;
1153
+
1154
+ roots: Array<Data.Root>;
1155
+
1156
+ stepReference: Data.StepReference;
1157
+
1158
+ templateResolutionVersion: number;
1159
+ }
1160
+
1161
+ export namespace Data {
1162
+ export interface Loop {
1163
+ context: Array<string>;
1164
+
1165
+ itemVariableDefault: string;
1166
+
1167
+ name: string;
1168
+ }
1169
+
1170
+ export interface Root {
1171
+ description: string;
1172
+
1173
+ name: string;
1174
+
1175
+ shape?: unknown;
1176
+ }
1177
+
1178
+ export interface StepReference {
1179
+ note: string;
1180
+
1181
+ pattern: string;
1182
+
1183
+ keyRule?: string;
1184
+
1185
+ slugRule?: string;
1186
+ }
1187
+ }
1188
+ }
1189
+
1190
+ export interface FlowUnblockResponse {
1191
+ data: FlowUnblockResponse.Data;
1192
+ }
1193
+
1194
+ export namespace FlowUnblockResponse {
1195
+ export interface Data {
1196
+ id: string;
1197
+
1198
+ archivedAt: string | null;
1199
+
1200
+ blockedAt: string | null;
1201
+
1202
+ consecutiveFailures: number;
1203
+
1204
+ cooldownScope: 'flow' | 'device';
1205
+
1206
+ cooldownSeconds: number | null;
1207
+
1208
+ createdAt: string | null;
1209
+
1210
+ createdBy: string | null;
1211
+
1212
+ delivery: Data.Delivery | null;
1213
+
1214
+ description: string | null;
1215
+
1216
+ deviceIds: Array<string>;
1217
+
1218
+ /**
1219
+ * Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
1220
+ * enabled.
1221
+ */
1222
+ enabled: boolean;
1223
+
1224
+ healthMonitoringEnabled: boolean;
1225
+
1226
+ lastFailureAt: string | null;
1227
+
1228
+ lastFailureCode:
1229
+ | 'device_not_found'
1230
+ | 'permission_denied'
1231
+ | 'client_error'
1232
+ | 'transient'
1233
+ | 'logic'
1234
+ | 'invalid_config'
1235
+ | null;
1236
+
1237
+ lastTriggeredAt: string | null;
1238
+
1239
+ lifecycleStatus: 'enabled' | 'disabled' | 'archived';
1240
+
1241
+ name: string;
1242
+
1243
+ notifyOnFailure: boolean;
1244
+
1245
+ notifyOnSuccess: boolean;
1246
+
1247
+ notifyWebhookId: string | null;
1248
+
1249
+ ownerId: string;
1250
+
1251
+ /**
1252
+ * @deprecated Deprecated: use recordingPolicy.mode ("flow" =
1253
+ * recordingEnabled=true, "off" = recordingEnabled=false).
1254
+ */
1255
+ recordingEnabled: boolean;
1256
+
1257
+ recordingPolicy: Data.RecordingPolicy;
1258
+
1259
+ selfHealingEnabled: boolean;
1260
+
1261
+ selfHealingMaxAttempts: number;
1262
+
1263
+ status: 'healthy' | 'failing' | 'blocked';
1264
+
1265
+ /**
1266
+ * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
1267
+ * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
1268
+ * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
1269
+ * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
1270
+ * Existing flows stay 1; new flows default to the current version.
1271
+ */
1272
+ templateResolutionVersion: number;
1273
+
1274
+ triggerId: string;
1275
+
1276
+ updatedAt: string | null;
1277
+
1278
+ /**
1279
+ * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
1280
+ */
1281
+ userId: string;
1282
+ }
1283
+
1284
+ export namespace Data {
1285
+ export interface Delivery {
1286
+ destination: 'one_drive' | 'google_drive';
1287
+
1288
+ folder?: string;
1289
+
1290
+ recording?: Delivery.Recording;
1291
+
1292
+ screenshots?: unknown;
1293
+ }
1294
+
1295
+ export namespace Delivery {
1296
+ export interface Recording {
1297
+ filename: string;
1298
+ }
1299
+ }
1300
+
1301
+ export interface RecordingPolicy {
1302
+ mode: 'off' | 'flow' | 'selected_steps';
1303
+ }
1304
+ }
1305
+ }
1306
+
1307
+ export interface FlowValidateResponse {
1308
+ data: FlowValidateResponse.Data;
1309
+ }
1310
+
1311
+ export namespace FlowValidateResponse {
1312
+ export interface Data {
1313
+ errors: Array<Data.Error>;
1314
+
1315
+ valid: boolean;
1316
+
1317
+ warnings: Array<Data.Warning>;
1318
+ }
1319
+
1320
+ export namespace Data {
1321
+ export interface Error {
1322
+ code: string;
1323
+
1324
+ field: string;
1325
+
1326
+ message: string;
1327
+
1328
+ knownSteps?: Array<string>;
1329
+
1330
+ reference?: string;
1331
+ }
1332
+
1333
+ export interface Warning {
1334
+ code: string;
1335
+
1336
+ message: string;
1337
+
1338
+ connectKey?: string;
1339
+
1340
+ destination?: string;
1341
+ }
1342
+ }
1343
+ }
1344
+
1345
+ export interface FlowVerifyResponse {
1346
+ data: FlowVerifyResponse.Data;
1347
+ }
1348
+
1349
+ export namespace FlowVerifyResponse {
1350
+ export interface Data {
1351
+ /**
1352
+ * True when this run already existed for the (flow, invocationId) key (HTTP 200);
1353
+ * false for a newly enqueued run (HTTP 202).
1354
+ */
1355
+ deduplicated: boolean;
1356
+
1357
+ /**
1358
+ * Device the verification runs on; null for a device-free verification (a 0-device
1359
+ * flow whose actions are all device-free allowlisted).
1360
+ */
1361
+ deviceId: string | null;
1362
+
1363
+ executionId: string;
1364
+
1365
+ flowId: string;
1366
+
1367
+ invocationId: string;
1368
+
1369
+ kind: 'verification';
1370
+
1371
+ status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid';
1372
+
1373
+ triggerId: string;
1374
+ }
1375
+ }
1376
+
1377
+ export interface FlowCreateParams {
1378
+ actions: Array<FlowCreateParams.Action>;
730
1379
 
731
1380
  name: string;
732
1381
 
@@ -736,6 +1385,8 @@ export interface FlowCreateParams {
736
1385
 
737
1386
  cooldownSeconds?: number | null;
738
1387
 
1388
+ delivery?: FlowCreateParams.Delivery;
1389
+
739
1390
  description?: string;
740
1391
 
741
1392
  deviceIds?: Array<string>;
@@ -752,6 +1403,8 @@ export interface FlowCreateParams {
752
1403
 
753
1404
  recordingEnabled?: boolean;
754
1405
 
1406
+ recordingPolicy?: FlowCreateParams.RecordingPolicy;
1407
+
755
1408
  selfHealingEnabled?: boolean;
756
1409
 
757
1410
  selfHealingMaxAttempts?: number;
@@ -767,9 +1420,20 @@ export namespace FlowCreateParams {
767
1420
 
768
1421
  continueOnError?: boolean;
769
1422
 
1423
+ /**
1424
+ * Stable identifier used by template resolution v2+ to address this step as
1425
+ * {{key.field}}. Omitted keys are derived from the step name whenever a flow is
1426
+ * created. For template resolution v3, replacing an existing flow's full action
1427
+ * tree requires every step to carry an explicit key — a missing key is rejected
1428
+ * there, not derived, so a name change can never silently move a step's key.
1429
+ */
1430
+ key?: string;
1431
+
770
1432
  nameOverride?: string;
771
1433
 
772
1434
  overrides?: Action.Overrides | null;
1435
+
1436
+ recordingEnabled?: boolean;
773
1437
  }
774
1438
 
775
1439
  export namespace Action {
@@ -780,9 +1444,20 @@ export namespace FlowCreateParams {
780
1444
 
781
1445
  continueOnError?: boolean;
782
1446
 
1447
+ /**
1448
+ * Stable identifier used by template resolution v2+ to address this step as
1449
+ * {{key.field}}. Omitted keys are derived from the step name whenever a flow is
1450
+ * created. For template resolution v3, replacing an existing flow's full action
1451
+ * tree requires every step to carry an explicit key — a missing key is rejected
1452
+ * there, not derived, so a name change can never silently move a step's key.
1453
+ */
1454
+ key?: string;
1455
+
783
1456
  nameOverride?: string;
784
1457
 
785
1458
  overrides?: Child.Overrides | null;
1459
+
1460
+ recordingEnabled?: boolean;
786
1461
  }
787
1462
 
788
1463
  export namespace Child {
@@ -795,6 +1470,26 @@ export namespace FlowCreateParams {
795
1470
  params?: { [key: string]: unknown };
796
1471
  }
797
1472
  }
1473
+
1474
+ export interface Delivery {
1475
+ destination: 'one_drive' | 'google_drive';
1476
+
1477
+ folder?: string;
1478
+
1479
+ recording?: Delivery.Recording;
1480
+
1481
+ screenshots?: unknown;
1482
+ }
1483
+
1484
+ export namespace Delivery {
1485
+ export interface Recording {
1486
+ filename: string;
1487
+ }
1488
+ }
1489
+
1490
+ export interface RecordingPolicy {
1491
+ mode: 'off' | 'flow' | 'selected_steps';
1492
+ }
798
1493
  }
799
1494
 
800
1495
  export interface FlowUpdateParams {
@@ -802,6 +1497,8 @@ export interface FlowUpdateParams {
802
1497
 
803
1498
  cooldownSeconds?: number | null;
804
1499
 
1500
+ delivery?: FlowUpdateParams.Delivery | null;
1501
+
805
1502
  description?: string;
806
1503
 
807
1504
  deviceIds?: Array<string>;
@@ -810,6 +1507,11 @@ export interface FlowUpdateParams {
810
1507
 
811
1508
  healthMonitoringEnabled?: boolean;
812
1509
 
1510
+ /**
1511
+ * Set the visible agent lifecycle. Archive remains available only through DELETE.
1512
+ */
1513
+ lifecycleStatus?: 'enabled' | 'disabled';
1514
+
813
1515
  name?: string;
814
1516
 
815
1517
  notifyOnFailure?: boolean;
@@ -818,8 +1520,14 @@ export interface FlowUpdateParams {
818
1520
 
819
1521
  notifyWebhookId?: string | null;
820
1522
 
1523
+ /**
1524
+ * @deprecated Deprecated compatibility field. true maps to
1525
+ * recordingPolicy.mode="flow"; false maps to "off".
1526
+ */
821
1527
  recordingEnabled?: boolean;
822
1528
 
1529
+ recordingPolicy?: FlowUpdateParams.RecordingPolicy;
1530
+
823
1531
  selfHealingEnabled?: boolean;
824
1532
 
825
1533
  selfHealingMaxAttempts?: number;
@@ -827,6 +1535,28 @@ export interface FlowUpdateParams {
827
1535
  triggerId?: string;
828
1536
  }
829
1537
 
1538
+ export namespace FlowUpdateParams {
1539
+ export interface Delivery {
1540
+ destination: 'one_drive' | 'google_drive';
1541
+
1542
+ folder?: string;
1543
+
1544
+ recording?: Delivery.Recording;
1545
+
1546
+ screenshots?: unknown;
1547
+ }
1548
+
1549
+ export namespace Delivery {
1550
+ export interface Recording {
1551
+ filename: string;
1552
+ }
1553
+ }
1554
+
1555
+ export interface RecordingPolicy {
1556
+ mode: 'off' | 'flow' | 'selected_steps';
1557
+ }
1558
+ }
1559
+
830
1560
  export interface FlowListParams {
831
1561
  createdBy?: string;
832
1562
 
@@ -855,6 +1585,10 @@ export interface FlowListParams {
855
1585
  triggerId?: string;
856
1586
  }
857
1587
 
1588
+ export interface FlowActivateParams {
1589
+ verificationExecutionId: string;
1590
+ }
1591
+
858
1592
  export interface FlowCloneParams {
859
1593
  deviceIds?: Array<string>;
860
1594
 
@@ -865,6 +1599,189 @@ export interface FlowDryRunParams {
865
1599
  payload?: { [key: string]: unknown };
866
1600
  }
867
1601
 
1602
+ export interface FlowRunParams {
1603
+ payload?: { [key: string]: unknown };
1604
+ }
1605
+
1606
+ export interface FlowTemplateContextParams {
1607
+ templateResolutionVersion?: number;
1608
+ }
1609
+
1610
+ export interface FlowValidateParams {
1611
+ actions: Array<FlowValidateParams.FlowActionInput | FlowValidateParams.FlowDraftActionInput>;
1612
+
1613
+ name: string;
1614
+
1615
+ cooldownScope?: 'flow' | 'device';
1616
+
1617
+ cooldownSeconds?: number | null;
1618
+
1619
+ delivery?: FlowValidateParams.Delivery;
1620
+
1621
+ description?: string;
1622
+
1623
+ deviceIds?: Array<string>;
1624
+
1625
+ enabled?: boolean;
1626
+
1627
+ healthMonitoringEnabled?: boolean;
1628
+
1629
+ notifyOnFailure?: boolean;
1630
+
1631
+ notifyOnSuccess?: boolean;
1632
+
1633
+ notifyWebhookId?: string | null;
1634
+
1635
+ recordingEnabled?: boolean;
1636
+
1637
+ recordingPolicy?: FlowValidateParams.RecordingPolicy;
1638
+
1639
+ selfHealingEnabled?: boolean;
1640
+
1641
+ selfHealingMaxAttempts?: number;
1642
+
1643
+ triggerId?: string;
1644
+ }
1645
+
1646
+ export namespace FlowValidateParams {
1647
+ export interface FlowActionInput {
1648
+ actionId: string;
1649
+
1650
+ position: number;
1651
+
1652
+ children?: Array<FlowActionInput.Child>;
1653
+
1654
+ continueOnError?: boolean;
1655
+
1656
+ /**
1657
+ * Stable identifier used by template resolution v2+ to address this step as
1658
+ * {{key.field}}. Omitted keys are derived from the step name whenever a flow is
1659
+ * created. For template resolution v3, replacing an existing flow's full action
1660
+ * tree requires every step to carry an explicit key — a missing key is rejected
1661
+ * there, not derived, so a name change can never silently move a step's key.
1662
+ */
1663
+ key?: string;
1664
+
1665
+ nameOverride?: string;
1666
+
1667
+ overrides?: FlowActionInput.Overrides | null;
1668
+
1669
+ recordingEnabled?: boolean;
1670
+ }
1671
+
1672
+ export namespace FlowActionInput {
1673
+ export interface Child {
1674
+ actionId: string;
1675
+
1676
+ position: number;
1677
+
1678
+ continueOnError?: boolean;
1679
+
1680
+ /**
1681
+ * Stable identifier used by template resolution v2+ to address this step as
1682
+ * {{key.field}}. Omitted keys are derived from the step name whenever a flow is
1683
+ * created. For template resolution v3, replacing an existing flow's full action
1684
+ * tree requires every step to carry an explicit key — a missing key is rejected
1685
+ * there, not derived, so a name change can never silently move a step's key.
1686
+ */
1687
+ key?: string;
1688
+
1689
+ nameOverride?: string;
1690
+
1691
+ overrides?: Child.Overrides | null;
1692
+
1693
+ recordingEnabled?: boolean;
1694
+ }
1695
+
1696
+ export namespace Child {
1697
+ export interface Overrides {
1698
+ params?: { [key: string]: unknown };
1699
+ }
1700
+ }
1701
+
1702
+ export interface Overrides {
1703
+ params?: { [key: string]: unknown };
1704
+ }
1705
+ }
1706
+
1707
+ export interface FlowDraftActionInput {
1708
+ draft: FlowDraftActionInput.Draft;
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?: FlowDraftActionInput.Overrides | null;
1726
+
1727
+ recordingEnabled?: boolean;
1728
+ }
1729
+
1730
+ export namespace FlowDraftActionInput {
1731
+ export interface Draft {
1732
+ method: string;
1733
+
1734
+ name: string;
1735
+
1736
+ service: string;
1737
+
1738
+ params?: { [key: string]: unknown };
1739
+ }
1740
+
1741
+ export interface Overrides {
1742
+ params?: { [key: string]: unknown };
1743
+ }
1744
+ }
1745
+
1746
+ export interface Delivery {
1747
+ destination: 'one_drive' | 'google_drive';
1748
+
1749
+ folder?: string;
1750
+
1751
+ recording?: Delivery.Recording;
1752
+
1753
+ screenshots?: unknown;
1754
+ }
1755
+
1756
+ export namespace Delivery {
1757
+ export interface Recording {
1758
+ filename: string;
1759
+ }
1760
+ }
1761
+
1762
+ export interface RecordingPolicy {
1763
+ mode: 'off' | 'flow' | 'selected_steps';
1764
+ }
1765
+ }
1766
+
1767
+ export interface FlowVerifyParams {
1768
+ /**
1769
+ * Client-supplied idempotency key. A repeat request for the same (flow,
1770
+ * invocationId) returns the existing verification run (`deduplicated: true`,
1771
+ * HTTP 200) instead of enqueuing another.
1772
+ */
1773
+ invocationId: string;
1774
+
1775
+ /**
1776
+ * Device to run the verification on. Must be one the flow is bound to. Optional
1777
+ * only when the flow is bound to exactly one device (that device is used);
1778
+ * otherwise required.
1779
+ */
1780
+ deviceId?: string;
1781
+
1782
+ payload?: { [key: string]: unknown };
1783
+ }
1784
+
868
1785
  Flows.Actions = Actions;
869
1786
 
870
1787
  export declare namespace Flows {
@@ -874,15 +1791,27 @@ export declare namespace Flows {
874
1791
  type FlowUpdateResponse as FlowUpdateResponse,
875
1792
  type FlowListResponse as FlowListResponse,
876
1793
  type FlowDeleteResponse as FlowDeleteResponse,
1794
+ type FlowActivateResponse as FlowActivateResponse,
1795
+ type FlowCapacityResponse as FlowCapacityResponse,
877
1796
  type FlowCloneResponse as FlowCloneResponse,
1797
+ type FlowDeliveryOptionsResponse as FlowDeliveryOptionsResponse,
878
1798
  type FlowDryRunResponse as FlowDryRunResponse,
879
1799
  type FlowListRepairsResponse as FlowListRepairsResponse,
1800
+ type FlowRunResponse as FlowRunResponse,
1801
+ type FlowTemplateContextResponse as FlowTemplateContextResponse,
880
1802
  type FlowUnblockResponse as FlowUnblockResponse,
1803
+ type FlowValidateResponse as FlowValidateResponse,
1804
+ type FlowVerifyResponse as FlowVerifyResponse,
881
1805
  type FlowCreateParams as FlowCreateParams,
882
1806
  type FlowUpdateParams as FlowUpdateParams,
883
1807
  type FlowListParams as FlowListParams,
1808
+ type FlowActivateParams as FlowActivateParams,
884
1809
  type FlowCloneParams as FlowCloneParams,
885
1810
  type FlowDryRunParams as FlowDryRunParams,
1811
+ type FlowRunParams as FlowRunParams,
1812
+ type FlowTemplateContextParams as FlowTemplateContextParams,
1813
+ type FlowValidateParams as FlowValidateParams,
1814
+ type FlowVerifyParams as FlowVerifyParams,
886
1815
  };
887
1816
 
888
1817
  export {