@mobilerun/sdk 5.5.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 (349) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/client.d.mts +8 -8
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +8 -8
  5. package/client.d.ts.map +1 -1
  6. package/client.js +1 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +2 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/apps.d.mts +18 -15
  12. package/resources/apps.d.mts.map +1 -1
  13. package/resources/apps.d.ts +18 -15
  14. package/resources/apps.d.ts.map +1 -1
  15. package/resources/apps.js +5 -2
  16. package/resources/apps.js.map +1 -1
  17. package/resources/apps.mjs +5 -2
  18. package/resources/apps.mjs.map +1 -1
  19. package/resources/assistant/conversations.d.mts +7 -17
  20. package/resources/assistant/conversations.d.mts.map +1 -1
  21. package/resources/assistant/conversations.d.ts +7 -17
  22. package/resources/assistant/conversations.d.ts.map +1 -1
  23. package/resources/assistant/conversations.js +4 -11
  24. package/resources/assistant/conversations.js.map +1 -1
  25. package/resources/assistant/conversations.mjs +4 -11
  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 +94 -11
  40. package/resources/connect/proxies.d.mts.map +1 -1
  41. package/resources/connect/proxies.d.ts +94 -11
  42. package/resources/connect/proxies.d.ts.map +1 -1
  43. package/resources/connect/proxies.js +21 -10
  44. package/resources/connect/proxies.js.map +1 -1
  45. package/resources/connect/proxies.mjs +21 -10
  46. package/resources/connect/proxies.mjs.map +1 -1
  47. package/resources/devices/browser.d.mts +9 -3
  48. package/resources/devices/browser.d.mts.map +1 -1
  49. package/resources/devices/browser.d.ts +9 -3
  50. package/resources/devices/browser.d.ts.map +1 -1
  51. package/resources/devices/browser.js +9 -3
  52. package/resources/devices/browser.js.map +1 -1
  53. package/resources/devices/browser.mjs +9 -3
  54. package/resources/devices/browser.mjs.map +1 -1
  55. package/resources/devices/devices.d.mts +52 -23
  56. package/resources/devices/devices.d.mts.map +1 -1
  57. package/resources/devices/devices.d.ts +52 -23
  58. package/resources/devices/devices.d.ts.map +1 -1
  59. package/resources/devices/devices.js +17 -7
  60. package/resources/devices/devices.js.map +1 -1
  61. package/resources/devices/devices.mjs +17 -7
  62. package/resources/devices/devices.mjs.map +1 -1
  63. package/resources/devices/index.d.mts +1 -1
  64. package/resources/devices/index.d.mts.map +1 -1
  65. package/resources/devices/index.d.ts +1 -1
  66. package/resources/devices/index.d.ts.map +1 -1
  67. package/resources/devices/index.js.map +1 -1
  68. package/resources/devices/index.mjs.map +1 -1
  69. package/resources/devices/recordings.d.mts +4 -2
  70. package/resources/devices/recordings.d.mts.map +1 -1
  71. package/resources/devices/recordings.d.ts +4 -2
  72. package/resources/devices/recordings.d.ts.map +1 -1
  73. package/resources/devices/traffic-sessions.d.mts +1 -11
  74. package/resources/devices/traffic-sessions.d.mts.map +1 -1
  75. package/resources/devices/traffic-sessions.d.ts +1 -11
  76. package/resources/devices/traffic-sessions.d.ts.map +1 -1
  77. package/resources/devices/traffic-sessions.js +2 -8
  78. package/resources/devices/traffic-sessions.js.map +1 -1
  79. package/resources/devices/traffic-sessions.mjs +2 -8
  80. package/resources/devices/traffic-sessions.mjs.map +1 -1
  81. package/resources/files.d.mts +5 -19
  82. package/resources/files.d.mts.map +1 -1
  83. package/resources/files.d.ts +5 -19
  84. package/resources/files.d.ts.map +1 -1
  85. package/resources/files.js +2 -10
  86. package/resources/files.js.map +1 -1
  87. package/resources/files.mjs +2 -10
  88. package/resources/files.mjs.map +1 -1
  89. package/resources/index.d.mts +4 -4
  90. package/resources/index.d.mts.map +1 -1
  91. package/resources/index.d.ts +4 -4
  92. package/resources/index.d.ts.map +1 -1
  93. package/resources/index.js.map +1 -1
  94. package/resources/index.mjs +1 -1
  95. package/resources/index.mjs.map +1 -1
  96. package/resources/mailboxes/connections.d.mts +64 -0
  97. package/resources/mailboxes/connections.d.mts.map +1 -0
  98. package/resources/mailboxes/connections.d.ts +64 -0
  99. package/resources/mailboxes/connections.d.ts.map +1 -0
  100. package/resources/mailboxes/connections.js +42 -0
  101. package/resources/mailboxes/connections.js.map +1 -0
  102. package/resources/mailboxes/connections.mjs +38 -0
  103. package/resources/mailboxes/connections.mjs.map +1 -0
  104. package/resources/mailboxes/index.d.mts +2 -1
  105. package/resources/mailboxes/index.d.mts.map +1 -1
  106. package/resources/mailboxes/index.d.ts +2 -1
  107. package/resources/mailboxes/index.d.ts.map +1 -1
  108. package/resources/mailboxes/index.js +3 -1
  109. package/resources/mailboxes/index.js.map +1 -1
  110. package/resources/mailboxes/index.mjs +1 -0
  111. package/resources/mailboxes/index.mjs.map +1 -1
  112. package/resources/mailboxes/mailboxes.d.mts +73 -24
  113. package/resources/mailboxes/mailboxes.d.mts.map +1 -1
  114. package/resources/mailboxes/mailboxes.d.ts +73 -24
  115. package/resources/mailboxes/mailboxes.d.ts.map +1 -1
  116. package/resources/mailboxes/mailboxes.js +25 -8
  117. package/resources/mailboxes/mailboxes.js.map +1 -1
  118. package/resources/mailboxes/mailboxes.mjs +25 -8
  119. package/resources/mailboxes/mailboxes.mjs.map +1 -1
  120. package/resources/messages/index.d.mts +1 -1
  121. package/resources/messages/index.d.mts.map +1 -1
  122. package/resources/messages/index.d.ts +1 -1
  123. package/resources/messages/index.d.ts.map +1 -1
  124. package/resources/messages/index.js.map +1 -1
  125. package/resources/messages/index.mjs +1 -1
  126. package/resources/messages/index.mjs.map +1 -1
  127. package/resources/messages/messages.d.mts +26 -1
  128. package/resources/messages/messages.d.mts.map +1 -1
  129. package/resources/messages/messages.d.ts +26 -1
  130. package/resources/messages/messages.d.ts.map +1 -1
  131. package/resources/messages/messages.js +9 -0
  132. package/resources/messages/messages.js.map +1 -1
  133. package/resources/messages/messages.mjs +9 -0
  134. package/resources/messages/messages.mjs.map +1 -1
  135. package/resources/notifications.d.mts +27 -1
  136. package/resources/notifications.d.mts.map +1 -1
  137. package/resources/notifications.d.ts +27 -1
  138. package/resources/notifications.d.ts.map +1 -1
  139. package/resources/notifications.js +17 -0
  140. package/resources/notifications.js.map +1 -1
  141. package/resources/notifications.mjs +17 -0
  142. package/resources/notifications.mjs.map +1 -1
  143. package/resources/numbers/index.d.mts +1 -1
  144. package/resources/numbers/index.d.mts.map +1 -1
  145. package/resources/numbers/index.d.ts +1 -1
  146. package/resources/numbers/index.d.ts.map +1 -1
  147. package/resources/numbers/index.js.map +1 -1
  148. package/resources/numbers/index.mjs +1 -1
  149. package/resources/numbers/index.mjs.map +1 -1
  150. package/resources/numbers/messages.d.mts +60 -1
  151. package/resources/numbers/messages.d.mts.map +1 -1
  152. package/resources/numbers/messages.d.ts +60 -1
  153. package/resources/numbers/messages.d.ts.map +1 -1
  154. package/resources/numbers/messages.js +21 -0
  155. package/resources/numbers/messages.js.map +1 -1
  156. package/resources/numbers/messages.mjs +21 -0
  157. package/resources/numbers/messages.mjs.map +1 -1
  158. package/resources/numbers/numbers.d.mts +123 -15
  159. package/resources/numbers/numbers.d.mts.map +1 -1
  160. package/resources/numbers/numbers.d.ts +123 -15
  161. package/resources/numbers/numbers.d.ts.map +1 -1
  162. package/resources/numbers/numbers.js +2 -11
  163. package/resources/numbers/numbers.js.map +1 -1
  164. package/resources/numbers/numbers.mjs +3 -12
  165. package/resources/numbers/numbers.mjs.map +1 -1
  166. package/resources/store/apps.d.mts +23 -2
  167. package/resources/store/apps.d.mts.map +1 -1
  168. package/resources/store/apps.d.ts +23 -2
  169. package/resources/store/apps.d.ts.map +1 -1
  170. package/resources/tasks/tasks.d.mts +16 -55
  171. package/resources/tasks/tasks.d.mts.map +1 -1
  172. package/resources/tasks/tasks.d.ts +16 -55
  173. package/resources/tasks/tasks.d.ts.map +1 -1
  174. package/resources/tasks/tasks.js +2 -10
  175. package/resources/tasks/tasks.js.map +1 -1
  176. package/resources/tasks/tasks.mjs +2 -10
  177. package/resources/tasks/tasks.mjs.map +1 -1
  178. package/resources/webhooks/deliveries.d.mts +22 -31
  179. package/resources/webhooks/deliveries.d.mts.map +1 -1
  180. package/resources/webhooks/deliveries.d.ts +22 -31
  181. package/resources/webhooks/deliveries.d.ts.map +1 -1
  182. package/resources/webhooks/deliveries.js +4 -30
  183. package/resources/webhooks/deliveries.js.map +1 -1
  184. package/resources/webhooks/deliveries.mjs +4 -30
  185. package/resources/webhooks/deliveries.mjs.map +1 -1
  186. package/resources/webhooks/index.d.mts +1 -0
  187. package/resources/webhooks/index.d.mts.map +1 -1
  188. package/resources/webhooks/index.d.ts +1 -0
  189. package/resources/webhooks/index.d.ts.map +1 -1
  190. package/resources/webhooks/index.js +3 -1
  191. package/resources/webhooks/index.js.map +1 -1
  192. package/resources/webhooks/index.mjs +1 -0
  193. package/resources/webhooks/index.mjs.map +1 -1
  194. package/resources/webhooks/integrations.d.mts +77 -0
  195. package/resources/webhooks/integrations.d.mts.map +1 -0
  196. package/resources/webhooks/integrations.d.ts +77 -0
  197. package/resources/webhooks/integrations.d.ts.map +1 -0
  198. package/resources/webhooks/integrations.js +26 -0
  199. package/resources/webhooks/integrations.js.map +1 -0
  200. package/resources/webhooks/integrations.mjs +22 -0
  201. package/resources/webhooks/integrations.mjs.map +1 -0
  202. package/resources/webhooks/webhooks.d.mts +279 -71
  203. package/resources/webhooks/webhooks.d.mts.map +1 -1
  204. package/resources/webhooks/webhooks.d.ts +279 -71
  205. package/resources/webhooks/webhooks.d.ts.map +1 -1
  206. package/resources/webhooks/webhooks.js +27 -60
  207. package/resources/webhooks/webhooks.js.map +1 -1
  208. package/resources/webhooks/webhooks.mjs +27 -60
  209. package/resources/webhooks/webhooks.mjs.map +1 -1
  210. package/resources/workflows/action-catalog.d.mts +7 -3
  211. package/resources/workflows/action-catalog.d.mts.map +1 -1
  212. package/resources/workflows/action-catalog.d.ts +7 -3
  213. package/resources/workflows/action-catalog.d.ts.map +1 -1
  214. package/resources/workflows/actions/actions.d.mts +9 -5
  215. package/resources/workflows/actions/actions.d.mts.map +1 -1
  216. package/resources/workflows/actions/actions.d.ts +9 -5
  217. package/resources/workflows/actions/actions.d.ts.map +1 -1
  218. package/resources/workflows/actions/actions.js +4 -0
  219. package/resources/workflows/actions/actions.js.map +1 -1
  220. package/resources/workflows/actions/actions.mjs +4 -0
  221. package/resources/workflows/actions/actions.mjs.map +1 -1
  222. package/resources/workflows/events.d.mts +48 -4
  223. package/resources/workflows/events.d.mts.map +1 -1
  224. package/resources/workflows/events.d.ts +48 -4
  225. package/resources/workflows/events.d.ts.map +1 -1
  226. package/resources/workflows/executions/executions.d.mts +334 -0
  227. package/resources/workflows/executions/executions.d.mts.map +1 -0
  228. package/resources/workflows/executions/executions.d.ts +334 -0
  229. package/resources/workflows/executions/executions.d.ts.map +1 -0
  230. package/resources/workflows/executions/executions.js +49 -0
  231. package/resources/workflows/executions/executions.js.map +1 -0
  232. package/resources/workflows/executions/executions.mjs +44 -0
  233. package/resources/workflows/executions/executions.mjs.map +1 -0
  234. package/resources/workflows/executions/index.d.mts +3 -0
  235. package/resources/workflows/executions/index.d.mts.map +1 -0
  236. package/resources/workflows/executions/index.d.ts +3 -0
  237. package/resources/workflows/executions/index.d.ts.map +1 -0
  238. package/resources/workflows/executions/index.js +9 -0
  239. package/resources/workflows/executions/index.js.map +1 -0
  240. package/resources/workflows/executions/index.mjs +4 -0
  241. package/resources/workflows/executions/index.mjs.map +1 -0
  242. package/resources/workflows/executions/screenshots.d.mts +18 -0
  243. package/resources/workflows/executions/screenshots.d.mts.map +1 -0
  244. package/resources/workflows/executions/screenshots.d.ts +18 -0
  245. package/resources/workflows/executions/screenshots.d.ts.map +1 -0
  246. package/resources/workflows/executions/screenshots.js +23 -0
  247. package/resources/workflows/executions/screenshots.js.map +1 -0
  248. package/resources/workflows/executions/screenshots.mjs +19 -0
  249. package/resources/workflows/executions/screenshots.mjs.map +1 -0
  250. package/resources/workflows/executions.d.mts +1 -269
  251. package/resources/workflows/executions.d.mts.map +1 -1
  252. package/resources/workflows/executions.d.ts +1 -269
  253. package/resources/workflows/executions.d.ts.map +1 -1
  254. package/resources/workflows/executions.js +2 -37
  255. package/resources/workflows/executions.js.map +1 -1
  256. package/resources/workflows/executions.mjs +1 -35
  257. package/resources/workflows/executions.mjs.map +1 -1
  258. package/resources/workflows/flows/actions.d.mts +39 -0
  259. package/resources/workflows/flows/actions.d.mts.map +1 -1
  260. package/resources/workflows/flows/actions.d.ts +39 -0
  261. package/resources/workflows/flows/actions.d.ts.map +1 -1
  262. package/resources/workflows/flows/actions.js +4 -0
  263. package/resources/workflows/flows/actions.js.map +1 -1
  264. package/resources/workflows/flows/actions.mjs +4 -0
  265. package/resources/workflows/flows/actions.mjs.map +1 -1
  266. package/resources/workflows/flows/flows.d.mts +529 -18
  267. package/resources/workflows/flows/flows.d.mts.map +1 -1
  268. package/resources/workflows/flows/flows.d.ts +529 -18
  269. package/resources/workflows/flows/flows.d.ts.map +1 -1
  270. package/resources/workflows/flows/flows.js +75 -0
  271. package/resources/workflows/flows/flows.js.map +1 -1
  272. package/resources/workflows/flows/flows.mjs +75 -0
  273. package/resources/workflows/flows/flows.mjs.map +1 -1
  274. package/resources/workflows/flows/index.d.mts +1 -1
  275. package/resources/workflows/flows/index.d.mts.map +1 -1
  276. package/resources/workflows/flows/index.d.ts +1 -1
  277. package/resources/workflows/flows/index.d.ts.map +1 -1
  278. package/resources/workflows/flows/index.js.map +1 -1
  279. package/resources/workflows/flows/index.mjs.map +1 -1
  280. package/resources/workflows/index.d.mts +2 -2
  281. package/resources/workflows/index.d.mts.map +1 -1
  282. package/resources/workflows/index.d.ts +2 -2
  283. package/resources/workflows/index.d.ts.map +1 -1
  284. package/resources/workflows/index.js +4 -4
  285. package/resources/workflows/index.js.map +1 -1
  286. package/resources/workflows/index.mjs +1 -1
  287. package/resources/workflows/index.mjs.map +1 -1
  288. package/resources/workflows/triggers.d.mts +107 -9
  289. package/resources/workflows/triggers.d.mts.map +1 -1
  290. package/resources/workflows/triggers.d.ts +107 -9
  291. package/resources/workflows/triggers.d.ts.map +1 -1
  292. package/resources/workflows/triggers.js +14 -0
  293. package/resources/workflows/triggers.js.map +1 -1
  294. package/resources/workflows/triggers.mjs +14 -0
  295. package/resources/workflows/triggers.mjs.map +1 -1
  296. package/resources/workflows/workflows.d.mts +4 -4
  297. package/resources/workflows/workflows.d.mts.map +1 -1
  298. package/resources/workflows/workflows.d.ts +4 -4
  299. package/resources/workflows/workflows.d.ts.map +1 -1
  300. package/resources/workflows/workflows.js +2 -2
  301. package/resources/workflows/workflows.js.map +1 -1
  302. package/resources/workflows/workflows.mjs +2 -2
  303. package/resources/workflows/workflows.mjs.map +1 -1
  304. package/src/client.ts +18 -1
  305. package/src/resources/apps.ts +18 -15
  306. package/src/resources/assistant/conversations.ts +12 -27
  307. package/src/resources/connect/connect.ts +6 -0
  308. package/src/resources/connect/index.ts +3 -0
  309. package/src/resources/connect/proxies.ts +119 -19
  310. package/src/resources/devices/browser.ts +9 -3
  311. package/src/resources/devices/devices.ts +80 -30
  312. package/src/resources/devices/index.ts +2 -0
  313. package/src/resources/devices/recordings.ts +4 -2
  314. package/src/resources/devices/traffic-sessions.ts +2 -19
  315. package/src/resources/files.ts +8 -29
  316. package/src/resources/index.ts +11 -1
  317. package/src/resources/mailboxes/connections.ts +91 -0
  318. package/src/resources/mailboxes/index.ts +7 -0
  319. package/src/resources/mailboxes/mailboxes.ts +146 -24
  320. package/src/resources/messages/index.ts +6 -1
  321. package/src/resources/messages/messages.ts +55 -1
  322. package/src/resources/notifications.ts +37 -0
  323. package/src/resources/numbers/index.ts +7 -1
  324. package/src/resources/numbers/messages.ts +92 -1
  325. package/src/resources/numbers/numbers.ts +143 -25
  326. package/src/resources/store/apps.ts +291 -2
  327. package/src/resources/tasks/tasks.ts +18 -65
  328. package/src/resources/webhooks/deliveries.ts +26 -31
  329. package/src/resources/webhooks/index.ts +6 -0
  330. package/src/resources/webhooks/integrations.ts +107 -0
  331. package/src/resources/webhooks/webhooks.ts +326 -71
  332. package/src/resources/workflows/action-catalog.ts +11 -3
  333. package/src/resources/workflows/actions/actions.ts +9 -5
  334. package/src/resources/workflows/events.ts +62 -4
  335. package/src/resources/workflows/executions/executions.ts +514 -0
  336. package/src/resources/workflows/executions/index.ts +12 -0
  337. package/src/resources/workflows/executions/screenshots.ts +34 -0
  338. package/src/resources/workflows/executions.ts +1 -412
  339. package/src/resources/workflows/flows/actions.ts +46 -0
  340. package/src/resources/workflows/flows/flows.ts +765 -17
  341. package/src/resources/workflows/flows/index.ts +11 -0
  342. package/src/resources/workflows/index.ts +12 -1
  343. package/src/resources/workflows/triggers.ts +128 -10
  344. package/src/resources/workflows/workflows.ts +32 -10
  345. package/src/version.ts +1 -1
  346. package/version.d.mts +1 -1
  347. package/version.d.ts +1 -1
  348. package/version.js +1 -1
  349. package/version.mjs +1 -1
