@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.
- package/CHANGELOG.md +17 -0
- package/client.d.mts +10 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -13
- package/client.d.ts.map +1 -1
- package/client.js +1 -3
- package/client.js.map +1 -1
- package/client.mjs +2 -4
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +23 -12
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +23 -12
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +8 -3
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +8 -3
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +33 -21
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +33 -21
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +16 -15
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +16 -15
- package/resources/assistant/conversations.mjs.map +1 -1
- package/resources/connect/connect.d.mts +2 -2
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +2 -2
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +118 -19
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +118 -19
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +19 -0
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +19 -0
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/devices/apps.d.mts +37 -17
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +37 -17
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +15 -14
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +15 -14
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/browser.d.mts +9 -3
- package/resources/devices/browser.d.mts.map +1 -1
- package/resources/devices/browser.d.ts +9 -3
- package/resources/devices/browser.d.ts.map +1 -1
- package/resources/devices/browser.js +9 -3
- package/resources/devices/browser.js.map +1 -1
- package/resources/devices/browser.mjs +9 -3
- package/resources/devices/browser.mjs.map +1 -1
- package/resources/devices/devices.d.mts +81 -27
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +81 -27
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +24 -11
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +24 -11
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +2 -1
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +2 -1
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +3 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +1 -0
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +9 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +9 -3
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.js +3 -3
- package/resources/devices/keyboard.mjs +3 -3
- package/resources/devices/recordings.d.mts +13 -0
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +13 -0
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.d.mts +163 -0
- package/resources/devices/traffic-sessions.d.mts.map +1 -0
- package/resources/devices/traffic-sessions.d.ts +163 -0
- package/resources/devices/traffic-sessions.d.ts.map +1 -0
- package/resources/devices/traffic-sessions.js +37 -0
- package/resources/devices/traffic-sessions.js.map +1 -0
- package/resources/devices/traffic-sessions.mjs +33 -0
- package/resources/devices/traffic-sessions.mjs.map +1 -0
- package/resources/files.d.mts +77 -19
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +77 -19
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +2 -10
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -10
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +5 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -2
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +64 -0
- package/resources/mailboxes/connections.d.mts.map +1 -0
- package/resources/mailboxes/connections.d.ts +64 -0
- package/resources/mailboxes/connections.d.ts.map +1 -0
- package/resources/mailboxes/connections.js +42 -0
- package/resources/mailboxes/connections.js.map +1 -0
- package/resources/mailboxes/connections.mjs +38 -0
- package/resources/mailboxes/connections.mjs.map +1 -0
- package/resources/mailboxes/index.d.mts +2 -1
- package/resources/mailboxes/index.d.mts.map +1 -1
- package/resources/mailboxes/index.d.ts +2 -1
- package/resources/mailboxes/index.d.ts.map +1 -1
- package/resources/mailboxes/index.js +3 -1
- package/resources/mailboxes/index.js.map +1 -1
- package/resources/mailboxes/index.mjs +1 -0
- package/resources/mailboxes/index.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +107 -50
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +107 -50
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +34 -24
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +34 -24
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/mailboxes/messages.d.mts +2 -2
- package/resources/mailboxes/messages.d.ts +2 -2
- package/resources/mailboxes/messages.js +2 -2
- package/resources/mailboxes/messages.mjs +2 -2
- package/resources/messages/conversations.d.mts +4 -15
- package/resources/messages/conversations.d.mts.map +1 -1
- package/resources/messages/conversations.d.ts +4 -15
- package/resources/messages/conversations.d.ts.map +1 -1
- package/resources/messages/conversations.js +4 -15
- package/resources/messages/conversations.js.map +1 -1
- package/resources/messages/conversations.mjs +4 -15
- package/resources/messages/conversations.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +28 -5
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +28 -5
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +11 -4
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +11 -4
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/notifications.d.mts +27 -1
- package/resources/notifications.d.mts.map +1 -1
- package/resources/notifications.d.ts +27 -1
- package/resources/notifications.d.ts.map +1 -1
- package/resources/notifications.js +17 -0
- package/resources/notifications.js.map +1 -1
- package/resources/notifications.mjs +17 -0
- package/resources/notifications.mjs.map +1 -1
- package/resources/numbers/index.d.mts +2 -2
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +2 -2
- package/resources/numbers/index.d.ts.map +1 -1
- package/resources/numbers/index.js.map +1 -1
- package/resources/numbers/index.mjs +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +60 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +60 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +21 -0
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +21 -0
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +167 -46
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +167 -46
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +25 -40
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +26 -41
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/store/apps.d.mts +23 -2
- package/resources/store/apps.d.mts.map +1 -1
- package/resources/store/apps.d.ts +23 -2
- package/resources/store/apps.d.ts.map +1 -1
- package/resources/tasks/tasks.d.mts +84 -75
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +84 -75
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +2 -10
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +2 -10
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +22 -31
- package/resources/webhooks/deliveries.d.mts.map +1 -1
- package/resources/webhooks/deliveries.d.ts +22 -31
- package/resources/webhooks/deliveries.d.ts.map +1 -1
- package/resources/webhooks/deliveries.js +4 -30
- package/resources/webhooks/deliveries.js.map +1 -1
- package/resources/webhooks/deliveries.mjs +4 -30
- package/resources/webhooks/deliveries.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +1 -0
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -0
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js +3 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs +1 -0
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/integrations.d.mts +77 -0
- package/resources/webhooks/integrations.d.mts.map +1 -0
- package/resources/webhooks/integrations.d.ts +77 -0
- package/resources/webhooks/integrations.d.ts.map +1 -0
- package/resources/webhooks/integrations.js +26 -0
- package/resources/webhooks/integrations.js.map +1 -0
- package/resources/webhooks/integrations.mjs +22 -0
- package/resources/webhooks/integrations.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +280 -71
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +280 -71
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +27 -60
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +27 -60
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +7 -3
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +7 -3
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/actions/actions.d.mts +9 -5
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +9 -5
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +4 -0
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +4 -0
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/events.d.mts +66 -4
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +66 -4
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +334 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -0
- package/resources/workflows/executions/executions.d.ts +334 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -0
- package/resources/workflows/executions/executions.js +49 -0
- package/resources/workflows/executions/executions.js.map +1 -0
- package/resources/workflows/executions/executions.mjs +44 -0
- package/resources/workflows/executions/executions.mjs.map +1 -0
- package/resources/workflows/executions/index.d.mts +3 -0
- package/resources/workflows/executions/index.d.mts.map +1 -0
- package/resources/workflows/executions/index.d.ts +3 -0
- package/resources/workflows/executions/index.d.ts.map +1 -0
- package/resources/workflows/executions/index.js +9 -0
- package/resources/workflows/executions/index.js.map +1 -0
- package/resources/workflows/executions/index.mjs +4 -0
- package/resources/workflows/executions/index.mjs.map +1 -0
- package/resources/workflows/executions/screenshots.d.mts +18 -0
- package/resources/workflows/executions/screenshots.d.mts.map +1 -0
- package/resources/workflows/executions/screenshots.d.ts +18 -0
- package/resources/workflows/executions/screenshots.d.ts.map +1 -0
- package/resources/workflows/executions/screenshots.js +23 -0
- package/resources/workflows/executions/screenshots.js.map +1 -0
- package/resources/workflows/executions/screenshots.mjs +19 -0
- package/resources/workflows/executions/screenshots.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +1 -190
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +1 -190
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +2 -36
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +1 -34
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +58 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +58 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js +4 -0
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs +4 -0
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +666 -15
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +666 -15
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +86 -1
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +86 -1
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +1 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +1 -1
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/index.d.mts +2 -2
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +2 -2
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js +4 -4
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +118 -6
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +118 -6
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +14 -0
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +14 -0
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +4 -4
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +4 -4
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js +2 -2
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs +2 -2
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +22 -42
- package/src/resources/apps.ts +24 -12
- package/src/resources/assistant/conversations.ts +50 -31
- package/src/resources/connect/connect.ts +6 -0
- package/src/resources/connect/index.ts +3 -0
- package/src/resources/connect/proxies.ts +146 -18
- package/src/resources/devices/apps.ts +41 -17
- package/src/resources/devices/browser.ts +9 -3
- package/src/resources/devices/devices.ts +138 -34
- package/src/resources/devices/index.ts +13 -0
- package/src/resources/devices/keyboard.ts +10 -3
- package/src/resources/devices/recordings.ts +14 -0
- package/src/resources/devices/traffic-sessions.ts +282 -0
- package/src/resources/files.ts +122 -29
- package/src/resources/index.ts +13 -20
- package/src/resources/mailboxes/connections.ts +91 -0
- package/src/resources/mailboxes/index.ts +7 -0
- package/src/resources/mailboxes/mailboxes.ts +190 -49
- package/src/resources/mailboxes/messages.ts +2 -2
- package/src/resources/messages/conversations.ts +4 -15
- package/src/resources/messages/index.ts +6 -1
- package/src/resources/messages/messages.ts +57 -5
- package/src/resources/notifications.ts +37 -0
- package/src/resources/numbers/index.ts +9 -1
- package/src/resources/numbers/messages.ts +92 -1
- package/src/resources/numbers/numbers.ts +197 -55
- package/src/resources/store/apps.ts +291 -2
- package/src/resources/tasks/tasks.ts +126 -93
- package/src/resources/webhooks/deliveries.ts +26 -31
- package/src/resources/webhooks/index.ts +6 -0
- package/src/resources/webhooks/integrations.ts +107 -0
- package/src/resources/webhooks/webhooks.ts +328 -71
- package/src/resources/workflows/action-catalog.ts +11 -3
- package/src/resources/workflows/actions/actions.ts +9 -5
- package/src/resources/workflows/events.ts +86 -4
- package/src/resources/workflows/executions/executions.ts +514 -0
- package/src/resources/workflows/executions/index.ts +12 -0
- package/src/resources/workflows/executions/screenshots.ts +34 -0
- package/src/resources/workflows/executions.ts +1 -296
- package/src/resources/workflows/flows/actions.ts +72 -0
- package/src/resources/workflows/flows/flows.ts +1058 -129
- package/src/resources/workflows/flows/index.ts +12 -0
- package/src/resources/workflows/index.ts +13 -1
- package/src/resources/workflows/triggers.ts +140 -6
- package/src/resources/workflows/workflows.ts +34 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/esims/esims.d.mts +0 -566
- package/resources/esims/esims.d.mts.map +0 -1
- package/resources/esims/esims.d.ts +0 -566
- package/resources/esims/esims.d.ts.map +0 -1
- package/resources/esims/esims.js +0 -205
- package/resources/esims/esims.js.map +0 -1
- package/resources/esims/esims.mjs +0 -200
- package/resources/esims/esims.mjs.map +0 -1
- package/resources/esims/index.d.mts +0 -3
- package/resources/esims/index.d.mts.map +0 -1
- package/resources/esims/index.d.ts +0 -3
- package/resources/esims/index.d.ts.map +0 -1
- package/resources/esims/index.js +0 -9
- package/resources/esims/index.js.map +0 -1
- package/resources/esims/index.mjs +0 -4
- package/resources/esims/index.mjs.map +0 -1
- package/resources/esims/messages.d.mts +0 -106
- package/resources/esims/messages.d.mts.map +0 -1
- package/resources/esims/messages.d.ts +0 -106
- package/resources/esims/messages.d.ts.map +0 -1
- package/resources/esims/messages.js +0 -37
- package/resources/esims/messages.js.map +0 -1
- package/resources/esims/messages.mjs +0 -33
- package/resources/esims/messages.mjs.map +0 -1
- package/resources/esims.d.mts +0 -2
- package/resources/esims.d.mts.map +0 -1
- package/resources/esims.d.ts +0 -2
- package/resources/esims.d.ts.map +0 -1
- package/resources/esims.js +0 -6
- package/resources/esims.js.map +0 -1
- package/resources/esims.mjs +0 -3
- package/resources/esims.mjs.map +0 -1
- package/src/resources/esims/esims.ts +0 -1019
- package/src/resources/esims/index.ts +0 -28
- package/src/resources/esims/messages.ts +0 -187
- package/src/resources/esims.ts +0 -3
|
@@ -1,191 +1,2 @@
|
|
|
1
|
-
|
|
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`, `status`, and a `from`/`to` time range, plus free-text `search` and
|
|
14
|
-
* ordering by startedAt, finishedAt, or status.
|
|
15
|
-
*/
|
|
16
|
-
list(query?: ExecutionListParams | null | undefined, options?: RequestOptions): APIPromise<ExecutionListResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Signals the worker to stop the execution between steps and marks it cancelled.
|
|
19
|
-
* Idempotent-ish: already-terminal executions return 409.
|
|
20
|
-
*/
|
|
21
|
-
abort(executionID: string, options?: RequestOptions): APIPromise<ExecutionAbortResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Return aggregate execution metrics — total count, counts by status, average
|
|
24
|
-
* duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
|
|
25
|
-
* and a `from`/`to` time range.
|
|
26
|
-
*/
|
|
27
|
-
getMetrics(query?: ExecutionGetMetricsParams | null | undefined, options?: RequestOptions): APIPromise<ExecutionGetMetricsResponse>;
|
|
28
|
-
}
|
|
29
|
-
export interface ExecutionRetrieveResponse {
|
|
30
|
-
data: ExecutionRetrieveResponse.Data;
|
|
31
|
-
}
|
|
32
|
-
export declare namespace ExecutionRetrieveResponse {
|
|
33
|
-
interface Data {
|
|
34
|
-
id: string;
|
|
35
|
-
createdBy: string | null;
|
|
36
|
-
error: string | null;
|
|
37
|
-
eventId: string | null;
|
|
38
|
-
/**
|
|
39
|
-
* Files produced by files.upload steps, plus files an agent.run step reported on
|
|
40
|
-
* its terminal response (agent-created output or a workflow upload minted during
|
|
41
|
-
* the turn); derived server-side at read time.
|
|
42
|
-
*/
|
|
43
|
-
files: Array<Data.File>;
|
|
44
|
-
finishedAt: string | null;
|
|
45
|
-
flowId: string;
|
|
46
|
-
flowName: string | null;
|
|
47
|
-
kind: 'live' | 'dry_run';
|
|
48
|
-
recordingDeviceId: string | null;
|
|
49
|
-
/**
|
|
50
|
-
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
51
|
-
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
52
|
-
* the recording failed to start.
|
|
53
|
-
*/
|
|
54
|
-
recordingId: string | null;
|
|
55
|
-
startedAt: string | null;
|
|
56
|
-
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
57
|
-
triggerId: string;
|
|
58
|
-
triggerName: string | null;
|
|
59
|
-
/**
|
|
60
|
-
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
61
|
-
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
62
|
-
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
63
|
-
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
64
|
-
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
65
|
-
* clients must not assume its presence.
|
|
66
|
-
*/
|
|
67
|
-
result?: unknown;
|
|
68
|
-
}
|
|
69
|
-
namespace Data {
|
|
70
|
-
interface File {
|
|
71
|
-
fileId: string;
|
|
72
|
-
filename: string;
|
|
73
|
-
mimeType: string;
|
|
74
|
-
sizeBytes: number;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
export interface ExecutionListResponse {
|
|
79
|
-
items: Array<ExecutionListResponse.Item>;
|
|
80
|
-
pagination: Shared.Pagination;
|
|
81
|
-
}
|
|
82
|
-
export declare namespace ExecutionListResponse {
|
|
83
|
-
interface Item {
|
|
84
|
-
id: string;
|
|
85
|
-
createdBy: string | null;
|
|
86
|
-
error: string | null;
|
|
87
|
-
eventId: string | null;
|
|
88
|
-
finishedAt: string | null;
|
|
89
|
-
flowId: string;
|
|
90
|
-
flowName: string | null;
|
|
91
|
-
kind: 'live' | 'dry_run';
|
|
92
|
-
recordingDeviceId: string | null;
|
|
93
|
-
/**
|
|
94
|
-
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
95
|
-
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
96
|
-
* the recording failed to start.
|
|
97
|
-
*/
|
|
98
|
-
recordingId: string | null;
|
|
99
|
-
startedAt: string | null;
|
|
100
|
-
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
101
|
-
triggerId: string;
|
|
102
|
-
triggerName: string | null;
|
|
103
|
-
/**
|
|
104
|
-
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
105
|
-
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
106
|
-
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
107
|
-
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
108
|
-
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
109
|
-
* clients must not assume its presence.
|
|
110
|
-
*/
|
|
111
|
-
result?: unknown;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
export interface ExecutionAbortResponse {
|
|
115
|
-
data: ExecutionAbortResponse.Data;
|
|
116
|
-
}
|
|
117
|
-
export declare namespace ExecutionAbortResponse {
|
|
118
|
-
interface Data {
|
|
119
|
-
id: string;
|
|
120
|
-
error: string | null;
|
|
121
|
-
eventId: string | null;
|
|
122
|
-
finishedAt: string | null;
|
|
123
|
-
flowId: string;
|
|
124
|
-
flowName: string | null;
|
|
125
|
-
kind: 'live' | 'dry_run';
|
|
126
|
-
recordingDeviceId: string | null;
|
|
127
|
-
/**
|
|
128
|
-
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
129
|
-
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
130
|
-
* the recording failed to start.
|
|
131
|
-
*/
|
|
132
|
-
recordingId: string | null;
|
|
133
|
-
startedAt: string | null;
|
|
134
|
-
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
135
|
-
triggerId: string;
|
|
136
|
-
triggerName: string | null;
|
|
137
|
-
/**
|
|
138
|
-
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
139
|
-
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
140
|
-
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
141
|
-
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
142
|
-
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
143
|
-
* clients must not assume its presence.
|
|
144
|
-
*/
|
|
145
|
-
result?: unknown;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
export interface ExecutionGetMetricsResponse {
|
|
149
|
-
data: ExecutionGetMetricsResponse.Data;
|
|
150
|
-
}
|
|
151
|
-
export declare namespace ExecutionGetMetricsResponse {
|
|
152
|
-
interface Data {
|
|
153
|
-
avgDurationMs: number | null;
|
|
154
|
-
byStatus: Data.ByStatus;
|
|
155
|
-
lastExecutionAt: string | null;
|
|
156
|
-
total: number;
|
|
157
|
-
}
|
|
158
|
-
namespace Data {
|
|
159
|
-
interface ByStatus {
|
|
160
|
-
cancelled: number;
|
|
161
|
-
failed: number;
|
|
162
|
-
invalid: number;
|
|
163
|
-
pending: number;
|
|
164
|
-
running: number;
|
|
165
|
-
skipped: number;
|
|
166
|
-
success: number;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
export interface ExecutionListParams {
|
|
171
|
-
flowId?: string;
|
|
172
|
-
from?: string | null;
|
|
173
|
-
orderBy?: 'startedAt' | 'finishedAt' | 'status';
|
|
174
|
-
orderByDirection?: 'asc' | 'desc';
|
|
175
|
-
page?: number;
|
|
176
|
-
pageSize?: number;
|
|
177
|
-
search?: string;
|
|
178
|
-
status?: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid';
|
|
179
|
-
to?: string | null;
|
|
180
|
-
triggerId?: string;
|
|
181
|
-
}
|
|
182
|
-
export interface ExecutionGetMetricsParams {
|
|
183
|
-
flowId?: string;
|
|
184
|
-
from?: string | null;
|
|
185
|
-
to?: string | null;
|
|
186
|
-
triggerId?: string;
|
|
187
|
-
}
|
|
188
|
-
export declare namespace Executions {
|
|
189
|
-
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, };
|
|
190
|
-
}
|
|
1
|
+
export * from "./executions/index.mjs";
|
|
191
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,
|
|
1
|
+
{"version":3,"file":"executions.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAEA,uCAAmC"}
|
|
@@ -1,191 +1,2 @@
|
|
|
1
|
-
|
|
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`, `status`, and a `from`/`to` time range, plus free-text `search` and
|
|
14
|
-
* ordering by startedAt, finishedAt, or status.
|
|
15
|
-
*/
|
|
16
|
-
list(query?: ExecutionListParams | null | undefined, options?: RequestOptions): APIPromise<ExecutionListResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Signals the worker to stop the execution between steps and marks it cancelled.
|
|
19
|
-
* Idempotent-ish: already-terminal executions return 409.
|
|
20
|
-
*/
|
|
21
|
-
abort(executionID: string, options?: RequestOptions): APIPromise<ExecutionAbortResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Return aggregate execution metrics — total count, counts by status, average
|
|
24
|
-
* duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
|
|
25
|
-
* and a `from`/`to` time range.
|
|
26
|
-
*/
|
|
27
|
-
getMetrics(query?: ExecutionGetMetricsParams | null | undefined, options?: RequestOptions): APIPromise<ExecutionGetMetricsResponse>;
|
|
28
|
-
}
|
|
29
|
-
export interface ExecutionRetrieveResponse {
|
|
30
|
-
data: ExecutionRetrieveResponse.Data;
|
|
31
|
-
}
|
|
32
|
-
export declare namespace ExecutionRetrieveResponse {
|
|
33
|
-
interface Data {
|
|
34
|
-
id: string;
|
|
35
|
-
createdBy: string | null;
|
|
36
|
-
error: string | null;
|
|
37
|
-
eventId: string | null;
|
|
38
|
-
/**
|
|
39
|
-
* Files produced by files.upload steps, plus files an agent.run step reported on
|
|
40
|
-
* its terminal response (agent-created output or a workflow upload minted during
|
|
41
|
-
* the turn); derived server-side at read time.
|
|
42
|
-
*/
|
|
43
|
-
files: Array<Data.File>;
|
|
44
|
-
finishedAt: string | null;
|
|
45
|
-
flowId: string;
|
|
46
|
-
flowName: string | null;
|
|
47
|
-
kind: 'live' | 'dry_run';
|
|
48
|
-
recordingDeviceId: string | null;
|
|
49
|
-
/**
|
|
50
|
-
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
51
|
-
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
52
|
-
* the recording failed to start.
|
|
53
|
-
*/
|
|
54
|
-
recordingId: string | null;
|
|
55
|
-
startedAt: string | null;
|
|
56
|
-
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
57
|
-
triggerId: string;
|
|
58
|
-
triggerName: string | null;
|
|
59
|
-
/**
|
|
60
|
-
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
61
|
-
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
62
|
-
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
63
|
-
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
64
|
-
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
65
|
-
* clients must not assume its presence.
|
|
66
|
-
*/
|
|
67
|
-
result?: unknown;
|
|
68
|
-
}
|
|
69
|
-
namespace Data {
|
|
70
|
-
interface File {
|
|
71
|
-
fileId: string;
|
|
72
|
-
filename: string;
|
|
73
|
-
mimeType: string;
|
|
74
|
-
sizeBytes: number;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
export interface ExecutionListResponse {
|
|
79
|
-
items: Array<ExecutionListResponse.Item>;
|
|
80
|
-
pagination: Shared.Pagination;
|
|
81
|
-
}
|
|
82
|
-
export declare namespace ExecutionListResponse {
|
|
83
|
-
interface Item {
|
|
84
|
-
id: string;
|
|
85
|
-
createdBy: string | null;
|
|
86
|
-
error: string | null;
|
|
87
|
-
eventId: string | null;
|
|
88
|
-
finishedAt: string | null;
|
|
89
|
-
flowId: string;
|
|
90
|
-
flowName: string | null;
|
|
91
|
-
kind: 'live' | 'dry_run';
|
|
92
|
-
recordingDeviceId: string | null;
|
|
93
|
-
/**
|
|
94
|
-
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
95
|
-
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
96
|
-
* the recording failed to start.
|
|
97
|
-
*/
|
|
98
|
-
recordingId: string | null;
|
|
99
|
-
startedAt: string | null;
|
|
100
|
-
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
101
|
-
triggerId: string;
|
|
102
|
-
triggerName: string | null;
|
|
103
|
-
/**
|
|
104
|
-
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
105
|
-
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
106
|
-
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
107
|
-
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
108
|
-
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
109
|
-
* clients must not assume its presence.
|
|
110
|
-
*/
|
|
111
|
-
result?: unknown;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
export interface ExecutionAbortResponse {
|
|
115
|
-
data: ExecutionAbortResponse.Data;
|
|
116
|
-
}
|
|
117
|
-
export declare namespace ExecutionAbortResponse {
|
|
118
|
-
interface Data {
|
|
119
|
-
id: string;
|
|
120
|
-
error: string | null;
|
|
121
|
-
eventId: string | null;
|
|
122
|
-
finishedAt: string | null;
|
|
123
|
-
flowId: string;
|
|
124
|
-
flowName: string | null;
|
|
125
|
-
kind: 'live' | 'dry_run';
|
|
126
|
-
recordingDeviceId: string | null;
|
|
127
|
-
/**
|
|
128
|
-
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
129
|
-
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
130
|
-
* the recording failed to start.
|
|
131
|
-
*/
|
|
132
|
-
recordingId: string | null;
|
|
133
|
-
startedAt: string | null;
|
|
134
|
-
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
135
|
-
triggerId: string;
|
|
136
|
-
triggerName: string | null;
|
|
137
|
-
/**
|
|
138
|
-
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
139
|
-
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
140
|
-
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
141
|
-
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
142
|
-
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
143
|
-
* clients must not assume its presence.
|
|
144
|
-
*/
|
|
145
|
-
result?: unknown;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
export interface ExecutionGetMetricsResponse {
|
|
149
|
-
data: ExecutionGetMetricsResponse.Data;
|
|
150
|
-
}
|
|
151
|
-
export declare namespace ExecutionGetMetricsResponse {
|
|
152
|
-
interface Data {
|
|
153
|
-
avgDurationMs: number | null;
|
|
154
|
-
byStatus: Data.ByStatus;
|
|
155
|
-
lastExecutionAt: string | null;
|
|
156
|
-
total: number;
|
|
157
|
-
}
|
|
158
|
-
namespace Data {
|
|
159
|
-
interface ByStatus {
|
|
160
|
-
cancelled: number;
|
|
161
|
-
failed: number;
|
|
162
|
-
invalid: number;
|
|
163
|
-
pending: number;
|
|
164
|
-
running: number;
|
|
165
|
-
skipped: number;
|
|
166
|
-
success: number;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
export interface ExecutionListParams {
|
|
171
|
-
flowId?: string;
|
|
172
|
-
from?: string | null;
|
|
173
|
-
orderBy?: 'startedAt' | 'finishedAt' | 'status';
|
|
174
|
-
orderByDirection?: 'asc' | 'desc';
|
|
175
|
-
page?: number;
|
|
176
|
-
pageSize?: number;
|
|
177
|
-
search?: string;
|
|
178
|
-
status?: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid';
|
|
179
|
-
to?: string | null;
|
|
180
|
-
triggerId?: string;
|
|
181
|
-
}
|
|
182
|
-
export interface ExecutionGetMetricsParams {
|
|
183
|
-
flowId?: string;
|
|
184
|
-
from?: string | null;
|
|
185
|
-
to?: string | null;
|
|
186
|
-
triggerId?: string;
|
|
187
|
-
}
|
|
188
|
-
export declare namespace Executions {
|
|
189
|
-
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, };
|
|
190
|
-
}
|
|
1
|
+
export * from "./executions/index.js";
|
|
191
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,
|
|
1
|
+
{"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAEA,sCAAmC"}
|
|
@@ -1,40 +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
|
-
|
|
5
|
-
|
|
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`, `status`, and a `from`/`to` time range, plus free-text `search` and
|
|
18
|
-
* ordering by startedAt, finishedAt, or status.
|
|
19
|
-
*/
|
|
20
|
-
list(query = {}, options) {
|
|
21
|
-
return this._client.get('/executions', { query, ...options });
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Signals the worker to stop the execution between steps and marks it cancelled.
|
|
25
|
-
* Idempotent-ish: already-terminal executions return 409.
|
|
26
|
-
*/
|
|
27
|
-
abort(executionID, options) {
|
|
28
|
-
return this._client.post((0, path_1.path) `/executions/${executionID}/abort`, options);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Return aggregate execution metrics — total count, counts by status, average
|
|
32
|
-
* duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
|
|
33
|
-
* and a `from`/`to` time range.
|
|
34
|
-
*/
|
|
35
|
-
getMetrics(query = {}, options) {
|
|
36
|
-
return this._client.get('/executions/metrics', { query, ...options });
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
exports.Executions = Executions;
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./executions/index.js"), exports);
|
|
40
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,
|
|
1
|
+
{"version":3,"file":"executions.js","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gEAAmC"}
|
|
@@ -1,36 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
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`, `status`, and a `from`/`to` time range, plus free-text `search` and
|
|
15
|
-
* ordering by startedAt, finishedAt, or status.
|
|
16
|
-
*/
|
|
17
|
-
list(query = {}, options) {
|
|
18
|
-
return this._client.get('/executions', { query, ...options });
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Signals the worker to stop the execution between steps and marks it cancelled.
|
|
22
|
-
* Idempotent-ish: already-terminal executions return 409.
|
|
23
|
-
*/
|
|
24
|
-
abort(executionID, options) {
|
|
25
|
-
return this._client.post(path `/executions/${executionID}/abort`, options);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Return aggregate execution metrics — total count, counts by status, average
|
|
29
|
-
* duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
|
|
30
|
-
* and a `from`/`to` time range.
|
|
31
|
-
*/
|
|
32
|
-
getMetrics(query = {}, options) {
|
|
33
|
-
return this._client.get('/executions/metrics', { query, ...options });
|
|
34
|
-
}
|
|
35
|
-
}
|
|
2
|
+
export * from "./executions/index.mjs";
|
|
36
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,
|
|
1
|
+
{"version":3,"file":"executions.mjs","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,uCAAmC"}
|
|
@@ -12,6 +12,10 @@ export declare class Actions extends APIResource {
|
|
|
12
12
|
* under a `parentFlowActionId` or supplying its own `children`. Supports a
|
|
13
13
|
* `nameOverride`, param `overrides`, and `continueOnError`. Returns 404 if the
|
|
14
14
|
* flow does not exist.
|
|
15
|
+
*
|
|
16
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
17
|
+
* characters). Replays with the same key and an identical body return the original
|
|
18
|
+
* 201; a changed body under the same key returns 422 `idempotency_key_reused`.
|
|
15
19
|
*/
|
|
16
20
|
add(flowID: string, body: ActionAddParams, options?: RequestOptions): APIPromise<ActionAddResponse>;
|
|
17
21
|
/**
|
|
@@ -37,10 +41,16 @@ export declare namespace ActionListResponse {
|
|
|
37
41
|
continueOnError: boolean;
|
|
38
42
|
createdAt: string | null;
|
|
39
43
|
flowId: string;
|
|
44
|
+
key: string;
|
|
40
45
|
nameOverride: string | null;
|
|
41
46
|
overrides: Data.Overrides | null;
|
|
42
47
|
parentFlowActionId: string | null;
|
|
43
48
|
position: number;
|
|
49
|
+
/**
|
|
50
|
+
* Selected for per-step recording under the flow's "selected_steps" recording
|
|
51
|
+
* policy.
|
|
52
|
+
*/
|
|
53
|
+
recordingEnabled: boolean;
|
|
44
54
|
}
|
|
45
55
|
namespace Data {
|
|
46
56
|
interface Overrides {
|
|
@@ -60,10 +70,16 @@ export declare namespace ActionAddResponse {
|
|
|
60
70
|
continueOnError: boolean;
|
|
61
71
|
createdAt: string | null;
|
|
62
72
|
flowId: string;
|
|
73
|
+
key: string;
|
|
63
74
|
nameOverride: string | null;
|
|
64
75
|
overrides: Data.Overrides | null;
|
|
65
76
|
parentFlowActionId: string | null;
|
|
66
77
|
position: number;
|
|
78
|
+
/**
|
|
79
|
+
* Selected for per-step recording under the flow's "selected_steps" recording
|
|
80
|
+
* policy.
|
|
81
|
+
*/
|
|
82
|
+
recordingEnabled: boolean;
|
|
67
83
|
}
|
|
68
84
|
namespace Data {
|
|
69
85
|
interface Overrides {
|
|
@@ -86,10 +102,16 @@ export declare namespace ActionReplaceResponse {
|
|
|
86
102
|
continueOnError: boolean;
|
|
87
103
|
createdAt: string | null;
|
|
88
104
|
flowId: string;
|
|
105
|
+
key: string;
|
|
89
106
|
nameOverride: string | null;
|
|
90
107
|
overrides: Data.Overrides | null;
|
|
91
108
|
parentFlowActionId: string | null;
|
|
92
109
|
position: number;
|
|
110
|
+
/**
|
|
111
|
+
* Selected for per-step recording under the flow's "selected_steps" recording
|
|
112
|
+
* policy.
|
|
113
|
+
*/
|
|
114
|
+
recordingEnabled: boolean;
|
|
93
115
|
}
|
|
94
116
|
namespace Data {
|
|
95
117
|
interface Overrides {
|
|
@@ -104,17 +126,35 @@ export interface ActionAddParams {
|
|
|
104
126
|
position: number;
|
|
105
127
|
children?: Array<ActionAddParams.Child>;
|
|
106
128
|
continueOnError?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
131
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
132
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
133
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
134
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
135
|
+
*/
|
|
136
|
+
key?: string;
|
|
107
137
|
nameOverride?: string;
|
|
108
138
|
overrides?: ActionAddParams.Overrides | null;
|
|
109
139
|
parentFlowActionId?: string | null;
|
|
140
|
+
recordingEnabled?: boolean;
|
|
110
141
|
}
|
|
111
142
|
export declare namespace ActionAddParams {
|
|
112
143
|
interface Child {
|
|
113
144
|
actionId: string;
|
|
114
145
|
position: number;
|
|
115
146
|
continueOnError?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
149
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
150
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
151
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
152
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
153
|
+
*/
|
|
154
|
+
key?: string;
|
|
116
155
|
nameOverride?: string;
|
|
117
156
|
overrides?: Child.Overrides | null;
|
|
157
|
+
recordingEnabled?: boolean;
|
|
118
158
|
}
|
|
119
159
|
namespace Child {
|
|
120
160
|
interface Overrides {
|
|
@@ -141,16 +181,34 @@ export declare namespace ActionReplaceParams {
|
|
|
141
181
|
position: number;
|
|
142
182
|
children?: Array<Action.Child>;
|
|
143
183
|
continueOnError?: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
186
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
187
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
188
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
189
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
190
|
+
*/
|
|
191
|
+
key?: string;
|
|
144
192
|
nameOverride?: string;
|
|
145
193
|
overrides?: Action.Overrides | null;
|
|
194
|
+
recordingEnabled?: boolean;
|
|
146
195
|
}
|
|
147
196
|
namespace Action {
|
|
148
197
|
interface Child {
|
|
149
198
|
actionId: string;
|
|
150
199
|
position: number;
|
|
151
200
|
continueOnError?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
203
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
204
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
205
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
206
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
207
|
+
*/
|
|
208
|
+
key?: string;
|
|
152
209
|
nameOverride?: string;
|
|
153
210
|
overrides?: Child.Overrides | null;
|
|
211
|
+
recordingEnabled?: boolean;
|
|
154
212
|
}
|
|
155
213
|
namespace Child {
|
|
156
214
|
interface Overrides {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../../src/resources/workflows/flows/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI9E
|
|
1
|
+
{"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../../src/resources/workflows/flows/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI9E;;;;;;;;;OASG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAInG;;;OAGG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