@mobilerun/sdk 5.5.0 → 6.0.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 +30 -0
- package/README.md +0 -9
- package/client.d.mts +12 -30
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -30
- package/client.d.ts.map +1 -1
- package/client.js +1 -18
- package/client.js.map +1 -1
- package/client.mjs +2 -19
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +39 -26
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +39 -26
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +20 -7
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +20 -7
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +7 -17
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +7 -17
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +4 -11
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +4 -11
- 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 +102 -17
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +102 -17
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +27 -14
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +27 -14
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/connect/users.d.mts +4 -4
- package/resources/connect/users.d.ts +4 -4
- package/resources/connect/users.js +2 -2
- package/resources/connect/users.mjs +2 -2
- package/resources/devices/actions.d.mts +25 -5
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +25 -5
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +5 -3
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +5 -3
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +13 -0
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +13 -0
- package/resources/devices/apps.d.ts.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 +88 -36
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +88 -36
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +30 -15
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +30 -15
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +3 -2
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +3 -2
- 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 +8 -2
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +8 -2
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/recordings.d.mts +29 -6
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +29 -6
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/recordings.js +9 -0
- package/resources/devices/recordings.js.map +1 -1
- package/resources/devices/recordings.mjs +9 -0
- package/resources/devices/recordings.mjs.map +1 -1
- package/resources/devices/screenshots.d.mts +72 -0
- package/resources/devices/screenshots.d.mts.map +1 -0
- package/resources/devices/screenshots.d.ts +72 -0
- package/resources/devices/screenshots.d.ts.map +1 -0
- package/resources/devices/screenshots.js +57 -0
- package/resources/devices/screenshots.js.map +1 -0
- package/resources/devices/screenshots.mjs +53 -0
- package/resources/devices/screenshots.mjs.map +1 -0
- package/resources/devices/state.d.mts +11 -2
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +11 -2
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +5 -2
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +5 -2
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/traffic-sessions.d.mts +1 -11
- package/resources/devices/traffic-sessions.d.mts.map +1 -1
- package/resources/devices/traffic-sessions.d.ts +1 -11
- package/resources/devices/traffic-sessions.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.js +2 -8
- package/resources/devices/traffic-sessions.js.map +1 -1
- package/resources/devices/traffic-sessions.mjs +2 -8
- package/resources/devices/traffic-sessions.mjs.map +1 -1
- package/resources/files.d.mts +8 -22
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +8 -22
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +5 -13
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +5 -13
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +6 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -11
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -11
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -6
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +58 -0
- package/resources/mailboxes/connections.d.mts.map +1 -0
- package/resources/mailboxes/connections.d.ts +58 -0
- package/resources/mailboxes/connections.d.ts.map +1 -0
- package/resources/mailboxes/connections.js +41 -0
- package/resources/mailboxes/connections.js.map +1 -0
- package/resources/mailboxes/connections.mjs +37 -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 +74 -24
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +74 -24
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +26 -8
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +26 -8
- package/resources/mailboxes/mailboxes.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 +26 -1
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +26 -1
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +9 -0
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +9 -0
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/models.d.mts +12 -23
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +12 -23
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -4
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -4
- package/resources/models.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 +57 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +57 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +23 -0
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +23 -0
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +148 -44
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +148 -44
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +3 -23
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +4 -24
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/proxies.d.mts +1 -87
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +1 -87
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +0 -6
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +0 -6
- package/resources/proxies.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +51 -188
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +51 -188
- 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 +2 -1
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +2 -1
- 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 +276 -104
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +276 -104
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +32 -68
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +32 -68
- 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 +52 -5
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +52 -5
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +330 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -0
- package/resources/workflows/executions/executions.d.ts +330 -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 -269
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +1 -269
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +2 -37
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +1 -35
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +39 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +39 -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 +574 -27
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +574 -27
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +78 -3
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +78 -3
- 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 +110 -15
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +110 -15
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +13 -1
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +13 -1
- 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 +14 -103
- package/src/resources/apps.ts +39 -26
- package/src/resources/assistant/conversations.ts +12 -27
- package/src/resources/connect/connect.ts +6 -0
- package/src/resources/connect/index.ts +3 -0
- package/src/resources/connect/proxies.ts +127 -25
- package/src/resources/connect/users.ts +4 -4
- package/src/resources/devices/actions.ts +28 -5
- package/src/resources/devices/apps.ts +18 -0
- package/src/resources/devices/browser.ts +9 -3
- package/src/resources/devices/devices.ts +139 -41
- package/src/resources/devices/index.ts +13 -0
- package/src/resources/devices/keyboard.ts +9 -2
- package/src/resources/devices/recordings.ts +45 -5
- package/src/resources/devices/screenshots.ts +140 -0
- package/src/resources/devices/state.ts +12 -2
- package/src/resources/devices/traffic-sessions.ts +2 -19
- package/src/resources/files.ts +11 -32
- package/src/resources/index.ts +9 -43
- package/src/resources/mailboxes/connections.ts +84 -0
- package/src/resources/mailboxes/index.ts +7 -0
- package/src/resources/mailboxes/mailboxes.ts +147 -24
- package/src/resources/messages/index.ts +6 -1
- package/src/resources/messages/messages.ts +55 -1
- package/src/resources/models.ts +16 -23
- package/src/resources/numbers/index.ts +7 -2
- package/src/resources/numbers/messages.ts +88 -1
- package/src/resources/numbers/numbers.ts +171 -62
- package/src/resources/proxies.ts +0 -110
- package/src/resources/tasks/tasks.ts +57 -198
- package/src/resources/webhooks/deliveries.ts +26 -31
- package/src/resources/webhooks/index.ts +6 -1
- package/src/resources/webhooks/integrations.ts +107 -0
- package/src/resources/webhooks/webhooks.ts +315 -114
- package/src/resources/workflows/action-catalog.ts +11 -3
- package/src/resources/workflows/actions/actions.ts +9 -5
- package/src/resources/workflows/events.ts +66 -5
- package/src/resources/workflows/executions/executions.ts +510 -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 -412
- package/src/resources/workflows/flows/actions.ts +46 -0
- package/src/resources/workflows/flows/flows.ts +811 -26
- package/src/resources/workflows/flows/index.ts +11 -0
- package/src/resources/workflows/index.ts +12 -1
- package/src/resources/workflows/triggers.ts +131 -16
- package/src/resources/workflows/workflows.ts +32 -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/app-events/app-events.d.mts +0 -81
- package/resources/app-events/app-events.d.mts.map +0 -1
- package/resources/app-events/app-events.d.ts +0 -81
- package/resources/app-events/app-events.d.ts.map +0 -1
- package/resources/app-events/app-events.js +0 -33
- package/resources/app-events/app-events.js.map +0 -1
- package/resources/app-events/app-events.mjs +0 -28
- package/resources/app-events/app-events.mjs.map +0 -1
- package/resources/app-events/catalog.d.mts +0 -64
- package/resources/app-events/catalog.d.mts.map +0 -1
- package/resources/app-events/catalog.d.ts +0 -64
- package/resources/app-events/catalog.d.ts.map +0 -1
- package/resources/app-events/catalog.js +0 -25
- package/resources/app-events/catalog.js.map +0 -1
- package/resources/app-events/catalog.mjs +0 -21
- package/resources/app-events/catalog.mjs.map +0 -1
- package/resources/app-events/index.d.mts +0 -3
- package/resources/app-events/index.d.mts.map +0 -1
- package/resources/app-events/index.d.ts +0 -3
- package/resources/app-events/index.d.ts.map +0 -1
- package/resources/app-events/index.js +0 -9
- package/resources/app-events/index.js.map +0 -1
- package/resources/app-events/index.mjs +0 -4
- package/resources/app-events/index.mjs.map +0 -1
- package/resources/app-events.d.mts +0 -2
- package/resources/app-events.d.mts.map +0 -1
- package/resources/app-events.d.ts +0 -2
- package/resources/app-events.d.ts.map +0 -1
- package/resources/app-events.js +0 -6
- package/resources/app-events.js.map +0 -1
- package/resources/app-events.mjs +0 -3
- package/resources/app-events.mjs.map +0 -1
- package/resources/carriers.d.mts +0 -331
- package/resources/carriers.d.mts.map +0 -1
- package/resources/carriers.d.ts +0 -331
- package/resources/carriers.d.ts.map +0 -1
- package/resources/carriers.js +0 -46
- package/resources/carriers.js.map +0 -1
- package/resources/carriers.mjs +0 -42
- package/resources/carriers.mjs.map +0 -1
- package/resources/notifications.d.mts +0 -86
- package/resources/notifications.d.mts.map +0 -1
- package/resources/notifications.d.ts +0 -86
- package/resources/notifications.d.ts.map +0 -1
- package/resources/notifications.js +0 -55
- package/resources/notifications.js.map +0 -1
- package/resources/notifications.mjs +0 -51
- package/resources/notifications.mjs.map +0 -1
- package/resources/profiles.d.mts +0 -147
- package/resources/profiles.d.mts.map +0 -1
- package/resources/profiles.d.ts +0 -147
- package/resources/profiles.d.ts.map +0 -1
- package/resources/profiles.js +0 -40
- package/resources/profiles.js.map +0 -1
- package/resources/profiles.mjs +0 -36
- package/resources/profiles.mjs.map +0 -1
- package/resources/store/apps.d.mts +0 -119
- package/resources/store/apps.d.mts.map +0 -1
- package/resources/store/apps.d.ts +0 -119
- package/resources/store/apps.d.ts.map +0 -1
- package/resources/store/apps.js +0 -31
- package/resources/store/apps.js.map +0 -1
- package/resources/store/apps.mjs +0 -27
- package/resources/store/apps.mjs.map +0 -1
- package/resources/store/index.d.mts +0 -3
- package/resources/store/index.d.mts.map +0 -1
- package/resources/store/index.d.ts +0 -3
- package/resources/store/index.d.ts.map +0 -1
- package/resources/store/index.js +0 -9
- package/resources/store/index.js.map +0 -1
- package/resources/store/index.mjs +0 -4
- package/resources/store/index.mjs.map +0 -1
- package/resources/store/store.d.mts +0 -20
- package/resources/store/store.d.mts.map +0 -1
- package/resources/store/store.d.ts +0 -20
- package/resources/store/store.d.ts.map +0 -1
- package/resources/store/store.js +0 -23
- package/resources/store/store.js.map +0 -1
- package/resources/store/store.mjs +0 -18
- package/resources/store/store.mjs.map +0 -1
- package/resources/store.d.mts +0 -2
- package/resources/store.d.mts.map +0 -1
- package/resources/store.d.ts +0 -2
- package/resources/store.d.ts.map +0 -1
- package/resources/store.js +0 -6
- package/resources/store.js.map +0 -1
- package/resources/store.mjs +0 -3
- package/resources/store.mjs.map +0 -1
- package/src/resources/app-events/app-events.ts +0 -133
- package/src/resources/app-events/catalog.ts +0 -100
- package/src/resources/app-events/index.ts +0 -9
- package/src/resources/app-events.ts +0 -3
- package/src/resources/carriers.ts +0 -508
- package/src/resources/notifications.ts +0 -118
- package/src/resources/profiles.ts +0 -232
- package/src/resources/store/apps.ts +0 -704
- package/src/resources/store/index.ts +0 -10
- package/src/resources/store/store.ts +0 -36
- package/src/resources/store.ts +0 -3
|
@@ -25,6 +25,10 @@ export class Flows extends APIResource {
|
|
|
25
25
|
* with at least one action required. Optional settings include target `deviceIds`,
|
|
26
26
|
* a cooldown (`cooldownSeconds`/`cooldownScope`), and webhook notifications on
|
|
27
27
|
* success or failure.
|
|
28
|
+
*
|
|
29
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
30
|
+
* characters). Replays with the same key and an identical body return the original
|
|
31
|
+
* 201; a changed body under the same key returns 422 `idempotency_key_reused`.
|
|
28
32
|
*/
|
|
29
33
|
create(body: FlowCreateParams, options?: RequestOptions): APIPromise<FlowCreateResponse> {
|
|
30
34
|
return this._client.post('/flows', { body, ...options });
|
|
@@ -73,11 +77,24 @@ export class Flows extends APIResource {
|
|
|
73
77
|
return this._client.delete(path`/flows/${flowID}`, options);
|
|
74
78
|
}
|
|
75
79
|
|
|
80
|
+
/**
|
|
81
|
+
* Activate a disabled flow only when the supplied verification execution succeeded
|
|
82
|
+
* and the flow graph has not changed since verification. Repeating activation is
|
|
83
|
+
* idempotent for an already-enabled flow.
|
|
84
|
+
*/
|
|
85
|
+
activate(
|
|
86
|
+
flowID: string,
|
|
87
|
+
body: FlowActivateParams,
|
|
88
|
+
options?: RequestOptions,
|
|
89
|
+
): APIPromise<FlowActivateResponse> {
|
|
90
|
+
return this._client.post(path`/flows/${flowID}/activate`, { body, ...options });
|
|
91
|
+
}
|
|
92
|
+
|
|
76
93
|
/**
|
|
77
94
|
* Returns an owner-scoped snapshot of finite included workflow-agent capacity
|
|
78
|
-
* after
|
|
79
|
-
*
|
|
80
|
-
* clone perform authoritative
|
|
95
|
+
* after accounting for enabled and disabled agents. Returns 503 when a finite
|
|
96
|
+
* capacity snapshot is unavailable, including for unlimited plans. This is
|
|
97
|
+
* advisory; create and clone perform the authoritative capacity check.
|
|
81
98
|
*/
|
|
82
99
|
capacity(options?: RequestOptions): APIPromise<FlowCapacityResponse> {
|
|
83
100
|
return this._client.get('/flows/capacity', options);
|
|
@@ -87,6 +104,10 @@ export class Flows extends APIResource {
|
|
|
87
104
|
* Create a copy of an existing flow, including its actions and settings. The
|
|
88
105
|
* optional body can override the new flow's `name` and target `deviceIds`. Returns
|
|
89
106
|
* 404 if the source flow does not exist.
|
|
107
|
+
*
|
|
108
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
109
|
+
* characters). Replays with the same key and an identical body return the original
|
|
110
|
+
* 201; a changed body under the same key returns 422 `idempotency_key_reused`.
|
|
90
111
|
*/
|
|
91
112
|
clone(
|
|
92
113
|
flowID: string,
|
|
@@ -96,6 +117,17 @@ export class Flows extends APIResource {
|
|
|
96
117
|
return this._client.post(path`/flows/${flowID}/clone`, { body, ...options });
|
|
97
118
|
}
|
|
98
119
|
|
|
120
|
+
/**
|
|
121
|
+
* Return the recording/delivery readiness for a flow (recording mode, whether
|
|
122
|
+
* delivery can include the recording, whether a files.upload action exists, the
|
|
123
|
+
* first direct OneDrive/Google Drive upload step if any) plus, per destination,
|
|
124
|
+
* whether the flow owner has an active connection. Returns 404 if the flow does
|
|
125
|
+
* not exist.
|
|
126
|
+
*/
|
|
127
|
+
deliveryOptions(flowID: string, options?: RequestOptions): APIPromise<FlowDeliveryOptionsResponse> {
|
|
128
|
+
return this._client.get(path`/flows/${flowID}/delivery-options`, options);
|
|
129
|
+
}
|
|
130
|
+
|
|
99
131
|
/**
|
|
100
132
|
* Simulate this flow firing without storing events, enqueuing jobs, or consuming
|
|
101
133
|
* cooldown/rate-limit slots.
|
|
@@ -127,6 +159,34 @@ export class Flows extends APIResource {
|
|
|
127
159
|
return this._client.get(path`/flows/${flowID}/repairs`, options);
|
|
128
160
|
}
|
|
129
161
|
|
|
162
|
+
/**
|
|
163
|
+
* Immediately enqueue one live execution on every device bound to the flow,
|
|
164
|
+
* regardless of whether its trigger is event-based, custom, or scheduled.
|
|
165
|
+
*
|
|
166
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
167
|
+
* characters). The run identity is derived from the key, so a retry never starts a
|
|
168
|
+
* second run. Replays with the same key and an identical body return the original
|
|
169
|
+
* status and the original `executionIds`; a changed body under the same key
|
|
170
|
+
* returns 422 `idempotency_key_reused`.
|
|
171
|
+
*/
|
|
172
|
+
run(
|
|
173
|
+
flowID: string,
|
|
174
|
+
body: FlowRunParams | null | undefined = {},
|
|
175
|
+
options?: RequestOptions,
|
|
176
|
+
): APIPromise<FlowRunResponse> {
|
|
177
|
+
return this._client.post(path`/flows/${flowID}/run`, { body, ...options });
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Get flow template context
|
|
182
|
+
*/
|
|
183
|
+
templateContext(
|
|
184
|
+
query: FlowTemplateContextParams | null | undefined = {},
|
|
185
|
+
options?: RequestOptions,
|
|
186
|
+
): APIPromise<FlowTemplateContextResponse> {
|
|
187
|
+
return this._client.get('/flows/template-context', { query, ...options });
|
|
188
|
+
}
|
|
189
|
+
|
|
130
190
|
/**
|
|
131
191
|
* Clear a flow's blocked status after fixing the underlying issue. Idempotent —
|
|
132
192
|
* safe to call on already-healthy flows.
|
|
@@ -134,6 +194,38 @@ export class Flows extends APIResource {
|
|
|
134
194
|
unblock(flowID: string, options?: RequestOptions): APIPromise<FlowUnblockResponse> {
|
|
135
195
|
return this._client.post(path`/flows/${flowID}/unblock`, options);
|
|
136
196
|
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Validate a flow
|
|
200
|
+
*/
|
|
201
|
+
validate(body: FlowValidateParams, options?: RequestOptions): APIPromise<FlowValidateResponse> {
|
|
202
|
+
return this._client.post('/flows/validate', { body, ...options });
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Run a bound, deduplicated **verification** of this flow on exactly one device as
|
|
207
|
+
* a real run.
|
|
208
|
+
*
|
|
209
|
+
* Unlike a normal trigger firing, verification:
|
|
210
|
+
*
|
|
211
|
+
* - runs a flow that is `enabled` OR `disabled` (an archived flow returns 404);
|
|
212
|
+
* - targets one device (`deviceId`, or the single bound device);
|
|
213
|
+
* - is idempotent per `invocationId`: a repeat returns the existing run
|
|
214
|
+
* (`deduplicated: true`, HTTP 200) instead of enqueuing another (HTTP 202);
|
|
215
|
+
* - never mutates flow health, `lastTriggeredAt`, or the repair loop.
|
|
216
|
+
*
|
|
217
|
+
* Per-activation payload gate:
|
|
218
|
+
*
|
|
219
|
+
* - `custom`: validates the payload against the custom payload schema (422 on
|
|
220
|
+
* failure).
|
|
221
|
+
* - `event`: validates the payload against the event catalog schema and evaluates
|
|
222
|
+
* the trigger conditions; a failing gate returns 409 `conditions_not_met` with
|
|
223
|
+
* the dry-run report.
|
|
224
|
+
* - `schedule`: the payload is ignored.
|
|
225
|
+
*/
|
|
226
|
+
verify(flowID: string, body: FlowVerifyParams, options?: RequestOptions): APIPromise<FlowVerifyResponse> {
|
|
227
|
+
return this._client.post(path`/flows/${flowID}/verify`, { body, ...options });
|
|
228
|
+
}
|
|
137
229
|
}
|
|
138
230
|
|
|
139
231
|
export interface FlowCreateResponse {
|
|
@@ -158,6 +250,8 @@ export namespace FlowCreateResponse {
|
|
|
158
250
|
|
|
159
251
|
createdBy: string | null;
|
|
160
252
|
|
|
253
|
+
delivery: Data.Delivery | null;
|
|
254
|
+
|
|
161
255
|
description: string | null;
|
|
162
256
|
|
|
163
257
|
deviceIds: Array<string>;
|
|
@@ -210,10 +304,11 @@ export namespace FlowCreateResponse {
|
|
|
210
304
|
status: 'healthy' | 'failing' | 'blocked';
|
|
211
305
|
|
|
212
306
|
/**
|
|
213
|
-
* Template-resolver semantics this flow runs under
|
|
307
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
214
308
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
215
|
-
* a whole-token null stays JSON null).
|
|
216
|
-
*
|
|
309
|
+
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
310
|
+
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
311
|
+
* Existing flows stay 1; new flows default to the current version.
|
|
217
312
|
*/
|
|
218
313
|
templateResolutionVersion: number;
|
|
219
314
|
|
|
@@ -228,6 +323,25 @@ export namespace FlowCreateResponse {
|
|
|
228
323
|
}
|
|
229
324
|
|
|
230
325
|
export namespace Data {
|
|
326
|
+
export interface Delivery {
|
|
327
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* not allowed when destination is mobilerun
|
|
331
|
+
*/
|
|
332
|
+
folder?: string;
|
|
333
|
+
|
|
334
|
+
recording?: Delivery.Recording;
|
|
335
|
+
|
|
336
|
+
screenshots?: unknown;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export namespace Delivery {
|
|
340
|
+
export interface Recording {
|
|
341
|
+
filename: string;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
231
345
|
export interface RecordingPolicy {
|
|
232
346
|
mode: 'off' | 'flow' | 'selected_steps';
|
|
233
347
|
}
|
|
@@ -256,6 +370,8 @@ export namespace FlowRetrieveResponse {
|
|
|
256
370
|
|
|
257
371
|
createdBy: string | null;
|
|
258
372
|
|
|
373
|
+
delivery: Data.Delivery | null;
|
|
374
|
+
|
|
259
375
|
description: string | null;
|
|
260
376
|
|
|
261
377
|
deviceIds: Array<string>;
|
|
@@ -308,10 +424,11 @@ export namespace FlowRetrieveResponse {
|
|
|
308
424
|
status: 'healthy' | 'failing' | 'blocked';
|
|
309
425
|
|
|
310
426
|
/**
|
|
311
|
-
* Template-resolver semantics this flow runs under
|
|
427
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
312
428
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
313
|
-
* a whole-token null stays JSON null).
|
|
314
|
-
*
|
|
429
|
+
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
430
|
+
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
431
|
+
* Existing flows stay 1; new flows default to the current version.
|
|
315
432
|
*/
|
|
316
433
|
templateResolutionVersion: number;
|
|
317
434
|
|
|
@@ -326,6 +443,25 @@ export namespace FlowRetrieveResponse {
|
|
|
326
443
|
}
|
|
327
444
|
|
|
328
445
|
export namespace Data {
|
|
446
|
+
export interface Delivery {
|
|
447
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* not allowed when destination is mobilerun
|
|
451
|
+
*/
|
|
452
|
+
folder?: string;
|
|
453
|
+
|
|
454
|
+
recording?: Delivery.Recording;
|
|
455
|
+
|
|
456
|
+
screenshots?: unknown;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export namespace Delivery {
|
|
460
|
+
export interface Recording {
|
|
461
|
+
filename: string;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
329
465
|
export interface RecordingPolicy {
|
|
330
466
|
mode: 'off' | 'flow' | 'selected_steps';
|
|
331
467
|
}
|
|
@@ -354,6 +490,8 @@ export namespace FlowUpdateResponse {
|
|
|
354
490
|
|
|
355
491
|
createdBy: string | null;
|
|
356
492
|
|
|
493
|
+
delivery: Data.Delivery | null;
|
|
494
|
+
|
|
357
495
|
description: string | null;
|
|
358
496
|
|
|
359
497
|
deviceIds: Array<string>;
|
|
@@ -406,10 +544,11 @@ export namespace FlowUpdateResponse {
|
|
|
406
544
|
status: 'healthy' | 'failing' | 'blocked';
|
|
407
545
|
|
|
408
546
|
/**
|
|
409
|
-
* Template-resolver semantics this flow runs under
|
|
547
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
410
548
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
411
|
-
* a whole-token null stays JSON null).
|
|
412
|
-
*
|
|
549
|
+
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
550
|
+
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
551
|
+
* Existing flows stay 1; new flows default to the current version.
|
|
413
552
|
*/
|
|
414
553
|
templateResolutionVersion: number;
|
|
415
554
|
|
|
@@ -424,6 +563,25 @@ export namespace FlowUpdateResponse {
|
|
|
424
563
|
}
|
|
425
564
|
|
|
426
565
|
export namespace Data {
|
|
566
|
+
export interface Delivery {
|
|
567
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* not allowed when destination is mobilerun
|
|
571
|
+
*/
|
|
572
|
+
folder?: string;
|
|
573
|
+
|
|
574
|
+
recording?: Delivery.Recording;
|
|
575
|
+
|
|
576
|
+
screenshots?: unknown;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
export namespace Delivery {
|
|
580
|
+
export interface Recording {
|
|
581
|
+
filename: string;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
427
585
|
export interface RecordingPolicy {
|
|
428
586
|
mode: 'off' | 'flow' | 'selected_steps';
|
|
429
587
|
}
|
|
@@ -454,6 +612,8 @@ export namespace FlowListResponse {
|
|
|
454
612
|
|
|
455
613
|
createdBy: string | null;
|
|
456
614
|
|
|
615
|
+
delivery: Item.Delivery | null;
|
|
616
|
+
|
|
457
617
|
description: string | null;
|
|
458
618
|
|
|
459
619
|
deviceIds: Array<string>;
|
|
@@ -506,10 +666,11 @@ export namespace FlowListResponse {
|
|
|
506
666
|
status: 'healthy' | 'failing' | 'blocked';
|
|
507
667
|
|
|
508
668
|
/**
|
|
509
|
-
* Template-resolver semantics this flow runs under
|
|
669
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
510
670
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
511
|
-
* a whole-token null stays JSON null).
|
|
512
|
-
*
|
|
671
|
+
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
672
|
+
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
673
|
+
* Existing flows stay 1; new flows default to the current version.
|
|
513
674
|
*/
|
|
514
675
|
templateResolutionVersion: number;
|
|
515
676
|
|
|
@@ -524,6 +685,25 @@ export namespace FlowListResponse {
|
|
|
524
685
|
}
|
|
525
686
|
|
|
526
687
|
export namespace Item {
|
|
688
|
+
export interface Delivery {
|
|
689
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* not allowed when destination is mobilerun
|
|
693
|
+
*/
|
|
694
|
+
folder?: string;
|
|
695
|
+
|
|
696
|
+
recording?: Delivery.Recording;
|
|
697
|
+
|
|
698
|
+
screenshots?: unknown;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
export namespace Delivery {
|
|
702
|
+
export interface Recording {
|
|
703
|
+
filename: string;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
|
|
527
707
|
export interface RecordingPolicy {
|
|
528
708
|
mode: 'off' | 'flow' | 'selected_steps';
|
|
529
709
|
}
|
|
@@ -534,6 +714,126 @@ export interface FlowDeleteResponse {
|
|
|
534
714
|
message: string;
|
|
535
715
|
}
|
|
536
716
|
|
|
717
|
+
export interface FlowActivateResponse {
|
|
718
|
+
data: FlowActivateResponse.Data;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
export namespace FlowActivateResponse {
|
|
722
|
+
export interface Data {
|
|
723
|
+
id: string;
|
|
724
|
+
|
|
725
|
+
archivedAt: string | null;
|
|
726
|
+
|
|
727
|
+
blockedAt: string | null;
|
|
728
|
+
|
|
729
|
+
consecutiveFailures: number;
|
|
730
|
+
|
|
731
|
+
cooldownScope: 'flow' | 'device';
|
|
732
|
+
|
|
733
|
+
cooldownSeconds: number | null;
|
|
734
|
+
|
|
735
|
+
createdAt: string | null;
|
|
736
|
+
|
|
737
|
+
createdBy: string | null;
|
|
738
|
+
|
|
739
|
+
delivery: Data.Delivery | null;
|
|
740
|
+
|
|
741
|
+
description: string | null;
|
|
742
|
+
|
|
743
|
+
deviceIds: Array<string>;
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
|
|
747
|
+
* enabled.
|
|
748
|
+
*/
|
|
749
|
+
enabled: boolean;
|
|
750
|
+
|
|
751
|
+
healthMonitoringEnabled: boolean;
|
|
752
|
+
|
|
753
|
+
lastFailureAt: string | null;
|
|
754
|
+
|
|
755
|
+
lastFailureCode:
|
|
756
|
+
| 'device_not_found'
|
|
757
|
+
| 'permission_denied'
|
|
758
|
+
| 'client_error'
|
|
759
|
+
| 'transient'
|
|
760
|
+
| 'logic'
|
|
761
|
+
| 'invalid_config'
|
|
762
|
+
| null;
|
|
763
|
+
|
|
764
|
+
lastTriggeredAt: string | null;
|
|
765
|
+
|
|
766
|
+
lifecycleStatus: 'enabled' | 'disabled' | 'archived';
|
|
767
|
+
|
|
768
|
+
name: string;
|
|
769
|
+
|
|
770
|
+
notifyOnFailure: boolean;
|
|
771
|
+
|
|
772
|
+
notifyOnSuccess: boolean;
|
|
773
|
+
|
|
774
|
+
notifyWebhookId: string | null;
|
|
775
|
+
|
|
776
|
+
ownerId: string;
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* @deprecated Deprecated: use recordingPolicy.mode ("flow" =
|
|
780
|
+
* recordingEnabled=true, "off" = recordingEnabled=false).
|
|
781
|
+
*/
|
|
782
|
+
recordingEnabled: boolean;
|
|
783
|
+
|
|
784
|
+
recordingPolicy: Data.RecordingPolicy;
|
|
785
|
+
|
|
786
|
+
selfHealingEnabled: boolean;
|
|
787
|
+
|
|
788
|
+
selfHealingMaxAttempts: number;
|
|
789
|
+
|
|
790
|
+
status: 'healthy' | 'failing' | 'blocked';
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
794
|
+
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
795
|
+
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
796
|
+
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
797
|
+
* Existing flows stay 1; new flows default to the current version.
|
|
798
|
+
*/
|
|
799
|
+
templateResolutionVersion: number;
|
|
800
|
+
|
|
801
|
+
triggerId: string;
|
|
802
|
+
|
|
803
|
+
updatedAt: string | null;
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
807
|
+
*/
|
|
808
|
+
userId: string;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
export namespace Data {
|
|
812
|
+
export interface Delivery {
|
|
813
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* not allowed when destination is mobilerun
|
|
817
|
+
*/
|
|
818
|
+
folder?: string;
|
|
819
|
+
|
|
820
|
+
recording?: Delivery.Recording;
|
|
821
|
+
|
|
822
|
+
screenshots?: unknown;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
export namespace Delivery {
|
|
826
|
+
export interface Recording {
|
|
827
|
+
filename: string;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
export interface RecordingPolicy {
|
|
832
|
+
mode: 'off' | 'flow' | 'selected_steps';
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
537
837
|
export interface FlowCapacityResponse {
|
|
538
838
|
data: FlowCapacityResponse.Data;
|
|
539
839
|
}
|
|
@@ -570,6 +870,8 @@ export namespace FlowCloneResponse {
|
|
|
570
870
|
|
|
571
871
|
createdBy: string | null;
|
|
572
872
|
|
|
873
|
+
delivery: Data.Delivery | null;
|
|
874
|
+
|
|
573
875
|
description: string | null;
|
|
574
876
|
|
|
575
877
|
deviceIds: Array<string>;
|
|
@@ -622,10 +924,11 @@ export namespace FlowCloneResponse {
|
|
|
622
924
|
status: 'healthy' | 'failing' | 'blocked';
|
|
623
925
|
|
|
624
926
|
/**
|
|
625
|
-
* Template-resolver semantics this flow runs under
|
|
927
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
626
928
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
627
|
-
* a whole-token null stays JSON null).
|
|
628
|
-
*
|
|
929
|
+
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
930
|
+
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
931
|
+
* Existing flows stay 1; new flows default to the current version.
|
|
629
932
|
*/
|
|
630
933
|
templateResolutionVersion: number;
|
|
631
934
|
|
|
@@ -640,12 +943,72 @@ export namespace FlowCloneResponse {
|
|
|
640
943
|
}
|
|
641
944
|
|
|
642
945
|
export namespace Data {
|
|
946
|
+
export interface Delivery {
|
|
947
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
948
|
+
|
|
949
|
+
/**
|
|
950
|
+
* not allowed when destination is mobilerun
|
|
951
|
+
*/
|
|
952
|
+
folder?: string;
|
|
953
|
+
|
|
954
|
+
recording?: Delivery.Recording;
|
|
955
|
+
|
|
956
|
+
screenshots?: unknown;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
export namespace Delivery {
|
|
960
|
+
export interface Recording {
|
|
961
|
+
filename: string;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
|
|
643
965
|
export interface RecordingPolicy {
|
|
644
966
|
mode: 'off' | 'flow' | 'selected_steps';
|
|
645
967
|
}
|
|
646
968
|
}
|
|
647
969
|
}
|
|
648
970
|
|
|
971
|
+
export interface FlowDeliveryOptionsResponse {
|
|
972
|
+
data: FlowDeliveryOptionsResponse.Data;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
export namespace FlowDeliveryOptionsResponse {
|
|
976
|
+
export interface Data {
|
|
977
|
+
canDeliverRecording: boolean;
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Delivery destinations in their canonical order.
|
|
981
|
+
*/
|
|
982
|
+
destinations: Array<Data.Destination>;
|
|
983
|
+
|
|
984
|
+
directUploadStep: Data.DirectUploadStep | null;
|
|
985
|
+
|
|
986
|
+
hasFilesUpload: boolean;
|
|
987
|
+
|
|
988
|
+
recordingMode: 'off' | 'flow' | 'selected_steps';
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
export namespace Data {
|
|
992
|
+
export interface Destination {
|
|
993
|
+
connection: 'connected' | 'not_connected' | 'expired' | 'unknown';
|
|
994
|
+
|
|
995
|
+
connectKey: string;
|
|
996
|
+
|
|
997
|
+
iconUrl: string | null;
|
|
998
|
+
|
|
999
|
+
key: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
1000
|
+
|
|
1001
|
+
label: string;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
export interface DirectUploadStep {
|
|
1005
|
+
flowActionId: string;
|
|
1006
|
+
|
|
1007
|
+
name: string;
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
|
|
649
1012
|
export interface FlowDryRunResponse {
|
|
650
1013
|
data: FlowDryRunResponse.Data;
|
|
651
1014
|
}
|
|
@@ -675,13 +1038,15 @@ export namespace FlowDryRunResponse {
|
|
|
675
1038
|
|
|
676
1039
|
flowActionId: string;
|
|
677
1040
|
|
|
1041
|
+
key: string;
|
|
1042
|
+
|
|
678
1043
|
method: string;
|
|
679
1044
|
|
|
680
1045
|
name: string;
|
|
681
1046
|
|
|
682
1047
|
recordingEnabled: boolean;
|
|
683
1048
|
|
|
684
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
1049
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
685
1050
|
|
|
686
1051
|
/**
|
|
687
1052
|
* Nested child actions (loop/branch bodies), each the same shape as a
|
|
@@ -776,6 +1141,70 @@ export namespace FlowListRepairsResponse {
|
|
|
776
1141
|
}
|
|
777
1142
|
}
|
|
778
1143
|
|
|
1144
|
+
export interface FlowRunResponse {
|
|
1145
|
+
data: FlowRunResponse.Data;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
export namespace FlowRunResponse {
|
|
1149
|
+
export interface Data {
|
|
1150
|
+
enqueuedCount: number;
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* Ids of the executions this run created. An idempotent replay returns the ids of
|
|
1154
|
+
* the original run.
|
|
1155
|
+
*/
|
|
1156
|
+
executionIds: Array<string>;
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
export interface FlowTemplateContextResponse {
|
|
1161
|
+
data: FlowTemplateContextResponse.Data;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
export namespace FlowTemplateContextResponse {
|
|
1165
|
+
export interface Data {
|
|
1166
|
+
grammar: string;
|
|
1167
|
+
|
|
1168
|
+
loop: Data.Loop;
|
|
1169
|
+
|
|
1170
|
+
payloadAliases: Array<string>;
|
|
1171
|
+
|
|
1172
|
+
roots: Array<Data.Root>;
|
|
1173
|
+
|
|
1174
|
+
stepReference: Data.StepReference;
|
|
1175
|
+
|
|
1176
|
+
templateResolutionVersion: number;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
export namespace Data {
|
|
1180
|
+
export interface Loop {
|
|
1181
|
+
context: Array<string>;
|
|
1182
|
+
|
|
1183
|
+
itemVariableDefault: string;
|
|
1184
|
+
|
|
1185
|
+
name: string;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
export interface Root {
|
|
1189
|
+
description: string;
|
|
1190
|
+
|
|
1191
|
+
name: string;
|
|
1192
|
+
|
|
1193
|
+
shape?: unknown;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
export interface StepReference {
|
|
1197
|
+
note: string;
|
|
1198
|
+
|
|
1199
|
+
pattern: string;
|
|
1200
|
+
|
|
1201
|
+
keyRule?: string;
|
|
1202
|
+
|
|
1203
|
+
slugRule?: string;
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
|
|
779
1208
|
export interface FlowUnblockResponse {
|
|
780
1209
|
data: FlowUnblockResponse.Data;
|
|
781
1210
|
}
|
|
@@ -798,6 +1227,8 @@ export namespace FlowUnblockResponse {
|
|
|
798
1227
|
|
|
799
1228
|
createdBy: string | null;
|
|
800
1229
|
|
|
1230
|
+
delivery: Data.Delivery | null;
|
|
1231
|
+
|
|
801
1232
|
description: string | null;
|
|
802
1233
|
|
|
803
1234
|
deviceIds: Array<string>;
|
|
@@ -850,10 +1281,11 @@ export namespace FlowUnblockResponse {
|
|
|
850
1281
|
status: 'healthy' | 'failing' | 'blocked';
|
|
851
1282
|
|
|
852
1283
|
/**
|
|
853
|
-
* Template-resolver semantics this flow runs under
|
|
1284
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
854
1285
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
855
|
-
* a whole-token null stays JSON null).
|
|
856
|
-
*
|
|
1286
|
+
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
1287
|
+
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
1288
|
+
* Existing flows stay 1; new flows default to the current version.
|
|
857
1289
|
*/
|
|
858
1290
|
templateResolutionVersion: number;
|
|
859
1291
|
|
|
@@ -868,12 +1300,101 @@ export namespace FlowUnblockResponse {
|
|
|
868
1300
|
}
|
|
869
1301
|
|
|
870
1302
|
export namespace Data {
|
|
1303
|
+
export interface Delivery {
|
|
1304
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
1305
|
+
|
|
1306
|
+
/**
|
|
1307
|
+
* not allowed when destination is mobilerun
|
|
1308
|
+
*/
|
|
1309
|
+
folder?: string;
|
|
1310
|
+
|
|
1311
|
+
recording?: Delivery.Recording;
|
|
1312
|
+
|
|
1313
|
+
screenshots?: unknown;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
export namespace Delivery {
|
|
1317
|
+
export interface Recording {
|
|
1318
|
+
filename: string;
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
|
|
871
1322
|
export interface RecordingPolicy {
|
|
872
1323
|
mode: 'off' | 'flow' | 'selected_steps';
|
|
873
1324
|
}
|
|
874
1325
|
}
|
|
875
1326
|
}
|
|
876
1327
|
|
|
1328
|
+
export interface FlowValidateResponse {
|
|
1329
|
+
data: FlowValidateResponse.Data;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
export namespace FlowValidateResponse {
|
|
1333
|
+
export interface Data {
|
|
1334
|
+
errors: Array<Data.Error>;
|
|
1335
|
+
|
|
1336
|
+
valid: boolean;
|
|
1337
|
+
|
|
1338
|
+
warnings: Array<Data.Warning>;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
export namespace Data {
|
|
1342
|
+
export interface Error {
|
|
1343
|
+
code: string;
|
|
1344
|
+
|
|
1345
|
+
field: string;
|
|
1346
|
+
|
|
1347
|
+
message: string;
|
|
1348
|
+
|
|
1349
|
+
knownSteps?: Array<string>;
|
|
1350
|
+
|
|
1351
|
+
reference?: string;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
export interface Warning {
|
|
1355
|
+
code: string;
|
|
1356
|
+
|
|
1357
|
+
message: string;
|
|
1358
|
+
|
|
1359
|
+
connectKey?: string;
|
|
1360
|
+
|
|
1361
|
+
destination?: string;
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
export interface FlowVerifyResponse {
|
|
1367
|
+
data: FlowVerifyResponse.Data;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
export namespace FlowVerifyResponse {
|
|
1371
|
+
export interface Data {
|
|
1372
|
+
/**
|
|
1373
|
+
* True when this run already existed for the (flow, invocationId) key (HTTP 200);
|
|
1374
|
+
* false for a newly enqueued run (HTTP 202).
|
|
1375
|
+
*/
|
|
1376
|
+
deduplicated: boolean;
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* Device the verification runs on; null for a device-free verification (a 0-device
|
|
1380
|
+
* flow whose actions are all device-free allowlisted).
|
|
1381
|
+
*/
|
|
1382
|
+
deviceId: string | null;
|
|
1383
|
+
|
|
1384
|
+
executionId: string;
|
|
1385
|
+
|
|
1386
|
+
flowId: string;
|
|
1387
|
+
|
|
1388
|
+
invocationId: string;
|
|
1389
|
+
|
|
1390
|
+
kind: 'verification';
|
|
1391
|
+
|
|
1392
|
+
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid';
|
|
1393
|
+
|
|
1394
|
+
triggerId: string;
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
|
|
877
1398
|
export interface FlowCreateParams {
|
|
878
1399
|
actions: Array<FlowCreateParams.Action>;
|
|
879
1400
|
|
|
@@ -885,6 +1406,8 @@ export interface FlowCreateParams {
|
|
|
885
1406
|
|
|
886
1407
|
cooldownSeconds?: number | null;
|
|
887
1408
|
|
|
1409
|
+
delivery?: FlowCreateParams.Delivery;
|
|
1410
|
+
|
|
888
1411
|
description?: string;
|
|
889
1412
|
|
|
890
1413
|
deviceIds?: Array<string>;
|
|
@@ -899,10 +1422,6 @@ export interface FlowCreateParams {
|
|
|
899
1422
|
|
|
900
1423
|
notifyWebhookId?: string | null;
|
|
901
1424
|
|
|
902
|
-
/**
|
|
903
|
-
* @deprecated Deprecated compatibility field. true maps to
|
|
904
|
-
* recordingPolicy.mode="flow"; false maps to "off".
|
|
905
|
-
*/
|
|
906
1425
|
recordingEnabled?: boolean;
|
|
907
1426
|
|
|
908
1427
|
recordingPolicy?: FlowCreateParams.RecordingPolicy;
|
|
@@ -922,6 +1441,15 @@ export namespace FlowCreateParams {
|
|
|
922
1441
|
|
|
923
1442
|
continueOnError?: boolean;
|
|
924
1443
|
|
|
1444
|
+
/**
|
|
1445
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
1446
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
1447
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
1448
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
1449
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
1450
|
+
*/
|
|
1451
|
+
key?: string;
|
|
1452
|
+
|
|
925
1453
|
nameOverride?: string;
|
|
926
1454
|
|
|
927
1455
|
overrides?: Action.Overrides | null;
|
|
@@ -937,6 +1465,15 @@ export namespace FlowCreateParams {
|
|
|
937
1465
|
|
|
938
1466
|
continueOnError?: boolean;
|
|
939
1467
|
|
|
1468
|
+
/**
|
|
1469
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
1470
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
1471
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
1472
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
1473
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
1474
|
+
*/
|
|
1475
|
+
key?: string;
|
|
1476
|
+
|
|
940
1477
|
nameOverride?: string;
|
|
941
1478
|
|
|
942
1479
|
overrides?: Child.Overrides | null;
|
|
@@ -955,6 +1492,25 @@ export namespace FlowCreateParams {
|
|
|
955
1492
|
}
|
|
956
1493
|
}
|
|
957
1494
|
|
|
1495
|
+
export interface Delivery {
|
|
1496
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
1497
|
+
|
|
1498
|
+
/**
|
|
1499
|
+
* not allowed when destination is mobilerun
|
|
1500
|
+
*/
|
|
1501
|
+
folder?: string;
|
|
1502
|
+
|
|
1503
|
+
recording?: Delivery.Recording;
|
|
1504
|
+
|
|
1505
|
+
screenshots?: unknown;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
export namespace Delivery {
|
|
1509
|
+
export interface Recording {
|
|
1510
|
+
filename: string;
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
|
|
958
1514
|
export interface RecordingPolicy {
|
|
959
1515
|
mode: 'off' | 'flow' | 'selected_steps';
|
|
960
1516
|
}
|
|
@@ -965,6 +1521,8 @@ export interface FlowUpdateParams {
|
|
|
965
1521
|
|
|
966
1522
|
cooldownSeconds?: number | null;
|
|
967
1523
|
|
|
1524
|
+
delivery?: FlowUpdateParams.Delivery | null;
|
|
1525
|
+
|
|
968
1526
|
description?: string;
|
|
969
1527
|
|
|
970
1528
|
deviceIds?: Array<string>;
|
|
@@ -1002,6 +1560,25 @@ export interface FlowUpdateParams {
|
|
|
1002
1560
|
}
|
|
1003
1561
|
|
|
1004
1562
|
export namespace FlowUpdateParams {
|
|
1563
|
+
export interface Delivery {
|
|
1564
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
1565
|
+
|
|
1566
|
+
/**
|
|
1567
|
+
* not allowed when destination is mobilerun
|
|
1568
|
+
*/
|
|
1569
|
+
folder?: string;
|
|
1570
|
+
|
|
1571
|
+
recording?: Delivery.Recording;
|
|
1572
|
+
|
|
1573
|
+
screenshots?: unknown;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
export namespace Delivery {
|
|
1577
|
+
export interface Recording {
|
|
1578
|
+
filename: string;
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1005
1582
|
export interface RecordingPolicy {
|
|
1006
1583
|
mode: 'off' | 'flow' | 'selected_steps';
|
|
1007
1584
|
}
|
|
@@ -1035,6 +1612,10 @@ export interface FlowListParams {
|
|
|
1035
1612
|
triggerId?: string;
|
|
1036
1613
|
}
|
|
1037
1614
|
|
|
1615
|
+
export interface FlowActivateParams {
|
|
1616
|
+
verificationExecutionId: string;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1038
1619
|
export interface FlowCloneParams {
|
|
1039
1620
|
deviceIds?: Array<string>;
|
|
1040
1621
|
|
|
@@ -1045,6 +1626,199 @@ export interface FlowDryRunParams {
|
|
|
1045
1626
|
payload?: { [key: string]: unknown };
|
|
1046
1627
|
}
|
|
1047
1628
|
|
|
1629
|
+
export interface FlowRunParams {
|
|
1630
|
+
/**
|
|
1631
|
+
* Record and keep this run's scripts.run screenshots
|
|
1632
|
+
* (device.screenshot(save=True)) even without flow delivery. Used for a one-off
|
|
1633
|
+
* proof run.
|
|
1634
|
+
*/
|
|
1635
|
+
captureScreenshots?: boolean;
|
|
1636
|
+
|
|
1637
|
+
payload?: { [key: string]: unknown };
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
export interface FlowTemplateContextParams {
|
|
1641
|
+
templateResolutionVersion?: number;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
export interface FlowValidateParams {
|
|
1645
|
+
actions: Array<FlowValidateParams.FlowActionInput | FlowValidateParams.FlowDraftActionInput>;
|
|
1646
|
+
|
|
1647
|
+
name: string;
|
|
1648
|
+
|
|
1649
|
+
cooldownScope?: 'flow' | 'device';
|
|
1650
|
+
|
|
1651
|
+
cooldownSeconds?: number | null;
|
|
1652
|
+
|
|
1653
|
+
delivery?: FlowValidateParams.Delivery;
|
|
1654
|
+
|
|
1655
|
+
description?: string;
|
|
1656
|
+
|
|
1657
|
+
deviceIds?: Array<string>;
|
|
1658
|
+
|
|
1659
|
+
enabled?: boolean;
|
|
1660
|
+
|
|
1661
|
+
healthMonitoringEnabled?: boolean;
|
|
1662
|
+
|
|
1663
|
+
notifyOnFailure?: boolean;
|
|
1664
|
+
|
|
1665
|
+
notifyOnSuccess?: boolean;
|
|
1666
|
+
|
|
1667
|
+
notifyWebhookId?: string | null;
|
|
1668
|
+
|
|
1669
|
+
recordingEnabled?: boolean;
|
|
1670
|
+
|
|
1671
|
+
recordingPolicy?: FlowValidateParams.RecordingPolicy;
|
|
1672
|
+
|
|
1673
|
+
selfHealingEnabled?: boolean;
|
|
1674
|
+
|
|
1675
|
+
selfHealingMaxAttempts?: number;
|
|
1676
|
+
|
|
1677
|
+
triggerId?: string;
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
export namespace FlowValidateParams {
|
|
1681
|
+
export interface FlowActionInput {
|
|
1682
|
+
actionId: string;
|
|
1683
|
+
|
|
1684
|
+
position: number;
|
|
1685
|
+
|
|
1686
|
+
children?: Array<FlowActionInput.Child>;
|
|
1687
|
+
|
|
1688
|
+
continueOnError?: boolean;
|
|
1689
|
+
|
|
1690
|
+
/**
|
|
1691
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
1692
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
1693
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
1694
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
1695
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
1696
|
+
*/
|
|
1697
|
+
key?: string;
|
|
1698
|
+
|
|
1699
|
+
nameOverride?: string;
|
|
1700
|
+
|
|
1701
|
+
overrides?: FlowActionInput.Overrides | null;
|
|
1702
|
+
|
|
1703
|
+
recordingEnabled?: boolean;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
export namespace FlowActionInput {
|
|
1707
|
+
export interface Child {
|
|
1708
|
+
actionId: string;
|
|
1709
|
+
|
|
1710
|
+
position: number;
|
|
1711
|
+
|
|
1712
|
+
continueOnError?: boolean;
|
|
1713
|
+
|
|
1714
|
+
/**
|
|
1715
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
1716
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
1717
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
1718
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
1719
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
1720
|
+
*/
|
|
1721
|
+
key?: string;
|
|
1722
|
+
|
|
1723
|
+
nameOverride?: string;
|
|
1724
|
+
|
|
1725
|
+
overrides?: Child.Overrides | null;
|
|
1726
|
+
|
|
1727
|
+
recordingEnabled?: boolean;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
export namespace Child {
|
|
1731
|
+
export interface Overrides {
|
|
1732
|
+
params?: { [key: string]: unknown };
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
export interface Overrides {
|
|
1737
|
+
params?: { [key: string]: unknown };
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
export interface FlowDraftActionInput {
|
|
1742
|
+
draft: FlowDraftActionInput.Draft;
|
|
1743
|
+
|
|
1744
|
+
position: number;
|
|
1745
|
+
|
|
1746
|
+
continueOnError?: boolean;
|
|
1747
|
+
|
|
1748
|
+
/**
|
|
1749
|
+
* Stable identifier used by template resolution v2+ to address this step as
|
|
1750
|
+
* {{key.field}}. Omitted keys are derived from the step name whenever a flow is
|
|
1751
|
+
* created. For template resolution v3, replacing an existing flow's full action
|
|
1752
|
+
* tree requires every step to carry an explicit key — a missing key is rejected
|
|
1753
|
+
* there, not derived, so a name change can never silently move a step's key.
|
|
1754
|
+
*/
|
|
1755
|
+
key?: string;
|
|
1756
|
+
|
|
1757
|
+
nameOverride?: string;
|
|
1758
|
+
|
|
1759
|
+
overrides?: FlowDraftActionInput.Overrides | null;
|
|
1760
|
+
|
|
1761
|
+
recordingEnabled?: boolean;
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
export namespace FlowDraftActionInput {
|
|
1765
|
+
export interface Draft {
|
|
1766
|
+
method: string;
|
|
1767
|
+
|
|
1768
|
+
name: string;
|
|
1769
|
+
|
|
1770
|
+
service: string;
|
|
1771
|
+
|
|
1772
|
+
params?: { [key: string]: unknown };
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
export interface Overrides {
|
|
1776
|
+
params?: { [key: string]: unknown };
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
export interface Delivery {
|
|
1781
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
1782
|
+
|
|
1783
|
+
/**
|
|
1784
|
+
* not allowed when destination is mobilerun
|
|
1785
|
+
*/
|
|
1786
|
+
folder?: string;
|
|
1787
|
+
|
|
1788
|
+
recording?: Delivery.Recording;
|
|
1789
|
+
|
|
1790
|
+
screenshots?: unknown;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
export namespace Delivery {
|
|
1794
|
+
export interface Recording {
|
|
1795
|
+
filename: string;
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
export interface RecordingPolicy {
|
|
1800
|
+
mode: 'off' | 'flow' | 'selected_steps';
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
export interface FlowVerifyParams {
|
|
1805
|
+
/**
|
|
1806
|
+
* Client-supplied idempotency key. A repeat request for the same (flow,
|
|
1807
|
+
* invocationId) returns the existing verification run (`deduplicated: true`,
|
|
1808
|
+
* HTTP 200) instead of enqueuing another.
|
|
1809
|
+
*/
|
|
1810
|
+
invocationId: string;
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* Device to run the verification on. Must be one the flow is bound to. Optional
|
|
1814
|
+
* only when the flow is bound to exactly one device (that device is used);
|
|
1815
|
+
* otherwise required.
|
|
1816
|
+
*/
|
|
1817
|
+
deviceId?: string;
|
|
1818
|
+
|
|
1819
|
+
payload?: { [key: string]: unknown };
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1048
1822
|
Flows.Actions = Actions;
|
|
1049
1823
|
|
|
1050
1824
|
export declare namespace Flows {
|
|
@@ -1054,16 +1828,27 @@ export declare namespace Flows {
|
|
|
1054
1828
|
type FlowUpdateResponse as FlowUpdateResponse,
|
|
1055
1829
|
type FlowListResponse as FlowListResponse,
|
|
1056
1830
|
type FlowDeleteResponse as FlowDeleteResponse,
|
|
1831
|
+
type FlowActivateResponse as FlowActivateResponse,
|
|
1057
1832
|
type FlowCapacityResponse as FlowCapacityResponse,
|
|
1058
1833
|
type FlowCloneResponse as FlowCloneResponse,
|
|
1834
|
+
type FlowDeliveryOptionsResponse as FlowDeliveryOptionsResponse,
|
|
1059
1835
|
type FlowDryRunResponse as FlowDryRunResponse,
|
|
1060
1836
|
type FlowListRepairsResponse as FlowListRepairsResponse,
|
|
1837
|
+
type FlowRunResponse as FlowRunResponse,
|
|
1838
|
+
type FlowTemplateContextResponse as FlowTemplateContextResponse,
|
|
1061
1839
|
type FlowUnblockResponse as FlowUnblockResponse,
|
|
1840
|
+
type FlowValidateResponse as FlowValidateResponse,
|
|
1841
|
+
type FlowVerifyResponse as FlowVerifyResponse,
|
|
1062
1842
|
type FlowCreateParams as FlowCreateParams,
|
|
1063
1843
|
type FlowUpdateParams as FlowUpdateParams,
|
|
1064
1844
|
type FlowListParams as FlowListParams,
|
|
1845
|
+
type FlowActivateParams as FlowActivateParams,
|
|
1065
1846
|
type FlowCloneParams as FlowCloneParams,
|
|
1066
1847
|
type FlowDryRunParams as FlowDryRunParams,
|
|
1848
|
+
type FlowRunParams as FlowRunParams,
|
|
1849
|
+
type FlowTemplateContextParams as FlowTemplateContextParams,
|
|
1850
|
+
type FlowValidateParams as FlowValidateParams,
|
|
1851
|
+
type FlowVerifyParams as FlowVerifyParams,
|
|
1067
1852
|
};
|
|
1068
1853
|
|
|
1069
1854
|
export {
|