@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
|
@@ -11,6 +11,10 @@ export declare class Flows extends APIResource {
|
|
|
11
11
|
* with at least one action required. Optional settings include target `deviceIds`,
|
|
12
12
|
* a cooldown (`cooldownSeconds`/`cooldownScope`), and webhook notifications on
|
|
13
13
|
* success or failure.
|
|
14
|
+
*
|
|
15
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
16
|
+
* characters). Replays with the same key and an identical body return the original
|
|
17
|
+
* 201; a changed body under the same key returns 422 `idempotency_key_reused`.
|
|
14
18
|
*/
|
|
15
19
|
create(body: FlowCreateParams, options?: RequestOptions): APIPromise<FlowCreateResponse>;
|
|
16
20
|
/**
|
|
@@ -33,15 +37,41 @@ export declare class Flows extends APIResource {
|
|
|
33
37
|
*/
|
|
34
38
|
list(query?: FlowListParams | null | undefined, options?: RequestOptions): APIPromise<FlowListResponse>;
|
|
35
39
|
/**
|
|
36
|
-
*
|
|
40
|
+
* Terminally archive a flow by its ID. Archived flows cannot be restored and are
|
|
41
|
+
* hidden from customer reads. Repeating the request is idempotent for the owner.
|
|
37
42
|
*/
|
|
38
43
|
delete(flowID: string, options?: RequestOptions): APIPromise<FlowDeleteResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Activate a disabled flow only when the supplied verification execution succeeded
|
|
46
|
+
* and the flow graph has not changed since verification. Repeating activation is
|
|
47
|
+
* idempotent for an already-enabled flow.
|
|
48
|
+
*/
|
|
49
|
+
activate(flowID: string, body: FlowActivateParams, options?: RequestOptions): APIPromise<FlowActivateResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Returns an owner-scoped snapshot of finite included workflow-agent capacity
|
|
52
|
+
* after locally stored enabled and disabled agents. Available only while slot
|
|
53
|
+
* enforcement is enabled; otherwise returns 503. This is advisory; create and
|
|
54
|
+
* clone perform authoritative admission under an owner lock.
|
|
55
|
+
*/
|
|
56
|
+
capacity(options?: RequestOptions): APIPromise<FlowCapacityResponse>;
|
|
39
57
|
/**
|
|
40
58
|
* Create a copy of an existing flow, including its actions and settings. The
|
|
41
59
|
* optional body can override the new flow's `name` and target `deviceIds`. Returns
|
|
42
60
|
* 404 if the source flow does not exist.
|
|
61
|
+
*
|
|
62
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
63
|
+
* characters). Replays with the same key and an identical body return the original
|
|
64
|
+
* 201; a changed body under the same key returns 422 `idempotency_key_reused`.
|
|
43
65
|
*/
|
|
44
66
|
clone(flowID: string, body?: FlowCloneParams | null | undefined, options?: RequestOptions): APIPromise<FlowCloneResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Return the recording/delivery readiness for a flow (recording mode, whether
|
|
69
|
+
* delivery can include the recording, whether a files.upload action exists, the
|
|
70
|
+
* first direct OneDrive/Google Drive upload step if any) plus, per destination,
|
|
71
|
+
* whether the flow owner has an active integrations-api connection. Returns 404 if
|
|
72
|
+
* the flow does not exist.
|
|
73
|
+
*/
|
|
74
|
+
deliveryOptions(flowID: string, options?: RequestOptions): APIPromise<FlowDeliveryOptionsResponse>;
|
|
45
75
|
/**
|
|
46
76
|
* Simulate this flow firing without storing events, enqueuing jobs, or consuming
|
|
47
77
|
* cooldown/rate-limit slots.
|
|
@@ -63,11 +93,52 @@ export declare class Flows extends APIResource {
|
|
|
63
93
|
* List self-healing repair episodes
|
|
64
94
|
*/
|
|
65
95
|
listRepairs(flowID: string, options?: RequestOptions): APIPromise<FlowListRepairsResponse>;
|
|
96
|
+
/**
|
|
97
|
+
* Immediately enqueue one live execution on every device bound to the flow,
|
|
98
|
+
* regardless of whether its trigger is event-based, custom, or scheduled.
|
|
99
|
+
*
|
|
100
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
101
|
+
* characters). The run identity is derived from the key, so a retry never starts a
|
|
102
|
+
* second run. Replays with the same key and an identical body return the original
|
|
103
|
+
* status and the original `executionIds`; a changed body under the same key
|
|
104
|
+
* returns 422 `idempotency_key_reused`.
|
|
105
|
+
*/
|
|
106
|
+
run(flowID: string, body?: FlowRunParams | null | undefined, options?: RequestOptions): APIPromise<FlowRunResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* Get flow template context
|
|
109
|
+
*/
|
|
110
|
+
templateContext(query?: FlowTemplateContextParams | null | undefined, options?: RequestOptions): APIPromise<FlowTemplateContextResponse>;
|
|
66
111
|
/**
|
|
67
112
|
* Clear a flow's blocked status after fixing the underlying issue. Idempotent —
|
|
68
113
|
* safe to call on already-healthy flows.
|
|
69
114
|
*/
|
|
70
115
|
unblock(flowID: string, options?: RequestOptions): APIPromise<FlowUnblockResponse>;
|
|
116
|
+
/**
|
|
117
|
+
* Validate a flow
|
|
118
|
+
*/
|
|
119
|
+
validate(body: FlowValidateParams, options?: RequestOptions): APIPromise<FlowValidateResponse>;
|
|
120
|
+
/**
|
|
121
|
+
* Run a bound, deduplicated **verification** of this flow on exactly one device
|
|
122
|
+
* through the real worker.
|
|
123
|
+
*
|
|
124
|
+
* Unlike a normal trigger firing, verification:
|
|
125
|
+
*
|
|
126
|
+
* - runs a flow that is `enabled` OR `disabled` (an archived flow returns 404);
|
|
127
|
+
* - targets one device (`deviceId`, or the single bound device);
|
|
128
|
+
* - is idempotent per `invocationId`: a repeat returns the existing run
|
|
129
|
+
* (`deduplicated: true`, HTTP 200) instead of enqueuing another (HTTP 202);
|
|
130
|
+
* - never mutates flow health, `lastTriggeredAt`, or the repair loop.
|
|
131
|
+
*
|
|
132
|
+
* Per-activation payload gate:
|
|
133
|
+
*
|
|
134
|
+
* - `custom`: validates the payload against the custom payload schema (422 on
|
|
135
|
+
* failure).
|
|
136
|
+
* - `event`: validates the payload against the event catalog schema and evaluates
|
|
137
|
+
* the trigger conditions; a failing gate returns 409 `conditions_not_met` with
|
|
138
|
+
* the dry-run report.
|
|
139
|
+
* - `schedule`: the payload is ignored.
|
|
140
|
+
*/
|
|
141
|
+
verify(flowID: string, body: FlowVerifyParams, options?: RequestOptions): APIPromise<FlowVerifyResponse>;
|
|
71
142
|
}
|
|
72
143
|
export interface FlowCreateResponse {
|
|
73
144
|
data: FlowCreateResponse.Data;
|
|
@@ -75,33 +146,46 @@ export interface FlowCreateResponse {
|
|
|
75
146
|
export declare namespace FlowCreateResponse {
|
|
76
147
|
interface Data {
|
|
77
148
|
id: string;
|
|
149
|
+
archivedAt: string | null;
|
|
78
150
|
blockedAt: string | null;
|
|
79
151
|
consecutiveFailures: number;
|
|
80
152
|
cooldownScope: 'flow' | 'device';
|
|
81
153
|
cooldownSeconds: number | null;
|
|
82
154
|
createdAt: string | null;
|
|
83
155
|
createdBy: string | null;
|
|
156
|
+
delivery: Data.Delivery | null;
|
|
84
157
|
description: string | null;
|
|
85
158
|
deviceIds: Array<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
|
|
161
|
+
* enabled.
|
|
162
|
+
*/
|
|
86
163
|
enabled: boolean;
|
|
87
164
|
healthMonitoringEnabled: boolean;
|
|
88
165
|
lastFailureAt: string | null;
|
|
89
166
|
lastFailureCode: 'device_not_found' | 'permission_denied' | 'client_error' | 'transient' | 'logic' | 'invalid_config' | null;
|
|
90
167
|
lastTriggeredAt: string | null;
|
|
168
|
+
lifecycleStatus: 'enabled' | 'disabled' | 'archived';
|
|
91
169
|
name: string;
|
|
92
170
|
notifyOnFailure: boolean;
|
|
93
171
|
notifyOnSuccess: boolean;
|
|
94
172
|
notifyWebhookId: string | null;
|
|
95
173
|
ownerId: string;
|
|
174
|
+
/**
|
|
175
|
+
* @deprecated Deprecated: use recordingPolicy.mode ("flow" =
|
|
176
|
+
* recordingEnabled=true, "off" = recordingEnabled=false).
|
|
177
|
+
*/
|
|
96
178
|
recordingEnabled: boolean;
|
|
179
|
+
recordingPolicy: Data.RecordingPolicy;
|
|
97
180
|
selfHealingEnabled: boolean;
|
|
98
181
|
selfHealingMaxAttempts: number;
|
|
99
182
|
status: 'healthy' | 'failing' | 'blocked';
|
|
100
183
|
/**
|
|
101
184
|
* Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
|
|
102
185
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
103
|
-
* a whole-token null stays JSON null).
|
|
104
|
-
*
|
|
186
|
+
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
187
|
+
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
188
|
+
* Existing flows stay 1; new flows default to the current version.
|
|
105
189
|
*/
|
|
106
190
|
templateResolutionVersion: number;
|
|
107
191
|
triggerId: string;
|
|
@@ -111,6 +195,22 @@ export declare namespace FlowCreateResponse {
|
|
|
111
195
|
*/
|
|
112
196
|
userId: string;
|
|
113
197
|
}
|
|
198
|
+
namespace Data {
|
|
199
|
+
interface Delivery {
|
|
200
|
+
destination: 'one_drive' | 'google_drive';
|
|
201
|
+
folder?: string;
|
|
202
|
+
recording?: Delivery.Recording;
|
|
203
|
+
screenshots?: unknown;
|
|
204
|
+
}
|
|
205
|
+
namespace Delivery {
|
|
206
|
+
interface Recording {
|
|
207
|
+
filename: string;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
interface RecordingPolicy {
|
|
211
|
+
mode: 'off' | 'flow' | 'selected_steps';
|
|
212
|
+
}
|
|
213
|
+
}
|
|
114
214
|
}
|
|
115
215
|
export interface FlowRetrieveResponse {
|
|
116
216
|
data: FlowRetrieveResponse.Data;
|
|
@@ -118,33 +218,46 @@ export interface FlowRetrieveResponse {
|
|
|
118
218
|
export declare namespace FlowRetrieveResponse {
|
|
119
219
|
interface Data {
|
|
120
220
|
id: string;
|
|
221
|
+
archivedAt: string | null;
|
|
121
222
|
blockedAt: string | null;
|
|
122
223
|
consecutiveFailures: number;
|
|
123
224
|
cooldownScope: 'flow' | 'device';
|
|
124
225
|
cooldownSeconds: number | null;
|
|
125
226
|
createdAt: string | null;
|
|
126
227
|
createdBy: string | null;
|
|
228
|
+
delivery: Data.Delivery | null;
|
|
127
229
|
description: string | null;
|
|
128
230
|
deviceIds: Array<string>;
|
|
231
|
+
/**
|
|
232
|
+
* Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
|
|
233
|
+
* enabled.
|
|
234
|
+
*/
|
|
129
235
|
enabled: boolean;
|
|
130
236
|
healthMonitoringEnabled: boolean;
|
|
131
237
|
lastFailureAt: string | null;
|
|
132
238
|
lastFailureCode: 'device_not_found' | 'permission_denied' | 'client_error' | 'transient' | 'logic' | 'invalid_config' | null;
|
|
133
239
|
lastTriggeredAt: string | null;
|
|
240
|
+
lifecycleStatus: 'enabled' | 'disabled' | 'archived';
|
|
134
241
|
name: string;
|
|
135
242
|
notifyOnFailure: boolean;
|
|
136
243
|
notifyOnSuccess: boolean;
|
|
137
244
|
notifyWebhookId: string | null;
|
|
138
245
|
ownerId: string;
|
|
246
|
+
/**
|
|
247
|
+
* @deprecated Deprecated: use recordingPolicy.mode ("flow" =
|
|
248
|
+
* recordingEnabled=true, "off" = recordingEnabled=false).
|
|
249
|
+
*/
|
|
139
250
|
recordingEnabled: boolean;
|
|
251
|
+
recordingPolicy: Data.RecordingPolicy;
|
|
140
252
|
selfHealingEnabled: boolean;
|
|
141
253
|
selfHealingMaxAttempts: number;
|
|
142
254
|
status: 'healthy' | 'failing' | 'blocked';
|
|
143
255
|
/**
|
|
144
256
|
* Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
|
|
145
257
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
146
|
-
* a whole-token null stays JSON null).
|
|
147
|
-
*
|
|
258
|
+
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
259
|
+
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
260
|
+
* Existing flows stay 1; new flows default to the current version.
|
|
148
261
|
*/
|
|
149
262
|
templateResolutionVersion: number;
|
|
150
263
|
triggerId: string;
|
|
@@ -154,6 +267,22 @@ export declare namespace FlowRetrieveResponse {
|
|
|
154
267
|
*/
|
|
155
268
|
userId: string;
|
|
156
269
|
}
|
|
270
|
+
namespace Data {
|
|
271
|
+
interface Delivery {
|
|
272
|
+
destination: 'one_drive' | 'google_drive';
|
|
273
|
+
folder?: string;
|
|
274
|
+
recording?: Delivery.Recording;
|
|
275
|
+
screenshots?: unknown;
|
|
276
|
+
}
|
|
277
|
+
namespace Delivery {
|
|
278
|
+
interface Recording {
|
|
279
|
+
filename: string;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
interface RecordingPolicy {
|
|
283
|
+
mode: 'off' | 'flow' | 'selected_steps';
|
|
284
|
+
}
|
|
285
|
+
}
|
|
157
286
|
}
|
|
158
287
|
export interface FlowUpdateResponse {
|
|
159
288
|
data: FlowUpdateResponse.Data;
|
|
@@ -161,33 +290,46 @@ export interface FlowUpdateResponse {
|
|
|
161
290
|
export declare namespace FlowUpdateResponse {
|
|
162
291
|
interface Data {
|
|
163
292
|
id: string;
|
|
293
|
+
archivedAt: string | null;
|
|
164
294
|
blockedAt: string | null;
|
|
165
295
|
consecutiveFailures: number;
|
|
166
296
|
cooldownScope: 'flow' | 'device';
|
|
167
297
|
cooldownSeconds: number | null;
|
|
168
298
|
createdAt: string | null;
|
|
169
299
|
createdBy: string | null;
|
|
300
|
+
delivery: Data.Delivery | null;
|
|
170
301
|
description: string | null;
|
|
171
302
|
deviceIds: Array<string>;
|
|
303
|
+
/**
|
|
304
|
+
* Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
|
|
305
|
+
* enabled.
|
|
306
|
+
*/
|
|
172
307
|
enabled: boolean;
|
|
173
308
|
healthMonitoringEnabled: boolean;
|
|
174
309
|
lastFailureAt: string | null;
|
|
175
310
|
lastFailureCode: 'device_not_found' | 'permission_denied' | 'client_error' | 'transient' | 'logic' | 'invalid_config' | null;
|
|
176
311
|
lastTriggeredAt: string | null;
|
|
312
|
+
lifecycleStatus: 'enabled' | 'disabled' | 'archived';
|
|
177
313
|
name: string;
|
|
178
314
|
notifyOnFailure: boolean;
|
|
179
315
|
notifyOnSuccess: boolean;
|
|
180
316
|
notifyWebhookId: string | null;
|
|
181
317
|
ownerId: string;
|
|
318
|
+
/**
|
|
319
|
+
* @deprecated Deprecated: use recordingPolicy.mode ("flow" =
|
|
320
|
+
* recordingEnabled=true, "off" = recordingEnabled=false).
|
|
321
|
+
*/
|
|
182
322
|
recordingEnabled: boolean;
|
|
323
|
+
recordingPolicy: Data.RecordingPolicy;
|
|
183
324
|
selfHealingEnabled: boolean;
|
|
184
325
|
selfHealingMaxAttempts: number;
|
|
185
326
|
status: 'healthy' | 'failing' | 'blocked';
|
|
186
327
|
/**
|
|
187
328
|
* Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
|
|
188
329
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
189
|
-
* a whole-token null stays JSON null).
|
|
190
|
-
*
|
|
330
|
+
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
331
|
+
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
332
|
+
* Existing flows stay 1; new flows default to the current version.
|
|
191
333
|
*/
|
|
192
334
|
templateResolutionVersion: number;
|
|
193
335
|
triggerId: string;
|
|
@@ -197,6 +339,22 @@ export declare namespace FlowUpdateResponse {
|
|
|
197
339
|
*/
|
|
198
340
|
userId: string;
|
|
199
341
|
}
|
|
342
|
+
namespace Data {
|
|
343
|
+
interface Delivery {
|
|
344
|
+
destination: 'one_drive' | 'google_drive';
|
|
345
|
+
folder?: string;
|
|
346
|
+
recording?: Delivery.Recording;
|
|
347
|
+
screenshots?: unknown;
|
|
348
|
+
}
|
|
349
|
+
namespace Delivery {
|
|
350
|
+
interface Recording {
|
|
351
|
+
filename: string;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
interface RecordingPolicy {
|
|
355
|
+
mode: 'off' | 'flow' | 'selected_steps';
|
|
356
|
+
}
|
|
357
|
+
}
|
|
200
358
|
}
|
|
201
359
|
export interface FlowListResponse {
|
|
202
360
|
items: Array<FlowListResponse.Item>;
|
|
@@ -205,33 +363,46 @@ export interface FlowListResponse {
|
|
|
205
363
|
export declare namespace FlowListResponse {
|
|
206
364
|
interface Item {
|
|
207
365
|
id: string;
|
|
366
|
+
archivedAt: string | null;
|
|
208
367
|
blockedAt: string | null;
|
|
209
368
|
consecutiveFailures: number;
|
|
210
369
|
cooldownScope: 'flow' | 'device';
|
|
211
370
|
cooldownSeconds: number | null;
|
|
212
371
|
createdAt: string | null;
|
|
213
372
|
createdBy: string | null;
|
|
373
|
+
delivery: Item.Delivery | null;
|
|
214
374
|
description: string | null;
|
|
215
375
|
deviceIds: Array<string>;
|
|
376
|
+
/**
|
|
377
|
+
* Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
|
|
378
|
+
* enabled.
|
|
379
|
+
*/
|
|
216
380
|
enabled: boolean;
|
|
217
381
|
healthMonitoringEnabled: boolean;
|
|
218
382
|
lastFailureAt: string | null;
|
|
219
383
|
lastFailureCode: 'device_not_found' | 'permission_denied' | 'client_error' | 'transient' | 'logic' | 'invalid_config' | null;
|
|
220
384
|
lastTriggeredAt: string | null;
|
|
385
|
+
lifecycleStatus: 'enabled' | 'disabled' | 'archived';
|
|
221
386
|
name: string;
|
|
222
387
|
notifyOnFailure: boolean;
|
|
223
388
|
notifyOnSuccess: boolean;
|
|
224
389
|
notifyWebhookId: string | null;
|
|
225
390
|
ownerId: string;
|
|
391
|
+
/**
|
|
392
|
+
* @deprecated Deprecated: use recordingPolicy.mode ("flow" =
|
|
393
|
+
* recordingEnabled=true, "off" = recordingEnabled=false).
|
|
394
|
+
*/
|
|
226
395
|
recordingEnabled: boolean;
|
|
396
|
+
recordingPolicy: Item.RecordingPolicy;
|
|
227
397
|
selfHealingEnabled: boolean;
|
|
228
398
|
selfHealingMaxAttempts: number;
|
|
229
399
|
status: 'healthy' | 'failing' | 'blocked';
|
|
230
400
|
/**
|
|
231
401
|
* Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
|
|
232
402
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
233
|
-
* a whole-token null stays JSON null).
|
|
234
|
-
*
|
|
403
|
+
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
404
|
+
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
405
|
+
* Existing flows stay 1; new flows default to the current version.
|
|
235
406
|
*/
|
|
236
407
|
templateResolutionVersion: number;
|
|
237
408
|
triggerId: string;
|
|
@@ -241,43 +412,154 @@ export declare namespace FlowListResponse {
|
|
|
241
412
|
*/
|
|
242
413
|
userId: string;
|
|
243
414
|
}
|
|
415
|
+
namespace Item {
|
|
416
|
+
interface Delivery {
|
|
417
|
+
destination: 'one_drive' | 'google_drive';
|
|
418
|
+
folder?: string;
|
|
419
|
+
recording?: Delivery.Recording;
|
|
420
|
+
screenshots?: unknown;
|
|
421
|
+
}
|
|
422
|
+
namespace Delivery {
|
|
423
|
+
interface Recording {
|
|
424
|
+
filename: string;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
interface RecordingPolicy {
|
|
428
|
+
mode: 'off' | 'flow' | 'selected_steps';
|
|
429
|
+
}
|
|
430
|
+
}
|
|
244
431
|
}
|
|
245
432
|
export interface FlowDeleteResponse {
|
|
246
433
|
message: string;
|
|
247
434
|
}
|
|
435
|
+
export interface FlowActivateResponse {
|
|
436
|
+
data: FlowActivateResponse.Data;
|
|
437
|
+
}
|
|
438
|
+
export declare namespace FlowActivateResponse {
|
|
439
|
+
interface Data {
|
|
440
|
+
id: string;
|
|
441
|
+
archivedAt: string | null;
|
|
442
|
+
blockedAt: string | null;
|
|
443
|
+
consecutiveFailures: number;
|
|
444
|
+
cooldownScope: 'flow' | 'device';
|
|
445
|
+
cooldownSeconds: number | null;
|
|
446
|
+
createdAt: string | null;
|
|
447
|
+
createdBy: string | null;
|
|
448
|
+
delivery: Data.Delivery | null;
|
|
449
|
+
description: string | null;
|
|
450
|
+
deviceIds: Array<string>;
|
|
451
|
+
/**
|
|
452
|
+
* Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
|
|
453
|
+
* enabled.
|
|
454
|
+
*/
|
|
455
|
+
enabled: boolean;
|
|
456
|
+
healthMonitoringEnabled: boolean;
|
|
457
|
+
lastFailureAt: string | null;
|
|
458
|
+
lastFailureCode: 'device_not_found' | 'permission_denied' | 'client_error' | 'transient' | 'logic' | 'invalid_config' | null;
|
|
459
|
+
lastTriggeredAt: string | null;
|
|
460
|
+
lifecycleStatus: 'enabled' | 'disabled' | 'archived';
|
|
461
|
+
name: string;
|
|
462
|
+
notifyOnFailure: boolean;
|
|
463
|
+
notifyOnSuccess: boolean;
|
|
464
|
+
notifyWebhookId: string | null;
|
|
465
|
+
ownerId: string;
|
|
466
|
+
/**
|
|
467
|
+
* @deprecated Deprecated: use recordingPolicy.mode ("flow" =
|
|
468
|
+
* recordingEnabled=true, "off" = recordingEnabled=false).
|
|
469
|
+
*/
|
|
470
|
+
recordingEnabled: boolean;
|
|
471
|
+
recordingPolicy: Data.RecordingPolicy;
|
|
472
|
+
selfHealingEnabled: boolean;
|
|
473
|
+
selfHealingMaxAttempts: number;
|
|
474
|
+
status: 'healthy' | 'failing' | 'blocked';
|
|
475
|
+
/**
|
|
476
|
+
* Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
|
|
477
|
+
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
478
|
+
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
479
|
+
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
480
|
+
* Existing flows stay 1; new flows default to the current version.
|
|
481
|
+
*/
|
|
482
|
+
templateResolutionVersion: number;
|
|
483
|
+
triggerId: string;
|
|
484
|
+
updatedAt: string | null;
|
|
485
|
+
/**
|
|
486
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
487
|
+
*/
|
|
488
|
+
userId: string;
|
|
489
|
+
}
|
|
490
|
+
namespace Data {
|
|
491
|
+
interface Delivery {
|
|
492
|
+
destination: 'one_drive' | 'google_drive';
|
|
493
|
+
folder?: string;
|
|
494
|
+
recording?: Delivery.Recording;
|
|
495
|
+
screenshots?: unknown;
|
|
496
|
+
}
|
|
497
|
+
namespace Delivery {
|
|
498
|
+
interface Recording {
|
|
499
|
+
filename: string;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
interface RecordingPolicy {
|
|
503
|
+
mode: 'off' | 'flow' | 'selected_steps';
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
export interface FlowCapacityResponse {
|
|
508
|
+
data: FlowCapacityResponse.Data;
|
|
509
|
+
}
|
|
510
|
+
export declare namespace FlowCapacityResponse {
|
|
511
|
+
interface Data {
|
|
512
|
+
included: number;
|
|
513
|
+
remaining: number;
|
|
514
|
+
status: 'available' | 'exhausted' | 'not_included';
|
|
515
|
+
}
|
|
516
|
+
}
|
|
248
517
|
export interface FlowCloneResponse {
|
|
249
518
|
data: FlowCloneResponse.Data;
|
|
250
519
|
}
|
|
251
520
|
export declare namespace FlowCloneResponse {
|
|
252
521
|
interface Data {
|
|
253
522
|
id: string;
|
|
523
|
+
archivedAt: string | null;
|
|
254
524
|
blockedAt: string | null;
|
|
255
525
|
consecutiveFailures: number;
|
|
256
526
|
cooldownScope: 'flow' | 'device';
|
|
257
527
|
cooldownSeconds: number | null;
|
|
258
528
|
createdAt: string | null;
|
|
259
529
|
createdBy: string | null;
|
|
530
|
+
delivery: Data.Delivery | null;
|
|
260
531
|
description: string | null;
|
|
261
532
|
deviceIds: Array<string>;
|
|
533
|
+
/**
|
|
534
|
+
* Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
|
|
535
|
+
* enabled.
|
|
536
|
+
*/
|
|
262
537
|
enabled: boolean;
|
|
263
538
|
healthMonitoringEnabled: boolean;
|
|
264
539
|
lastFailureAt: string | null;
|
|
265
540
|
lastFailureCode: 'device_not_found' | 'permission_denied' | 'client_error' | 'transient' | 'logic' | 'invalid_config' | null;
|
|
266
541
|
lastTriggeredAt: string | null;
|
|
542
|
+
lifecycleStatus: 'enabled' | 'disabled' | 'archived';
|
|
267
543
|
name: string;
|
|
268
544
|
notifyOnFailure: boolean;
|
|
269
545
|
notifyOnSuccess: boolean;
|
|
270
546
|
notifyWebhookId: string | null;
|
|
271
547
|
ownerId: string;
|
|
548
|
+
/**
|
|
549
|
+
* @deprecated Deprecated: use recordingPolicy.mode ("flow" =
|
|
550
|
+
* recordingEnabled=true, "off" = recordingEnabled=false).
|
|
551
|
+
*/
|
|
272
552
|
recordingEnabled: boolean;
|
|
553
|
+
recordingPolicy: Data.RecordingPolicy;
|
|
273
554
|
selfHealingEnabled: boolean;
|
|
274
555
|
selfHealingMaxAttempts: number;
|
|
275
556
|
status: 'healthy' | 'failing' | 'blocked';
|
|
276
557
|
/**
|
|
277
558
|
* Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
|
|
278
559
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
279
|
-
* a whole-token null stays JSON null).
|
|
280
|
-
*
|
|
560
|
+
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
561
|
+
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
562
|
+
* Existing flows stay 1; new flows default to the current version.
|
|
281
563
|
*/
|
|
282
564
|
templateResolutionVersion: number;
|
|
283
565
|
triggerId: string;
|
|
@@ -287,6 +569,50 @@ export declare namespace FlowCloneResponse {
|
|
|
287
569
|
*/
|
|
288
570
|
userId: string;
|
|
289
571
|
}
|
|
572
|
+
namespace Data {
|
|
573
|
+
interface Delivery {
|
|
574
|
+
destination: 'one_drive' | 'google_drive';
|
|
575
|
+
folder?: string;
|
|
576
|
+
recording?: Delivery.Recording;
|
|
577
|
+
screenshots?: unknown;
|
|
578
|
+
}
|
|
579
|
+
namespace Delivery {
|
|
580
|
+
interface Recording {
|
|
581
|
+
filename: string;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
interface RecordingPolicy {
|
|
585
|
+
mode: 'off' | 'flow' | 'selected_steps';
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
export interface FlowDeliveryOptionsResponse {
|
|
590
|
+
data: FlowDeliveryOptionsResponse.Data;
|
|
591
|
+
}
|
|
592
|
+
export declare namespace FlowDeliveryOptionsResponse {
|
|
593
|
+
interface Data {
|
|
594
|
+
canDeliverRecording: boolean;
|
|
595
|
+
/**
|
|
596
|
+
* Delivery destinations in registry order.
|
|
597
|
+
*/
|
|
598
|
+
destinations: Array<Data.Destination>;
|
|
599
|
+
directUploadStep: Data.DirectUploadStep | null;
|
|
600
|
+
hasFilesUpload: boolean;
|
|
601
|
+
recordingMode: 'off' | 'flow' | 'selected_steps';
|
|
602
|
+
}
|
|
603
|
+
namespace Data {
|
|
604
|
+
interface Destination {
|
|
605
|
+
connection: 'connected' | 'not_connected' | 'expired' | 'unknown';
|
|
606
|
+
connectKey: string;
|
|
607
|
+
iconUrl: string | null;
|
|
608
|
+
key: 'one_drive' | 'google_drive';
|
|
609
|
+
label: string;
|
|
610
|
+
}
|
|
611
|
+
interface DirectUploadStep {
|
|
612
|
+
flowActionId: string;
|
|
613
|
+
name: string;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
290
616
|
}
|
|
291
617
|
export interface FlowDryRunResponse {
|
|
292
618
|
data: FlowDryRunResponse.Data;
|
|
@@ -305,9 +631,12 @@ export declare namespace FlowDryRunResponse {
|
|
|
305
631
|
namespace Data {
|
|
306
632
|
interface Action {
|
|
307
633
|
continueOnError: boolean;
|
|
634
|
+
flowActionId: string;
|
|
635
|
+
key: string;
|
|
308
636
|
method: string;
|
|
309
637
|
name: string;
|
|
310
|
-
|
|
638
|
+
recordingEnabled: boolean;
|
|
639
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
311
640
|
/**
|
|
312
641
|
* Nested child actions (loop/branch bodies), each the same shape as a
|
|
313
642
|
* ResolvedAction.
|
|
@@ -369,39 +698,96 @@ export declare namespace FlowListRepairsResponse {
|
|
|
369
698
|
}
|
|
370
699
|
}
|
|
371
700
|
}
|
|
701
|
+
export interface FlowRunResponse {
|
|
702
|
+
data: FlowRunResponse.Data;
|
|
703
|
+
}
|
|
704
|
+
export declare namespace FlowRunResponse {
|
|
705
|
+
interface Data {
|
|
706
|
+
enqueuedCount: number;
|
|
707
|
+
/**
|
|
708
|
+
* Ids of the executions this run created. An idempotent replay returns the ids of
|
|
709
|
+
* the original run.
|
|
710
|
+
*/
|
|
711
|
+
executionIds: Array<string>;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
export interface FlowTemplateContextResponse {
|
|
715
|
+
data: FlowTemplateContextResponse.Data;
|
|
716
|
+
}
|
|
717
|
+
export declare namespace FlowTemplateContextResponse {
|
|
718
|
+
interface Data {
|
|
719
|
+
grammar: string;
|
|
720
|
+
loop: Data.Loop;
|
|
721
|
+
payloadAliases: Array<string>;
|
|
722
|
+
roots: Array<Data.Root>;
|
|
723
|
+
stepReference: Data.StepReference;
|
|
724
|
+
templateResolutionVersion: number;
|
|
725
|
+
}
|
|
726
|
+
namespace Data {
|
|
727
|
+
interface Loop {
|
|
728
|
+
context: Array<string>;
|
|
729
|
+
itemVariableDefault: string;
|
|
730
|
+
name: string;
|
|
731
|
+
}
|
|
732
|
+
interface Root {
|
|
733
|
+
description: string;
|
|
734
|
+
name: string;
|
|
735
|
+
shape?: unknown;
|
|
736
|
+
}
|
|
737
|
+
interface StepReference {
|
|
738
|
+
note: string;
|
|
739
|
+
pattern: string;
|
|
740
|
+
keyRule?: string;
|
|
741
|
+
slugRule?: string;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
}
|
|
372
745
|
export interface FlowUnblockResponse {
|
|
373
746
|
data: FlowUnblockResponse.Data;
|
|
374
747
|
}
|
|
375
748
|
export declare namespace FlowUnblockResponse {
|
|
376
749
|
interface Data {
|
|
377
750
|
id: string;
|
|
751
|
+
archivedAt: string | null;
|
|
378
752
|
blockedAt: string | null;
|
|
379
753
|
consecutiveFailures: number;
|
|
380
754
|
cooldownScope: 'flow' | 'device';
|
|
381
755
|
cooldownSeconds: number | null;
|
|
382
756
|
createdAt: string | null;
|
|
383
757
|
createdBy: string | null;
|
|
758
|
+
delivery: Data.Delivery | null;
|
|
384
759
|
description: string | null;
|
|
385
760
|
deviceIds: Array<string>;
|
|
761
|
+
/**
|
|
762
|
+
* Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
|
|
763
|
+
* enabled.
|
|
764
|
+
*/
|
|
386
765
|
enabled: boolean;
|
|
387
766
|
healthMonitoringEnabled: boolean;
|
|
388
767
|
lastFailureAt: string | null;
|
|
389
768
|
lastFailureCode: 'device_not_found' | 'permission_denied' | 'client_error' | 'transient' | 'logic' | 'invalid_config' | null;
|
|
390
769
|
lastTriggeredAt: string | null;
|
|
770
|
+
lifecycleStatus: 'enabled' | 'disabled' | 'archived';
|
|
391
771
|
name: string;
|
|
392
772
|
notifyOnFailure: boolean;
|
|
393
773
|
notifyOnSuccess: boolean;
|
|
394
774
|
notifyWebhookId: string | null;
|
|
395
775
|
ownerId: string;
|
|
776
|
+
/**
|
|
777
|
+
* @deprecated Deprecated: use recordingPolicy.mode ("flow" =
|
|
778
|
+
* recordingEnabled=true, "off" = recordingEnabled=false).
|
|
779
|
+
*/
|
|
396
780
|
recordingEnabled: boolean;
|
|
781
|
+
recordingPolicy: Data.RecordingPolicy;
|
|
397
782
|
selfHealingEnabled: boolean;
|
|
398
783
|
selfHealingMaxAttempts: number;
|
|
399
784
|
status: 'healthy' | 'failing' | 'blocked';
|
|
400
785
|
/**
|
|
401
786
|
* Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
|
|
402
787
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
403
|
-
* a whole-token null stays JSON null).
|
|
404
|
-
*
|
|
788
|
+
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
789
|
+
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
790
|
+
* Existing flows stay 1; new flows default to the current version.
|
|
405
791
|
*/
|
|
406
792
|
templateResolutionVersion: number;
|
|
407
793
|
triggerId: string;
|
|
@@ -411,6 +797,70 @@ export declare namespace FlowUnblockResponse {
|
|
|
411
797
|
*/
|
|
412
798
|
userId: string;
|
|
413
799
|
}
|
|
800
|
+
namespace Data {
|
|
801
|
+
interface Delivery {
|
|
802
|
+
destination: 'one_drive' | 'google_drive';
|
|
803
|
+
folder?: string;
|
|
804
|
+
recording?: Delivery.Recording;
|
|
805
|
+
screenshots?: unknown;
|
|
806
|
+
}
|
|
807
|
+
namespace Delivery {
|
|
808
|
+
interface Recording {
|
|
809
|
+
filename: string;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
interface RecordingPolicy {
|
|
813
|
+
mode: 'off' | 'flow' | 'selected_steps';
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
export interface FlowValidateResponse {
|
|
818
|
+
data: FlowValidateResponse.Data;
|
|
819
|
+
}
|
|
820
|
+
export declare namespace FlowValidateResponse {
|
|
821
|
+
interface Data {
|
|
822
|
+
errors: Array<Data.Error>;
|
|
823
|
+
valid: boolean;
|
|
824
|
+
warnings: Array<Data.Warning>;
|
|
825
|
+
}
|
|
826
|
+
namespace Data {
|
|
827
|
+
interface Error {
|
|
828
|
+
code: string;
|
|
829
|
+
field: string;
|
|
830
|
+
message: string;
|
|
831
|
+
knownSteps?: Array<string>;
|
|
832
|
+
reference?: string;
|
|
833
|
+
}
|
|
834
|
+
interface Warning {
|
|
835
|
+
code: string;
|
|
836
|
+
message: string;
|
|
837
|
+
connectKey?: string;
|
|
838
|
+
destination?: string;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
export interface FlowVerifyResponse {
|
|
843
|
+
data: FlowVerifyResponse.Data;
|
|
844
|
+
}
|
|
845
|
+
export declare namespace FlowVerifyResponse {
|
|
846
|
+
interface Data {
|
|
847
|
+
/**
|
|
848
|
+
* True when this run already existed for the (flow, invocationId) key (HTTP 200);
|
|
849
|
+
* false for a newly enqueued run (HTTP 202).
|
|
850
|
+
*/
|
|
851
|
+
deduplicated: boolean;
|
|
852
|
+
/**
|
|
853
|
+
* Device the verification runs on; null for a device-free verification (a 0-device
|
|
854
|
+
* flow whose actions are all device-free allowlisted).
|
|
855
|
+
*/
|
|
856
|
+
deviceId: string | null;
|
|
857
|
+
executionId: string;
|
|
858
|
+
flowId: string;
|
|
859
|
+
invocationId: string;
|
|
860
|
+
kind: 'verification';
|
|
861
|
+
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid';
|
|
862
|
+
triggerId: string;
|
|
863
|
+
}
|
|
414
864
|
}
|
|
415
865
|
export interface FlowCreateParams {
|
|
416
866
|
actions: Array<FlowCreateParams.Action>;
|
|
@@ -418,6 +868,7 @@ export interface FlowCreateParams {
|
|
|
418
868
|
triggerId: string;
|
|
419
869
|
cooldownScope?: 'flow' | 'device';
|
|
420
870
|
cooldownSeconds?: number | null;
|
|
871
|
+
delivery?: FlowCreateParams.Delivery;
|
|
421
872
|
description?: string;
|
|
422
873
|
deviceIds?: Array<string>;
|
|
423
874
|
enabled?: boolean;
|
|
@@ -426,6 +877,7 @@ export interface FlowCreateParams {
|
|
|
426
877
|
notifyOnSuccess?: boolean;
|
|
427
878
|
notifyWebhookId?: string | null;
|
|
428
879
|
recordingEnabled?: boolean;
|
|
880
|
+
recordingPolicy?: FlowCreateParams.RecordingPolicy;
|
|
429
881
|
selfHealingEnabled?: boolean;
|
|
430
882
|
selfHealingMaxAttempts?: number;
|
|
431
883
|
}
|
|
@@ -435,16 +887,34 @@ export declare namespace FlowCreateParams {
|
|
|
435
887
|
position: number;
|
|
436
888
|
children?: Array<Action.Child>;
|
|
437
889
|
continueOnError?: boolean;
|
|
890
|
+
/**
|
|
891
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
892
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
893
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
894
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
895
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
896
|
+
*/
|
|
897
|
+
key?: string;
|
|
438
898
|
nameOverride?: string;
|
|
439
899
|
overrides?: Action.Overrides | null;
|
|
900
|
+
recordingEnabled?: boolean;
|
|
440
901
|
}
|
|
441
902
|
namespace Action {
|
|
442
903
|
interface Child {
|
|
443
904
|
actionId: string;
|
|
444
905
|
position: number;
|
|
445
906
|
continueOnError?: boolean;
|
|
907
|
+
/**
|
|
908
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
909
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
910
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
911
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
912
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
913
|
+
*/
|
|
914
|
+
key?: string;
|
|
446
915
|
nameOverride?: string;
|
|
447
916
|
overrides?: Child.Overrides | null;
|
|
917
|
+
recordingEnabled?: boolean;
|
|
448
918
|
}
|
|
449
919
|
namespace Child {
|
|
450
920
|
interface Overrides {
|
|
@@ -459,23 +929,63 @@ export declare namespace FlowCreateParams {
|
|
|
459
929
|
};
|
|
460
930
|
}
|
|
461
931
|
}
|
|
932
|
+
interface Delivery {
|
|
933
|
+
destination: 'one_drive' | 'google_drive';
|
|
934
|
+
folder?: string;
|
|
935
|
+
recording?: Delivery.Recording;
|
|
936
|
+
screenshots?: unknown;
|
|
937
|
+
}
|
|
938
|
+
namespace Delivery {
|
|
939
|
+
interface Recording {
|
|
940
|
+
filename: string;
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
interface RecordingPolicy {
|
|
944
|
+
mode: 'off' | 'flow' | 'selected_steps';
|
|
945
|
+
}
|
|
462
946
|
}
|
|
463
947
|
export interface FlowUpdateParams {
|
|
464
948
|
cooldownScope?: 'flow' | 'device';
|
|
465
949
|
cooldownSeconds?: number | null;
|
|
950
|
+
delivery?: FlowUpdateParams.Delivery | null;
|
|
466
951
|
description?: string;
|
|
467
952
|
deviceIds?: Array<string>;
|
|
468
953
|
enabled?: boolean;
|
|
469
954
|
healthMonitoringEnabled?: boolean;
|
|
955
|
+
/**
|
|
956
|
+
* Set the visible agent lifecycle. Archive remains available only through DELETE.
|
|
957
|
+
*/
|
|
958
|
+
lifecycleStatus?: 'enabled' | 'disabled';
|
|
470
959
|
name?: string;
|
|
471
960
|
notifyOnFailure?: boolean;
|
|
472
961
|
notifyOnSuccess?: boolean;
|
|
473
962
|
notifyWebhookId?: string | null;
|
|
963
|
+
/**
|
|
964
|
+
* @deprecated Deprecated compatibility field. true maps to
|
|
965
|
+
* recordingPolicy.mode="flow"; false maps to "off".
|
|
966
|
+
*/
|
|
474
967
|
recordingEnabled?: boolean;
|
|
968
|
+
recordingPolicy?: FlowUpdateParams.RecordingPolicy;
|
|
475
969
|
selfHealingEnabled?: boolean;
|
|
476
970
|
selfHealingMaxAttempts?: number;
|
|
477
971
|
triggerId?: string;
|
|
478
972
|
}
|
|
973
|
+
export declare namespace FlowUpdateParams {
|
|
974
|
+
interface Delivery {
|
|
975
|
+
destination: 'one_drive' | 'google_drive';
|
|
976
|
+
folder?: string;
|
|
977
|
+
recording?: Delivery.Recording;
|
|
978
|
+
screenshots?: unknown;
|
|
979
|
+
}
|
|
980
|
+
namespace Delivery {
|
|
981
|
+
interface Recording {
|
|
982
|
+
filename: string;
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
interface RecordingPolicy {
|
|
986
|
+
mode: 'off' | 'flow' | 'selected_steps';
|
|
987
|
+
}
|
|
988
|
+
}
|
|
479
989
|
export interface FlowListParams {
|
|
480
990
|
createdBy?: string;
|
|
481
991
|
/**
|
|
@@ -494,6 +1004,9 @@ export interface FlowListParams {
|
|
|
494
1004
|
status?: Array<'healthy' | 'failing' | 'blocked'>;
|
|
495
1005
|
triggerId?: string;
|
|
496
1006
|
}
|
|
1007
|
+
export interface FlowActivateParams {
|
|
1008
|
+
verificationExecutionId: string;
|
|
1009
|
+
}
|
|
497
1010
|
export interface FlowCloneParams {
|
|
498
1011
|
deviceIds?: Array<string>;
|
|
499
1012
|
name?: string;
|
|
@@ -503,8 +1016,146 @@ export interface FlowDryRunParams {
|
|
|
503
1016
|
[key: string]: unknown;
|
|
504
1017
|
};
|
|
505
1018
|
}
|
|
1019
|
+
export interface FlowRunParams {
|
|
1020
|
+
payload?: {
|
|
1021
|
+
[key: string]: unknown;
|
|
1022
|
+
};
|
|
1023
|
+
}
|
|
1024
|
+
export interface FlowTemplateContextParams {
|
|
1025
|
+
templateResolutionVersion?: number;
|
|
1026
|
+
}
|
|
1027
|
+
export interface FlowValidateParams {
|
|
1028
|
+
actions: Array<FlowValidateParams.FlowActionInput | FlowValidateParams.FlowDraftActionInput>;
|
|
1029
|
+
name: string;
|
|
1030
|
+
cooldownScope?: 'flow' | 'device';
|
|
1031
|
+
cooldownSeconds?: number | null;
|
|
1032
|
+
delivery?: FlowValidateParams.Delivery;
|
|
1033
|
+
description?: string;
|
|
1034
|
+
deviceIds?: Array<string>;
|
|
1035
|
+
enabled?: boolean;
|
|
1036
|
+
healthMonitoringEnabled?: boolean;
|
|
1037
|
+
notifyOnFailure?: boolean;
|
|
1038
|
+
notifyOnSuccess?: boolean;
|
|
1039
|
+
notifyWebhookId?: string | null;
|
|
1040
|
+
recordingEnabled?: boolean;
|
|
1041
|
+
recordingPolicy?: FlowValidateParams.RecordingPolicy;
|
|
1042
|
+
selfHealingEnabled?: boolean;
|
|
1043
|
+
selfHealingMaxAttempts?: number;
|
|
1044
|
+
triggerId?: string;
|
|
1045
|
+
}
|
|
1046
|
+
export declare namespace FlowValidateParams {
|
|
1047
|
+
interface FlowActionInput {
|
|
1048
|
+
actionId: string;
|
|
1049
|
+
position: number;
|
|
1050
|
+
children?: Array<FlowActionInput.Child>;
|
|
1051
|
+
continueOnError?: boolean;
|
|
1052
|
+
/**
|
|
1053
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
1054
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
1055
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
1056
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
1057
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
1058
|
+
*/
|
|
1059
|
+
key?: string;
|
|
1060
|
+
nameOverride?: string;
|
|
1061
|
+
overrides?: FlowActionInput.Overrides | null;
|
|
1062
|
+
recordingEnabled?: boolean;
|
|
1063
|
+
}
|
|
1064
|
+
namespace FlowActionInput {
|
|
1065
|
+
interface Child {
|
|
1066
|
+
actionId: string;
|
|
1067
|
+
position: number;
|
|
1068
|
+
continueOnError?: boolean;
|
|
1069
|
+
/**
|
|
1070
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
1071
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
1072
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
1073
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
1074
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
1075
|
+
*/
|
|
1076
|
+
key?: string;
|
|
1077
|
+
nameOverride?: string;
|
|
1078
|
+
overrides?: Child.Overrides | null;
|
|
1079
|
+
recordingEnabled?: boolean;
|
|
1080
|
+
}
|
|
1081
|
+
namespace Child {
|
|
1082
|
+
interface Overrides {
|
|
1083
|
+
params?: {
|
|
1084
|
+
[key: string]: unknown;
|
|
1085
|
+
};
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
interface Overrides {
|
|
1089
|
+
params?: {
|
|
1090
|
+
[key: string]: unknown;
|
|
1091
|
+
};
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
interface FlowDraftActionInput {
|
|
1095
|
+
draft: FlowDraftActionInput.Draft;
|
|
1096
|
+
position: number;
|
|
1097
|
+
continueOnError?: boolean;
|
|
1098
|
+
/**
|
|
1099
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
1100
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
1101
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
1102
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
1103
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
1104
|
+
*/
|
|
1105
|
+
key?: string;
|
|
1106
|
+
nameOverride?: string;
|
|
1107
|
+
overrides?: FlowDraftActionInput.Overrides | null;
|
|
1108
|
+
recordingEnabled?: boolean;
|
|
1109
|
+
}
|
|
1110
|
+
namespace FlowDraftActionInput {
|
|
1111
|
+
interface Draft {
|
|
1112
|
+
method: string;
|
|
1113
|
+
name: string;
|
|
1114
|
+
service: string;
|
|
1115
|
+
params?: {
|
|
1116
|
+
[key: string]: unknown;
|
|
1117
|
+
};
|
|
1118
|
+
}
|
|
1119
|
+
interface Overrides {
|
|
1120
|
+
params?: {
|
|
1121
|
+
[key: string]: unknown;
|
|
1122
|
+
};
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
interface Delivery {
|
|
1126
|
+
destination: 'one_drive' | 'google_drive';
|
|
1127
|
+
folder?: string;
|
|
1128
|
+
recording?: Delivery.Recording;
|
|
1129
|
+
screenshots?: unknown;
|
|
1130
|
+
}
|
|
1131
|
+
namespace Delivery {
|
|
1132
|
+
interface Recording {
|
|
1133
|
+
filename: string;
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
interface RecordingPolicy {
|
|
1137
|
+
mode: 'off' | 'flow' | 'selected_steps';
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
export interface FlowVerifyParams {
|
|
1141
|
+
/**
|
|
1142
|
+
* Client-supplied idempotency key. A repeat request for the same (flow,
|
|
1143
|
+
* invocationId) returns the existing verification run (`deduplicated: true`,
|
|
1144
|
+
* HTTP 200) instead of enqueuing another.
|
|
1145
|
+
*/
|
|
1146
|
+
invocationId: string;
|
|
1147
|
+
/**
|
|
1148
|
+
* Device to run the verification on. Must be one the flow is bound to. Optional
|
|
1149
|
+
* only when the flow is bound to exactly one device (that device is used);
|
|
1150
|
+
* otherwise required.
|
|
1151
|
+
*/
|
|
1152
|
+
deviceId?: string;
|
|
1153
|
+
payload?: {
|
|
1154
|
+
[key: string]: unknown;
|
|
1155
|
+
};
|
|
1156
|
+
}
|
|
506
1157
|
export declare namespace Flows {
|
|
507
|
-
export { type FlowCreateResponse as FlowCreateResponse, type FlowRetrieveResponse as FlowRetrieveResponse, type FlowUpdateResponse as FlowUpdateResponse, type FlowListResponse as FlowListResponse, type FlowDeleteResponse as FlowDeleteResponse, type FlowCloneResponse as FlowCloneResponse, type FlowDryRunResponse as FlowDryRunResponse, type FlowListRepairsResponse as FlowListRepairsResponse, type FlowUnblockResponse as FlowUnblockResponse, type FlowCreateParams as FlowCreateParams, type FlowUpdateParams as FlowUpdateParams, type FlowListParams as FlowListParams, type FlowCloneParams as FlowCloneParams, type FlowDryRunParams as FlowDryRunParams, };
|
|
1158
|
+
export { type FlowCreateResponse as FlowCreateResponse, type FlowRetrieveResponse as FlowRetrieveResponse, type FlowUpdateResponse as FlowUpdateResponse, type FlowListResponse as FlowListResponse, type FlowDeleteResponse as FlowDeleteResponse, type FlowActivateResponse as FlowActivateResponse, type FlowCapacityResponse as FlowCapacityResponse, type FlowCloneResponse as FlowCloneResponse, type FlowDeliveryOptionsResponse as FlowDeliveryOptionsResponse, type FlowDryRunResponse as FlowDryRunResponse, type FlowListRepairsResponse as FlowListRepairsResponse, type FlowRunResponse as FlowRunResponse, type FlowTemplateContextResponse as FlowTemplateContextResponse, type FlowUnblockResponse as FlowUnblockResponse, type FlowValidateResponse as FlowValidateResponse, type FlowVerifyResponse as FlowVerifyResponse, type FlowCreateParams as FlowCreateParams, type FlowUpdateParams as FlowUpdateParams, type FlowListParams as FlowListParams, type FlowActivateParams as FlowActivateParams, type FlowCloneParams as FlowCloneParams, type FlowDryRunParams as FlowDryRunParams, type FlowRunParams as FlowRunParams, type FlowTemplateContextParams as FlowTemplateContextParams, type FlowValidateParams as FlowValidateParams, type FlowVerifyParams as FlowVerifyParams, };
|
|
508
1159
|
export { Actions as Actions, type ActionListResponse as ActionListResponse, type ActionAddResponse as ActionAddResponse, type ActionRemoveResponse as ActionRemoveResponse, type ActionReplaceResponse as ActionReplaceResponse, type ActionAddParams as ActionAddParams, type ActionRemoveParams as ActionRemoveParams, type ActionReplaceParams as ActionReplaceParams, };
|
|
509
1160
|
}
|
|
510
1161
|
//# sourceMappingURL=flows.d.ts.map
|