@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,298 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import * as Shared from '../shared';
|
|
5
|
-
import { APIPromise } from '../../core/api-promise';
|
|
6
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
-
import { path } from '../../internal/utils/path';
|
|
8
|
-
|
|
9
|
-
export class Executions extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Fetch a single flow execution by its ID, including its status, kind, result or
|
|
12
|
-
* error, and start/finish timestamps. Returns 404 if no execution matches.
|
|
13
|
-
*/
|
|
14
|
-
retrieve(executionID: string, options?: RequestOptions): APIPromise<ExecutionRetrieveResponse> {
|
|
15
|
-
return this._client.get(path`/executions/${executionID}`, options);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Return a paginated history of flow executions. Supports filtering by `flowId`,
|
|
20
|
-
* `triggerId`, `status`, and a `from`/`to` time range, plus free-text `search` and
|
|
21
|
-
* ordering by startedAt, finishedAt, or status.
|
|
22
|
-
*/
|
|
23
|
-
list(
|
|
24
|
-
query: ExecutionListParams | null | undefined = {},
|
|
25
|
-
options?: RequestOptions,
|
|
26
|
-
): APIPromise<ExecutionListResponse> {
|
|
27
|
-
return this._client.get('/executions', { query, ...options });
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Signals the worker to stop the execution between steps and marks it cancelled.
|
|
32
|
-
* Idempotent-ish: already-terminal executions return 409.
|
|
33
|
-
*/
|
|
34
|
-
abort(executionID: string, options?: RequestOptions): APIPromise<ExecutionAbortResponse> {
|
|
35
|
-
return this._client.post(path`/executions/${executionID}/abort`, options);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Return aggregate execution metrics — total count, counts by status, average
|
|
40
|
-
* duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
|
|
41
|
-
* and a `from`/`to` time range.
|
|
42
|
-
*/
|
|
43
|
-
getMetrics(
|
|
44
|
-
query: ExecutionGetMetricsParams | null | undefined = {},
|
|
45
|
-
options?: RequestOptions,
|
|
46
|
-
): APIPromise<ExecutionGetMetricsResponse> {
|
|
47
|
-
return this._client.get('/executions/metrics', { query, ...options });
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface ExecutionRetrieveResponse {
|
|
52
|
-
data: ExecutionRetrieveResponse.Data;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export namespace ExecutionRetrieveResponse {
|
|
56
|
-
export interface Data {
|
|
57
|
-
id: string;
|
|
58
|
-
|
|
59
|
-
createdBy: string | null;
|
|
60
|
-
|
|
61
|
-
error: string | null;
|
|
62
|
-
|
|
63
|
-
eventId: string | null;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Files produced by files.upload steps, plus files an agent.run step reported on
|
|
67
|
-
* its terminal response (agent-created output or a workflow upload minted during
|
|
68
|
-
* the turn); derived server-side at read time.
|
|
69
|
-
*/
|
|
70
|
-
files: Array<Data.File>;
|
|
71
|
-
|
|
72
|
-
finishedAt: string | null;
|
|
73
|
-
|
|
74
|
-
flowId: string;
|
|
75
|
-
|
|
76
|
-
flowName: string | null;
|
|
77
|
-
|
|
78
|
-
kind: 'live' | 'dry_run';
|
|
79
|
-
|
|
80
|
-
recordingDeviceId: string | null;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
84
|
-
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
85
|
-
* the recording failed to start.
|
|
86
|
-
*/
|
|
87
|
-
recordingId: string | null;
|
|
88
|
-
|
|
89
|
-
startedAt: string | null;
|
|
90
|
-
|
|
91
|
-
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
92
|
-
|
|
93
|
-
triggerId: string;
|
|
94
|
-
|
|
95
|
-
triggerName: string | null;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
99
|
-
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
100
|
-
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
101
|
-
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
102
|
-
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
103
|
-
* clients must not assume its presence.
|
|
104
|
-
*/
|
|
105
|
-
result?: unknown;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export namespace Data {
|
|
109
|
-
export interface File {
|
|
110
|
-
fileId: string;
|
|
111
|
-
|
|
112
|
-
filename: string;
|
|
113
|
-
|
|
114
|
-
mimeType: string;
|
|
115
|
-
|
|
116
|
-
sizeBytes: number;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export interface ExecutionListResponse {
|
|
122
|
-
items: Array<ExecutionListResponse.Item>;
|
|
123
|
-
|
|
124
|
-
pagination: Shared.Pagination;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export namespace ExecutionListResponse {
|
|
128
|
-
export interface Item {
|
|
129
|
-
id: string;
|
|
130
|
-
|
|
131
|
-
createdBy: string | null;
|
|
132
|
-
|
|
133
|
-
error: string | null;
|
|
134
|
-
|
|
135
|
-
eventId: string | null;
|
|
136
|
-
|
|
137
|
-
finishedAt: string | null;
|
|
138
|
-
|
|
139
|
-
flowId: string;
|
|
140
|
-
|
|
141
|
-
flowName: string | null;
|
|
142
|
-
|
|
143
|
-
kind: 'live' | 'dry_run';
|
|
144
|
-
|
|
145
|
-
recordingDeviceId: string | null;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
149
|
-
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
150
|
-
* the recording failed to start.
|
|
151
|
-
*/
|
|
152
|
-
recordingId: string | null;
|
|
153
|
-
|
|
154
|
-
startedAt: string | null;
|
|
155
|
-
|
|
156
|
-
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
157
|
-
|
|
158
|
-
triggerId: string;
|
|
159
|
-
|
|
160
|
-
triggerName: string | null;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
164
|
-
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
165
|
-
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
166
|
-
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
167
|
-
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
168
|
-
* clients must not assume its presence.
|
|
169
|
-
*/
|
|
170
|
-
result?: unknown;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export interface ExecutionAbortResponse {
|
|
175
|
-
data: ExecutionAbortResponse.Data;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export namespace ExecutionAbortResponse {
|
|
179
|
-
export interface Data {
|
|
180
|
-
id: string;
|
|
181
|
-
|
|
182
|
-
error: string | null;
|
|
183
|
-
|
|
184
|
-
eventId: string | null;
|
|
185
|
-
|
|
186
|
-
finishedAt: string | null;
|
|
187
|
-
|
|
188
|
-
flowId: string;
|
|
189
|
-
|
|
190
|
-
flowName: string | null;
|
|
191
|
-
|
|
192
|
-
kind: 'live' | 'dry_run';
|
|
193
|
-
|
|
194
|
-
recordingDeviceId: string | null;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
198
|
-
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
199
|
-
* the recording failed to start.
|
|
200
|
-
*/
|
|
201
|
-
recordingId: string | null;
|
|
202
|
-
|
|
203
|
-
startedAt: string | null;
|
|
204
|
-
|
|
205
|
-
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
206
|
-
|
|
207
|
-
triggerId: string;
|
|
208
|
-
|
|
209
|
-
triggerName: string | null;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
213
|
-
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
214
|
-
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
215
|
-
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
216
|
-
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
217
|
-
* clients must not assume its presence.
|
|
218
|
-
*/
|
|
219
|
-
result?: unknown;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export interface ExecutionGetMetricsResponse {
|
|
224
|
-
data: ExecutionGetMetricsResponse.Data;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export namespace ExecutionGetMetricsResponse {
|
|
228
|
-
export interface Data {
|
|
229
|
-
avgDurationMs: number | null;
|
|
230
|
-
|
|
231
|
-
byStatus: Data.ByStatus;
|
|
232
|
-
|
|
233
|
-
lastExecutionAt: string | null;
|
|
234
|
-
|
|
235
|
-
total: number;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export namespace Data {
|
|
239
|
-
export interface ByStatus {
|
|
240
|
-
cancelled: number;
|
|
241
|
-
|
|
242
|
-
failed: number;
|
|
243
|
-
|
|
244
|
-
invalid: number;
|
|
245
|
-
|
|
246
|
-
pending: number;
|
|
247
|
-
|
|
248
|
-
running: number;
|
|
249
|
-
|
|
250
|
-
skipped: number;
|
|
251
|
-
|
|
252
|
-
success: number;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
export interface ExecutionListParams {
|
|
258
|
-
flowId?: string;
|
|
259
|
-
|
|
260
|
-
from?: string | null;
|
|
261
|
-
|
|
262
|
-
orderBy?: 'startedAt' | 'finishedAt' | 'status';
|
|
263
|
-
|
|
264
|
-
orderByDirection?: 'asc' | 'desc';
|
|
265
|
-
|
|
266
|
-
page?: number;
|
|
267
|
-
|
|
268
|
-
pageSize?: number;
|
|
269
|
-
|
|
270
|
-
search?: string;
|
|
271
|
-
|
|
272
|
-
status?: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid';
|
|
273
|
-
|
|
274
|
-
to?: string | null;
|
|
275
|
-
|
|
276
|
-
triggerId?: string;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export interface ExecutionGetMetricsParams {
|
|
280
|
-
flowId?: string;
|
|
281
|
-
|
|
282
|
-
from?: string | null;
|
|
283
|
-
|
|
284
|
-
to?: string | null;
|
|
285
|
-
|
|
286
|
-
triggerId?: string;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
export declare namespace Executions {
|
|
290
|
-
export {
|
|
291
|
-
type ExecutionRetrieveResponse as ExecutionRetrieveResponse,
|
|
292
|
-
type ExecutionListResponse as ExecutionListResponse,
|
|
293
|
-
type ExecutionAbortResponse as ExecutionAbortResponse,
|
|
294
|
-
type ExecutionGetMetricsResponse as ExecutionGetMetricsResponse,
|
|
295
|
-
type ExecutionListParams as ExecutionListParams,
|
|
296
|
-
type ExecutionGetMetricsParams as ExecutionGetMetricsParams,
|
|
297
|
-
};
|
|
298
|
-
}
|
|
3
|
+
export * from './executions/index';
|
|
@@ -19,6 +19,10 @@ export class Actions extends APIResource {
|
|
|
19
19
|
* under a `parentFlowActionId` or supplying its own `children`. Supports a
|
|
20
20
|
* `nameOverride`, param `overrides`, and `continueOnError`. Returns 404 if the
|
|
21
21
|
* flow does not exist.
|
|
22
|
+
*
|
|
23
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
24
|
+
* characters). Replays with the same key and an identical body return the original
|
|
25
|
+
* 201; a changed body under the same key returns 422 `idempotency_key_reused`.
|
|
22
26
|
*/
|
|
23
27
|
add(flowID: string, body: ActionAddParams, options?: RequestOptions): APIPromise<ActionAddResponse> {
|
|
24
28
|
return this._client.post(path`/flows/${flowID}/actions`, { body, ...options });
|
|
@@ -68,6 +72,8 @@ export namespace ActionListResponse {
|
|
|
68
72
|
|
|
69
73
|
flowId: string;
|
|
70
74
|
|
|
75
|
+
key: string;
|
|
76
|
+
|
|
71
77
|
nameOverride: string | null;
|
|
72
78
|
|
|
73
79
|
overrides: Data.Overrides | null;
|
|
@@ -75,6 +81,12 @@ export namespace ActionListResponse {
|
|
|
75
81
|
parentFlowActionId: string | null;
|
|
76
82
|
|
|
77
83
|
position: number;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Selected for per-step recording under the flow's "selected_steps" recording
|
|
87
|
+
* policy.
|
|
88
|
+
*/
|
|
89
|
+
recordingEnabled: boolean;
|
|
78
90
|
}
|
|
79
91
|
|
|
80
92
|
export namespace Data {
|
|
@@ -100,6 +112,8 @@ export namespace ActionAddResponse {
|
|
|
100
112
|
|
|
101
113
|
flowId: string;
|
|
102
114
|
|
|
115
|
+
key: string;
|
|
116
|
+
|
|
103
117
|
nameOverride: string | null;
|
|
104
118
|
|
|
105
119
|
overrides: Data.Overrides | null;
|
|
@@ -107,6 +121,12 @@ export namespace ActionAddResponse {
|
|
|
107
121
|
parentFlowActionId: string | null;
|
|
108
122
|
|
|
109
123
|
position: number;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Selected for per-step recording under the flow's "selected_steps" recording
|
|
127
|
+
* policy.
|
|
128
|
+
*/
|
|
129
|
+
recordingEnabled: boolean;
|
|
110
130
|
}
|
|
111
131
|
|
|
112
132
|
export namespace Data {
|
|
@@ -136,6 +156,8 @@ export namespace ActionReplaceResponse {
|
|
|
136
156
|
|
|
137
157
|
flowId: string;
|
|
138
158
|
|
|
159
|
+
key: string;
|
|
160
|
+
|
|
139
161
|
nameOverride: string | null;
|
|
140
162
|
|
|
141
163
|
overrides: Data.Overrides | null;
|
|
@@ -143,6 +165,12 @@ export namespace ActionReplaceResponse {
|
|
|
143
165
|
parentFlowActionId: string | null;
|
|
144
166
|
|
|
145
167
|
position: number;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Selected for per-step recording under the flow's "selected_steps" recording
|
|
171
|
+
* policy.
|
|
172
|
+
*/
|
|
173
|
+
recordingEnabled: boolean;
|
|
146
174
|
}
|
|
147
175
|
|
|
148
176
|
export namespace Data {
|
|
@@ -161,11 +189,22 @@ export interface ActionAddParams {
|
|
|
161
189
|
|
|
162
190
|
continueOnError?: boolean;
|
|
163
191
|
|
|
192
|
+
/**
|
|
193
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
194
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
195
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
196
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
197
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
198
|
+
*/
|
|
199
|
+
key?: string;
|
|
200
|
+
|
|
164
201
|
nameOverride?: string;
|
|
165
202
|
|
|
166
203
|
overrides?: ActionAddParams.Overrides | null;
|
|
167
204
|
|
|
168
205
|
parentFlowActionId?: string | null;
|
|
206
|
+
|
|
207
|
+
recordingEnabled?: boolean;
|
|
169
208
|
}
|
|
170
209
|
|
|
171
210
|
export namespace ActionAddParams {
|
|
@@ -176,9 +215,20 @@ export namespace ActionAddParams {
|
|
|
176
215
|
|
|
177
216
|
continueOnError?: boolean;
|
|
178
217
|
|
|
218
|
+
/**
|
|
219
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
220
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
221
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
222
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
223
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
224
|
+
*/
|
|
225
|
+
key?: string;
|
|
226
|
+
|
|
179
227
|
nameOverride?: string;
|
|
180
228
|
|
|
181
229
|
overrides?: Child.Overrides | null;
|
|
230
|
+
|
|
231
|
+
recordingEnabled?: boolean;
|
|
182
232
|
}
|
|
183
233
|
|
|
184
234
|
export namespace Child {
|
|
@@ -210,9 +260,20 @@ export namespace ActionReplaceParams {
|
|
|
210
260
|
|
|
211
261
|
continueOnError?: boolean;
|
|
212
262
|
|
|
263
|
+
/**
|
|
264
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
265
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
266
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
267
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
268
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
269
|
+
*/
|
|
270
|
+
key?: string;
|
|
271
|
+
|
|
213
272
|
nameOverride?: string;
|
|
214
273
|
|
|
215
274
|
overrides?: Action.Overrides | null;
|
|
275
|
+
|
|
276
|
+
recordingEnabled?: boolean;
|
|
216
277
|
}
|
|
217
278
|
|
|
218
279
|
export namespace Action {
|
|
@@ -223,9 +284,20 @@ export namespace ActionReplaceParams {
|
|
|
223
284
|
|
|
224
285
|
continueOnError?: boolean;
|
|
225
286
|
|
|
287
|
+
/**
|
|
288
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
289
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
290
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
291
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
292
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
293
|
+
*/
|
|
294
|
+
key?: string;
|
|
295
|
+
|
|
226
296
|
nameOverride?: string;
|
|
227
297
|
|
|
228
298
|
overrides?: Child.Overrides | null;
|
|
299
|
+
|
|
300
|
+
recordingEnabled?: boolean;
|
|
229
301
|
}
|
|
230
302
|
|
|
231
303
|
export namespace Child {
|