@mobilerun/sdk 5.1.0 → 5.2.1

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 (731) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +15 -12
  3. package/client.d.mts +35 -29
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +35 -29
  6. package/client.d.ts.map +1 -1
  7. package/client.js +21 -15
  8. package/client.js.map +1 -1
  9. package/client.mjs +21 -15
  10. package/client.mjs.map +1 -1
  11. package/package.json +2 -2
  12. package/resources/agents.d.mts +27 -0
  13. package/resources/agents.d.mts.map +1 -0
  14. package/resources/agents.d.ts +27 -0
  15. package/resources/agents.d.ts.map +1 -0
  16. package/resources/agents.js +15 -0
  17. package/resources/agents.js.map +1 -0
  18. package/resources/agents.mjs +11 -0
  19. package/resources/agents.mjs.map +1 -0
  20. package/resources/app-events/app-events.d.mts +81 -0
  21. package/resources/app-events/app-events.d.mts.map +1 -0
  22. package/resources/app-events/app-events.d.ts +81 -0
  23. package/resources/app-events/app-events.d.ts.map +1 -0
  24. package/resources/app-events/app-events.js +33 -0
  25. package/resources/app-events/app-events.js.map +1 -0
  26. package/resources/app-events/app-events.mjs +28 -0
  27. package/resources/app-events/app-events.mjs.map +1 -0
  28. package/resources/app-events/catalog.d.mts +64 -0
  29. package/resources/app-events/catalog.d.mts.map +1 -0
  30. package/resources/app-events/catalog.d.ts +64 -0
  31. package/resources/app-events/catalog.d.ts.map +1 -0
  32. package/resources/app-events/catalog.js +25 -0
  33. package/resources/app-events/catalog.js.map +1 -0
  34. package/resources/app-events/catalog.mjs +21 -0
  35. package/resources/app-events/catalog.mjs.map +1 -0
  36. package/resources/app-events/index.d.mts +3 -0
  37. package/resources/app-events/index.d.mts.map +1 -0
  38. package/resources/app-events/index.d.ts +3 -0
  39. package/resources/app-events/index.d.ts.map +1 -0
  40. package/resources/{workflows/events → app-events}/index.js +3 -3
  41. package/resources/app-events/index.js.map +1 -0
  42. package/resources/app-events/index.mjs +4 -0
  43. package/resources/app-events/index.mjs.map +1 -0
  44. package/resources/app-events.d.mts +2 -0
  45. package/resources/app-events.d.mts.map +1 -0
  46. package/resources/app-events.d.ts +2 -0
  47. package/resources/app-events.d.ts.map +1 -0
  48. package/resources/app-events.js +6 -0
  49. package/resources/app-events.js.map +1 -0
  50. package/resources/app-events.mjs +3 -0
  51. package/resources/app-events.mjs.map +1 -0
  52. package/resources/apps.d.mts +44 -8
  53. package/resources/apps.d.mts.map +1 -1
  54. package/resources/apps.d.ts +44 -8
  55. package/resources/apps.d.ts.map +1 -1
  56. package/resources/apps.js +12 -4
  57. package/resources/apps.js.map +1 -1
  58. package/resources/apps.mjs +12 -4
  59. package/resources/apps.mjs.map +1 -1
  60. package/resources/carriers.d.mts +0 -3
  61. package/resources/carriers.d.mts.map +1 -1
  62. package/resources/carriers.d.ts +0 -3
  63. package/resources/carriers.d.ts.map +1 -1
  64. package/resources/carriers.js +0 -3
  65. package/resources/carriers.js.map +1 -1
  66. package/resources/carriers.mjs +0 -3
  67. package/resources/carriers.mjs.map +1 -1
  68. package/resources/connect/countries.d.mts +8 -3
  69. package/resources/connect/countries.d.mts.map +1 -1
  70. package/resources/connect/countries.d.ts +8 -3
  71. package/resources/connect/countries.d.ts.map +1 -1
  72. package/resources/connect/countries.js +6 -1
  73. package/resources/connect/countries.js.map +1 -1
  74. package/resources/connect/countries.mjs +6 -1
  75. package/resources/connect/countries.mjs.map +1 -1
  76. package/resources/connect/proxies.d.mts +11 -9
  77. package/resources/connect/proxies.d.mts.map +1 -1
  78. package/resources/connect/proxies.d.ts +11 -9
  79. package/resources/connect/proxies.d.ts.map +1 -1
  80. package/resources/connect/proxies.js +7 -5
  81. package/resources/connect/proxies.js.map +1 -1
  82. package/resources/connect/proxies.mjs +7 -5
  83. package/resources/connect/proxies.mjs.map +1 -1
  84. package/resources/connect/users.d.mts +7 -2
  85. package/resources/connect/users.d.mts.map +1 -1
  86. package/resources/connect/users.d.ts +7 -2
  87. package/resources/connect/users.d.ts.map +1 -1
  88. package/resources/connect/users.js +7 -2
  89. package/resources/connect/users.js.map +1 -1
  90. package/resources/connect/users.mjs +7 -2
  91. package/resources/connect/users.mjs.map +1 -1
  92. package/resources/credentials/credentials.d.mts +27 -8
  93. package/resources/credentials/credentials.d.mts.map +1 -1
  94. package/resources/credentials/credentials.d.ts +27 -8
  95. package/resources/credentials/credentials.d.ts.map +1 -1
  96. package/resources/credentials/credentials.js +3 -4
  97. package/resources/credentials/credentials.js.map +1 -1
  98. package/resources/credentials/credentials.mjs +3 -4
  99. package/resources/credentials/credentials.mjs.map +1 -1
  100. package/resources/credentials/index.d.mts +1 -1
  101. package/resources/credentials/index.d.mts.map +1 -1
  102. package/resources/credentials/index.d.ts +1 -1
  103. package/resources/credentials/index.d.ts.map +1 -1
  104. package/resources/credentials/index.js.map +1 -1
  105. package/resources/credentials/index.mjs.map +1 -1
  106. package/resources/credentials/packages/credentials/credentials.d.mts +74 -23
  107. package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
  108. package/resources/credentials/packages/credentials/credentials.d.ts +74 -23
  109. package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
  110. package/resources/credentials/packages/credentials/credentials.js +7 -6
  111. package/resources/credentials/packages/credentials/credentials.js.map +1 -1
  112. package/resources/credentials/packages/credentials/credentials.mjs +7 -6
  113. package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
  114. package/resources/credentials/packages/credentials/fields.d.mts +74 -10
  115. package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
  116. package/resources/credentials/packages/credentials/fields.d.ts +74 -10
  117. package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
  118. package/resources/credentials/packages/credentials/fields.js +8 -6
  119. package/resources/credentials/packages/credentials/fields.js.map +1 -1
  120. package/resources/credentials/packages/credentials/fields.mjs +8 -6
  121. package/resources/credentials/packages/credentials/fields.mjs.map +1 -1
  122. package/resources/credentials/packages/credentials/index.d.mts +1 -1
  123. package/resources/credentials/packages/credentials/index.d.mts.map +1 -1
  124. package/resources/credentials/packages/credentials/index.d.ts +1 -1
  125. package/resources/credentials/packages/credentials/index.d.ts.map +1 -1
  126. package/resources/credentials/packages/credentials/index.js.map +1 -1
  127. package/resources/credentials/packages/credentials/index.mjs.map +1 -1
  128. package/resources/credentials/packages/index.d.mts +2 -2
  129. package/resources/credentials/packages/index.d.mts.map +1 -1
  130. package/resources/credentials/packages/index.d.ts +2 -2
  131. package/resources/credentials/packages/index.d.ts.map +1 -1
  132. package/resources/credentials/packages/index.js.map +1 -1
  133. package/resources/credentials/packages/index.mjs.map +1 -1
  134. package/resources/credentials/packages/packages.d.mts +44 -9
  135. package/resources/credentials/packages/packages.d.mts.map +1 -1
  136. package/resources/credentials/packages/packages.d.ts +44 -9
  137. package/resources/credentials/packages/packages.d.ts.map +1 -1
  138. package/resources/credentials/packages/packages.js +13 -5
  139. package/resources/credentials/packages/packages.js.map +1 -1
  140. package/resources/credentials/packages/packages.mjs +13 -5
  141. package/resources/credentials/packages/packages.mjs.map +1 -1
  142. package/resources/devices/actions.d.mts +10 -5
  143. package/resources/devices/actions.d.mts.map +1 -1
  144. package/resources/devices/actions.d.ts +10 -5
  145. package/resources/devices/actions.d.ts.map +1 -1
  146. package/resources/devices/actions.js +10 -5
  147. package/resources/devices/actions.js.map +1 -1
  148. package/resources/devices/actions.mjs +10 -5
  149. package/resources/devices/actions.mjs.map +1 -1
  150. package/resources/devices/apps.d.mts +119 -6
  151. package/resources/devices/apps.d.mts.map +1 -1
  152. package/resources/devices/apps.d.ts +119 -6
  153. package/resources/devices/apps.d.ts.map +1 -1
  154. package/resources/devices/apps.js +80 -5
  155. package/resources/devices/apps.js.map +1 -1
  156. package/resources/devices/apps.mjs +80 -5
  157. package/resources/devices/apps.mjs.map +1 -1
  158. package/resources/devices/browser.d.mts +41 -0
  159. package/resources/devices/browser.d.mts.map +1 -0
  160. package/resources/devices/browser.d.ts +41 -0
  161. package/resources/devices/browser.d.ts.map +1 -0
  162. package/resources/devices/browser.js +31 -0
  163. package/resources/devices/browser.js.map +1 -0
  164. package/resources/devices/browser.mjs +27 -0
  165. package/resources/devices/browser.mjs.map +1 -0
  166. package/resources/devices/deep-link.d.mts +41 -0
  167. package/resources/devices/deep-link.d.mts.map +1 -0
  168. package/resources/devices/deep-link.d.ts +41 -0
  169. package/resources/devices/deep-link.d.ts.map +1 -0
  170. package/resources/devices/deep-link.js +33 -0
  171. package/resources/devices/deep-link.js.map +1 -0
  172. package/resources/devices/deep-link.mjs +29 -0
  173. package/resources/devices/deep-link.mjs.map +1 -0
  174. package/resources/devices/devices.d.mts +285 -33
  175. package/resources/devices/devices.d.mts.map +1 -1
  176. package/resources/devices/devices.d.ts +285 -33
  177. package/resources/devices/devices.d.ts.map +1 -1
  178. package/resources/devices/devices.js +83 -14
  179. package/resources/devices/devices.js.map +1 -1
  180. package/resources/devices/devices.mjs +83 -14
  181. package/resources/devices/devices.mjs.map +1 -1
  182. package/resources/devices/esim/apn.d.mts +95 -0
  183. package/resources/devices/esim/apn.d.mts.map +1 -0
  184. package/resources/devices/esim/apn.d.ts +95 -0
  185. package/resources/devices/esim/apn.d.ts.map +1 -0
  186. package/resources/devices/esim/apn.js +70 -0
  187. package/resources/devices/esim/apn.js.map +1 -0
  188. package/resources/devices/esim/apn.mjs +66 -0
  189. package/resources/devices/esim/apn.mjs.map +1 -0
  190. package/resources/devices/esim/esim.d.mts +144 -0
  191. package/resources/devices/esim/esim.d.mts.map +1 -0
  192. package/resources/devices/esim/esim.d.ts +144 -0
  193. package/resources/devices/esim/esim.d.ts.map +1 -0
  194. package/resources/devices/esim/esim.js +131 -0
  195. package/resources/devices/esim/esim.js.map +1 -0
  196. package/resources/devices/esim/esim.mjs +126 -0
  197. package/resources/devices/esim/esim.mjs.map +1 -0
  198. package/resources/devices/esim/index.d.mts +3 -0
  199. package/resources/devices/esim/index.d.mts.map +1 -0
  200. package/resources/devices/esim/index.d.ts +3 -0
  201. package/resources/devices/esim/index.d.ts.map +1 -0
  202. package/resources/devices/esim/index.js +9 -0
  203. package/resources/devices/esim/index.js.map +1 -0
  204. package/resources/devices/esim/index.mjs +4 -0
  205. package/resources/devices/esim/index.mjs.map +1 -0
  206. package/resources/devices/esim.d.mts +1 -100
  207. package/resources/devices/esim.d.mts.map +1 -1
  208. package/resources/devices/esim.d.ts +1 -100
  209. package/resources/devices/esim.d.ts.map +1 -1
  210. package/resources/devices/esim.js +2 -80
  211. package/resources/devices/esim.js.map +1 -1
  212. package/resources/devices/esim.mjs +1 -78
  213. package/resources/devices/esim.mjs.map +1 -1
  214. package/resources/devices/files.d.mts +38 -33
  215. package/resources/devices/files.d.mts.map +1 -1
  216. package/resources/devices/files.d.ts +38 -33
  217. package/resources/devices/files.d.ts.map +1 -1
  218. package/resources/devices/files.js +7 -4
  219. package/resources/devices/files.js.map +1 -1
  220. package/resources/devices/files.mjs +7 -4
  221. package/resources/devices/files.mjs.map +1 -1
  222. package/resources/devices/index.d.mts +11 -6
  223. package/resources/devices/index.d.mts.map +1 -1
  224. package/resources/devices/index.d.ts +11 -6
  225. package/resources/devices/index.d.ts.map +1 -1
  226. package/resources/devices/index.js +13 -3
  227. package/resources/devices/index.js.map +1 -1
  228. package/resources/devices/index.mjs +7 -2
  229. package/resources/devices/index.mjs.map +1 -1
  230. package/resources/devices/keyboard.d.mts +5 -3
  231. package/resources/devices/keyboard.d.mts.map +1 -1
  232. package/resources/devices/keyboard.d.ts +5 -3
  233. package/resources/devices/keyboard.d.ts.map +1 -1
  234. package/resources/devices/keyboard.js +5 -3
  235. package/resources/devices/keyboard.js.map +1 -1
  236. package/resources/devices/keyboard.mjs +5 -3
  237. package/resources/devices/keyboard.mjs.map +1 -1
  238. package/resources/devices/kiosk.d.mts +32 -0
  239. package/resources/devices/kiosk.d.mts.map +1 -0
  240. package/resources/devices/kiosk.d.ts +32 -0
  241. package/resources/devices/kiosk.d.ts.map +1 -0
  242. package/resources/devices/kiosk.js +50 -0
  243. package/resources/devices/kiosk.js.map +1 -0
  244. package/resources/devices/kiosk.mjs +46 -0
  245. package/resources/devices/kiosk.mjs.map +1 -0
  246. package/resources/devices/language.d.mts +4 -2
  247. package/resources/devices/language.d.mts.map +1 -1
  248. package/resources/devices/language.d.ts +4 -2
  249. package/resources/devices/language.d.ts.map +1 -1
  250. package/resources/devices/language.js +4 -2
  251. package/resources/devices/language.js.map +1 -1
  252. package/resources/devices/language.mjs +4 -2
  253. package/resources/devices/language.mjs.map +1 -1
  254. package/resources/devices/location.d.mts +13 -3
  255. package/resources/devices/location.d.mts.map +1 -1
  256. package/resources/devices/location.d.ts +13 -3
  257. package/resources/devices/location.d.ts.map +1 -1
  258. package/resources/devices/location.js +23 -2
  259. package/resources/devices/location.js.map +1 -1
  260. package/resources/devices/location.mjs +23 -2
  261. package/resources/devices/location.mjs.map +1 -1
  262. package/resources/devices/media-sessions.d.mts +96 -0
  263. package/resources/devices/media-sessions.d.mts.map +1 -0
  264. package/resources/devices/media-sessions.d.ts +96 -0
  265. package/resources/devices/media-sessions.d.ts.map +1 -0
  266. package/resources/devices/media-sessions.js +50 -0
  267. package/resources/devices/media-sessions.js.map +1 -0
  268. package/resources/devices/media-sessions.mjs +46 -0
  269. package/resources/devices/media-sessions.mjs.map +1 -0
  270. package/resources/devices/packages.d.mts +2 -1
  271. package/resources/devices/packages.d.mts.map +1 -1
  272. package/resources/devices/packages.d.ts +2 -1
  273. package/resources/devices/packages.d.ts.map +1 -1
  274. package/resources/devices/packages.js +2 -1
  275. package/resources/devices/packages.js.map +1 -1
  276. package/resources/devices/packages.mjs +2 -1
  277. package/resources/devices/packages.mjs.map +1 -1
  278. package/resources/devices/proxy.d.mts +29 -3
  279. package/resources/devices/proxy.d.mts.map +1 -1
  280. package/resources/devices/proxy.d.ts +29 -3
  281. package/resources/devices/proxy.d.ts.map +1 -1
  282. package/resources/devices/proxy.js +7 -3
  283. package/resources/devices/proxy.js.map +1 -1
  284. package/resources/devices/proxy.mjs +7 -3
  285. package/resources/devices/proxy.mjs.map +1 -1
  286. package/resources/devices/recordings.d.mts +192 -0
  287. package/resources/devices/recordings.d.mts.map +1 -0
  288. package/resources/devices/recordings.d.ts +192 -0
  289. package/resources/devices/recordings.d.ts.map +1 -0
  290. package/resources/devices/recordings.js +67 -0
  291. package/resources/devices/recordings.js.map +1 -0
  292. package/resources/devices/recordings.mjs +63 -0
  293. package/resources/devices/recordings.mjs.map +1 -0
  294. package/resources/devices/state.d.mts +13 -10
  295. package/resources/devices/state.d.mts.map +1 -1
  296. package/resources/devices/state.d.ts +13 -10
  297. package/resources/devices/state.d.ts.map +1 -1
  298. package/resources/devices/state.js +6 -3
  299. package/resources/devices/state.js.map +1 -1
  300. package/resources/devices/state.mjs +6 -3
  301. package/resources/devices/state.mjs.map +1 -1
  302. package/resources/devices/tasks.d.mts +2 -4
  303. package/resources/devices/tasks.d.mts.map +1 -1
  304. package/resources/devices/tasks.d.ts +2 -4
  305. package/resources/devices/tasks.d.ts.map +1 -1
  306. package/resources/devices/tasks.js +2 -4
  307. package/resources/devices/tasks.js.map +1 -1
  308. package/resources/devices/tasks.mjs +2 -4
  309. package/resources/devices/tasks.mjs.map +1 -1
  310. package/resources/devices/timezone.d.mts +4 -2
  311. package/resources/devices/timezone.d.mts.map +1 -1
  312. package/resources/devices/timezone.d.ts +4 -2
  313. package/resources/devices/timezone.d.ts.map +1 -1
  314. package/resources/devices/timezone.js +4 -2
  315. package/resources/devices/timezone.js.map +1 -1
  316. package/resources/devices/timezone.mjs +4 -2
  317. package/resources/devices/timezone.mjs.map +1 -1
  318. package/resources/esims/esims.d.mts +566 -0
  319. package/resources/esims/esims.d.mts.map +1 -0
  320. package/resources/esims/esims.d.ts +566 -0
  321. package/resources/esims/esims.d.ts.map +1 -0
  322. package/resources/esims/esims.js +205 -0
  323. package/resources/esims/esims.js.map +1 -0
  324. package/resources/esims/esims.mjs +200 -0
  325. package/resources/esims/esims.mjs.map +1 -0
  326. package/resources/esims/index.d.mts +3 -0
  327. package/resources/esims/index.d.mts.map +1 -0
  328. package/resources/esims/index.d.ts +3 -0
  329. package/resources/esims/index.d.ts.map +1 -0
  330. package/resources/esims/index.js +9 -0
  331. package/resources/esims/index.js.map +1 -0
  332. package/resources/esims/index.mjs +4 -0
  333. package/resources/esims/index.mjs.map +1 -0
  334. package/resources/esims/messages.d.mts +111 -0
  335. package/resources/esims/messages.d.mts.map +1 -0
  336. package/resources/esims/messages.d.ts +111 -0
  337. package/resources/esims/messages.d.ts.map +1 -0
  338. package/resources/esims/messages.js +37 -0
  339. package/resources/esims/messages.js.map +1 -0
  340. package/resources/esims/messages.mjs +33 -0
  341. package/resources/esims/messages.mjs.map +1 -0
  342. package/resources/esims.d.mts +2 -0
  343. package/resources/esims.d.mts.map +1 -0
  344. package/resources/esims.d.ts +2 -0
  345. package/resources/esims.d.ts.map +1 -0
  346. package/resources/esims.js +6 -0
  347. package/resources/esims.js.map +1 -0
  348. package/resources/esims.mjs +3 -0
  349. package/resources/esims.mjs.map +1 -0
  350. package/resources/index.d.mts +13 -7
  351. package/resources/index.d.mts.map +1 -1
  352. package/resources/index.d.ts +13 -7
  353. package/resources/index.d.ts.map +1 -1
  354. package/resources/index.js +15 -3
  355. package/resources/index.js.map +1 -1
  356. package/resources/index.mjs +7 -1
  357. package/resources/index.mjs.map +1 -1
  358. package/resources/messages/conversations.d.mts +87 -0
  359. package/resources/messages/conversations.d.mts.map +1 -0
  360. package/resources/messages/conversations.d.ts +87 -0
  361. package/resources/messages/conversations.d.ts.map +1 -0
  362. package/resources/messages/conversations.js +34 -0
  363. package/resources/messages/conversations.js.map +1 -0
  364. package/resources/messages/conversations.mjs +30 -0
  365. package/resources/messages/conversations.mjs.map +1 -0
  366. package/resources/messages/index.d.mts +3 -0
  367. package/resources/messages/index.d.mts.map +1 -0
  368. package/resources/messages/index.d.ts +3 -0
  369. package/resources/messages/index.d.ts.map +1 -0
  370. package/resources/messages/index.js +9 -0
  371. package/resources/messages/index.js.map +1 -0
  372. package/resources/messages/index.mjs +4 -0
  373. package/resources/messages/index.mjs.map +1 -0
  374. package/resources/messages/messages.d.mts +56 -0
  375. package/resources/messages/messages.d.mts.map +1 -0
  376. package/resources/messages/messages.d.ts +56 -0
  377. package/resources/messages/messages.d.ts.map +1 -0
  378. package/resources/messages/messages.js +26 -0
  379. package/resources/messages/messages.js.map +1 -0
  380. package/resources/messages/messages.mjs +21 -0
  381. package/resources/messages/messages.mjs.map +1 -0
  382. package/resources/messages.d.mts +2 -0
  383. package/resources/messages.d.mts.map +1 -0
  384. package/resources/messages.d.ts +2 -0
  385. package/resources/messages.d.ts.map +1 -0
  386. package/resources/messages.js +6 -0
  387. package/resources/messages.js.map +1 -0
  388. package/resources/messages.mjs +3 -0
  389. package/resources/messages.mjs.map +1 -0
  390. package/resources/notifications.d.mts +86 -0
  391. package/resources/notifications.d.mts.map +1 -0
  392. package/resources/notifications.d.ts +86 -0
  393. package/resources/notifications.d.ts.map +1 -0
  394. package/resources/notifications.js +55 -0
  395. package/resources/notifications.js.map +1 -0
  396. package/resources/notifications.mjs +51 -0
  397. package/resources/notifications.mjs.map +1 -0
  398. package/resources/numbers/index.d.mts +3 -0
  399. package/resources/numbers/index.d.mts.map +1 -0
  400. package/resources/numbers/index.d.ts +3 -0
  401. package/resources/numbers/index.d.ts.map +1 -0
  402. package/resources/numbers/index.js +9 -0
  403. package/resources/numbers/index.js.map +1 -0
  404. package/resources/numbers/index.mjs +4 -0
  405. package/resources/numbers/index.mjs.map +1 -0
  406. package/resources/numbers/messages.d.mts +60 -0
  407. package/resources/numbers/messages.d.mts.map +1 -0
  408. package/resources/numbers/messages.d.ts +60 -0
  409. package/resources/numbers/messages.d.ts.map +1 -0
  410. package/resources/numbers/messages.js +25 -0
  411. package/resources/numbers/messages.js.map +1 -0
  412. package/resources/numbers/messages.mjs +21 -0
  413. package/resources/numbers/messages.mjs.map +1 -0
  414. package/resources/numbers/numbers.d.mts +222 -0
  415. package/resources/numbers/numbers.d.mts.map +1 -0
  416. package/resources/numbers/numbers.d.ts +222 -0
  417. package/resources/numbers/numbers.d.ts.map +1 -0
  418. package/resources/numbers/numbers.js +117 -0
  419. package/resources/numbers/numbers.js.map +1 -0
  420. package/resources/numbers/numbers.mjs +112 -0
  421. package/resources/numbers/numbers.mjs.map +1 -0
  422. package/resources/numbers.d.mts +2 -0
  423. package/resources/numbers.d.mts.map +1 -0
  424. package/resources/numbers.d.ts +2 -0
  425. package/resources/numbers.d.ts.map +1 -0
  426. package/resources/numbers.js +6 -0
  427. package/resources/numbers.js.map +1 -0
  428. package/resources/numbers.mjs +3 -0
  429. package/resources/numbers.mjs.map +1 -0
  430. package/resources/profiles.d.mts +69 -6
  431. package/resources/profiles.d.mts.map +1 -1
  432. package/resources/profiles.d.ts +69 -6
  433. package/resources/profiles.d.ts.map +1 -1
  434. package/resources/profiles.js.map +1 -1
  435. package/resources/profiles.mjs.map +1 -1
  436. package/resources/proxies.d.mts +57 -28
  437. package/resources/proxies.d.mts.map +1 -1
  438. package/resources/proxies.d.ts +57 -28
  439. package/resources/proxies.d.ts.map +1 -1
  440. package/resources/proxies.js +14 -8
  441. package/resources/proxies.js.map +1 -1
  442. package/resources/proxies.mjs +14 -8
  443. package/resources/proxies.mjs.map +1 -1
  444. package/resources/shared.d.mts +25 -3
  445. package/resources/shared.d.mts.map +1 -1
  446. package/resources/shared.d.ts +25 -3
  447. package/resources/shared.d.ts.map +1 -1
  448. package/resources/store/apps.d.mts +119 -0
  449. package/resources/store/apps.d.mts.map +1 -0
  450. package/resources/store/apps.d.ts +119 -0
  451. package/resources/store/apps.d.ts.map +1 -0
  452. package/resources/store/apps.js +31 -0
  453. package/resources/store/apps.js.map +1 -0
  454. package/resources/store/apps.mjs +27 -0
  455. package/resources/store/apps.mjs.map +1 -0
  456. package/resources/store/index.d.mts +3 -0
  457. package/resources/store/index.d.mts.map +1 -0
  458. package/resources/store/index.d.ts +3 -0
  459. package/resources/store/index.d.ts.map +1 -0
  460. package/resources/store/index.js +9 -0
  461. package/resources/store/index.js.map +1 -0
  462. package/resources/store/index.mjs +4 -0
  463. package/resources/store/index.mjs.map +1 -0
  464. package/resources/store/store.d.mts +20 -0
  465. package/resources/store/store.d.mts.map +1 -0
  466. package/resources/store/store.d.ts +20 -0
  467. package/resources/store/store.d.ts.map +1 -0
  468. package/resources/store/store.js +23 -0
  469. package/resources/store/store.js.map +1 -0
  470. package/resources/store/store.mjs +18 -0
  471. package/resources/store/store.mjs.map +1 -0
  472. package/resources/store.d.mts +2 -0
  473. package/resources/store.d.mts.map +1 -0
  474. package/resources/store.d.ts +2 -0
  475. package/resources/store.d.ts.map +1 -0
  476. package/resources/store.js +6 -0
  477. package/resources/store.js.map +1 -0
  478. package/resources/store.mjs +3 -0
  479. package/resources/store.mjs.map +1 -0
  480. package/resources/tasks/index.d.mts +3 -3
  481. package/resources/tasks/index.d.mts.map +1 -1
  482. package/resources/tasks/index.d.ts +3 -3
  483. package/resources/tasks/index.d.ts.map +1 -1
  484. package/resources/tasks/index.js.map +1 -1
  485. package/resources/tasks/index.mjs +1 -1
  486. package/resources/tasks/index.mjs.map +1 -1
  487. package/resources/tasks/screenshots.d.mts +3 -3
  488. package/resources/tasks/screenshots.d.mts.map +1 -1
  489. package/resources/tasks/screenshots.d.ts +3 -3
  490. package/resources/tasks/screenshots.d.ts.map +1 -1
  491. package/resources/tasks/tasks.d.mts +216 -90
  492. package/resources/tasks/tasks.d.mts.map +1 -1
  493. package/resources/tasks/tasks.d.ts +216 -90
  494. package/resources/tasks/tasks.d.ts.map +1 -1
  495. package/resources/tasks/tasks.js +10 -2
  496. package/resources/tasks/tasks.js.map +1 -1
  497. package/resources/tasks/tasks.mjs +11 -3
  498. package/resources/tasks/tasks.mjs.map +1 -1
  499. package/resources/tasks/ui-states.d.mts +8 -3
  500. package/resources/tasks/ui-states.d.mts.map +1 -1
  501. package/resources/tasks/ui-states.d.ts +8 -3
  502. package/resources/tasks/ui-states.d.ts.map +1 -1
  503. package/resources/tasks/ui-states.js.map +1 -1
  504. package/resources/tasks/ui-states.mjs.map +1 -1
  505. package/resources/webhooks/deliveries.d.mts +38 -4
  506. package/resources/webhooks/deliveries.d.mts.map +1 -1
  507. package/resources/webhooks/deliveries.d.ts +38 -4
  508. package/resources/webhooks/deliveries.d.ts.map +1 -1
  509. package/resources/webhooks/deliveries.js +15 -4
  510. package/resources/webhooks/deliveries.js.map +1 -1
  511. package/resources/webhooks/deliveries.mjs +15 -4
  512. package/resources/webhooks/deliveries.mjs.map +1 -1
  513. package/resources/webhooks/webhooks.d.mts +67 -9
  514. package/resources/webhooks/webhooks.d.mts.map +1 -1
  515. package/resources/webhooks/webhooks.d.ts +67 -9
  516. package/resources/webhooks/webhooks.d.ts.map +1 -1
  517. package/resources/webhooks/webhooks.js +26 -8
  518. package/resources/webhooks/webhooks.js.map +1 -1
  519. package/resources/webhooks/webhooks.mjs +26 -8
  520. package/resources/webhooks/webhooks.mjs.map +1 -1
  521. package/resources/workflows/action-catalog.d.mts +32 -15
  522. package/resources/workflows/action-catalog.d.mts.map +1 -1
  523. package/resources/workflows/action-catalog.d.ts +32 -15
  524. package/resources/workflows/action-catalog.d.ts.map +1 -1
  525. package/resources/workflows/action-catalog.js +5 -2
  526. package/resources/workflows/action-catalog.js.map +1 -1
  527. package/resources/workflows/action-catalog.mjs +5 -2
  528. package/resources/workflows/action-catalog.mjs.map +1 -1
  529. package/resources/workflows/actions/actions.d.mts +95 -23
  530. package/resources/workflows/actions/actions.d.mts.map +1 -1
  531. package/resources/workflows/actions/actions.d.ts +95 -23
  532. package/resources/workflows/actions/actions.d.ts.map +1 -1
  533. package/resources/workflows/actions/actions.js +10 -5
  534. package/resources/workflows/actions/actions.js.map +1 -1
  535. package/resources/workflows/actions/actions.mjs +10 -5
  536. package/resources/workflows/actions/actions.mjs.map +1 -1
  537. package/resources/workflows/actions/index.d.mts +1 -1
  538. package/resources/workflows/actions/index.d.mts.map +1 -1
  539. package/resources/workflows/actions/index.d.ts +1 -1
  540. package/resources/workflows/actions/index.d.ts.map +1 -1
  541. package/resources/workflows/actions/index.js.map +1 -1
  542. package/resources/workflows/actions/index.mjs.map +1 -1
  543. package/resources/workflows/actions/services.d.mts +5 -2
  544. package/resources/workflows/actions/services.d.mts.map +1 -1
  545. package/resources/workflows/actions/services.d.ts +5 -2
  546. package/resources/workflows/actions/services.d.ts.map +1 -1
  547. package/resources/workflows/actions/services.js +5 -2
  548. package/resources/workflows/actions/services.js.map +1 -1
  549. package/resources/workflows/actions/services.mjs +5 -2
  550. package/resources/workflows/actions/services.mjs.map +1 -1
  551. package/resources/workflows/events.d.mts +144 -1
  552. package/resources/workflows/events.d.mts.map +1 -1
  553. package/resources/workflows/events.d.ts +144 -1
  554. package/resources/workflows/events.d.ts.map +1 -1
  555. package/resources/workflows/events.js +18 -2
  556. package/resources/workflows/events.js.map +1 -1
  557. package/resources/workflows/events.mjs +16 -1
  558. package/resources/workflows/events.mjs.map +1 -1
  559. package/resources/workflows/executions.d.mts +107 -20
  560. package/resources/workflows/executions.d.mts.map +1 -1
  561. package/resources/workflows/executions.d.ts +107 -20
  562. package/resources/workflows/executions.d.ts.map +1 -1
  563. package/resources/workflows/executions.js +15 -3
  564. package/resources/workflows/executions.js.map +1 -1
  565. package/resources/workflows/executions.mjs +15 -3
  566. package/resources/workflows/executions.mjs.map +1 -1
  567. package/resources/workflows/flows/actions.d.mts +121 -30
  568. package/resources/workflows/flows/actions.d.mts.map +1 -1
  569. package/resources/workflows/flows/actions.d.ts +121 -30
  570. package/resources/workflows/flows/actions.d.ts.map +1 -1
  571. package/resources/workflows/flows/actions.js +12 -4
  572. package/resources/workflows/flows/actions.js.map +1 -1
  573. package/resources/workflows/flows/actions.mjs +12 -4
  574. package/resources/workflows/flows/actions.mjs.map +1 -1
  575. package/resources/workflows/flows/flows.d.mts +406 -32
  576. package/resources/workflows/flows/flows.d.mts.map +1 -1
  577. package/resources/workflows/flows/flows.d.ts +406 -32
  578. package/resources/workflows/flows/flows.d.ts.map +1 -1
  579. package/resources/workflows/flows/flows.js +43 -6
  580. package/resources/workflows/flows/flows.js.map +1 -1
  581. package/resources/workflows/flows/flows.mjs +43 -6
  582. package/resources/workflows/flows/flows.mjs.map +1 -1
  583. package/resources/workflows/flows/index.d.mts +2 -2
  584. package/resources/workflows/flows/index.d.mts.map +1 -1
  585. package/resources/workflows/flows/index.d.ts +2 -2
  586. package/resources/workflows/flows/index.d.ts.map +1 -1
  587. package/resources/workflows/flows/index.js.map +1 -1
  588. package/resources/workflows/flows/index.mjs.map +1 -1
  589. package/resources/workflows/index.d.mts +6 -6
  590. package/resources/workflows/index.d.mts.map +1 -1
  591. package/resources/workflows/index.d.ts +6 -6
  592. package/resources/workflows/index.d.ts.map +1 -1
  593. package/resources/workflows/index.js +4 -4
  594. package/resources/workflows/index.js.map +1 -1
  595. package/resources/workflows/index.mjs +1 -1
  596. package/resources/workflows/index.mjs.map +1 -1
  597. package/resources/workflows/triggers.d.mts +76 -61
  598. package/resources/workflows/triggers.d.mts.map +1 -1
  599. package/resources/workflows/triggers.d.ts +76 -61
  600. package/resources/workflows/triggers.d.ts.map +1 -1
  601. package/resources/workflows/triggers.js +12 -5
  602. package/resources/workflows/triggers.js.map +1 -1
  603. package/resources/workflows/triggers.mjs +12 -5
  604. package/resources/workflows/triggers.mjs.map +1 -1
  605. package/resources/workflows/workflows.d.mts +10 -33
  606. package/resources/workflows/workflows.d.mts.map +1 -1
  607. package/resources/workflows/workflows.d.ts +10 -33
  608. package/resources/workflows/workflows.d.ts.map +1 -1
  609. package/resources/workflows/workflows.js +2 -2
  610. package/resources/workflows/workflows.js.map +1 -1
  611. package/resources/workflows/workflows.mjs +2 -2
  612. package/resources/workflows/workflows.mjs.map +1 -1
  613. package/src/client.ts +137 -65
  614. package/src/resources/agents.ts +42 -0
  615. package/src/resources/app-events/app-events.ts +133 -0
  616. package/src/resources/app-events/catalog.ts +100 -0
  617. package/src/resources/app-events/index.ts +9 -0
  618. package/src/resources/app-events.ts +3 -0
  619. package/src/resources/apps.ts +55 -8
  620. package/src/resources/carriers.ts +0 -3
  621. package/src/resources/connect/countries.ts +8 -3
  622. package/src/resources/connect/proxies.ts +11 -9
  623. package/src/resources/connect/users.ts +7 -2
  624. package/src/resources/credentials/credentials.ts +43 -6
  625. package/src/resources/credentials/index.ts +1 -0
  626. package/src/resources/credentials/packages/credentials/credentials.ts +117 -33
  627. package/src/resources/credentials/packages/credentials/fields.ts +122 -10
  628. package/src/resources/credentials/packages/credentials/index.ts +0 -1
  629. package/src/resources/credentials/packages/index.ts +1 -1
  630. package/src/resources/credentials/packages/packages.ts +63 -8
  631. package/src/resources/devices/actions.ts +10 -5
  632. package/src/resources/devices/apps.ts +196 -5
  633. package/src/resources/devices/browser.ts +71 -0
  634. package/src/resources/devices/deep-link.ts +70 -0
  635. package/src/resources/devices/devices.ts +511 -38
  636. package/src/resources/devices/esim/apn.ts +178 -0
  637. package/src/resources/devices/esim/esim.ts +312 -0
  638. package/src/resources/devices/esim/index.ts +21 -0
  639. package/src/resources/devices/esim.ts +1 -206
  640. package/src/resources/devices/files.ts +43 -39
  641. package/src/resources/devices/index.ts +45 -5
  642. package/src/resources/devices/keyboard.ts +5 -3
  643. package/src/resources/devices/kiosk.ts +74 -0
  644. package/src/resources/devices/language.ts +4 -2
  645. package/src/resources/devices/location.ts +37 -3
  646. package/src/resources/devices/media-sessions.ts +168 -0
  647. package/src/resources/devices/packages.ts +2 -1
  648. package/src/resources/devices/proxy.ts +32 -3
  649. package/src/resources/devices/recordings.ts +358 -0
  650. package/src/resources/devices/state.ts +15 -12
  651. package/src/resources/devices/tasks.ts +2 -4
  652. package/src/resources/devices/timezone.ts +4 -2
  653. package/src/resources/esims/esims.ts +1013 -0
  654. package/src/resources/esims/index.ts +27 -0
  655. package/src/resources/esims/messages.ts +193 -0
  656. package/src/resources/esims.ts +3 -0
  657. package/src/resources/index.ts +54 -23
  658. package/src/resources/messages/conversations.ts +138 -0
  659. package/src/resources/messages/index.ts +10 -0
  660. package/src/resources/messages/messages.ts +120 -0
  661. package/src/resources/messages.ts +3 -0
  662. package/src/resources/notifications.ts +118 -0
  663. package/src/resources/numbers/index.ts +14 -0
  664. package/src/resources/numbers/messages.ts +102 -0
  665. package/src/resources/numbers/numbers.ts +339 -0
  666. package/src/resources/numbers.ts +3 -0
  667. package/src/resources/profiles.ts +105 -6
  668. package/src/resources/proxies.ts +66 -30
  669. package/src/resources/shared.ts +35 -4
  670. package/src/resources/store/apps.ts +704 -0
  671. package/src/resources/store/index.ts +10 -0
  672. package/src/resources/store/store.ts +36 -0
  673. package/src/resources/store.ts +3 -0
  674. package/src/resources/tasks/index.ts +7 -6
  675. package/src/resources/tasks/screenshots.ts +3 -3
  676. package/src/resources/tasks/tasks.ts +259 -103
  677. package/src/resources/tasks/ui-states.ts +9 -2
  678. package/src/resources/webhooks/deliveries.ts +43 -4
  679. package/src/resources/webhooks/webhooks.ts +79 -9
  680. package/src/resources/workflows/action-catalog.ts +40 -16
  681. package/src/resources/workflows/actions/actions.ts +136 -24
  682. package/src/resources/workflows/actions/index.ts +0 -1
  683. package/src/resources/workflows/actions/services.ts +5 -2
  684. package/src/resources/workflows/events.ts +226 -1
  685. package/src/resources/workflows/executions.ts +143 -21
  686. package/src/resources/workflows/flows/actions.ts +141 -29
  687. package/src/resources/workflows/flows/flows.ts +663 -31
  688. package/src/resources/workflows/flows/index.ts +3 -3
  689. package/src/resources/workflows/index.ts +6 -7
  690. package/src/resources/workflows/triggers.ts +93 -73
  691. package/src/resources/workflows/workflows.ts +16 -69
  692. package/src/version.ts +1 -1
  693. package/version.d.mts +1 -1
  694. package/version.d.ts +1 -1
  695. package/version.js +1 -1
  696. package/version.mjs +1 -1
  697. package/resources/hooks.d.mts +0 -243
  698. package/resources/hooks.d.mts.map +0 -1
  699. package/resources/hooks.d.ts +0 -243
  700. package/resources/hooks.d.ts.map +0 -1
  701. package/resources/hooks.js +0 -66
  702. package/resources/hooks.js.map +0 -1
  703. package/resources/hooks.mjs +0 -62
  704. package/resources/hooks.mjs.map +0 -1
  705. package/resources/workflows/events/catalog.d.mts +0 -55
  706. package/resources/workflows/events/catalog.d.mts.map +0 -1
  707. package/resources/workflows/events/catalog.d.ts +0 -55
  708. package/resources/workflows/events/catalog.d.ts.map +0 -1
  709. package/resources/workflows/events/catalog.js +0 -21
  710. package/resources/workflows/events/catalog.js.map +0 -1
  711. package/resources/workflows/events/catalog.mjs +0 -17
  712. package/resources/workflows/events/catalog.mjs.map +0 -1
  713. package/resources/workflows/events/events.d.mts +0 -123
  714. package/resources/workflows/events/events.d.mts.map +0 -1
  715. package/resources/workflows/events/events.d.ts +0 -123
  716. package/resources/workflows/events/events.d.ts.map +0 -1
  717. package/resources/workflows/events/events.js +0 -30
  718. package/resources/workflows/events/events.js.map +0 -1
  719. package/resources/workflows/events/events.mjs +0 -25
  720. package/resources/workflows/events/events.mjs.map +0 -1
  721. package/resources/workflows/events/index.d.mts +0 -3
  722. package/resources/workflows/events/index.d.mts.map +0 -1
  723. package/resources/workflows/events/index.d.ts +0 -3
  724. package/resources/workflows/events/index.d.ts.map +0 -1
  725. package/resources/workflows/events/index.js.map +0 -1
  726. package/resources/workflows/events/index.mjs +0 -4
  727. package/resources/workflows/events/index.mjs.map +0 -1
  728. package/src/resources/hooks.ts +0 -337
  729. package/src/resources/workflows/events/catalog.ts +0 -88
  730. package/src/resources/workflows/events/events.ts +0 -189
  731. package/src/resources/workflows/events/index.ts +0 -16