@@ -1,270 +1,2 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as Shared from "../shared.mjs";
3
- import { APIPromise } from "../../core/api-promise.mjs";
4
- import { RequestOptions } from "../../internal/request-options.mjs";
5
- export declare class Executions extends APIResource {
6
- /**
7
- * Fetch a single flow execution by its ID, including its status, kind, result or
8
- * error, and start/finish timestamps. Returns 404 if no execution matches.
9
- */
10
- retrieve(executionID: string, options?: RequestOptions): APIPromise<ExecutionRetrieveResponse>;
11
- /**
12
- * Return a paginated history of flow executions. Supports filtering by `flowId`,
13
- * `triggerId`, `invocationId` (the client/verify key), `status`, and a `from`/`to`
14
- * time range, plus free-text `search` and ordering by startedAt, finishedAt, or
15
- * status.
16
- */
17
- list(query?: ExecutionListParams | null | undefined, options?: RequestOptions): APIPromise<ExecutionListResponse>;
18
- /**
19
- * Signals the worker to stop the execution between steps and marks it cancelled.
20
- * Idempotent-ish: already-terminal executions return 409.
21
- */
22
- abort(executionID: string, options?: RequestOptions): APIPromise<ExecutionAbortResponse>;
23
- /**
24
- * Return aggregate execution metrics — total count, counts by status, average
25
- * duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
26
- * and a `from`/`to` time range.
27
- */
28
- getMetrics(query?: ExecutionGetMetricsParams | null | undefined, options?: RequestOptions): APIPromise<ExecutionGetMetricsResponse>;
29
- }
30
- export interface ExecutionRetrieveResponse {
31
- data: ExecutionRetrieveResponse.Data;
32
- }
33
- export declare namespace ExecutionRetrieveResponse {
34
- interface Data {
35
- id: string;
36
- createdBy: string | null;
37
- /**
38
- * Device this execution targets (the job's deviceId). Null for device-less
39
- * (event-only) runs.
40
- */
41
- deviceId: string | null;
42
- error: string | null;
43
- eventId: string | null;
44
- /**
45
- * Files produced by files.upload steps, plus files an agent.run step reported on
46
- * its terminal response (agent-created output or a workflow upload minted during
47
- * the turn); derived server-side at read time.
48
- */
49
- files: Array<Data.File>;
50
- finishedAt: string | null;
51
- flowId: string;
52
- flowName: string | null;
53
- /**
54
- * Client/verify invocation key this row belongs to. Set on live custom fires (one
55
- * row per device fan-out) and on verification runs; null for event/schedule live
56
- * rows.
57
- */
58
- invocationId: string | null;
59
- kind: 'live' | 'dry_run' | 'verification';
60
- recordingDeviceId: string | null;
61
- /**
62
- * Device-recording id (devices-api) for this execution, set once the worker starts
63
- * a recording. Null when the flow has recording disabled, no device is bound, or
64
- * the recording failed to start.
65
- */
66
- recordingId: string | null;
67
- /**
68
- * Durable recording segments ordered by step/loop coordinate and retry attempt.
69
- * Whole-flow recordings use -1 for every coordinate.
70
- */
71
- recordings: Array<Data.Recording>;
72
- startedAt: string | null;
73
- status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
74
- triggerId: string;
75
- triggerName: string | null;
76
- /**
77
- * Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
78
- * `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
79
- * step that opted into a verdict — null otherwise. Table-backed steps (current
80
- * executions) also carry a `status` string (e.g. success/failed/stopped, see
81
- * deriveStepStatus); it is optional and absent on legacy blob-only executions, so
82
- * clients must not assume its presence.
83
- */
84
- result?: unknown;
85
- }
86
- namespace Data {
87
- interface File {
88
- fileId: string;
89
- filename: string;
90
- mimeType: string;
91
- sizeBytes: number;
92
- }
93
- interface Recording {
94
- id: string;
95
- attempt: number;
96
- childIndex: number;
97
- flowActionId: string | null;
98
- iterationIndex: number;
99
- lastError: string | null;
100
- parentIndex: number;
101
- recordingDeviceId: string | null;
102
- recordingId: string | null;
103
- scope: 'flow' | 'step';
104
- startedAt: string | null;
105
- status: 'starting' | 'recording' | 'stopping' | 'stopped' | 'failed';
106
- stepIndex: number;
107
- stoppedAt: string | null;
108
- }
109
- }
110
- }
111
- export interface ExecutionListResponse {
112
- items: Array<ExecutionListResponse.Item>;
113
- pagination: Shared.Pagination;
114
- }
115
- export declare namespace ExecutionListResponse {
116
- interface Item {
117
- id: string;
118
- createdBy: string | null;
119
- /**
120
- * Device this execution targets (the job's deviceId). Null for device-less
121
- * (event-only) runs.
122
- */
123
- deviceId: string | null;
124
- error: string | null;
125
- eventId: string | null;
126
- finishedAt: string | null;
127
- flowId: string;
128
- flowName: string | null;
129
- /**
130
- * Client/verify invocation key this row belongs to. Set on live custom fires (one
131
- * row per device fan-out) and on verification runs; null for event/schedule live
132
- * rows.
133
- */
134
- invocationId: string | null;
135
- kind: 'live' | 'dry_run' | 'verification';
136
- recordingDeviceId: string | null;
137
- /**
138
- * Device-recording id (devices-api) for this execution, set once the worker starts
139
- * a recording. Null when the flow has recording disabled, no device is bound, or
140
- * the recording failed to start.
141
- */
142
- recordingId: string | null;
143
- /**
144
- * Durable recording segments ordered by step/loop coordinate and retry attempt.
145
- * Whole-flow recordings use -1 for every coordinate.
146
- */
147
- recordings: Array<Item.Recording>;
148
- startedAt: string | null;
149
- status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
150
- triggerId: string;
151
- triggerName: string | null;
152
- /**
153
- * Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
154
- * `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
155
- * step that opted into a verdict — null otherwise. Table-backed steps (current
156
- * executions) also carry a `status` string (e.g. success/failed/stopped, see
157
- * deriveStepStatus); it is optional and absent on legacy blob-only executions, so
158
- * clients must not assume its presence.
159
- */
160
- result?: unknown;
161
- }
162
- namespace Item {
163
- interface Recording {
164
- id: string;
165
- attempt: number;
166
- childIndex: number;
167
- flowActionId: string | null;
168
- iterationIndex: number;
169
- lastError: string | null;
170
- parentIndex: number;
171
- recordingDeviceId: string | null;
172
- recordingId: string | null;
173
- scope: 'flow' | 'step';
174
- startedAt: string | null;
175
- status: 'starting' | 'recording' | 'stopping' | 'stopped' | 'failed';
176
- stepIndex: number;
177
- stoppedAt: string | null;
178
- }
179
- }
180
- }
181
- export interface ExecutionAbortResponse {
182
- data: ExecutionAbortResponse.Data;
183
- }
184
- export declare namespace ExecutionAbortResponse {
185
- interface Data {
186
- id: string;
187
- /**
188
- * Device this execution targets (the job's deviceId). Null for device-less
189
- * (event-only) runs.
190
- */
191
- deviceId: string | null;
192
- error: string | null;
193
- eventId: string | null;
194
- finishedAt: string | null;
195
- flowId: string;
196
- flowName: string | null;
197
- /**
198
- * Client/verify invocation key this row belongs to. Set on live custom fires (one
199
- * row per device fan-out) and on verification runs; null for event/schedule live
200
- * rows.
201
- */
202
- invocationId: string | null;
203
- kind: 'live' | 'dry_run' | 'verification';
204
- recordingDeviceId: string | null;
205
- /**
206
- * Device-recording id (devices-api) for this execution, set once the worker starts
207
- * a recording. Null when the flow has recording disabled, no device is bound, or
208
- * the recording failed to start.
209
- */
210
- recordingId: string | null;
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
- }
226
- export interface ExecutionGetMetricsResponse {
227
- data: ExecutionGetMetricsResponse.Data;
228
- }
229
- export declare namespace ExecutionGetMetricsResponse {
230
- interface Data {
231
- avgDurationMs: number | null;
232
- byStatus: Data.ByStatus;
233
- lastExecutionAt: string | null;
234
- total: number;
235
- }
236
- namespace Data {
237
- interface ByStatus {
238
- cancelled: number;
239
- failed: number;
240
- invalid: number;
241
- pending: number;
242
- running: number;
243
- skipped: number;
244
- success: number;
245
- }
246
- }
247
- }
248
- export interface ExecutionListParams {
249
- flowId?: string;
250
- from?: string | null;
251
- invocationId?: string;
252
- orderBy?: 'startedAt' | 'finishedAt' | 'status';
253
- orderByDirection?: 'asc' | 'desc';
254
- page?: number;
255
- pageSize?: number;
256
- search?: string;
257
- status?: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid';
258
- to?: string | null;
259
- triggerId?: string;
260
- }
261
- export interface ExecutionGetMetricsParams {
262
- flowId?: string;
263
- from?: string | null;
264
- to?: string | null;
265
- triggerId?: string;
266
- }
267
- export declare namespace Executions {
268
- 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, };
269
- }
1
+ export * from "./executions/index.mjs";
270
2
  //# sourceMappingURL=executions.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"executions.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAI9F;;;;;OAKG;IACH,IAAI,CACF,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAIpC;;;OAGG;IACH,KAAK,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIxF;;;;OAIG;IACH,UAAU,CACR,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;CAG3C;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,yBAAyB,CAAC,IAAI,CAAC;CACtC;AAED,yBAAiB,yBAAyB,CAAC;IACzC,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB;;;WAGG;QACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QAExB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QAErB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAEv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,CAAC,EAAE,WAAW,GAAG,YAAY,GAAG,QAAQ,CAAC;IAEhD,gBAAgB,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAElC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC;IAE5F,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
