@mobilerun/sdk 4.0.0 → 5.2.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 +313 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +34 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +34 -29
- package/client.d.ts.map +1 -1
- package/client.js +44 -22
- package/client.js.map +1 -1
- package/client.mjs +46 -24
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +10 -10
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +10 -10
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/lib/trajectory-decoder-stream.d.mts.map +1 -1
- package/lib/trajectory-decoder-stream.d.ts.map +1 -1
- package/package.json +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/apps.d.mts +203 -16
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +203 -16
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +98 -0
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +98 -0
- package/resources/apps.mjs.map +1 -1
- package/resources/carriers.d.mts +105 -7
- package/resources/carriers.d.mts.map +1 -1
- package/resources/carriers.d.ts +105 -7
- package/resources/carriers.d.ts.map +1 -1
- package/resources/carriers.js.map +1 -1
- package/resources/carriers.mjs.map +1 -1
- package/resources/connect/connect.d.mts +18 -0
- package/resources/connect/connect.d.mts.map +1 -0
- package/resources/connect/connect.d.ts +18 -0
- package/resources/connect/connect.d.ts.map +1 -0
- package/resources/connect/connect.js +25 -0
- package/resources/connect/connect.js.map +1 -0
- package/resources/connect/connect.mjs +20 -0
- package/resources/connect/connect.mjs.map +1 -0
- package/resources/connect/countries.d.mts +84 -0
- package/resources/connect/countries.d.mts.map +1 -0
- package/resources/connect/countries.d.ts +84 -0
- package/resources/connect/countries.d.ts.map +1 -0
- package/resources/connect/countries.js +20 -0
- package/resources/connect/countries.js.map +1 -0
- package/resources/connect/countries.mjs +16 -0
- package/resources/connect/countries.mjs.map +1 -0
- package/resources/connect/index.d.mts +5 -0
- package/resources/connect/index.d.mts.map +1 -0
- package/resources/connect/index.d.ts +5 -0
- package/resources/connect/index.d.ts.map +1 -0
- package/resources/connect/index.js +13 -0
- package/resources/connect/index.js.map +1 -0
- package/resources/connect/index.mjs +6 -0
- package/resources/connect/index.mjs.map +1 -0
- package/resources/connect/proxies.d.mts +456 -0
- package/resources/connect/proxies.d.mts.map +1 -0
- package/resources/connect/proxies.d.ts +456 -0
- package/resources/connect/proxies.d.ts.map +1 -0
- package/resources/connect/proxies.js +59 -0
- package/resources/connect/proxies.js.map +1 -0
- package/resources/connect/proxies.mjs +55 -0
- package/resources/connect/proxies.mjs.map +1 -0
- package/resources/connect/users.d.mts +392 -0
- package/resources/connect/users.d.mts.map +1 -0
- package/resources/connect/users.d.ts +392 -0
- package/resources/connect/users.d.ts.map +1 -0
- package/resources/connect/users.js +59 -0
- package/resources/connect/users.js.map +1 -0
- package/resources/connect/users.mjs +55 -0
- package/resources/connect/users.mjs.map +1 -0
- package/resources/connect.d.mts +2 -0
- package/resources/connect.d.mts.map +1 -0
- package/resources/connect.d.ts +2 -0
- package/resources/connect.d.ts.map +1 -0
- package/resources/connect.js +6 -0
- package/resources/connect.js.map +1 -0
- package/resources/connect.mjs +3 -0
- package/resources/connect.mjs.map +1 -0
- package/resources/credentials/credentials.d.mts +3 -1
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +3 -1
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +3 -1
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +3 -1
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/index.d.mts.map +1 -1
- package/resources/credentials/index.d.ts.map +1 -1
- package/resources/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.mts +14 -4
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +14 -4
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +7 -3
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +7 -3
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +8 -3
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +8 -3
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/fields.js +8 -3
- package/resources/credentials/packages/credentials/fields.js.map +1 -1
- package/resources/credentials/packages/credentials/fields.mjs +8 -3
- package/resources/credentials/packages/credentials/fields.mjs.map +1 -1
- package/resources/credentials/packages/credentials/index.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/index.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials.mjs.map +1 -1
- package/resources/credentials/packages/index.d.mts.map +1 -1
- package/resources/credentials/packages/index.d.ts.map +1 -1
- package/resources/credentials/packages/index.mjs.map +1 -1
- package/resources/credentials/packages/packages.d.mts +5 -2
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +5 -2
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +5 -2
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +5 -2
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/credentials/packages.d.mts.map +1 -1
- package/resources/credentials/packages.d.ts.map +1 -1
- package/resources/credentials/packages.mjs.map +1 -1
- package/resources/credentials.d.mts.map +1 -1
- package/resources/credentials.d.ts.map +1 -1
- package/resources/credentials.mjs.map +1 -1
- package/resources/devices/actions.d.mts +10 -5
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +10 -5
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +10 -5
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +10 -5
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +78 -24
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +78 -24
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +38 -22
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +38 -22
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +168 -41
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +168 -41
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +86 -27
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +86 -27
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/esim.d.mts +14 -6
- package/resources/devices/esim.d.mts.map +1 -1
- package/resources/devices/esim.d.ts +14 -6
- package/resources/devices/esim.d.ts.map +1 -1
- package/resources/devices/esim.js +6 -4
- package/resources/devices/esim.js.map +1 -1
- package/resources/devices/esim.mjs +6 -4
- package/resources/devices/esim.mjs.map +1 -1
- package/resources/devices/files.d.mts +7 -4
- package/resources/devices/files.d.mts.map +1 -1
- package/resources/devices/files.d.ts +7 -4
- package/resources/devices/files.d.ts.map +1 -1
- package/resources/devices/files.js +7 -4
- package/resources/devices/files.js.map +1 -1
- package/resources/devices/files.mjs +7 -4
- package/resources/devices/files.mjs.map +1 -1
- package/resources/devices/index.d.mts +6 -5
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +6 -5
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +5 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +3 -2
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +10 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +10 -3
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.js +5 -3
- package/resources/devices/keyboard.js.map +1 -1
- package/resources/devices/keyboard.mjs +5 -3
- package/resources/devices/keyboard.mjs.map +1 -1
- package/resources/devices/language.d.mts +45 -0
- package/resources/devices/language.d.mts.map +1 -0
- package/resources/devices/language.d.ts +45 -0
- package/resources/devices/language.d.ts.map +1 -0
- package/resources/devices/language.js +49 -0
- package/resources/devices/language.js.map +1 -0
- package/resources/devices/language.mjs +45 -0
- package/resources/devices/language.mjs.map +1 -0
- package/resources/devices/location.d.mts +7 -12
- package/resources/devices/location.d.mts.map +1 -1
- package/resources/devices/location.d.ts +7 -12
- package/resources/devices/location.d.ts.map +1 -1
- package/resources/devices/location.js +4 -2
- package/resources/devices/location.js.map +1 -1
- package/resources/devices/location.mjs +4 -2
- package/resources/devices/location.mjs.map +1 -1
- package/resources/devices/packages.d.mts +2 -1
- package/resources/devices/packages.d.mts.map +1 -1
- package/resources/devices/packages.d.ts +2 -1
- package/resources/devices/packages.d.ts.map +1 -1
- package/resources/devices/packages.js +2 -1
- package/resources/devices/packages.js.map +1 -1
- package/resources/devices/packages.mjs +2 -1
- package/resources/devices/packages.mjs.map +1 -1
- package/resources/devices/profile.d.mts.map +1 -1
- package/resources/devices/profile.d.ts.map +1 -1
- package/resources/devices/profile.mjs.map +1 -1
- package/resources/devices/proxy.d.mts +31 -10
- package/resources/devices/proxy.d.mts.map +1 -1
- package/resources/devices/proxy.d.ts +31 -10
- package/resources/devices/proxy.d.ts.map +1 -1
- package/resources/devices/proxy.js +7 -3
- package/resources/devices/proxy.js.map +1 -1
- package/resources/devices/proxy.mjs +7 -3
- package/resources/devices/proxy.mjs.map +1 -1
- package/resources/devices/state.d.mts +44 -5
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +44 -5
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +22 -2
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +22 -2
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/tasks.d.mts +4 -9
- package/resources/devices/tasks.d.mts.map +1 -1
- package/resources/devices/tasks.d.ts +4 -9
- package/resources/devices/tasks.d.ts.map +1 -1
- package/resources/devices/tasks.js +2 -1
- package/resources/devices/tasks.js.map +1 -1
- package/resources/devices/tasks.mjs +2 -1
- package/resources/devices/tasks.mjs.map +1 -1
- package/resources/devices/timezone.d.mts +39 -0
- package/resources/devices/timezone.d.mts.map +1 -0
- package/resources/devices/timezone.d.ts +39 -0
- package/resources/devices/timezone.d.ts.map +1 -0
- package/resources/devices/{time.js → timezone.js} +15 -30
- package/resources/devices/timezone.js.map +1 -0
- package/resources/devices/{time.mjs → timezone.mjs} +13 -28
- package/resources/devices/timezone.mjs.map +1 -0
- package/resources/devices.d.mts.map +1 -1
- package/resources/devices.d.ts.map +1 -1
- package/resources/devices.mjs.map +1 -1
- package/resources/hooks.d.mts +0 -208
- package/resources/hooks.d.mts.map +1 -1
- package/resources/hooks.d.ts +0 -208
- package/resources/hooks.d.ts.map +1 -1
- package/resources/hooks.js +0 -51
- package/resources/hooks.js.map +1 -1
- package/resources/hooks.mjs +0 -51
- package/resources/hooks.mjs.map +1 -1
- package/resources/index.d.mts +9 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -3
- package/resources/index.mjs.map +1 -1
- package/resources/models.d.mts +3 -0
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +3 -0
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -0
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -0
- package/resources/models.mjs.map +1 -1
- package/resources/profiles.d.mts +69 -6
- package/resources/profiles.d.mts.map +1 -1
- package/resources/profiles.d.ts +69 -6
- package/resources/profiles.d.ts.map +1 -1
- package/resources/profiles.js.map +1 -1
- package/resources/profiles.mjs.map +1 -1
- package/resources/proxies.d.mts +101 -6
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +101 -6
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +20 -5
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +20 -5
- package/resources/proxies.mjs.map +1 -1
- package/resources/shared.d.mts +32 -7
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +32 -7
- package/resources/shared.d.ts.map +1 -1
- package/resources/tasks/index.d.mts.map +1 -1
- package/resources/tasks/index.d.ts.map +1 -1
- package/resources/tasks/index.mjs.map +1 -1
- package/resources/tasks/screenshots.d.mts.map +1 -1
- package/resources/tasks/screenshots.d.ts.map +1 -1
- package/resources/tasks/screenshots.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +220 -64
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +220 -64
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +10 -2
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +10 -2
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/tasks/ui-states.d.mts.map +1 -1
- package/resources/tasks/ui-states.d.ts.map +1 -1
- package/resources/tasks/ui-states.mjs.map +1 -1
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +207 -0
- package/resources/webhooks/deliveries.d.mts.map +1 -0
- package/resources/webhooks/deliveries.d.ts +207 -0
- package/resources/webhooks/deliveries.d.ts.map +1 -0
- package/resources/webhooks/deliveries.js +73 -0
- package/resources/webhooks/deliveries.js.map +1 -0
- package/resources/webhooks/deliveries.mjs +69 -0
- package/resources/webhooks/deliveries.mjs.map +1 -0
- package/resources/webhooks/index.d.mts +3 -0
- package/resources/webhooks/index.d.mts.map +1 -0
- package/resources/webhooks/index.d.ts +3 -0
- package/resources/webhooks/index.d.ts.map +1 -0
- package/resources/webhooks/index.js +9 -0
- package/resources/webhooks/index.js.map +1 -0
- package/resources/webhooks/index.mjs +4 -0
- package/resources/webhooks/index.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +329 -0
- package/resources/webhooks/webhooks.d.mts.map +1 -0
- package/resources/webhooks/webhooks.d.ts +329 -0
- package/resources/webhooks/webhooks.d.ts.map +1 -0
- package/resources/webhooks/webhooks.js +140 -0
- package/resources/webhooks/webhooks.js.map +1 -0
- package/resources/webhooks/webhooks.mjs +135 -0
- package/resources/webhooks/webhooks.mjs.map +1 -0
- package/resources/webhooks.d.mts +2 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +2 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +6 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +3 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources/workflows/action-catalog.d.mts +43 -0
- package/resources/workflows/action-catalog.d.mts.map +1 -0
- package/resources/workflows/action-catalog.d.ts +43 -0
- package/resources/workflows/action-catalog.d.ts.map +1 -0
- package/resources/workflows/action-catalog.js +25 -0
- package/resources/workflows/action-catalog.js.map +1 -0
- package/resources/workflows/action-catalog.mjs +21 -0
- package/resources/workflows/action-catalog.mjs.map +1 -0
- package/resources/workflows/actions/actions.d.mts +96 -0
- package/resources/workflows/actions/actions.d.mts.map +1 -0
- package/resources/workflows/actions/actions.d.ts +96 -0
- package/resources/workflows/actions/actions.d.ts.map +1 -0
- package/resources/workflows/actions/actions.js +53 -0
- package/resources/workflows/actions/actions.js.map +1 -0
- package/resources/workflows/actions/actions.mjs +48 -0
- package/resources/workflows/actions/actions.mjs.map +1 -0
- package/resources/workflows/actions/index.d.mts +3 -0
- package/resources/workflows/actions/index.d.mts.map +1 -0
- package/resources/workflows/actions/index.d.ts +3 -0
- package/resources/workflows/actions/index.d.ts.map +1 -0
- package/resources/workflows/actions/index.js +9 -0
- package/resources/workflows/actions/index.js.map +1 -0
- package/resources/workflows/actions/index.mjs +4 -0
- package/resources/workflows/actions/index.mjs.map +1 -0
- package/resources/workflows/actions/services.d.mts +42 -0
- package/resources/workflows/actions/services.d.mts.map +1 -0
- package/resources/workflows/actions/services.d.ts +42 -0
- package/resources/workflows/actions/services.d.ts.map +1 -0
- package/resources/workflows/actions/services.js +25 -0
- package/resources/workflows/actions/services.js.map +1 -0
- package/resources/workflows/actions/services.mjs +21 -0
- package/resources/workflows/actions/services.mjs.map +1 -0
- package/resources/workflows/actions.d.mts +2 -0
- package/resources/workflows/actions.d.mts.map +1 -0
- package/resources/workflows/actions.d.ts +2 -0
- package/resources/workflows/actions.d.ts.map +1 -0
- package/resources/workflows/actions.js +6 -0
- package/resources/workflows/actions.js.map +1 -0
- package/resources/workflows/actions.mjs +3 -0
- package/resources/workflows/actions.mjs.map +1 -0
- package/resources/workflows/events/catalog.d.mts +4 -0
- package/resources/workflows/events/catalog.d.mts.map +1 -0
- package/resources/workflows/events/catalog.d.ts +4 -0
- package/resources/workflows/events/catalog.d.ts.map +1 -0
- package/resources/workflows/events/catalog.js +9 -0
- package/resources/workflows/events/catalog.js.map +1 -0
- package/resources/workflows/events/catalog.mjs +5 -0
- package/resources/workflows/events/catalog.mjs.map +1 -0
- package/resources/workflows/events/events.d.mts +113 -0
- package/resources/workflows/events/events.d.mts.map +1 -0
- package/resources/workflows/events/events.d.ts +113 -0
- package/resources/workflows/events/events.d.ts.map +1 -0
- package/resources/workflows/events/events.js +30 -0
- package/resources/workflows/events/events.js.map +1 -0
- package/resources/workflows/events/events.mjs +25 -0
- package/resources/workflows/events/events.mjs.map +1 -0
- package/resources/workflows/events/index.d.mts +3 -0
- package/resources/workflows/events/index.d.mts.map +1 -0
- package/resources/workflows/events/index.d.ts +3 -0
- package/resources/workflows/events/index.d.ts.map +1 -0
- package/resources/workflows/events/index.js +9 -0
- package/resources/workflows/events/index.js.map +1 -0
- package/resources/workflows/events/index.mjs +4 -0
- package/resources/workflows/events/index.mjs.map +1 -0
- package/resources/workflows/events.d.mts +2 -0
- package/resources/workflows/events.d.mts.map +1 -0
- package/resources/workflows/events.d.ts +2 -0
- package/resources/workflows/events.d.ts.map +1 -0
- package/resources/workflows/events.js +6 -0
- package/resources/workflows/events.js.map +1 -0
- package/resources/workflows/events.mjs +3 -0
- package/resources/workflows/events.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +121 -0
- package/resources/workflows/executions.d.mts.map +1 -0
- package/resources/workflows/executions.d.ts +121 -0
- package/resources/workflows/executions.d.ts.map +1 -0
- package/resources/workflows/executions.js +33 -0
- package/resources/workflows/executions.js.map +1 -0
- package/resources/workflows/executions.mjs +29 -0
- package/resources/workflows/executions.mjs.map +1 -0
- package/resources/workflows/flows/actions.d.mts +89 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -0
- package/resources/workflows/flows/actions.d.ts +89 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -0
- package/resources/workflows/flows/actions.js +43 -0
- package/resources/workflows/flows/actions.js.map +1 -0
- package/resources/workflows/flows/actions.mjs +39 -0
- package/resources/workflows/flows/actions.mjs.map +1 -0
- package/resources/workflows/flows/flows.d.mts +154 -0
- package/resources/workflows/flows/flows.d.mts.map +1 -0
- package/resources/workflows/flows/flows.d.ts +154 -0
- package/resources/workflows/flows/flows.d.ts.map +1 -0
- package/resources/workflows/flows/flows.js +73 -0
- package/resources/workflows/flows/flows.js.map +1 -0
- package/resources/workflows/flows/flows.mjs +68 -0
- package/resources/workflows/flows/flows.mjs.map +1 -0
- package/resources/workflows/flows/index.d.mts +3 -0
- package/resources/workflows/flows/index.d.mts.map +1 -0
- package/resources/workflows/flows/index.d.ts +3 -0
- package/resources/workflows/flows/index.d.ts.map +1 -0
- package/resources/workflows/flows/index.js +9 -0
- package/resources/workflows/flows/index.js.map +1 -0
- package/resources/workflows/flows/index.mjs +4 -0
- package/resources/workflows/flows/index.mjs.map +1 -0
- package/resources/workflows/flows.d.mts +2 -0
- package/resources/workflows/flows.d.mts.map +1 -0
- package/resources/workflows/flows.d.ts +2 -0
- package/resources/workflows/flows.d.ts.map +1 -0
- package/resources/workflows/flows.js +6 -0
- package/resources/workflows/flows.js.map +1 -0
- package/resources/workflows/flows.mjs +3 -0
- package/resources/workflows/flows.mjs.map +1 -0
- package/resources/workflows/index.d.mts +9 -0
- package/resources/workflows/index.d.mts.map +1 -0
- package/resources/workflows/index.d.ts +9 -0
- package/resources/workflows/index.d.ts.map +1 -0
- package/resources/workflows/index.js +21 -0
- package/resources/workflows/index.js.map +1 -0
- package/resources/workflows/index.mjs +10 -0
- package/resources/workflows/index.mjs.map +1 -0
- package/resources/workflows/timezones.d.mts +16 -0
- package/resources/workflows/timezones.d.mts.map +1 -0
- package/resources/workflows/timezones.d.ts +16 -0
- package/resources/workflows/timezones.d.ts.map +1 -0
- package/resources/workflows/timezones.js +15 -0
- package/resources/workflows/timezones.js.map +1 -0
- package/resources/workflows/timezones.mjs +11 -0
- package/resources/workflows/timezones.mjs.map +1 -0
- package/resources/workflows/triggers.d.mts +325 -0
- package/resources/workflows/triggers.d.mts.map +1 -0
- package/resources/workflows/triggers.d.ts +325 -0
- package/resources/workflows/triggers.d.ts.map +1 -0
- package/resources/workflows/triggers.js +69 -0
- package/resources/workflows/triggers.js.map +1 -0
- package/resources/workflows/triggers.mjs +65 -0
- package/resources/workflows/triggers.mjs.map +1 -0
- package/resources/workflows/workflows.d.mts +72 -0
- package/resources/workflows/workflows.d.mts.map +1 -0
- package/resources/workflows/workflows.d.ts +72 -0
- package/resources/workflows/workflows.d.ts.map +1 -0
- package/resources/workflows/workflows.js +41 -0
- package/resources/workflows/workflows.js.map +1 -0
- package/resources/workflows/workflows.mjs +36 -0
- package/resources/workflows/workflows.mjs.map +1 -0
- package/resources/workflows.d.mts +2 -0
- package/resources/workflows.d.mts.map +1 -0
- package/resources/workflows.d.ts +2 -0
- package/resources/workflows.d.ts.map +1 -0
- package/resources/workflows.js +6 -0
- package/resources/workflows.js.map +1 -0
- package/resources/workflows.mjs +3 -0
- package/resources/workflows.mjs.map +1 -0
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +163 -96
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/apps.ts +553 -28
- package/src/resources/carriers.ts +188 -7
- package/src/resources/connect/connect.ts +73 -0
- package/src/resources/connect/countries.ts +106 -0
- package/src/resources/connect/index.ts +27 -0
- package/src/resources/connect/proxies.ts +598 -0
- package/src/resources/connect/users.ts +517 -0
- package/src/resources/connect.ts +3 -0
- package/src/resources/credentials/credentials.ts +3 -1
- package/src/resources/credentials/packages/credentials/credentials.ts +16 -4
- package/src/resources/credentials/packages/credentials/fields.ts +8 -3
- package/src/resources/credentials/packages/packages.ts +5 -2
- package/src/resources/devices/actions.ts +10 -5
- package/src/resources/devices/apps.ts +104 -42
- package/src/resources/devices/devices.ts +307 -103
- package/src/resources/devices/esim.ts +15 -6
- package/src/resources/devices/files.ts +7 -4
- package/src/resources/devices/index.ts +17 -13
- package/src/resources/devices/keyboard.ts +11 -3
- package/src/resources/devices/language.ts +93 -0
- package/src/resources/devices/location.ts +7 -19
- package/src/resources/devices/packages.ts +2 -1
- package/src/resources/devices/proxy.ts +34 -11
- package/src/resources/devices/state.ts +89 -5
- package/src/resources/devices/tasks.ts +4 -12
- package/src/resources/devices/{time.ts → timezone.ts} +24 -52
- package/src/resources/hooks.ts +1 -292
- package/src/resources/index.ts +39 -18
- package/src/resources/models.ts +3 -0
- package/src/resources/profiles.ts +105 -6
- package/src/resources/proxies.ts +124 -5
- package/src/resources/shared.ts +46 -10
- package/src/resources/tasks/tasks.ts +295 -77
- package/src/resources/webhooks/deliveries.ts +323 -0
- package/src/resources/webhooks/index.ts +26 -0
- package/src/resources/webhooks/webhooks.ts +503 -0
- package/src/resources/webhooks.ts +3 -0
- package/src/resources/workflows/action-catalog.ts +74 -0
- package/src/resources/workflows/actions/actions.ts +167 -0
- package/src/resources/workflows/actions/index.ts +15 -0
- package/src/resources/workflows/actions/services.ts +64 -0
- package/src/resources/workflows/actions.ts +3 -0
- package/src/resources/workflows/events/catalog.ts +5 -0
- package/src/resources/workflows/events/events.ts +167 -0
- package/src/resources/workflows/events/index.ts +10 -0
- package/src/resources/workflows/events.ts +3 -0
- package/src/resources/workflows/executions.ts +194 -0
- package/src/resources/workflows/flows/actions.ts +149 -0
- package/src/resources/workflows/flows/flows.ts +284 -0
- package/src/resources/workflows/flows/index.ts +29 -0
- package/src/resources/workflows/flows.ts +3 -0
- package/src/resources/workflows/index.ts +68 -0
- package/src/resources/workflows/timezones.ts +22 -0
- package/src/resources/workflows/triggers.ts +471 -0
- package/src/resources/workflows/workflows.ts +239 -0
- package/src/resources/workflows.ts +3 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +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/agents.d.mts +0 -30
- package/resources/agents.d.mts.map +0 -1
- package/resources/agents.d.ts +0 -30
- package/resources/agents.d.ts.map +0 -1
- package/resources/agents.js +0 -18
- package/resources/agents.js.map +0 -1
- package/resources/agents.mjs +0 -14
- package/resources/agents.mjs.map +0 -1
- package/resources/devices/time.d.mts +0 -45
- package/resources/devices/time.d.mts.map +0 -1
- package/resources/devices/time.d.ts +0 -45
- package/resources/devices/time.d.ts.map +0 -1
- package/resources/devices/time.js.map +0 -1
- package/resources/devices/time.mjs.map +0 -1
- package/src/resources/agents.ts +0 -45
|
@@ -0,0 +1,167 @@
|
|
|
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 ServicesAPI from './services';
|
|
6
|
+
import { ServiceListMethodsResponse, ServiceListResponse, Services } from './services';
|
|
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 Actions extends APIResource {
|
|
12
|
+
services: ServicesAPI.Services = new ServicesAPI.Services(this._client);
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Create a reusable action from a catalog entry (`catalogEntryId`), with an
|
|
16
|
+
* optional `params` object supplying the values for that entry's service method.
|
|
17
|
+
* Returns 400 if the params are invalid for the chosen catalog entry.
|
|
18
|
+
*/
|
|
19
|
+
create(body: ActionCreateParams, options?: RequestOptions): APIPromise<ActionCreateResponse> {
|
|
20
|
+
return this._client.post('/actions', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Fetch a single action by its ID, including its configured service, method, and
|
|
25
|
+
* params. Returns 404 if no action matches.
|
|
26
|
+
*/
|
|
27
|
+
retrieve(actionID: string, options?: RequestOptions): APIPromise<ActionRetrieveResponse> {
|
|
28
|
+
return this._client.get(path`/actions/${actionID}`, options);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Partially update an action's name, description, or params; all fields are
|
|
33
|
+
* optional. Returns 404 if the action does not exist.
|
|
34
|
+
*/
|
|
35
|
+
update(
|
|
36
|
+
actionID: string,
|
|
37
|
+
body: ActionUpdateParams | null | undefined = {},
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<ActionUpdateResponse> {
|
|
40
|
+
return this._client.patch(path`/actions/${actionID}`, { body, ...options });
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Return a paginated list of actions. Supports filtering by `service`, free-text
|
|
45
|
+
* `search`, and ordering by name, createdAt, or updatedAt.
|
|
46
|
+
*/
|
|
47
|
+
list(
|
|
48
|
+
query: ActionListParams | null | undefined = {},
|
|
49
|
+
options?: RequestOptions,
|
|
50
|
+
): APIPromise<ActionListResponse> {
|
|
51
|
+
return this._client.get('/actions', { query, ...options });
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Delete an action by its ID. Returns 404 if no action matches.
|
|
56
|
+
*/
|
|
57
|
+
delete(actionID: string, options?: RequestOptions): APIPromise<ActionDeleteResponse> {
|
|
58
|
+
return this._client.delete(path`/actions/${actionID}`, options);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface Action {
|
|
63
|
+
id: string;
|
|
64
|
+
|
|
65
|
+
catalogEntryId: string;
|
|
66
|
+
|
|
67
|
+
createdAt: string | null;
|
|
68
|
+
|
|
69
|
+
createdBy: string | null;
|
|
70
|
+
|
|
71
|
+
description: string | null;
|
|
72
|
+
|
|
73
|
+
method: string;
|
|
74
|
+
|
|
75
|
+
name: string;
|
|
76
|
+
|
|
77
|
+
ownerId: string;
|
|
78
|
+
|
|
79
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
80
|
+
|
|
81
|
+
updatedAt: string | null;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
85
|
+
*/
|
|
86
|
+
userId: string;
|
|
87
|
+
|
|
88
|
+
params?: unknown;
|
|
89
|
+
|
|
90
|
+
paramsSchema?: unknown;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface ActionCreateResponse {
|
|
94
|
+
data: Action;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface ActionRetrieveResponse {
|
|
98
|
+
data: Action;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface ActionUpdateResponse {
|
|
102
|
+
data: Action;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface ActionListResponse {
|
|
106
|
+
items: Array<Action>;
|
|
107
|
+
|
|
108
|
+
pagination: Shared.Pagination;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface ActionDeleteResponse {
|
|
112
|
+
message: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface ActionCreateParams {
|
|
116
|
+
catalogEntryId: string;
|
|
117
|
+
|
|
118
|
+
name: string;
|
|
119
|
+
|
|
120
|
+
description?: string;
|
|
121
|
+
|
|
122
|
+
params?: { [key: string]: unknown };
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface ActionUpdateParams {
|
|
126
|
+
description?: string;
|
|
127
|
+
|
|
128
|
+
name?: string;
|
|
129
|
+
|
|
130
|
+
params?: { [key: string]: unknown };
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface ActionListParams {
|
|
134
|
+
orderBy?: 'name' | 'createdAt' | 'updatedAt';
|
|
135
|
+
|
|
136
|
+
orderByDirection?: 'asc' | 'desc';
|
|
137
|
+
|
|
138
|
+
page?: number;
|
|
139
|
+
|
|
140
|
+
pageSize?: number;
|
|
141
|
+
|
|
142
|
+
search?: string;
|
|
143
|
+
|
|
144
|
+
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
Actions.Services = Services;
|
|
148
|
+
|
|
149
|
+
export declare namespace Actions {
|
|
150
|
+
export {
|
|
151
|
+
type Action as Action,
|
|
152
|
+
type ActionCreateResponse as ActionCreateResponse,
|
|
153
|
+
type ActionRetrieveResponse as ActionRetrieveResponse,
|
|
154
|
+
type ActionUpdateResponse as ActionUpdateResponse,
|
|
155
|
+
type ActionListResponse as ActionListResponse,
|
|
156
|
+
type ActionDeleteResponse as ActionDeleteResponse,
|
|
157
|
+
type ActionCreateParams as ActionCreateParams,
|
|
158
|
+
type ActionUpdateParams as ActionUpdateParams,
|
|
159
|
+
type ActionListParams as ActionListParams,
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
export {
|
|
163
|
+
Services as Services,
|
|
164
|
+
type ServiceListResponse as ServiceListResponse,
|
|
165
|
+
type ServiceListMethodsResponse as ServiceListMethodsResponse,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Actions,
|
|
5
|
+
type Action,
|
|
6
|
+
type ActionCreateResponse,
|
|
7
|
+
type ActionRetrieveResponse,
|
|
8
|
+
type ActionUpdateResponse,
|
|
9
|
+
type ActionListResponse,
|
|
10
|
+
type ActionDeleteResponse,
|
|
11
|
+
type ActionCreateParams,
|
|
12
|
+
type ActionUpdateParams,
|
|
13
|
+
type ActionListParams,
|
|
14
|
+
} from './actions';
|
|
15
|
+
export { Services, type ServiceListResponse, type ServiceListMethodsResponse } from './services';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Services extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Return the names of the services that actions can be built against. Use these
|
|
11
|
+
* values to look up each service's allowed methods.
|
|
12
|
+
*/
|
|
13
|
+
list(options?: RequestOptions): APIPromise<ServiceListResponse> {
|
|
14
|
+
return this._client.get('/actions/services', options);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Return the methods allowed for the given service, each with its parameter
|
|
19
|
+
* definitions (name, type, whether required, description, and optional
|
|
20
|
+
* default/example). Returns 404 if the service is unknown.
|
|
21
|
+
*/
|
|
22
|
+
listMethods(service: string, options?: RequestOptions): APIPromise<ServiceListMethodsResponse> {
|
|
23
|
+
return this._client.get(path`/actions/services/${service}/methods`, options);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface ServiceListResponse {
|
|
28
|
+
data: Array<string>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface ServiceListMethodsResponse {
|
|
32
|
+
data: Array<ServiceListMethodsResponse.Data>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export namespace ServiceListMethodsResponse {
|
|
36
|
+
export interface Data {
|
|
37
|
+
method: string;
|
|
38
|
+
|
|
39
|
+
params: Array<Data.Param>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export namespace Data {
|
|
43
|
+
export interface Param {
|
|
44
|
+
description: string;
|
|
45
|
+
|
|
46
|
+
name: string;
|
|
47
|
+
|
|
48
|
+
required: boolean;
|
|
49
|
+
|
|
50
|
+
type: 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
51
|
+
|
|
52
|
+
default?: unknown;
|
|
53
|
+
|
|
54
|
+
example?: unknown;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export declare namespace Services {
|
|
60
|
+
export {
|
|
61
|
+
type ServiceListResponse as ServiceListResponse,
|
|
62
|
+
type ServiceListMethodsResponse as ServiceListMethodsResponse,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as WorkflowsAPI from '../workflows';
|
|
5
|
+
import * as CatalogAPI from './catalog';
|
|
6
|
+
import { Catalog } from './catalog';
|
|
7
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
8
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
9
|
+
|
|
10
|
+
export class Events extends APIResource {
|
|
11
|
+
catalog: CatalogAPI.Catalog = new CatalogAPI.Catalog(this._client);
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Simulate an event against all configured flows. Returns which flows would match
|
|
15
|
+
* and what actions would run, without storing the event or enqueuing jobs.
|
|
16
|
+
*/
|
|
17
|
+
dryRun(body: EventDryRunParams, options?: RequestOptions): APIPromise<EventDryRunResponse> {
|
|
18
|
+
return this._client.post('/events/dry-run', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Ingest an event for trigger evaluation. Returns immediately with 202 Accepted.
|
|
23
|
+
*/
|
|
24
|
+
ingest(body: EventIngestParams, options?: RequestOptions): APIPromise<EventIngestResponse> {
|
|
25
|
+
return this._client.post('/events/ingest', { body, ...options });
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface EventDryRunResponse {
|
|
30
|
+
data: EventDryRunResponse.Data;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export namespace EventDryRunResponse {
|
|
34
|
+
export interface Data {
|
|
35
|
+
matchedFlows: Array<Data.MatchedFlow>;
|
|
36
|
+
|
|
37
|
+
validation: Data.Validation;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export namespace Data {
|
|
41
|
+
export interface MatchedFlow {
|
|
42
|
+
actions: Array<MatchedFlow.Action>;
|
|
43
|
+
|
|
44
|
+
flow: WorkflowsAPI.Flow;
|
|
45
|
+
|
|
46
|
+
gates: MatchedFlow.Gates;
|
|
47
|
+
|
|
48
|
+
trigger: MatchedFlow.Trigger;
|
|
49
|
+
|
|
50
|
+
wouldFire: boolean;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export namespace MatchedFlow {
|
|
54
|
+
export interface Action {
|
|
55
|
+
continueOnError: boolean;
|
|
56
|
+
|
|
57
|
+
method: string;
|
|
58
|
+
|
|
59
|
+
name: string;
|
|
60
|
+
|
|
61
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Nested child actions (loop/branch bodies), each the same shape as a
|
|
65
|
+
* ResolvedAction.
|
|
66
|
+
*/
|
|
67
|
+
children?: Array<unknown>;
|
|
68
|
+
|
|
69
|
+
params?: { [key: string]: unknown };
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface Gates {
|
|
73
|
+
blocked: boolean;
|
|
74
|
+
|
|
75
|
+
cooldownActive: boolean | null;
|
|
76
|
+
|
|
77
|
+
deviceAttached: boolean;
|
|
78
|
+
|
|
79
|
+
deviceIds: Array<string>;
|
|
80
|
+
|
|
81
|
+
enabled: boolean;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface Trigger {
|
|
85
|
+
id: string;
|
|
86
|
+
|
|
87
|
+
activation: 'event' | 'schedule' | 'custom';
|
|
88
|
+
|
|
89
|
+
createdAt: string | null;
|
|
90
|
+
|
|
91
|
+
createdBy: string | null;
|
|
92
|
+
|
|
93
|
+
customPayloadSchema: { [key: string]: unknown } | null;
|
|
94
|
+
|
|
95
|
+
description: string | null;
|
|
96
|
+
|
|
97
|
+
eventType: string | null;
|
|
98
|
+
|
|
99
|
+
name: string;
|
|
100
|
+
|
|
101
|
+
ownerId: string;
|
|
102
|
+
|
|
103
|
+
scheduleRule: unknown;
|
|
104
|
+
|
|
105
|
+
timezone: string | null;
|
|
106
|
+
|
|
107
|
+
updatedAt: string | null;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
111
|
+
*/
|
|
112
|
+
userId: string;
|
|
113
|
+
|
|
114
|
+
conditions?: unknown;
|
|
115
|
+
|
|
116
|
+
nextFireTime?: string | null;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface Validation {
|
|
121
|
+
valid: boolean;
|
|
122
|
+
|
|
123
|
+
errors?: Array<Validation.Error>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export namespace Validation {
|
|
127
|
+
export interface Error {
|
|
128
|
+
field: string;
|
|
129
|
+
|
|
130
|
+
message: string;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface EventIngestResponse {
|
|
137
|
+
eventId: string;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface EventDryRunParams {
|
|
141
|
+
eventType: string;
|
|
142
|
+
|
|
143
|
+
deviceId?: string;
|
|
144
|
+
|
|
145
|
+
payload?: { [key: string]: unknown };
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface EventIngestParams {
|
|
149
|
+
eventType: string;
|
|
150
|
+
|
|
151
|
+
deviceId?: string;
|
|
152
|
+
|
|
153
|
+
payload?: { [key: string]: unknown };
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
Events.Catalog = Catalog;
|
|
157
|
+
|
|
158
|
+
export declare namespace Events {
|
|
159
|
+
export {
|
|
160
|
+
type EventDryRunResponse as EventDryRunResponse,
|
|
161
|
+
type EventIngestResponse as EventIngestResponse,
|
|
162
|
+
type EventDryRunParams as EventDryRunParams,
|
|
163
|
+
type EventIngestParams as EventIngestParams,
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export { Catalog as Catalog };
|
|
167
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Catalog } from './catalog';
|
|
4
|
+
export {
|
|
5
|
+
Events,
|
|
6
|
+
type EventDryRunResponse,
|
|
7
|
+
type EventIngestResponse,
|
|
8
|
+
type EventDryRunParams,
|
|
9
|
+
type EventIngestParams,
|
|
10
|
+
} from './events';
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as ExecutionsAPI from './executions';
|
|
5
|
+
import * as Shared from '../shared';
|
|
6
|
+
import { APIPromise } from '../../core/api-promise';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
import { path } from '../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Executions extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Fetch a single flow execution by its ID, including its status, kind, result or
|
|
13
|
+
* error, and start/finish timestamps. Returns 404 if no execution matches.
|
|
14
|
+
*/
|
|
15
|
+
retrieve(executionID: string, options?: RequestOptions): APIPromise<ExecutionRetrieveResponse> {
|
|
16
|
+
return this._client.get(path`/executions/${executionID}`, options);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Return a paginated history of flow executions. Supports filtering by `flowId`,
|
|
21
|
+
* `triggerId`, `status`, and a `from`/`to` time range, plus free-text `search` and
|
|
22
|
+
* ordering by startedAt, finishedAt, or status.
|
|
23
|
+
*/
|
|
24
|
+
list(
|
|
25
|
+
query: ExecutionListParams | null | undefined = {},
|
|
26
|
+
options?: RequestOptions,
|
|
27
|
+
): APIPromise<ExecutionListResponse> {
|
|
28
|
+
return this._client.get('/executions', { query, ...options });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Return aggregate execution metrics — total count, counts by status, average
|
|
33
|
+
* duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
|
|
34
|
+
* and a `from`/`to` time range.
|
|
35
|
+
*/
|
|
36
|
+
getMetrics(
|
|
37
|
+
query: ExecutionGetMetricsParams | null | undefined = {},
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<ExecutionGetMetricsResponse> {
|
|
40
|
+
return this._client.get('/executions/metrics', { query, ...options });
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface FlowExecution {
|
|
45
|
+
id: string;
|
|
46
|
+
|
|
47
|
+
error: string | null;
|
|
48
|
+
|
|
49
|
+
eventId: string | null;
|
|
50
|
+
|
|
51
|
+
finishedAt: string | null;
|
|
52
|
+
|
|
53
|
+
flowId: string;
|
|
54
|
+
|
|
55
|
+
flowName: string | null;
|
|
56
|
+
|
|
57
|
+
kind: 'live' | 'dry_run';
|
|
58
|
+
|
|
59
|
+
startedAt: string | null;
|
|
60
|
+
|
|
61
|
+
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
62
|
+
|
|
63
|
+
triggerId: string;
|
|
64
|
+
|
|
65
|
+
triggerName: string | null;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
69
|
+
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
70
|
+
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
71
|
+
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
72
|
+
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
73
|
+
* clients must not assume its presence.
|
|
74
|
+
*/
|
|
75
|
+
result?: unknown;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface ExecutionRetrieveResponse {
|
|
79
|
+
data: ExecutionRetrieveResponse.Data;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export namespace ExecutionRetrieveResponse {
|
|
83
|
+
export interface Data extends ExecutionsAPI.FlowExecution {
|
|
84
|
+
createdBy: string | null;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Files produced by files.upload steps, plus files an agent.run step reported on
|
|
88
|
+
* its terminal response (agent-created output or a workflow upload minted during
|
|
89
|
+
* the turn); derived server-side at read time.
|
|
90
|
+
*/
|
|
91
|
+
files: Array<Data.File>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export namespace Data {
|
|
95
|
+
export interface File {
|
|
96
|
+
fileId: string;
|
|
97
|
+
|
|
98
|
+
filename: string;
|
|
99
|
+
|
|
100
|
+
mimeType: string;
|
|
101
|
+
|
|
102
|
+
sizeBytes: number;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface ExecutionListResponse {
|
|
108
|
+
items: Array<ExecutionListResponse.Item>;
|
|
109
|
+
|
|
110
|
+
pagination: Shared.Pagination;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export namespace ExecutionListResponse {
|
|
114
|
+
export interface Item extends ExecutionsAPI.FlowExecution {
|
|
115
|
+
createdBy: string | null;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface ExecutionGetMetricsResponse {
|
|
120
|
+
data: ExecutionGetMetricsResponse.Data;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export namespace ExecutionGetMetricsResponse {
|
|
124
|
+
export interface Data {
|
|
125
|
+
avgDurationMs: number | null;
|
|
126
|
+
|
|
127
|
+
byStatus: Data.ByStatus;
|
|
128
|
+
|
|
129
|
+
lastExecutionAt: string | null;
|
|
130
|
+
|
|
131
|
+
total: number;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export namespace Data {
|
|
135
|
+
export interface ByStatus {
|
|
136
|
+
cancelled: number;
|
|
137
|
+
|
|
138
|
+
failed: number;
|
|
139
|
+
|
|
140
|
+
invalid: number;
|
|
141
|
+
|
|
142
|
+
pending: number;
|
|
143
|
+
|
|
144
|
+
running: number;
|
|
145
|
+
|
|
146
|
+
skipped: number;
|
|
147
|
+
|
|
148
|
+
success: number;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export interface ExecutionListParams {
|
|
154
|
+
flowId?: string;
|
|
155
|
+
|
|
156
|
+
from?: string | null;
|
|
157
|
+
|
|
158
|
+
orderBy?: 'startedAt' | 'finishedAt' | 'status';
|
|
159
|
+
|
|
160
|
+
orderByDirection?: 'asc' | 'desc';
|
|
161
|
+
|
|
162
|
+
page?: number;
|
|
163
|
+
|
|
164
|
+
pageSize?: number;
|
|
165
|
+
|
|
166
|
+
search?: string;
|
|
167
|
+
|
|
168
|
+
status?: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid';
|
|
169
|
+
|
|
170
|
+
to?: string | null;
|
|
171
|
+
|
|
172
|
+
triggerId?: string;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface ExecutionGetMetricsParams {
|
|
176
|
+
flowId?: string;
|
|
177
|
+
|
|
178
|
+
from?: string | null;
|
|
179
|
+
|
|
180
|
+
to?: string | null;
|
|
181
|
+
|
|
182
|
+
triggerId?: string;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export declare namespace Executions {
|
|
186
|
+
export {
|
|
187
|
+
type FlowExecution as FlowExecution,
|
|
188
|
+
type ExecutionRetrieveResponse as ExecutionRetrieveResponse,
|
|
189
|
+
type ExecutionListResponse as ExecutionListResponse,
|
|
190
|
+
type ExecutionGetMetricsResponse as ExecutionGetMetricsResponse,
|
|
191
|
+
type ExecutionListParams as ExecutionListParams,
|
|
192
|
+
type ExecutionGetMetricsParams as ExecutionGetMetricsParams,
|
|
193
|
+
};
|
|
194
|
+
}
|