@@ -1,76 +1,410 @@
1
1
  import { APIResource } from "../../../core/resource.js";
2
- import * as FlowsAPI from "./flows.js";
3
2
  import * as Shared from "../../shared.js";
4
- import * as WorkflowsAPI from "../workflows.js";
5
3
  import * as ActionsAPI from "./actions.js";
6
- import { ActionAddParams, ActionAddResponse, ActionListResponse, ActionRemoveParams, ActionRemoveResponse, ActionReplaceParams, ActionReplaceResponse, Actions, FlowAction } from "./actions.js";
4
+ import { ActionAddParams, ActionAddResponse, ActionListResponse, ActionRemoveParams, ActionRemoveResponse, ActionReplaceParams, ActionReplaceResponse, Actions } from "./actions.js";
7
5
  import { APIPromise } from "../../../core/api-promise.js";
8
6
  import { RequestOptions } from "../../../internal/request-options.js";
9
7
  export declare class Flows extends APIResource {
10
8
  actions: ActionsAPI.Actions;
11
9
  /**
12
- * Create a flow
10
+ * Create a flow that binds a trigger (`triggerId`) to an ordered list of actions,
11
+ * with at least one action required. Optional settings include target `deviceIds`,
12
+ * a cooldown (`cooldownSeconds`/`cooldownScope`), and webhook notifications on
13
+ * success or failure.
13
14
  */
14
15
  create(body: FlowCreateParams, options?: RequestOptions): APIPromise<FlowCreateResponse>;
15
16
  /**
16
- * Get a flow
17
+ * Fetch a single flow by its ID, including its trigger binding, configuration, and
18
+ * current status. Returns 404 if no flow matches.
17
19
  */
18
20
  retrieve(flowID: string, options?: RequestOptions): APIPromise<FlowRetrieveResponse>;
19
21
  /**
20
- * Update a flow
22
+ * Partially update a flow's settings — name, trigger binding, enabled state,
23
+ * target devices, cooldown, or notifications; all fields are optional. Actions are
24
+ * managed through the flow-actions endpoints, not here. Returns 404 if the flow
25
+ * does not exist.
21
26
  */
22
27
  update(flowID: string, body?: FlowUpdateParams | null | undefined, options?: RequestOptions): APIPromise<FlowUpdateResponse>;
23
28
  /**
24
- * List flows
29
+ * Return a paginated list of flows. Supports filtering by `triggerId`, `enabled`,
30
+ * one or more health `status` values (healthy, failing, blocked), `mine` (flows
31
+ * created by the calling actor), `createdBy` (flows created by a given actor id —
32
+ * mutually exclusive with `mine`), plus free-text `search` and ordering.
25
33
  */
26
34
  list(query?: FlowListParams | null | undefined, options?: RequestOptions): APIPromise<FlowListResponse>;
27
35
  /**
28
- * Delete a flow
36
+ * Delete a flow by its ID. Returns 404 if no flow matches.
29
37
  */
30
38
  delete(flowID: string, options?: RequestOptions): APIPromise<FlowDeleteResponse>;
31
39
  /**
32
- * Clone a flow
40
+ * Create a copy of an existing flow, including its actions and settings. The
41
+ * optional body can override the new flow's `name` and target `deviceIds`. Returns
42
+ * 404 if the source flow does not exist.
33
43
  */
34
44
  clone(flowID: string, body?: FlowCloneParams | null | undefined, options?: RequestOptions): APIPromise<FlowCloneResponse>;
45
+ /**
46
+ * Simulate this flow firing without storing events, enqueuing jobs, or consuming
47
+ * cooldown/rate-limit slots.
48
+ *
49
+ * Works for every trigger activation type:
50
+ *
51
+ * - `event`: validates the payload against the event catalog schema and evaluates
52
+ * the trigger conditions.
53
+ * - `custom`: validates the payload against the custom payload schema (conditions
54
+ * do not apply).
55
+ * - `schedule`: ignores the payload and reports the next fire time.
56
+ *
57
+ * The response reports `wouldFire` — whether the flow would actually run right now
58
+ * — alongside the gates that decide it (enabled, device attached, blocked,
59
+ * cooldown). `rateLimited` is informational and is not folded into `wouldFire`.
60
+ */
61
+ dryRun(flowID: string, body?: FlowDryRunParams | null | undefined, options?: RequestOptions): APIPromise<FlowDryRunResponse>;
62
+ /**
63
+ * List self-healing repair episodes
64
+ */
65
+ listRepairs(flowID: string, options?: RequestOptions): APIPromise<FlowListRepairsResponse>;
35
66
  /**
36
67
  * Clear a flow's blocked status after fixing the underlying issue. Idempotent —
37
68
  * safe to call on already-healthy flows.
38
69
  */
39
70
  unblock(flowID: string, options?: RequestOptions): APIPromise<FlowUnblockResponse>;
40
71
  }
