@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
|
@@ -15,6 +15,10 @@ export class Actions extends APIResource {
|
|
|
15
15
|
* Create a reusable action from a catalog entry (`catalogEntryId`), with an
|
|
16
16
|
* optional `params` object supplying the values for that entry's service method.
|
|
17
17
|
* Returns 400 if the params are invalid for the chosen catalog entry.
|
|
18
|
+
*
|
|
19
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
20
|
+
* characters). Replays with the same key and an identical body return the original
|
|
21
|
+
* 201; a changed body under the same key returns 422 `idempotency_key_reused`.
|
|
18
22
|
*/
|
|
19
23
|
create(body: ActionCreateParams, options?: RequestOptions): APIPromise<ActionCreateResponse> {
|
|
20
24
|
return this._client.post('/actions', { body, ...options });
|
|
@@ -81,7 +85,7 @@ export namespace ActionCreateResponse {
|
|
|
81
85
|
|
|
82
86
|
ownerId: string;
|
|
83
87
|
|
|
84
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
88
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
85
89
|
|
|
86
90
|
updatedAt: string | null;
|
|
87
91
|
|
|
@@ -118,7 +122,7 @@ export namespace ActionRetrieveResponse {
|
|
|
118
122
|
|
|
119
123
|
ownerId: string;
|
|
120
124
|
|
|
121
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
125
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
122
126
|
|
|
123
127
|
updatedAt: string | null;
|
|
124
128
|
|
|
@@ -155,7 +159,7 @@ export namespace ActionUpdateResponse {
|
|
|
155
159
|
|
|
156
160
|
ownerId: string;
|
|
157
161
|
|
|
158
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
162
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
159
163
|
|
|
160
164
|
updatedAt: string | null;
|
|
161
165
|
|
|
@@ -194,7 +198,7 @@ export namespace ActionListResponse {
|
|
|
194
198
|
|
|
195
199
|
ownerId: string;
|
|
196
200
|
|
|
197
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
201
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
198
202
|
|
|
199
203
|
updatedAt: string | null;
|
|
200
204
|
|
|
@@ -242,7 +246,7 @@ export interface ActionListParams {
|
|
|
242
246
|
|
|
243
247
|
search?: string;
|
|
244
248
|
|
|
245
|
-
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
249
|
+
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
246
250
|
}
|
|
247
251
|
|
|
248
252
|
Actions.Services = Services;
|
|
@@ -51,13 +51,15 @@ export namespace EventDryRunResponse {
|
|
|
51
51
|
|
|
52
52
|
flowActionId: string;
|
|
53
53
|
|
|
54
|
+
key: string;
|
|
55
|
+
|
|
54
56
|
method: string;
|
|
55
57
|
|
|
56
58
|
name: string;
|
|
57
59
|
|
|
58
60
|
recordingEnabled: boolean;
|
|
59
61
|
|
|
60
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
62
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
61
63
|
|
|
62
64
|
/**
|
|
63
65
|
* Nested child actions (loop/branch bodies), each the same shape as a
|
|
@@ -85,6 +87,8 @@ export namespace EventDryRunResponse {
|
|
|
85
87
|
|
|
86
88
|
createdBy: string | null;
|
|
87
89
|
|
|
90
|
+
delivery: Flow.Delivery | null;
|
|
91
|
+
|
|
88
92
|
description: string | null;
|
|
89
93
|
|
|
90
94
|
deviceIds: Array<string>;
|
|
@@ -137,10 +141,11 @@ export namespace EventDryRunResponse {
|
|
|
137
141
|
status: 'healthy' | 'failing' | 'blocked';
|
|
138
142
|
|
|
139
143
|
/**
|
|
140
|
-
* Template-resolver semantics this flow runs under
|
|
144
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
141
145
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
142
|
-
* a whole-token null stays JSON null).
|
|
143
|
-
*
|
|
146
|
+
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
147
|
+
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
148
|
+
* Existing flows stay 1; new flows default to the current version.
|
|
144
149
|
*/
|
|
145
150
|
templateResolutionVersion: number;
|
|
146
151
|
|
|
@@ -155,6 +160,25 @@ export namespace EventDryRunResponse {
|
|
|
155
160
|
}
|
|
156
161
|
|
|
157
162
|
export namespace Flow {
|
|
163
|
+
export interface Delivery {
|
|
164
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* not allowed when destination is mobilerun
|
|
168
|
+
*/
|
|
169
|
+
folder?: string;
|
|
170
|
+
|
|
171
|
+
recording?: Delivery.Recording;
|
|
172
|
+
|
|
173
|
+
screenshots?: unknown;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export namespace Delivery {
|
|
177
|
+
export interface Recording {
|
|
178
|
+
filename: string;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
158
182
|
export interface RecordingPolicy {
|
|
159
183
|
mode: 'off' | 'flow' | 'selected_steps';
|
|
160
184
|
}
|
|
@@ -191,7 +215,7 @@ export namespace EventDryRunResponse {
|
|
|
191
215
|
|
|
192
216
|
ownerId: string;
|
|
193
217
|
|
|
194
|
-
scheduleRule:
|
|
218
|
+
scheduleRule: Trigger.ScheduleRule;
|
|
195
219
|
|
|
196
220
|
timezone: string | null;
|
|
197
221
|
|
|
@@ -206,6 +230,43 @@ export namespace EventDryRunResponse {
|
|
|
206
230
|
|
|
207
231
|
nextFireTime?: string | null;
|
|
208
232
|
}
|
|
233
|
+
|
|
234
|
+
export namespace Trigger {
|
|
235
|
+
export interface ScheduleRule {
|
|
236
|
+
type: 'once' | 'cron' | 'recurring';
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* ISO 8601 datetime (for type=once)
|
|
240
|
+
*/
|
|
241
|
+
dateTime?: string;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Cron expression (for type=cron)
|
|
245
|
+
*/
|
|
246
|
+
expression?: string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
250
|
+
*/
|
|
251
|
+
jitter?: ScheduleRule.Jitter;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* RRULE string (for type=recurring)
|
|
255
|
+
*/
|
|
256
|
+
rrule?: string;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export namespace ScheduleRule {
|
|
260
|
+
/**
|
|
261
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
262
|
+
*/
|
|
263
|
+
export interface Jitter {
|
|
264
|
+
afterMinutes?: number;
|
|
265
|
+
|
|
266
|
+
beforeMinutes?: number;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
209
270
|
}
|
|
210
271
|
|
|
211
272
|
export interface Validation {
|
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as Shared from '../../shared';
|
|
5
|
+
import * as ScreenshotsAPI from './screenshots';
|
|
6
|
+
import { ScreenshotRetrieveParams, Screenshots } from './screenshots';
|
|
7
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
8
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
9
|
+
import { path } from '../../../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
export class Executions extends APIResource {
|
|
12
|
+
screenshots: ScreenshotsAPI.Screenshots = new ScreenshotsAPI.Screenshots(this._client);
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Fetch a single flow execution by its ID, including its status, kind, result or
|
|
16
|
+
* error, and start/finish timestamps. Returns 404 if no execution matches.
|
|
17
|
+
*/
|
|
18
|
+
retrieve(executionID: string, options?: RequestOptions): APIPromise<ExecutionRetrieveResponse> {
|
|
19
|
+
return this._client.get(path`/executions/${executionID}`, options);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Return a paginated history of flow executions. Supports filtering by `flowId`,
|
|
24
|
+
* `triggerId`, `invocationId` (the client/verify key), `status`, and a `from`/`to`
|
|
25
|
+
* time range, plus free-text `search` and ordering by startedAt, finishedAt, or
|
|
26
|
+
* status.
|
|
27
|
+
*/
|
|
28
|
+
list(
|
|
29
|
+
query: ExecutionListParams | null | undefined = {},
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): APIPromise<ExecutionListResponse> {
|
|
32
|
+
return this._client.get('/executions', { query, ...options });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Stops the execution between steps and marks it cancelled. Idempotent-ish:
|
|
37
|
+
* already-terminal executions return 409.
|
|
38
|
+
*/
|
|
39
|
+
abort(executionID: string, options?: RequestOptions): APIPromise<ExecutionAbortResponse> {
|
|
40
|
+
return this._client.post(path`/executions/${executionID}/abort`, options);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Return aggregate execution metrics — total count, counts by status, average
|
|
45
|
+
* duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
|
|
46
|
+
* and a `from`/`to` time range.
|
|
47
|
+
*/
|
|
48
|
+
getMetrics(
|
|
49
|
+
query: ExecutionGetMetricsParams | null | undefined = {},
|
|
50
|
+
options?: RequestOptions,
|
|
51
|
+
): APIPromise<ExecutionGetMetricsResponse> {
|
|
52
|
+
return this._client.get('/executions/metrics', { query, ...options });
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface ExecutionRetrieveResponse {
|
|
57
|
+
data: ExecutionRetrieveResponse.Data;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export namespace ExecutionRetrieveResponse {
|
|
61
|
+
export interface Data {
|
|
62
|
+
id: string;
|
|
63
|
+
|
|
64
|
+
createdBy: string | null;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* OneDrive/Google Drive delivery lifecycle for this run's recording, file, and
|
|
68
|
+
* screenshot uploads, ordered by startedAt. Empty when the flow has no delivery
|
|
69
|
+
* configured.
|
|
70
|
+
*/
|
|
71
|
+
deliveries: Array<Data.Delivery>;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Device this execution targets (the job's deviceId). Null for device-less
|
|
75
|
+
* (event-only) runs.
|
|
76
|
+
*/
|
|
77
|
+
deviceId: string | null;
|
|
78
|
+
|
|
79
|
+
error: string | null;
|
|
80
|
+
|
|
81
|
+
eventId: string | null;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Files produced by files.upload steps, plus files an agent.run step reported on
|
|
85
|
+
* its terminal response (agent-created output or a workflow upload minted during
|
|
86
|
+
* the turn); derived server-side at read time.
|
|
87
|
+
*/
|
|
88
|
+
files: Array<Data.File>;
|
|
89
|
+
|
|
90
|
+
finishedAt: string | null;
|
|
91
|
+
|
|
92
|
+
flowId: string;
|
|
93
|
+
|
|
94
|
+
flowName: string | null;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Client/verify invocation key this row belongs to. Set on live custom fires (one
|
|
98
|
+
* row per device fan-out) and on verification runs; null for event/schedule live
|
|
99
|
+
* rows.
|
|
100
|
+
*/
|
|
101
|
+
invocationId: string | null;
|
|
102
|
+
|
|
103
|
+
kind: 'live' | 'dry_run' | 'verification';
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Live progress; null for runs started before this feature.
|
|
107
|
+
*/
|
|
108
|
+
progress: Data.Progress | null;
|
|
109
|
+
|
|
110
|
+
recordingDeviceId: string | null;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Device recording id for this execution, set once recording starts. Null when the
|
|
114
|
+
* flow has recording disabled, no device is bound, or the recording failed to
|
|
115
|
+
* start.
|
|
116
|
+
*/
|
|
117
|
+
recordingId: string | null;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Durable recording segments ordered by step/loop coordinate and retry attempt.
|
|
121
|
+
* Whole-flow recordings use -1 for every coordinate.
|
|
122
|
+
*/
|
|
123
|
+
recordings: Array<Data.Recording>;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Screenshots captured by tasks.run/agent.run steps and saved by scripts into the
|
|
127
|
+
* flow screenshots recording (source recording), ordered by seq. Image bytes are
|
|
128
|
+
* never returned here — fetch a fresh signed URL via GET
|
|
129
|
+
* /executions/{id}/screenshots/{screenshotId}.
|
|
130
|
+
*/
|
|
131
|
+
screenshots: Array<Data.Screenshot>;
|
|
132
|
+
|
|
133
|
+
startedAt: string | null;
|
|
134
|
+
|
|
135
|
+
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
136
|
+
|
|
137
|
+
triggerId: string;
|
|
138
|
+
|
|
139
|
+
triggerName: string | null;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
143
|
+
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
144
|
+
* step that opted into a verdict — null otherwise. Steps of current executions
|
|
145
|
+
* also carry a `status` string (e.g. success/failed/stopped); it is optional and
|
|
146
|
+
* absent on older executions, so clients must not assume its presence.
|
|
147
|
+
*/
|
|
148
|
+
result?: unknown;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export namespace Data {
|
|
152
|
+
export interface Delivery {
|
|
153
|
+
artifact: 'recording' | 'file' | 'screenshot';
|
|
154
|
+
|
|
155
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
156
|
+
|
|
157
|
+
errorCode: string | null;
|
|
158
|
+
|
|
159
|
+
filename: string;
|
|
160
|
+
|
|
161
|
+
finishedAt: string | null;
|
|
162
|
+
|
|
163
|
+
folder: string | null;
|
|
164
|
+
|
|
165
|
+
startedAt: string | null;
|
|
166
|
+
|
|
167
|
+
status: 'waiting' | 'uploading' | 'succeeded' | 'failed' | 'unknown' | 'cancelled';
|
|
168
|
+
|
|
169
|
+
stepIndex: number | null;
|
|
170
|
+
|
|
171
|
+
webUrl: string | null;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface File {
|
|
175
|
+
fileId: string;
|
|
176
|
+
|
|
177
|
+
filename: string;
|
|
178
|
+
|
|
179
|
+
mimeType: string;
|
|
180
|
+
|
|
181
|
+
sizeBytes: number;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Live progress; null for runs started before this feature.
|
|
186
|
+
*/
|
|
187
|
+
export interface Progress {
|
|
188
|
+
currentIndex: number | null;
|
|
189
|
+
|
|
190
|
+
steps: Array<Progress.Step>;
|
|
191
|
+
|
|
192
|
+
total: number;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export namespace Progress {
|
|
196
|
+
export interface Step {
|
|
197
|
+
finishedAt: string | null;
|
|
198
|
+
|
|
199
|
+
index: number;
|
|
200
|
+
|
|
201
|
+
method: string;
|
|
202
|
+
|
|
203
|
+
name: string;
|
|
204
|
+
|
|
205
|
+
service: string;
|
|
206
|
+
|
|
207
|
+
sessionId: string | null;
|
|
208
|
+
|
|
209
|
+
startedAt: string | null;
|
|
210
|
+
|
|
211
|
+
status: 'pending' | 'running' | 'success' | 'failed' | 'skipped' | 'cancelled';
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface Recording {
|
|
216
|
+
id: string;
|
|
217
|
+
|
|
218
|
+
attempt: number;
|
|
219
|
+
|
|
220
|
+
childIndex: number;
|
|
221
|
+
|
|
222
|
+
flowActionId: string | null;
|
|
223
|
+
|
|
224
|
+
iterationIndex: number;
|
|
225
|
+
|
|
226
|
+
lastError: string | null;
|
|
227
|
+
|
|
228
|
+
parentIndex: number;
|
|
229
|
+
|
|
230
|
+
recordingDeviceId: string | null;
|
|
231
|
+
|
|
232
|
+
recordingId: string | null;
|
|
233
|
+
|
|
234
|
+
scope: 'flow' | 'step';
|
|
235
|
+
|
|
236
|
+
startedAt: string | null;
|
|
237
|
+
|
|
238
|
+
status: 'starting' | 'recording' | 'stopping' | 'stopped' | 'failed';
|
|
239
|
+
|
|
240
|
+
stepIndex: number;
|
|
241
|
+
|
|
242
|
+
stoppedAt: string | null;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface Screenshot {
|
|
246
|
+
id: string;
|
|
247
|
+
|
|
248
|
+
capturedAt: string | null;
|
|
249
|
+
|
|
250
|
+
iterationIndex: number;
|
|
251
|
+
|
|
252
|
+
mimeType: string;
|
|
253
|
+
|
|
254
|
+
seq: number;
|
|
255
|
+
|
|
256
|
+
source: 'task' | 'agent' | 'recording';
|
|
257
|
+
|
|
258
|
+
stepIndex: number;
|
|
259
|
+
|
|
260
|
+
stepName: string;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export interface ExecutionListResponse {
|
|
266
|
+
items: Array<ExecutionListResponse.Item>;
|
|
267
|
+
|
|
268
|
+
pagination: Shared.Pagination;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export namespace ExecutionListResponse {
|
|
272
|
+
export interface Item {
|
|
273
|
+
id: string;
|
|
274
|
+
|
|
275
|
+
createdBy: string | null;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Device this execution targets (the job's deviceId). Null for device-less
|
|
279
|
+
* (event-only) runs.
|
|
280
|
+
*/
|
|
281
|
+
deviceId: string | null;
|
|
282
|
+
|
|
283
|
+
error: string | null;
|
|
284
|
+
|
|
285
|
+
eventId: string | null;
|
|
286
|
+
|
|
287
|
+
finishedAt: string | null;
|
|
288
|
+
|
|
289
|
+
flowId: string;
|
|
290
|
+
|
|
291
|
+
flowName: string | null;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Client/verify invocation key this row belongs to. Set on live custom fires (one
|
|
295
|
+
* row per device fan-out) and on verification runs; null for event/schedule live
|
|
296
|
+
* rows.
|
|
297
|
+
*/
|
|
298
|
+
invocationId: string | null;
|
|
299
|
+
|
|
300
|
+
kind: 'live' | 'dry_run' | 'verification';
|
|
301
|
+
|
|
302
|
+
recordingDeviceId: string | null;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Device recording id for this execution, set once recording starts. Null when the
|
|
306
|
+
* flow has recording disabled, no device is bound, or the recording failed to
|
|
307
|
+
* start.
|
|
308
|
+
*/
|
|
309
|
+
recordingId: string | null;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Durable recording segments ordered by step/loop coordinate and retry attempt.
|
|
313
|
+
* Whole-flow recordings use -1 for every coordinate.
|
|
314
|
+
*/
|
|
315
|
+
recordings: Array<Item.Recording>;
|
|
316
|
+
|
|
317
|
+
startedAt: string | null;
|
|
318
|
+
|
|
319
|
+
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
320
|
+
|
|
321
|
+
triggerId: string;
|
|
322
|
+
|
|
323
|
+
triggerName: string | null;
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
327
|
+
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
328
|
+
* step that opted into a verdict — null otherwise. Steps of current executions
|
|
329
|
+
* also carry a `status` string (e.g. success/failed/stopped); it is optional and
|
|
330
|
+
* absent on older executions, so clients must not assume its presence.
|
|
331
|
+
*/
|
|
332
|
+
result?: unknown;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export namespace Item {
|
|
336
|
+
export interface Recording {
|
|
337
|
+
id: string;
|
|
338
|
+
|
|
339
|
+
attempt: number;
|
|
340
|
+
|
|
341
|
+
childIndex: number;
|
|
342
|
+
|
|
343
|
+
flowActionId: string | null;
|
|
344
|
+
|
|
345
|
+
iterationIndex: number;
|
|
346
|
+
|
|
347
|
+
lastError: string | null;
|
|
348
|
+
|
|
349
|
+
parentIndex: number;
|
|
350
|
+
|
|
351
|
+
recordingDeviceId: string | null;
|
|
352
|
+
|
|
353
|
+
recordingId: string | null;
|
|
354
|
+
|
|
355
|
+
scope: 'flow' | 'step';
|
|
356
|
+
|
|
357
|
+
startedAt: string | null;
|
|
358
|
+
|
|
359
|
+
status: 'starting' | 'recording' | 'stopping' | 'stopped' | 'failed';
|
|
360
|
+
|
|
361
|
+
stepIndex: number;
|
|
362
|
+
|
|
363
|
+
stoppedAt: string | null;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export interface ExecutionAbortResponse {
|
|
369
|
+
data: ExecutionAbortResponse.Data;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export namespace ExecutionAbortResponse {
|
|
373
|
+
export interface Data {
|
|
374
|
+
id: string;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Device this execution targets (the job's deviceId). Null for device-less
|
|
378
|
+
* (event-only) runs.
|
|
379
|
+
*/
|
|
380
|
+
deviceId: string | null;
|
|
381
|
+
|
|
382
|
+
error: string | null;
|
|
383
|
+
|
|
384
|
+
eventId: string | null;
|
|
385
|
+
|
|
386
|
+
finishedAt: string | null;
|
|
387
|
+
|
|
388
|
+
flowId: string;
|
|
389
|
+
|
|
390
|
+
flowName: string | null;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Client/verify invocation key this row belongs to. Set on live custom fires (one
|
|
394
|
+
* row per device fan-out) and on verification runs; null for event/schedule live
|
|
395
|
+
* rows.
|
|
396
|
+
*/
|
|
397
|
+
invocationId: string | null;
|
|
398
|
+
|
|
399
|
+
kind: 'live' | 'dry_run' | 'verification';
|
|
400
|
+
|
|
401
|
+
recordingDeviceId: string | null;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Device recording id for this execution, set once recording starts. Null when the
|
|
405
|
+
* flow has recording disabled, no device is bound, or the recording failed to
|
|
406
|
+
* start.
|
|
407
|
+
*/
|
|
408
|
+
recordingId: string | null;
|
|
409
|
+
|
|
410
|
+
startedAt: string | null;
|
|
411
|
+
|
|
412
|
+
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
413
|
+
|
|
414
|
+
triggerId: string;
|
|
415
|
+
|
|
416
|
+
triggerName: string | null;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
420
|
+
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
421
|
+
* step that opted into a verdict — null otherwise. Steps of current executions
|
|
422
|
+
* also carry a `status` string (e.g. success/failed/stopped); it is optional and
|
|
423
|
+
* absent on older executions, so clients must not assume its presence.
|
|
424
|
+
*/
|
|
425
|
+
result?: unknown;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export interface ExecutionGetMetricsResponse {
|
|
430
|
+
data: ExecutionGetMetricsResponse.Data;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export namespace ExecutionGetMetricsResponse {
|
|
434
|
+
export interface Data {
|
|
435
|
+
avgDurationMs: number | null;
|
|
436
|
+
|
|
437
|
+
byStatus: Data.ByStatus;
|
|
438
|
+
|
|
439
|
+
lastExecutionAt: string | null;
|
|
440
|
+
|
|
441
|
+
total: number;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
export namespace Data {
|
|
445
|
+
export interface ByStatus {
|
|
446
|
+
cancelled: number;
|
|
447
|
+
|
|
448
|
+
failed: number;
|
|
449
|
+
|
|
450
|
+
invalid: number;
|
|
451
|
+
|
|
452
|
+
pending: number;
|
|
453
|
+
|
|
454
|
+
running: number;
|
|
455
|
+
|
|
456
|
+
skipped: number;
|
|
457
|
+
|
|
458
|
+
success: number;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
export interface ExecutionListParams {
|
|
464
|
+
flowId?: string;
|
|
465
|
+
|
|
466
|
+
from?: string | null;
|
|
467
|
+
|
|
468
|
+
invocationId?: string;
|
|
469
|
+
|
|
470
|
+
orderBy?: 'startedAt' | 'finishedAt' | 'status';
|
|
471
|
+
|
|
472
|
+
orderByDirection?: 'asc' | 'desc';
|
|
473
|
+
|
|
474
|
+
page?: number;
|
|
475
|
+
|
|
476
|
+
pageSize?: number;
|
|
477
|
+
|
|
478
|
+
search?: string;
|
|
479
|
+
|
|
480
|
+
status?: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid';
|
|
481
|
+
|
|
482
|
+
to?: string | null;
|
|
483
|
+
|
|
484
|
+
triggerId?: string;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
export interface ExecutionGetMetricsParams {
|
|
488
|
+
flowId?: string;
|
|
489
|
+
|
|
490
|
+
from?: string | null;
|
|
491
|
+
|
|
492
|
+
to?: string | null;
|
|
493
|
+
|
|
494
|
+
triggerId?: string;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
Executions.Screenshots = Screenshots;
|
|
498
|
+
|
|
499
|
+
export declare namespace Executions {
|
|
500
|
+
export {
|
|
501
|
+
type ExecutionRetrieveResponse as ExecutionRetrieveResponse,
|
|
502
|
+
type ExecutionListResponse as ExecutionListResponse,
|
|
503
|
+
type ExecutionAbortResponse as ExecutionAbortResponse,
|
|
504
|
+
type ExecutionGetMetricsResponse as ExecutionGetMetricsResponse,
|
|
505
|
+
type ExecutionListParams as ExecutionListParams,
|
|
506
|
+
type ExecutionGetMetricsParams as ExecutionGetMetricsParams,
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
export { Screenshots as Screenshots, type ScreenshotRetrieveParams as ScreenshotRetrieveParams };
|
|
510
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Executions,
|
|
5
|
+
type ExecutionRetrieveResponse,
|
|
6
|
+
type ExecutionListResponse,
|
|
7
|
+
type ExecutionAbortResponse,
|
|
8
|
+
type ExecutionGetMetricsResponse,
|
|
9
|
+
type ExecutionListParams,
|
|
10
|
+
type ExecutionGetMetricsParams,
|
|
11
|
+
} from './executions';
|
|
12
|
+
export { Screenshots, type ScreenshotRetrieveParams } from './screenshots';
|