1
+ {"version":3,"file":"executions.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAEA,uCAAmC"}
@@ -1,270 +1,2 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as Shared from "../shared.js";
3
- import { APIPromise } from "../../core/api-promise.js";
4
- import { RequestOptions } from "../../internal/request-options.js";
5
- export declare class Executions extends APIResource {
6
- /**
7
- * Fetch a single flow execution by its ID, including its status, kind, result or
8
- * error, and start/finish timestamps. Returns 404 if no execution matches.
9
- */
10
- retrieve(executionID: string, options?: RequestOptions): APIPromise<ExecutionRetrieveResponse>;
11
- /**
12
- * Return a paginated history of flow executions. Supports filtering by `flowId`,
13
- * `triggerId`, `invocationId` (the client/verify key), `status`, and a `from`/`to`
14
- * time range, plus free-text `search` and ordering by startedAt, finishedAt, or
15
- * status.
16
- */
17
- list(query?: ExecutionListParams | null | undefined, options?: RequestOptions): APIPromise<ExecutionListResponse>;
18
- /**
19
- * Signals the worker to stop the execution between steps and marks it cancelled.
20
- * Idempotent-ish: already-terminal executions return 409.
21
- */
22
- abort(executionID: string, options?: RequestOptions): APIPromise<ExecutionAbortResponse>;
23
- /**
24
- * Return aggregate execution metrics — total count, counts by status, average
25
- * duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
26
- * and a `from`/`to` time range.
27
- */
28
- getMetrics(query?: ExecutionGetMetricsParams | null | undefined, options?: RequestOptions): APIPromise<ExecutionGetMetricsResponse>;
29
- }
30
- export interface ExecutionRetrieveResponse {
31
- data: ExecutionRetrieveResponse.Data;
32
- }
33
- export declare namespace ExecutionRetrieveResponse {
34
- interface Data {
35
- id: string;
36
- createdBy: string | null;
37
- /**
38
- * Device this execution targets (the job's deviceId). Null for device-less
39
- * (event-only) runs.
40
- */
41
- deviceId: string | null;
42
- error: string | null;
43
- eventId: string | null;
44
- /**
45
- * Files produced by files.upload steps, plus files an agent.run step reported on
46
- * its terminal response (agent-created output or a workflow upload minted during
47
- * the turn); derived server-side at read time.
48
- */
49
- files: Array<Data.File>;
50
- finishedAt: string | null;
51
- flowId: string;
52
- flowName: string | null;
53
- /**
54
- * Client/verify invocation key this row belongs to. Set on live custom fires (one
55
- * row per device fan-out) and on verification runs; null for event/schedule live
56
- * rows.
57
- */
58
- invocationId: string | null;
59
- kind: 'live' | 'dry_run' | 'verification';
60
- recordingDeviceId: string | null;
61
- /**
62
- * Device-recording id (devices-api) for this execution, set once the worker starts
63
- * a recording. Null when the flow has recording disabled, no device is bound, or
64
- * the recording failed to start.
65
- */
66
- recordingId: string | null;
67
- /**
68
- * Durable recording segments ordered by step/loop coordinate and retry attempt.
69
- * Whole-flow recordings use -1 for every coordinate.
70
- */
71
- recordings: Array<Data.Recording>;
72
- startedAt: string | null;
73
- status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
74
- triggerId: string;
75
- triggerName: string | null;
76
- /**
77
- * Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
78
- * `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
79
- * step that opted into a verdict — null otherwise. Table-backed steps (current
80
- * executions) also carry a `status` string (e.g. success/failed/stopped, see
81
- * deriveStepStatus); it is optional and absent on legacy blob-only executions, so
82
- * clients must not assume its presence.
83
- */
84
- result?: unknown;
85
- }
86
- namespace Data {
87
- interface File {
88
- fileId: string;
89
- filename: string;
90
- mimeType: string;
91
- sizeBytes: number;
92
- }
93
- interface Recording {
94
- id: string;
95
- attempt: number;
96
- childIndex: number;
97
- flowActionId: string | null;
98
- iterationIndex: number;
99
- lastError: string | null;
100
- parentIndex: number;
101
- recordingDeviceId: string | null;
102
- recordingId: string | null;
103
- scope: 'flow' | 'step';
104
- startedAt: string | null;
105
- status: 'starting' | 'recording' | 'stopping' | 'stopped' | 'failed';
106
- stepIndex: number;
107
- stoppedAt: string | null;
108
- }
109
- }
110
- }
111
- export interface ExecutionListResponse {
112
- items: Array<ExecutionListResponse.Item>;
113
- pagination: Shared.Pagination;
114
- }
115
- export declare namespace ExecutionListResponse {
116
- interface Item {
117
- id: string;
118
- createdBy: string | null;
119
- /**
120
- * Device this execution targets (the job's deviceId). Null for device-less
121
- * (event-only) runs.
122
- */
123
- deviceId: string | null;
124
- error: string | null;
125
- eventId: string | null;
126
- finishedAt: string | null;
127
- flowId: string;
128
- flowName: string | null;
129
- /**
130
- * Client/verify invocation key this row belongs to. Set on live custom fires (one
131
- * row per device fan-out) and on verification runs; null for event/schedule live
132
- * rows.
133
- */
134
- invocationId: string | null;
135
- kind: 'live' | 'dry_run' | 'verification';
136
- recordingDeviceId: string | null;
137
- /**
138
- * Device-recording id (devices-api) for this execution, set once the worker starts
139
- * a recording. Null when the flow has recording disabled, no device is bound, or
140
- * the recording failed to start.
141
- */
142
- recordingId: string | null;
143
- /**
144
- * Durable recording segments ordered by step/loop coordinate and retry attempt.
145
- * Whole-flow recordings use -1 for every coordinate.
146
- */
147
- recordings: Array<Item.Recording>;
148
- startedAt: string | null;
149
- status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
150
- triggerId: string;
151
- triggerName: string | null;
152
- /**
153
- * Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
154
- * `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
155
- * step that opted into a verdict — null otherwise. Table-backed steps (current
156
- * executions) also carry a `status` string (e.g. success/failed/stopped, see
157
- * deriveStepStatus); it is optional and absent on legacy blob-only executions, so
158
- * clients must not assume its presence.
159
- */
160
- result?: unknown;
161
- }
162
- namespace Item {
163
- interface Recording {
164
- id: string;
165
- attempt: number;
166
- childIndex: number;
167
- flowActionId: string | null;
168
- iterationIndex: number;
169
- lastError: string | null;
170
- parentIndex: number;
171
- recordingDeviceId: string | null;
172
- recordingId: string | null;
173
- scope: 'flow' | 'step';
174
- startedAt: string | null;
175
- status: 'starting' | 'recording' | 'stopping' | 'stopped' | 'failed';
176
- stepIndex: number;
177
- stoppedAt: string | null;
178
- }
179
- }
180
- }
181
- export interface ExecutionAbortResponse {
182
- data: ExecutionAbortResponse.Data;
183
- }
184
- export declare namespace ExecutionAbortResponse {
185
- interface Data {
186
- id: string;
187
- /**
188
- * Device this execution targets (the job's deviceId). Null for device-less
189
- * (event-only) runs.
190
- */
191
- deviceId: string | null;
192
- error: string | null;
193
- eventId: string | null;
194
- finishedAt: string | null;
195
- flowId: string;
196
- flowName: string | null;
197
- /**
198
- * Client/verify invocation key this row belongs to. Set on live custom fires (one
199
- * row per device fan-out) and on verification runs; null for event/schedule live
200
- * rows.
201
- */
202
- invocationId: string | null;
203
- kind: 'live' | 'dry_run' | 'verification';
204
- recordingDeviceId: string | null;
205
- /**
206
- * Device-recording id (devices-api) for this execution, set once the worker starts
207
- * a recording. Null when the flow has recording disabled, no device is bound, or
208
- * the recording failed to start.
209
- */
210
- recordingId: string | null;
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
- }
226
- export interface ExecutionGetMetricsResponse {
227
- data: ExecutionGetMetricsResponse.Data;
228
- }
229
- export declare namespace ExecutionGetMetricsResponse {
230
- interface Data {
231
- avgDurationMs: number | null;
232
- byStatus: Data.ByStatus;
233
- lastExecutionAt: string | null;
234
- total: number;
235
- }
236
- namespace Data {
237
- interface ByStatus {
238
- cancelled: number;
239
- failed: number;
240
- invalid: number;
241
- pending: number;
242
- running: number;
243
- skipped: number;
244
- success: number;
245
- }
246
- }
247
- }
248
- export interface ExecutionListParams {
249
- flowId?: string;
250
- from?: string | null;
251
- invocationId?: string;
252
- orderBy?: 'startedAt' | 'finishedAt' | 'status';
253
- orderByDirection?: 'asc' | 'desc';
254
- page?: number;
255
- pageSize?: number;
256
- search?: string;
257
- status?: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid';
258
- to?: string | null;
259
- triggerId?: string;
260
- }
261
- export interface ExecutionGetMetricsParams {
262
- flowId?: string;
263
- from?: string | null;
264
- to?: string | null;
265
- triggerId?: string;
266
- }
267
- export declare namespace Executions {
268
- 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, };
269
- }
1
+ export * from "./executions/index.js";
270
2
  //# sourceMappingURL=executions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAI9F;;;;;OAKG;IACH,IAAI,CACF,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAIpC;;;OAGG;IACH,KAAK,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIxF;;;;OAIG;IACH,UAAU,CACR,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;CAG3C;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,yBAAyB,CAAC,IAAI,CAAC;CACtC;AAED,yBAAiB,yBAAyB,CAAC;IACzC,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB;;;WAGG;QACH,Q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AM,CAAC,EAAE,MAAM,CAAC;IAEhB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,OAAO,CAAC,EAAE,WAAW,GAAG,YAAY,GAAG,QAAQ,CAAC;IAEhD,gBAAgB,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAElC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC;IAE5F,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