41
- export interface FlowActionOverrides {
42
- params?: {
43
- [key: string]: unknown;
44
- };
45
- }
46
- export interface FlowChildActionInput {
47
- actionId: string;
48
- position: number;
49
- continueOnError?: boolean;
50
- nameOverride?: string;
51
- overrides?: FlowActionOverrides | null;
52
- }
53
72
  export interface FlowCreateResponse {
54
- data: WorkflowsAPI.Flow;
73
+ data: FlowCreateResponse.Data;
74
+ }
75
+ export declare namespace FlowCreateResponse {
76
+ interface Data {
77
+ id: string;
78
+ blockedAt: string | null;
79
+ consecutiveFailures: number;
80
+ cooldownScope: 'flow' | 'device';
81
+ cooldownSeconds: number | null;
82
+ createdAt: string | null;
83
+ createdBy: string | null;
84
+ description: string | null;
85
+ deviceIds: Array<string>;
86
+ enabled: boolean;
87
+ healthMonitoringEnabled: boolean;
88
+ lastFailureAt: string | null;
89
+ lastFailureCode: 'device_not_found' | 'permission_denied' | 'client_error' | 'transient' | 'logic' | 'invalid_config' | null;
90
+ lastTriggeredAt: string | null;
91
+ name: string;
92
+ notifyOnFailure: boolean;
93
+ notifyOnSuccess: boolean;
94
+ notifyWebhookId: string | null;
95
+ ownerId: string;
96
+ selfHealingEnabled: boolean;
97
+ selfHealingMaxAttempts: number;
98
+ status: 'healthy' | 'failing' | 'blocked';
99
+ /**
100
+ * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
101
+ * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
102
+ * a whole-token null stays JSON null). Existing flows stay 1; new flows default
103
+ * to 2.
104
+ */
105
+ templateResolutionVersion: number;
106
+ triggerId: string;
107
+ updatedAt: string | null;
108
+ /**
109
+ * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
110
+ */
111
+ userId: string;
112
+ }
55
113
  }
