@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
@@ -0,0 +1,334 @@
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import * as Shared from "../../shared.js";
3
+ import * as ScreenshotsAPI from "./screenshots.js";
4
+ import { ScreenshotRetrieveParams, Screenshots } from "./screenshots.js";
5
+ import { APIPromise } from "../../../core/api-promise.js";
6
+ import { RequestOptions } from "../../../internal/request-options.js";
7
+ export declare class Executions extends APIResource {
8
+ screenshots: ScreenshotsAPI.Screenshots;
9
+ /**
10
+ * Fetch a single flow execution by its ID, including its status, kind, result or
11
+ * error, and start/finish timestamps. Returns 404 if no execution matches.
12
+ */
13
+ retrieve(executionID: string, options?: RequestOptions): APIPromise<ExecutionRetrieveResponse>;
14
+ /**
15
+ * Return a paginated history of flow executions. Supports filtering by `flowId`,
16
+ * `triggerId`, `invocationId` (the client/verify key), `status`, and a `from`/`to`
17
+ * time range, plus free-text `search` and ordering by startedAt, finishedAt, or
18
+ * status.
19
+ */
20
+ list(query?: ExecutionListParams | null | undefined, options?: RequestOptions): APIPromise<ExecutionListResponse>;
21
+ /**
22
+ * Signals the worker to stop the execution between steps and marks it cancelled.
23
+ * Idempotent-ish: already-terminal executions return 409.
24
+ */
25
+ abort(executionID: string, options?: RequestOptions): APIPromise<ExecutionAbortResponse>;
26
+ /**
27
+ * Return aggregate execution metrics — total count, counts by status, average
28
+ * duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
29
+ * and a `from`/`to` time range.
30
+ */
31
+ getMetrics(query?: ExecutionGetMetricsParams | null | undefined, options?: RequestOptions): APIPromise<ExecutionGetMetricsResponse>;
32
+ }
33
+ export interface ExecutionRetrieveResponse {
34
+ data: ExecutionRetrieveResponse.Data;
35
+ }
36
+ export declare namespace ExecutionRetrieveResponse {
37
+ interface Data {
38
+ id: string;
39
+ createdBy: string | null;
40
+ /**
41
+ * OneDrive/Google Drive delivery lifecycle for this run's recording, file, and
42
+ * screenshot uploads, ordered by startedAt. Empty when the flow has no delivery
43
+ * configured.
44
+ */
45
+ deliveries: Array<Data.Delivery>;
46
+ /**
47
+ * Device this execution targets (the job's deviceId). Null for device-less
48
+ * (event-only) runs.
49
+ */
50
+ deviceId: string | null;
51
+ error: string | null;
52
+ eventId: string | null;
53
+ /**
54
+ * Files produced by files.upload steps, plus files an agent.run step reported on
55
+ * its terminal response (agent-created output or a workflow upload minted during
56
+ * the turn); derived server-side at read time.
57
+ */
58
+ files: Array<Data.File>;
59
+ finishedAt: string | null;
60
+ flowId: string;
61
+ flowName: string | null;
62
+ /**
63
+ * Client/verify invocation key this row belongs to. Set on live custom fires (one
64
+ * row per device fan-out) and on verification runs; null for event/schedule live
65
+ * rows.
66
+ */
67
+ invocationId: string | null;
68
+ kind: 'live' | 'dry_run' | 'verification';
69
+ /**
70
+ * Live progress read from step_progress; null for runs started before this
71
+ * feature.
72
+ */
73
+ progress: Data.Progress | null;
74
+ recordingDeviceId: string | null;
75
+ /**
76
+ * Device-recording id (devices-api) for this execution, set once the worker starts
77
+ * a recording. Null when the flow has recording disabled, no device is bound, or
78
+ * the recording failed to start.
79
+ */
80
+ recordingId: string | null;
81
+ /**
82
+ * Durable recording segments ordered by step/loop coordinate and retry attempt.
83
+ * Whole-flow recordings use -1 for every coordinate.
84
+ */
85
+ recordings: Array<Data.Recording>;
86
+ /**
87
+ * Screenshots captured by tasks.run/agent.run steps, ordered by seq. Image bytes
88
+ * are never returned here — fetch a fresh signed URL via GET
89
+ * /executions/{id}/screenshots/{screenshotId}.
90
+ */
91
+ screenshots: Array<Data.Screenshot>;
92
+ startedAt: string | null;
93
+ status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
94
+ triggerId: string;
95
+ triggerName: string | null;
96
+ /**
97
+ * Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
98
+ * `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
99
+ * step that opted into a verdict — null otherwise. Table-backed steps (current
100
+ * executions) also carry a `status` string (e.g. success/failed/stopped, see
101
+ * deriveStepStatus); it is optional and absent on legacy blob-only executions, so
102
+ * clients must not assume its presence.
103
+ */
104
+ result?: unknown;
105
+ }
106
+ namespace Data {
107
+ interface Delivery {
108
+ artifact: 'recording' | 'file' | 'screenshot';
109
+ destination: 'one_drive' | 'google_drive';
110
+ errorCode: string | null;
111
+ filename: string;
112
+ finishedAt: string | null;
113
+ folder: string | null;
114
+ startedAt: string | null;
115
+ status: 'waiting' | 'uploading' | 'succeeded' | 'failed' | 'unknown' | 'cancelled';
116
+ stepIndex: number | null;
117
+ webUrl: string | null;
118
+ }
119
+ interface File {
120
+ fileId: string;
121
+ filename: string;
122
+ mimeType: string;
123
+ sizeBytes: number;
124
+ }
125
+ /**
126
+ * Live progress read from step_progress; null for runs started before this
127
+ * feature.
128
+ */
129
+ interface Progress {
130
+ currentIndex: number | null;
131
+ steps: Array<Progress.Step>;
132
+ total: number;
133
+ }
134
+ namespace Progress {
135
+ interface Step {
136
+ finishedAt: string | null;
137
+ index: number;
138
+ method: string;
139
+ name: string;
140
+ service: string;
141
+ sessionId: string | null;
142
+ startedAt: string | null;
143
+ status: 'pending' | 'running' | 'success' | 'failed' | 'skipped' | 'cancelled';
144
+ }
145
+ }
146
+ interface Recording {
147
+ id: string;
148
+ attempt: number;
149
+ childIndex: number;
150
+ flowActionId: string | null;
151
+ iterationIndex: number;
152
+ lastError: string | null;
153
+ parentIndex: number;
154
+ recordingDeviceId: string | null;
155
+ recordingId: string | null;
156
+ scope: 'flow' | 'step';
157
+ startedAt: string | null;
158
+ status: 'starting' | 'recording' | 'stopping' | 'stopped' | 'failed';
159
+ stepIndex: number;
160
+ stoppedAt: string | null;
161
+ }
162
+ interface Screenshot {
163
+ id: string;
164
+ capturedAt: string | null;
165
+ iterationIndex: number;
166
+ mimeType: string;
167
+ seq: number;
168
+ source: 'task' | 'agent';
169
+ stepIndex: number;
170
+ stepName: string;
171
+ }
172
+ }
173
+ }
174
+ export interface ExecutionListResponse {
175
+ items: Array<ExecutionListResponse.Item>;
176
+ pagination: Shared.Pagination;
177
+ }
178
+ export declare namespace ExecutionListResponse {
179
+ interface Item {
180
+ id: string;
181
+ createdBy: string | null;
182
+ /**
183
+ * Device this execution targets (the job's deviceId). Null for device-less
184
+ * (event-only) runs.
185
+ */
186
+ deviceId: string | null;
187
+ error: string | null;
188
+ eventId: string | null;
189
+ finishedAt: string | null;
190
+ flowId: string;
191
+ flowName: string | null;
192
+ /**
193
+ * Client/verify invocation key this row belongs to. Set on live custom fires (one
194
+ * row per device fan-out) and on verification runs; null for event/schedule live
195
+ * rows.
196
+ */
197
+ invocationId: string | null;
198
+ kind: 'live' | 'dry_run' | 'verification';
199
+ recordingDeviceId: string | null;
200
+ /**
201
+ * Device-recording id (devices-api) for this execution, set once the worker starts
202
+ * a recording. Null when the flow has recording disabled, no device is bound, or
203
+ * the recording failed to start.
204
+ */
205
+ recordingId: string | null;
206
+ /**
207
+ * Durable recording segments ordered by step/loop coordinate and retry attempt.
208
+ * Whole-flow recordings use -1 for every coordinate.
209
+ */
210
+ recordings: Array<Item.Recording>;
211
+ startedAt: string | null;
212
+ status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
213
+ triggerId: string;
214
+ triggerName: string | null;
215
+ /**
216
+ * Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
217
+ * `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
218
+ * step that opted into a verdict — null otherwise. Table-backed steps (current
219
+ * executions) also carry a `status` string (e.g. success/failed/stopped, see
220
+ * deriveStepStatus); it is optional and absent on legacy blob-only executions, so
221
+ * clients must not assume its presence.
222
+ */
223
+ result?: unknown;
224
+ }
225
+ namespace Item {
226
+ interface Recording {
227
+ id: string;
228
+ attempt: number;
229
+ childIndex: number;
230
+ flowActionId: string | null;
231
+ iterationIndex: number;
232
+ lastError: string | null;
233
+ parentIndex: number;
234
+ recordingDeviceId: string | null;
235
+ recordingId: string | null;
236
+ scope: 'flow' | 'step';
237
+ startedAt: string | null;
238
+ status: 'starting' | 'recording' | 'stopping' | 'stopped' | 'failed';
239
+ stepIndex: number;
240
+ stoppedAt: string | null;
241
+ }
242
+ }
243
+ }
244
+ export interface ExecutionAbortResponse {
245
+ data: ExecutionAbortResponse.Data;
246
+ }
247
+ export declare namespace ExecutionAbortResponse {
248
+ interface Data {
249
+ id: string;
250
+ /**
251
+ * Device this execution targets (the job's deviceId). Null for device-less
252
+ * (event-only) runs.
253
+ */
254
+ deviceId: string | null;
255
+ error: string | null;
256
+ eventId: string | null;
257
+ finishedAt: string | null;
258
+ flowId: string;
259
+ flowName: string | null;
260
+ /**
261
+ * Client/verify invocation key this row belongs to. Set on live custom fires (one
262
+ * row per device fan-out) and on verification runs; null for event/schedule live
263
+ * rows.
264
+ */
265
+ invocationId: string | null;
266
+ kind: 'live' | 'dry_run' | 'verification';
267
+ recordingDeviceId: string | null;
268
+ /**
269
+ * Device-recording id (devices-api) for this execution, set once the worker starts
270
+ * a recording. Null when the flow has recording disabled, no device is bound, or
271
+ * the recording failed to start.
272
+ */
273
+ recordingId: string | null;
274
+ startedAt: string | null;
275
+ status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
276
+ triggerId: string;
277
+ triggerName: string | null;
278
+ /**
279
+ * Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
280
+ * `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
281
+ * step that opted into a verdict — null otherwise. Table-backed steps (current
282
+ * executions) also carry a `status` string (e.g. success/failed/stopped, see
283
+ * deriveStepStatus); it is optional and absent on legacy blob-only executions, so
284
+ * clients must not assume its presence.
285
+ */
286
+ result?: unknown;
287
+ }
288
+ }
289
+ export interface ExecutionGetMetricsResponse {
290
+ data: ExecutionGetMetricsResponse.Data;
291
+ }
292
+ export declare namespace ExecutionGetMetricsResponse {
293
+ interface Data {
294
+ avgDurationMs: number | null;
295
+ byStatus: Data.ByStatus;
296
+ lastExecutionAt: string | null;
297
+ total: number;
298
+ }
299
+ namespace Data {
300
+ interface ByStatus {
301
+ cancelled: number;
302
+ failed: number;
303
+ invalid: number;
304
+ pending: number;
305
+ running: number;
306
+ skipped: number;
307
+ success: number;
308
+ }
309
+ }
310
+ }
311
+ export interface ExecutionListParams {
312
+ flowId?: string;
313
+ from?: string | null;
314
+ invocationId?: string;
315
+ orderBy?: 'startedAt' | 'finishedAt' | 'status';
316
+ orderByDirection?: 'asc' | 'desc';
317
+ page?: number;
318
+ pageSize?: number;
319
+ search?: string;
320
+ status?: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid';
321
+ to?: string | null;
322
+ triggerId?: string;
323
+ }
324
+ export interface ExecutionGetMetricsParams {
325
+ flowId?: string;
326
+ from?: string | null;
327
+ to?: string | null;
328
+ triggerId?: string;
329
+ }
330
+ export declare namespace Executions {
331
+ export { type ExecutionRetrieveResponse as ExecutionRetrieveResponse, type ExecutionListResponse as ExecutionListResponse, type ExecutionAbortResponse as ExecutionAbortResponse, type ExecutionGetMetricsResponse as ExecutionGetMetricsResponse, type ExecutionListParams as ExecutionListParams, type ExecutionGetMetricsParams as ExecutionGetMetricsParams, };
332
+ export { Screenshots as Screenshots, type ScreenshotRetrieveParams as ScreenshotRetrieveParams };
333
+ }
334
+ //# sourceMappingURL=executions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../../src/resources/workfl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AAC;IAEF,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,KAAK,wBAAwB,IAAI,wBAAwB,EAAE,CAAC;CAClG"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Executions = void 0;
5
+ const tslib_1 = require("../../../internal/tslib.js");
6
+ const resource_1 = require("../../../core/resource.js");
7
+ const ScreenshotsAPI = tslib_1.__importStar(require("./screenshots.js"));
8
+ const screenshots_1 = require("./screenshots.js");
9
+ const path_1 = require("../../../internal/utils/path.js");
10
+ class Executions extends resource_1.APIResource {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.screenshots = new ScreenshotsAPI.Screenshots(this._client);
14
+ }
15
+ /**
16
+ * Fetch a single flow execution by its ID, including its status, kind, result or
17
+ * error, and start/finish timestamps. Returns 404 if no execution matches.
18
+ */
19
+ retrieve(executionID, options) {
20
+ return this._client.get((0, path_1.path) `/executions/${executionID}`, options);
21
+ }
22
+ /**
23
+ * Return a paginated history of flow executions. Supports filtering by `flowId`,
24
+ * `triggerId`, `invocationId` (the client/verify key), `status`, and a `from`/`to`
25
+ * time range, plus free-text `search` and ordering by startedAt, finishedAt, or
26
+ * status.
27
+ */
28
+ list(query = {}, options) {
29
+ return this._client.get('/executions', { query, ...options });
30
+ }
31
+ /**
32
+ * Signals the worker to stop the execution between steps and marks it cancelled.
33
+ * Idempotent-ish: already-terminal executions return 409.
34
+ */
35
+ abort(executionID, options) {
36
+ return this._client.post((0, path_1.path) `/executions/${executionID}/abort`, options);
37
+ }
38
+ /**
39
+ * Return aggregate execution metrics — total count, counts by status, average
40
+ * duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
41
+ * and a `from`/`to` time range.
42
+ */
43
+ getMetrics(query = {}, options) {
44
+ return this._client.get('/executions/metrics', { query, ...options });
45
+ }
46
+ }
47
+ exports.Executions = Executions;
48
+ Executions.Screenshots = screenshots_1.Screenshots;
49
+ //# sourceMappingURL=executions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executions.js","sourceRoot":"","sources":["../../../src/resources/workflows/executions/executions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,yEAAgD;AAChD,kDAAsE;AAGtE,0DAAoD;AAEpD,MAAa,UAAW,SAAQ,sBAAW;IAA3C;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA0CzF,CAAC;IAxCC;;;OAGG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,WAAmB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,eAAe,WAAW,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;OAIG;IACH,UAAU,CACR,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AA3CD,gCA2CC;AA+bD,UAAU,CAAC,WAAW,GAAG,yBAAW,CAAC"}
@@ -0,0 +1,44 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import * as ScreenshotsAPI from "./screenshots.mjs";
4
+ import { Screenshots } from "./screenshots.mjs";
5
+ import { path } from "../../../internal/utils/path.mjs";
6
+ export class Executions extends APIResource {
7
+ constructor() {
8
+ super(...arguments);
9
+ this.screenshots = new ScreenshotsAPI.Screenshots(this._client);
10
+ }
11
+ /**
12
+ * Fetch a single flow execution by its ID, including its status, kind, result or
13
+ * error, and start/finish timestamps. Returns 404 if no execution matches.
14
+ */
15
+ retrieve(executionID, options) {
16
+ return this._client.get(path `/executions/${executionID}`, options);
17
+ }
18
+ /**
19
+ * Return a paginated history of flow executions. Supports filtering by `flowId`,
20
+ * `triggerId`, `invocationId` (the client/verify key), `status`, and a `from`/`to`
21
+ * time range, plus free-text `search` and ordering by startedAt, finishedAt, or
22
+ * status.
23
+ */
24
+ list(query = {}, options) {
25
+ return this._client.get('/executions', { query, ...options });
26
+ }
27
+ /**
28
+ * Signals the worker to stop the execution between steps and marks it cancelled.
29
+ * Idempotent-ish: already-terminal executions return 409.
30
+ */
31
+ abort(executionID, options) {
32
+ return this._client.post(path `/executions/${executionID}/abort`, options);
33
+ }
34
+ /**
35
+ * Return aggregate execution metrics — total count, counts by status, average
36
+ * duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
37
+ * and a `from`/`to` time range.
38
+ */
39
+ getMetrics(query = {}, options) {
40
+ return this._client.get('/executions/metrics', { query, ...options });
41
+ }
42
+ }
43
+ Executions.Screenshots = Screenshots;
44
+ //# sourceMappingURL=executions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executions.mjs","sourceRoot":"","sources":["../../../src/resources/workflows/executions/executions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EAA4B,WAAW,EAAE,0BAAsB;AAGtE,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,UAAW,SAAQ,WAAW;IAA3C;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA0CzF,CAAC;IAxCC;;;OAGG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,WAAmB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAe,WAAW,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;OAIG;IACH,UAAU,CACR,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AA+bD,UAAU,CAAC,WAAW,GAAG,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Executions, type ExecutionRetrieveResponse, type ExecutionListResponse, type ExecutionAbortResponse, type ExecutionGetMetricsResponse, type ExecutionListParams, type ExecutionGetMetricsParams, } from "./executions.mjs";
2
+ export { Screenshots, type ScreenshotRetrieveParams } from "./screenshots.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/workflows/executions/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,GAC/B,yBAAqB;AACtB,OAAO,EAAE,WAAW,EAAE,KAAK,wBAAwB,EAAE,0BAAsB"}
@@ -0,0 +1,3 @@
1
+ export { Executions, type ExecutionRetrieveResponse, type ExecutionListResponse, type ExecutionAbortResponse, type ExecutionGetMetricsResponse, type ExecutionListParams, type ExecutionGetMetricsParams, } from "./executions.js";
2
+ export { Screenshots, type ScreenshotRetrieveParams } from "./screenshots.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/workflows/executions/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,GAC/B,wBAAqB;AACtB,OAAO,EAAE,WAAW,EAAE,KAAK,wBAAwB,EAAE,yBAAsB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Screenshots = exports.Executions = void 0;
5
+ var executions_1 = require("./executions.js");
6
+ Object.defineProperty(exports, "Executions", { enumerable: true, get: function () { return executions_1.Executions; } });
7
+ var screenshots_1 = require("./screenshots.js");
8
+ Object.defineProperty(exports, "Screenshots", { enumerable: true, get: function () { return screenshots_1.Screenshots; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/workflows/executions/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAQsB;AAPpB,wGAAA,UAAU,OAAA;AAQZ,gDAA2E;AAAlE,0GAAA,WAAW,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Executions, } from "./executions.mjs";
3
+ export { Screenshots } from "./screenshots.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/workflows/executions/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,UAAU,GAOX,yBAAqB;AACtB,OAAO,EAAE,WAAW,EAAiC,0BAAsB"}
@@ -0,0 +1,18 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import { APIPromise } from "../../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../../internal/request-options.mjs";
4
+ export declare class Screenshots extends APIResource {
5
+ /**
6
+ * Redirects (302) to a freshly signed, time-limited image URL for a screenshot
7
+ * captured during this execution. Owner-gated: 404 if the execution or the
8
+ * screenshot does not belong to the caller.
9
+ */
10
+ retrieve(screenshotID: string, params: ScreenshotRetrieveParams, options?: RequestOptions): APIPromise<void>;
11
+ }
12
+ export interface ScreenshotRetrieveParams {
13
+ executionId: string;
14
+ }
15
+ export declare namespace Screenshots {
16
+ export { type ScreenshotRetrieveParams as ScreenshotRetrieveParams };
17
+ }
18
+ //# sourceMappingURL=screenshots.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screenshots.d.mts","sourceRoot":"","sources":["../../../src/resources/workflows/executions/screenshots.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;OAIG;IACH,QAAQ,CACN,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EAAE,KAAK,wBAAwB,IAAI,wBAAwB,EAAE,CAAC;CACtE"}
@@ -0,0 +1,18 @@
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import { APIPromise } from "../../../core/api-promise.js";
3
+ import { RequestOptions } from "../../../internal/request-options.js";
4
+ export declare class Screenshots extends APIResource {
5
+ /**
6
+ * Redirects (302) to a freshly signed, time-limited image URL for a screenshot
7
+ * captured during this execution. Owner-gated: 404 if the execution or the
8
+ * screenshot does not belong to the caller.
9
+ */
10
+ retrieve(screenshotID: string, params: ScreenshotRetrieveParams, options?: RequestOptions): APIPromise<void>;
11
+ }
12
+ export interface ScreenshotRetrieveParams {
13
+ executionId: string;
14
+ }
15
+ export declare namespace Screenshots {
16
+ export { type ScreenshotRetrieveParams as ScreenshotRetrieveParams };
17
+ }
18
+ //# sourceMappingURL=screenshots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screenshots.d.ts","sourceRoot":"","sources":["../../../src/resources/workflows/executions/screenshots.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;OAIG;IACH,QAAQ,CACN,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EAAE,KAAK,wBAAwB,IAAI,wBAAwB,EAAE,CAAC;CACtE"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Screenshots = void 0;
5
+ const resource_1 = require("../../../core/resource.js");
6
+ const headers_1 = require("../../../internal/headers.js");
7
+ const path_1 = require("../../../internal/utils/path.js");
8
+ class Screenshots extends resource_1.APIResource {
9
+ /**
10
+ * Redirects (302) to a freshly signed, time-limited image URL for a screenshot
11
+ * captured during this execution. Owner-gated: 404 if the execution or the
12
+ * screenshot does not belong to the caller.
13
+ */
14
+ retrieve(screenshotID, params, options) {
15
+ const { executionId } = params;
16
+ return this._client.get((0, path_1.path) `/executions/${executionId}/screenshots/${screenshotID}`, {
17
+ ...options,
18
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
19
+ });
20
+ }
21
+ }
22
+ exports.Screenshots = Screenshots;
23
+ //# sourceMappingURL=screenshots.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screenshots.js","sourceRoot":"","sources":["../../../src/resources/workflows/executions/screenshots.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;OAIG;IACH,QAAQ,CACN,YAAoB,EACpB,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,WAAW,gBAAgB,YAAY,EAAE,EAAE;YACpF,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAjBD,kCAiBC"}
@@ -0,0 +1,19 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import { buildHeaders } from "../../../internal/headers.mjs";
4
+ import { path } from "../../../internal/utils/path.mjs";
5
+ export class Screenshots extends APIResource {
6
+ /**
7
+ * Redirects (302) to a freshly signed, time-limited image URL for a screenshot
8
+ * captured during this execution. Owner-gated: 404 if the execution or the
9
+ * screenshot does not belong to the caller.
10
+ */
11
+ retrieve(screenshotID, params, options) {
12
+ const { executionId } = params;
13
+ return this._client.get(path `/executions/${executionId}/screenshots/${screenshotID}`, {
14
+ ...options,
15
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
16
+ });
17
+ }
18
+ }
19
+ //# sourceMappingURL=screenshots.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screenshots.mjs","sourceRoot":"","sources":["../../../src/resources/workflows/executions/screenshots.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;OAIG;IACH,QAAQ,CACN,YAAoB,EACpB,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,WAAW,gBAAgB,YAAY,EAAE,EAAE;YACpF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}