1
+ {"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAEA,sCAAmC"}
@@ -1,41 +1,6 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Executions = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const path_1 = require("../../internal/utils/path.js");
7
- class Executions extends resource_1.APIResource {
8
- /**
9
- * Fetch a single flow execution by its ID, including its status, kind, result or
10
- * error, and start/finish timestamps. Returns 404 if no execution matches.
11
- */
12
- retrieve(executionID, options) {
13
- return this._client.get((0, path_1.path) `/executions/${executionID}`, options);
14
- }
15
- /**
16
- * Return a paginated history of flow executions. Supports filtering by `flowId`,
17
- * `triggerId`, `invocationId` (the client/verify key), `status`, and a `from`/`to`
18
- * time range, plus free-text `search` and ordering by startedAt, finishedAt, or
19
- * status.
20
- */
21
- list(query = {}, options) {
22
- return this._client.get('/executions', { query, ...options });
23
- }
24
- /**
25
- * Signals the worker to stop the execution between steps and marks it cancelled.
26
- * Idempotent-ish: already-terminal executions return 409.
27
- */
28
- abort(executionID, options) {
29
- return this._client.post((0, path_1.path) `/executions/${executionID}/abort`, options);
30
- }
31
- /**
32
- * Return aggregate execution metrics — total count, counts by status, average
33
- * duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
34
- * and a `from`/`to` time range.
35
- */
36
- getMetrics(query = {}, options) {
37
- return this._client.get('/executions/metrics', { query, ...options });
38
- }
39
- }
40
- exports.Executions = Executions;
4
+ const tslib_1 = require("../../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./executions/index.js"), exports);
41
6
  //# sourceMappingURL=executions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"executions.js","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;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;AAzCD,gCAyCC"}