56
114
  export interface FlowRetrieveResponse {
57
- data: WorkflowsAPI.Flow;
115
+ data: FlowRetrieveResponse.Data;
116
+ }
117
+ export declare namespace FlowRetrieveResponse {
118
+ interface Data {
119
+ id: string;
120
+ blockedAt: string | null;
121
+ consecutiveFailures: number;
122
+ cooldownScope: 'flow' | 'device';
123
+ cooldownSeconds: number | null;
124
+ createdAt: string | null;
125
+ createdBy: string | null;
126
+ description: string | null;
127
+ deviceIds: Array<string>;
128
+ enabled: boolean;
129
+ healthMonitoringEnabled: boolean;
130
+ lastFailureAt: string | null;
131
+ lastFailureCode: 'device_not_found' | 'permission_denied' | 'client_error' | 'transient' | 'logic' | 'invalid_config' | null;
132
+ lastTriggeredAt: string | null;
133
+ name: string;
134
+ notifyOnFailure: boolean;
135
+ notifyOnSuccess: boolean;
136
+ notifyWebhookId: string | null;
137
+ ownerId: string;
138
+ selfHealingEnabled: boolean;
139
+ selfHealingMaxAttempts: number;
140
+ status: 'healthy' | 'failing' | 'blocked';
141
+ /**
142
+ * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
143
+ * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
144
+ * a whole-token null stays JSON null). Existing flows stay 1; new flows default
145
+ * to 2.
146
+ */
147
+ templateResolutionVersion: number;
148
+ triggerId: string;
149
+ updatedAt: string | null;
150
+ /**
151
+ * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
152
+ */
153
+ userId: string;
154
+ }
58
155
  }
59
156
  export interface FlowUpdateResponse {
60
- data: WorkflowsAPI.Flow;
157
+ data: FlowUpdateResponse.Data;
158
+ }
159
+ export declare namespace FlowUpdateResponse {
160
+ interface Data {
161
+ id: string;
162
+ blockedAt: string | null;
163
+ consecutiveFailures: number;
164
+ cooldownScope: 'flow' | 'device';
165
+ cooldownSeconds: number | null;
166
+ createdAt: string | null;
167
+ createdBy: string | null;
168
+ description: string | null;
169
+ deviceIds: Array<string>;
170
+ enabled: boolean;
171
+ healthMonitoringEnabled: boolean;
172
+ lastFailureAt: string | null;
173
+ lastFailureCode: 'device_not_found' | 'permission_denied' | 'client_error' | 'transient' | 'logic' | 'invalid_config' | null;
174
+ lastTriggeredAt: string | null;
175
+ name: string;
176
+ notifyOnFailure: boolean;
177
+ notifyOnSuccess: boolean;
178
+ notifyWebhookId: string | null;
179
+ ownerId: string;
180
+ selfHealingEnabled: boolean;
181
+ selfHealingMaxAttempts: number;
182
+ status: 'healthy' | 'failing' | 'blocked';
183
+ /**
184
+ * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
185
+ * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
186
+ * a whole-token null stays JSON null). Existing flows stay 1; new flows default
187
+ * to 2.
188
+ */
189
+ templateResolutionVersion: number;
190
+ triggerId: string;
191
+ updatedAt: string | null;
192
+ /**
193
+ * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
194
+ */
195
+ userId: string;
196
+ }
61
197
  }