1
+ {"version":3,"file":"executions.js","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gEAAmC"}
@@ -1,37 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import { path } from "../../internal/utils/path.mjs";
4
- export class Executions extends APIResource {
5
- /**
6
- * Fetch a single flow execution by its ID, including its status, kind, result or
7
- * error, and start/finish timestamps. Returns 404 if no execution matches.
8
- */
9
- retrieve(executionID, options) {
10
- return this._client.get(path `/executions/${executionID}`, options);
11
- }
12
- /**
13
- * Return a paginated history of flow executions. Supports filtering by `flowId`,
14
- * `triggerId`, `invocationId` (the client/verify key), `status`, and a `from`/`to`
15
- * time range, plus free-text `search` and ordering by startedAt, finishedAt, or
16
- * status.
17
- */
18
- list(query = {}, options) {
19
- return this._client.get('/executions', { query, ...options });
20
- }
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, options) {
26
- return this._client.post(path `/executions/${executionID}/abort`, options);
27
- }
28
- /**
29
- * Return aggregate execution metrics — total count, counts by status, average
30
- * duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
31
- * and a `from`/`to` time range.
32
- */
33
- getMetrics(query = {}, options) {
34
- return this._client.get('/executions/metrics', { query, ...options });
35
- }
36
- }
2
+ export * from "./executions/index.mjs";
37
3
  //# sourceMappingURL=executions.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"executions.mjs","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;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"}
1
+ {"version":3,"file":"executions.mjs","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,uCAAmC"}