62
198
  export interface FlowListResponse {
63
- items: Array<WorkflowsAPI.Flow>;
199
+ items: Array<FlowListResponse.Item>;
64
200
  pagination: Shared.Pagination;
65
201
  }
202
+ export declare namespace FlowListResponse {
203
+ interface Item {
204
+ id: string;
205
+ blockedAt: string | null;
206
+ consecutiveFailures: number;
207
+ cooldownScope: 'flow' | 'device';
208
+ cooldownSeconds: number | null;
209
+ createdAt: string | null;
210
+ createdBy: string | null;
211
+ description: string | null;
212
+ deviceIds: Array<string>;
213
+ enabled: boolean;
214
+ healthMonitoringEnabled: boolean;
215
+ lastFailureAt: string | null;
216
+ lastFailureCode: 'device_not_found' | 'permission_denied' | 'client_error' | 'transient' | 'logic' | 'invalid_config' | null;
217
+ lastTriggeredAt: string | null;
218
+ name: string;
219
+ notifyOnFailure: boolean;
220
+ notifyOnSuccess: boolean;
221
+ notifyWebhookId: string | null;
222
+ ownerId: string;
223
+ selfHealingEnabled: boolean;
224
+ selfHealingMaxAttempts: number;
225
+ status: 'healthy' | 'failing' | 'blocked';
226
+ /**
227
+ * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
228
+ * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
229
+ * a whole-token null stays JSON null). Existing flows stay 1; new flows default
230
+ * to 2.
231
+ */
232
+ templateResolutionVersion: number;
233
+ triggerId: string;
234
+ updatedAt: string | null;
235
+ /**
236
+ * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
237
+ */
238
+ userId: string;
239
+ }
240
+ }
66
241
  export interface FlowDeleteResponse {
67
242
  message: string;
68
243
  }
69
244
  export interface FlowCloneResponse {
70
- data: WorkflowsAPI.Flow;
245
+ data: FlowCloneResponse.Data;
246
+ }
247
+ export declare namespace FlowCloneResponse {
248
+ interface Data {
249
+ id: string;
250
+ blockedAt: string | null;
251
+ consecutiveFailures: number;
252
+ cooldownScope: 'flow' | 'device';
253
+ cooldownSeconds: number | null;
254
+ createdAt: string | null;
255
+ createdBy: string | null;
256
+ description: string | null;
257
+ deviceIds: Array<string>;
258
+ enabled: boolean;
259
+ healthMonitoringEnabled: boolean;
260
+ lastFailureAt: string | null;
261
+ lastFailureCode: 'device_not_found' | 'permission_denied' | 'client_error' | 'transient' | 'logic' | 'invalid_config' | null;
262
+ lastTriggeredAt: string | null;
263
+ name: string;
264
+ notifyOnFailure: boolean;
265
+ notifyOnSuccess: boolean;
266
+ notifyWebhookId: string | null;
267
+ ownerId: string;
268
+ selfHealingEnabled: boolean;
269
+ selfHealingMaxAttempts: number;
270
+ status: 'healthy' | 'failing' | 'blocked';
271
+ /**
272
+ * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
273
+ * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
274
+ * a whole-token null stays JSON null). Existing flows stay 1; new flows default
275
+ * to 2.
276
+ */
277
+ templateResolutionVersion: number;
278
+ triggerId: string;
279
+ updatedAt: string | null;
280
+ /**
281
+ * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
282
+ */
283
+ userId: string;
284
+ }
285
+ }
286
+ export interface FlowDryRunResponse {
287
+ data: FlowDryRunResponse.Data;
288
+ }
289
+ export declare namespace FlowDryRunResponse {
290
+ interface Data {
291
+ actions: Array<Data.Action>;
292
+ activation: 'event' | 'schedule' | 'custom';
293
+ conditionsPassed: boolean | null;
294
+ gates: Data.Gates;
295
+ nextFireTime: string | null;
296
+ rateLimited: boolean;
297
+ validation: Data.Validation;
298
+ wouldFire: boolean;
299
+ }
300
+ namespace Data {
301
+ interface Action {
302
+ continueOnError: boolean;
303
+ method: string;
304
+ name: string;
305
+ service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
306
+ /**
307
+ * Nested child actions (loop/branch bodies), each the same shape as a
308
+ * ResolvedAction.
309
+ */
310
+ children?: Array<unknown>;
311
+ params?: {
312
+ [key: string]: unknown;
313
+ };
314
+ }
315
+ interface Gates {
316
+ blocked: boolean;
317
+ cooldownActive: boolean | null;
318
+ deviceAttached: boolean;
319
+ deviceIds: Array<string>;
320
+ enabled: boolean;
321
+ }
322
+ interface Validation {
323
+ valid: boolean;
324
+ errors?: Array<Validation.Error>;
325
+ }
326
+ namespace Validation {
327
+ interface Error {
328
+ field: string;
329
+ message: string;
330
+ }
331
+ }
332
+ }
333
+ }
334
+ export interface FlowListRepairsResponse {
335
+ data: Array<FlowListRepairsResponse.Data>;
336
+ }
337
+ export declare namespace FlowListRepairsResponse {
338
+ interface Data {
339
+ id: string;
340
+ agentRunId: string | null;
341
+ attempt: number;
342
+ candidateSlug: string;
343
+ chatSessionId: string | null;
344
+ createdAt: string | null;
345
+ deviceId: string | null;
346
+ episode: number;
347
+ error: string | null;
348
+ failedStepIndex: number;
349
+ finishedAt: string | null;
350
+ flowId: string;
351
+ maxAttempts: number;
352
+ originalSlug: string;
353
+ sourceExecutionId: string;
354
+ startedAt: string | null;
355
+ status: 'pending' | 'running' | 'canary' | 'promoting' | 'repaired' | 'failed' | 'escalated';
356
+ updatedAt: string | null;
357
+ verdict: Data.Verdict | null;
358
+ }
359
+ namespace Data {
360
+ interface Verdict {
361
+ outcome: 'ok' | 'flaky' | 'broken';
362
+ summary: string;
363
+ reason?: string;
364
+ }
365
+ }
71
366
  }
72
367
  export interface FlowUnblockResponse {
73
- data: WorkflowsAPI.Flow;
368
+ data: FlowUnblockResponse.Data;
369
+ }
370
+ export declare namespace FlowUnblockResponse {
371
+ interface Data {
372
+ id: string;
373
+ blockedAt: string | null;
374
+ consecutiveFailures: number;
375
+ cooldownScope: 'flow' | 'device';
376
+ cooldownSeconds: number | null;
377
+ createdAt: string | null;
378
+ createdBy: string | null;
379
+ description: string | null;
380
+ deviceIds: Array<string>;
381
+ enabled: boolean;
382
+ healthMonitoringEnabled: boolean;
383
+ lastFailureAt: string | null;
384
+ lastFailureCode: 'device_not_found' | 'permission_denied' | 'client_error' | 'transient' | 'logic' | 'invalid_config' | null;
385
+ lastTriggeredAt: string | null;
386
+ name: string;
387
+ notifyOnFailure: boolean;
388
+ notifyOnSuccess: boolean;
389
+ notifyWebhookId: string | null;
390
+ ownerId: string;
391
+ selfHealingEnabled: boolean;
392
+ selfHealingMaxAttempts: number;
393
+ status: 'healthy' | 'failing' | 'blocked';
394
+ /**
395
+ * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
396
+ * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
397
+ * a whole-token null stays JSON null). Existing flows stay 1; new flows default
398
+ * to 2.
399
+ */
400
+ templateResolutionVersion: number;
401
+ triggerId: string;
402
+ updatedAt: string | null;
403
+ /**
404
+ * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
405
+ */
406
+ userId: string;
407
+ }
74
408
  }
75
409
  export interface FlowCreateParams {
76
410
  actions: Array<FlowCreateParams.Action>;
@@ -81,18 +415,42 @@ export interface FlowCreateParams {
81
415
  description?: string;
82
416
  deviceIds?: Array<string>;
83
417
  enabled?: boolean;
418
+ healthMonitoringEnabled?: boolean;
84
419
  notifyOnFailure?: boolean;
85
420
  notifyOnSuccess?: boolean;
86
421
  notifyWebhookId?: string | null;
422
+ selfHealingEnabled?: boolean;
423
+ selfHealingMaxAttempts?: number;
87
424
  }
88
425
  export declare namespace FlowCreateParams {
89
426
  interface Action {
90
427
  actionId: string;
91
428
  position: number;
92
- children?: Array<FlowsAPI.FlowChildActionInput>;
429
+ children?: Array<Action.Child>;
93
430
  continueOnError?: boolean;
94
431
  nameOverride?: string;
95
- overrides?: FlowsAPI.FlowActionOverrides | null;
432
+ overrides?: Action.Overrides | null;
433
+ }
434
+ namespace Action {
435
+ interface Child {
436
+ actionId: string;
437
+ position: number;
438
+ continueOnError?: boolean;
439
+ nameOverride?: string;
440
+ overrides?: Child.Overrides | null;
441
+ }
442
+ namespace Child {
443
+ interface Overrides {
444
+ params?: {
445
+ [key: string]: unknown;
446
+ };
447
+ }
448
+ }
449
+ interface Overrides {
450
+ params?: {
451
+ [key: string]: unknown;
452
+ };
453
+ }
96
454
  }
97
455
  }
98
456
  export interface FlowUpdateParams {
@@ -101,14 +459,25 @@ export interface FlowUpdateParams {
101
459
  description?: string;
102
460
  deviceIds?: Array<string>;
103
461
  enabled?: boolean;
462
+ healthMonitoringEnabled?: boolean;
104
463
  name?: string;
105
464
  notifyOnFailure?: boolean;
106
465
  notifyOnSuccess?: boolean;
107
466
  notifyWebhookId?: string | null;
467
+ selfHealingEnabled?: boolean;
468
+ selfHealingMaxAttempts?: number;
108
469
  triggerId?: string;
109
470
  }
110
471
  export interface FlowListParams {
111
- enabled?: boolean | null;
472
+ createdBy?: string;
473
+ /**
474
+ * Only include flows with this enabled state.
475
+ */
476
+ enabled?: 'true' | 'false';
477
+ /**
478
+ * Only include flows created by you.
479
+ */
480
+ mine?: 'true' | 'false';
112
481
  orderBy?: 'name' | 'createdAt' | 'updatedAt';
113
482
  orderByDirection?: 'asc' | 'desc';
114
483
  page?: number;
@@ -121,8 +490,13 @@ export interface FlowCloneParams {
121
490
  deviceIds?: Array<string>;
122
491
  name?: string;
123
492
  }
493
+ export interface FlowDryRunParams {
494
+ payload?: {
495
+ [key: string]: unknown;
496
+ };
497
+ }
124
498
  export declare namespace Flows {
125
- export { type FlowActionOverrides as FlowActionOverrides, type FlowChildActionInput as FlowChildActionInput, type FlowCreateResponse as FlowCreateResponse, type FlowRetrieveResponse as FlowRetrieveResponse, type FlowUpdateResponse as FlowUpdateResponse, type FlowListResponse as FlowListResponse, type FlowDeleteResponse as FlowDeleteResponse, type FlowCloneResponse as FlowCloneResponse, type FlowUnblockResponse as FlowUnblockResponse, type FlowCreateParams as FlowCreateParams, type FlowUpdateParams as FlowUpdateParams, type FlowListParams as FlowListParams, type FlowCloneParams as FlowCloneParams, };
126
- export { Actions as Actions, type FlowAction as FlowAction, type ActionListResponse as ActionListResponse, type ActionAddResponse as ActionAddResponse, type ActionRemoveResponse as ActionRemoveResponse, type ActionReplaceResponse as ActionReplaceResponse, type ActionAddParams as ActionAddParams, type ActionRemoveParams as ActionRemoveParams, type ActionReplaceParams as ActionReplaceParams, };
499
+ export { type FlowCreateResponse as FlowCreateResponse, type FlowRetrieveResponse as FlowRetrieveResponse, type FlowUpdateResponse as FlowUpdateResponse, type FlowListResponse as FlowListResponse, type FlowDeleteResponse as FlowDeleteResponse, type FlowCloneResponse as FlowCloneResponse, type FlowDryRunResponse as FlowDryRunResponse, type FlowListRepairsResponse as FlowListRepairsResponse, type FlowUnblockResponse as FlowUnblockResponse, type FlowCreateParams as FlowCreateParams, type FlowUpdateParams as FlowUpdateParams, type FlowListParams as FlowListParams, type FlowCloneParams as FlowCloneParams, type FlowDryRunParams as FlowDryRunParams, };
500
+ export { Actions as Actions, type ActionListResponse as ActionListResponse, type ActionAddResponse as ActionAddResponse, type ActionRemoveResponse as ActionRemoveResponse, type ActionReplaceResponse as ActionReplaceResponse, type ActionAddParams as ActionAddParams, type ActionRemoveParams as ActionRemoveParams, type ActionReplaceParams as ActionReplaceParams, };
127
501
  }
128
502
  //# sourceMappingURL=flows.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../../../src/resources/workflows/flows/flows.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,KAAK,YAAY,wBAAqB;AAC7C,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,OAAO,EACP,UAAU,EACX,qBAAkB;AACnB,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,KAAM,SAAQ,WAAW;IACpC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAA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M,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACtC;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -13,41 +13,78 @@ class Flows extends resource_1.APIResource {
13
13
  this.actions = new ActionsAPI.Actions(this._client);
14
14
  }
15
15
  /**
16
- * Create a flow
16
+ * Create a flow that binds a trigger (`triggerId`) to an ordered list of actions,
17
+ * with at least one action required. Optional settings include target `deviceIds`,
18
+ * a cooldown (`cooldownSeconds`/`cooldownScope`), and webhook notifications on
19
+ * success or failure.
17
20
  */
18
21
  create(body, options) {
19
22
  return this._client.post('/flows', { body, ...options });
20
23
  }
21
24
  /**
22
- * Get a flow
25
+ * Fetch a single flow by its ID, including its trigger binding, configuration, and
26
+ * current status. Returns 404 if no flow matches.
23
27
  */
24
28
  retrieve(flowID, options) {
25
29
  return this._client.get((0, path_1.path) `/flows/${flowID}`, options);
26
30
  }
27
31
  /**
28
- * Update a flow
32
+ * Partially update a flow's settings — name, trigger binding, enabled state,
33
+ * target devices, cooldown, or notifications; all fields are optional. Actions are
34
+ * managed through the flow-actions endpoints, not here. Returns 404 if the flow
35
+ * does not exist.
29
36
  */
30
37
  update(flowID, body = {}, options) {
31
38
  return this._client.patch((0, path_1.path) `/flows/${flowID}`, { body, ...options });
32
39
  }
33
40
  /**
34
- * List flows
41
+ * Return a paginated list of flows. Supports filtering by `triggerId`, `enabled`,
42
+ * one or more health `status` values (healthy, failing, blocked), `mine` (flows
43
+ * created by the calling actor), `createdBy` (flows created by a given actor id —
44
+ * mutually exclusive with `mine`), plus free-text `search` and ordering.
35
45
  */
36
46
  list(query = {}, options) {
37
47
  return this._client.get('/flows', { query, ...options });
38
48
  }
39
49
  /**
40
- * Delete a flow
50
+ * Delete a flow by its ID. Returns 404 if no flow matches.
41
51
  */
42
52
  delete(flowID, options) {
43
53
  return this._client.delete((0, path_1.path) `/flows/${flowID}`, options);
44
54
  }
45
55
  /**
46
- * Clone a flow
56
+ * Create a copy of an existing flow, including its actions and settings. The
57
+ * optional body can override the new flow's `name` and target `deviceIds`. Returns
58
+ * 404 if the source flow does not exist.
47
59
  */
48
60
  clone(flowID, body = {}, options) {
49
61
  return this._client.post((0, path_1.path) `/flows/${flowID}/clone`, { body, ...options });
50
62
  }
63
+ /**
64
+ * Simulate this flow firing without storing events, enqueuing jobs, or consuming
65
+ * cooldown/rate-limit slots.
66
+ *
67
+ * Works for every trigger activation type:
68
+ *
69
+ * - `event`: validates the payload against the event catalog schema and evaluates
70
+ * the trigger conditions.
71
+ * - `custom`: validates the payload against the custom payload schema (conditions
72
+ * do not apply).
73
+ * - `schedule`: ignores the payload and reports the next fire time.
74
+ *
75
+ * The response reports `wouldFire` — whether the flow would actually run right now
76
+ * — alongside the gates that decide it (enabled, device attached, blocked,
77
+ * cooldown). `rateLimited` is informational and is not folded into `wouldFire`.
78
+ */
79
+ dryRun(flowID, body = {}, options) {
80
+ return this._client.post((0, path_1.path) `/flows/${flowID}/dry-run`, { body, ...options });
81
+ }
82
+ /**
83
+ * List self-healing repair episodes
84
+ */
85
+ listRepairs(flowID, options) {
86
+ return this._client.get((0, path_1.path) `/flows/${flowID}/repairs`, options);
87
+ }
51
88
  /**
52
89
  * Clear a flow's blocked status after fixing the underlying issue. Idempotent —
53
90
  * safe to call on already-healthy flows.
@@ -1 +1 @@
1
- {"version":3,"file":"flows.js","sourceRoot":"","sources":["../../../src/resources/workflows/flows/flows.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAIrD,iEAAwC;AACxC,0CAUmB;AAGnB,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA8DrE,CAAC;IA5DC;;OAEG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,MAAM,CAC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