@mobilerun/sdk 3.0.0 → 5.1.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 +542 -0
- package/README.md +2 -2
- 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 +41 -25
- package/client.d.mts.map +1 -1
- package/client.d.ts +41 -25
- package/client.d.ts.map +1 -1
- package/client.js +52 -18
- package/client.js.map +1 -1
- package/client.mjs +53 -19
- 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/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.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 +198 -16
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +198 -16
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +102 -0
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +102 -0
- package/resources/apps.mjs.map +1 -1
- package/resources/carriers.d.mts +108 -7
- package/resources/carriers.d.mts.map +1 -1
- package/resources/carriers.d.ts +108 -7
- package/resources/carriers.d.ts.map +1 -1
- package/resources/carriers.js +3 -0
- package/resources/carriers.js.map +1 -1
- package/resources/carriers.mjs +3 -0
- 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 +79 -0
- package/resources/connect/countries.d.mts.map +1 -0
- package/resources/connect/countries.d.ts +79 -0
- package/resources/connect/countries.d.ts.map +1 -0
- package/resources/connect/countries.js +15 -0
- package/resources/connect/countries.js.map +1 -0
- package/resources/connect/countries.mjs +11 -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 +454 -0
- package/resources/connect/proxies.d.mts.map +1 -0
- package/resources/connect/proxies.d.ts +454 -0
- package/resources/connect/proxies.d.ts.map +1 -0
- package/resources/connect/proxies.js +57 -0
- package/resources/connect/proxies.js.map +1 -0
- package/resources/connect/proxies.mjs +53 -0
- package/resources/connect/proxies.mjs.map +1 -0
- package/resources/connect/users.d.mts +387 -0
- package/resources/connect/users.d.mts.map +1 -0
- package/resources/connect/users.d.ts +387 -0
- package/resources/connect/users.d.ts.map +1 -0
- package/resources/connect/users.js +54 -0
- package/resources/connect/users.js.map +1 -0
- package/resources/connect/users.mjs +50 -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 -0
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +3 -0
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +3 -0
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +3 -0
- 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 +3 -0
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +3 -0
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +3 -0
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +3 -0
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +3 -0
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +3 -0
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/fields.js +3 -0
- package/resources/credentials/packages/credentials/fields.js.map +1 -1
- package/resources/credentials/packages/credentials/fields.mjs +3 -0
- 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 +3 -0
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +3 -0
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +3 -0
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +3 -0
- 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.map +1 -1
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +43 -22
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +43 -22
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +19 -19
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +19 -19
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +118 -27
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +118 -27
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +71 -18
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +72 -19
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/esim.d.mts +101 -0
- package/resources/devices/esim.d.mts.map +1 -0
- package/resources/devices/esim.d.ts +101 -0
- package/resources/devices/esim.d.ts.map +1 -0
- package/resources/devices/{time.js → esim.js} +23 -22
- package/resources/devices/esim.js.map +1 -0
- package/resources/devices/{time.mjs → esim.mjs} +21 -20
- package/resources/devices/esim.mjs.map +1 -0
- package/resources/devices/files.d.mts.map +1 -1
- package/resources/devices/files.d.ts.map +1 -1
- package/resources/devices/files.mjs.map +1 -1
- package/resources/devices/index.d.mts +8 -6
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +8 -6
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +7 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +5 -3
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +5 -0
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +5 -0
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.mjs.map +1 -1
- package/resources/devices/language.d.mts +43 -0
- package/resources/devices/language.d.mts.map +1 -0
- package/resources/devices/language.d.ts +43 -0
- package/resources/devices/language.d.ts.map +1 -0
- package/resources/devices/language.js +47 -0
- package/resources/devices/language.js.map +1 -0
- package/resources/devices/language.mjs +43 -0
- package/resources/devices/language.mjs.map +1 -0
- package/resources/devices/location.d.mts +3 -10
- package/resources/devices/location.d.mts.map +1 -1
- package/resources/devices/location.d.ts +3 -10
- package/resources/devices/location.d.ts.map +1 -1
- package/resources/devices/location.js.map +1 -1
- package/resources/devices/location.mjs.map +1 -1
- package/resources/devices/packages.d.mts.map +1 -1
- package/resources/devices/packages.d.ts.map +1 -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 +35 -9
- package/resources/devices/proxy.d.mts.map +1 -1
- package/resources/devices/proxy.d.ts +35 -9
- package/resources/devices/proxy.d.ts.map +1 -1
- package/resources/devices/proxy.js +17 -0
- package/resources/devices/proxy.js.map +1 -1
- package/resources/devices/proxy.mjs +17 -0
- package/resources/devices/proxy.mjs.map +1 -1
- package/resources/devices/state.d.mts +38 -3
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +38 -3
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +17 -0
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +17 -0
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/tasks.d.mts +3 -0
- package/resources/devices/tasks.d.mts.map +1 -1
- package/resources/devices/tasks.d.ts +3 -0
- package/resources/devices/tasks.d.ts.map +1 -1
- package/resources/devices/tasks.js +3 -0
- package/resources/devices/tasks.js.map +1 -1
- package/resources/devices/tasks.mjs +3 -0
- package/resources/devices/tasks.mjs.map +1 -1
- package/resources/devices/timezone.d.mts +37 -0
- package/resources/devices/timezone.d.mts.map +1 -0
- package/resources/devices/timezone.d.ts +37 -0
- package/resources/devices/timezone.d.ts.map +1 -0
- package/resources/devices/timezone.js +47 -0
- package/resources/devices/timezone.js.map +1 -0
- package/resources/devices/timezone.mjs +43 -0
- 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 +35 -4
- package/resources/hooks.d.mts.map +1 -1
- package/resources/hooks.d.ts +35 -4
- package/resources/hooks.d.ts.map +1 -1
- package/resources/hooks.js +9 -3
- package/resources/hooks.js.map +1 -1
- package/resources/hooks.mjs +9 -3
- package/resources/hooks.mjs.map +1 -1
- package/resources/index.d.mts +8 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -6
- 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 +4 -2
- 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.map +1 -1
- package/resources/profiles.d.ts.map +1 -1
- package/resources/profiles.mjs.map +1 -1
- package/resources/proxies.d.mts +141 -21
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +141 -21
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +11 -2
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +11 -2
- package/resources/proxies.mjs.map +1 -1
- package/resources/shared.d.mts +28 -8
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +28 -8
- 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 +121 -9
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +121 -9
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- 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 +173 -0
- package/resources/webhooks/deliveries.d.mts.map +1 -0
- package/resources/webhooks/deliveries.d.ts +173 -0
- package/resources/webhooks/deliveries.d.ts.map +1 -0
- package/resources/webhooks/deliveries.js +62 -0
- package/resources/webhooks/deliveries.js.map +1 -0
- package/resources/webhooks/deliveries.mjs +58 -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 +271 -0
- package/resources/webhooks/webhooks.d.mts.map +1 -0
- package/resources/webhooks/webhooks.d.ts +271 -0
- package/resources/webhooks/webhooks.d.ts.map +1 -0
- package/resources/webhooks/webhooks.js +122 -0
- package/resources/webhooks/webhooks.js.map +1 -0
- package/resources/webhooks/webhooks.mjs +117 -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 +40 -0
- package/resources/workflows/action-catalog.d.mts.map +1 -0
- package/resources/workflows/action-catalog.d.ts +40 -0
- package/resources/workflows/action-catalog.d.ts.map +1 -0
- package/resources/workflows/action-catalog.js +22 -0
- package/resources/workflows/action-catalog.js.map +1 -0
- package/resources/workflows/action-catalog.mjs +18 -0
- package/resources/workflows/action-catalog.mjs.map +1 -0
- package/resources/workflows/actions/actions.d.mts +86 -0
- package/resources/workflows/actions/actions.d.mts.map +1 -0
- package/resources/workflows/actions/actions.d.ts +86 -0
- package/resources/workflows/actions/actions.d.ts.map +1 -0
- package/resources/workflows/actions/actions.js +48 -0
- package/resources/workflows/actions/actions.js.map +1 -0
- package/resources/workflows/actions/actions.mjs +43 -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 +39 -0
- package/resources/workflows/actions/services.d.mts.map +1 -0
- package/resources/workflows/actions/services.d.ts +39 -0
- package/resources/workflows/actions/services.d.ts.map +1 -0
- package/resources/workflows/actions/services.js +22 -0
- package/resources/workflows/actions/services.js.map +1 -0
- package/resources/workflows/actions/services.mjs +18 -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 +55 -0
- package/resources/workflows/events/catalog.d.mts.map +1 -0
- package/resources/workflows/events/catalog.d.ts +55 -0
- package/resources/workflows/events/catalog.d.ts.map +1 -0
- package/resources/workflows/events/catalog.js +21 -0
- package/resources/workflows/events/catalog.js.map +1 -0
- package/resources/workflows/events/catalog.mjs +17 -0
- package/resources/workflows/events/catalog.mjs.map +1 -0
- package/resources/workflows/events/events.d.mts +123 -0
- package/resources/workflows/events/events.d.mts.map +1 -0
- package/resources/workflows/events/events.d.ts +123 -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 +83 -0
- package/resources/workflows/executions.d.mts.map +1 -0
- package/resources/workflows/executions.d.ts +83 -0
- package/resources/workflows/executions.d.ts.map +1 -0
- package/resources/workflows/executions.js +28 -0
- package/resources/workflows/executions.js.map +1 -0
- package/resources/workflows/executions.mjs +24 -0
- package/resources/workflows/executions.mjs.map +1 -0
- package/resources/workflows/flows/actions.d.mts +81 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -0
- package/resources/workflows/flows/actions.d.ts +81 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -0
- package/resources/workflows/flows/actions.js +35 -0
- package/resources/workflows/flows/actions.js.map +1 -0
- package/resources/workflows/flows/actions.mjs +31 -0
- package/resources/workflows/flows/actions.mjs.map +1 -0
- package/resources/workflows/flows/flows.d.mts +128 -0
- package/resources/workflows/flows/flows.d.mts.map +1 -0
- package/resources/workflows/flows/flows.d.ts +128 -0
- package/resources/workflows/flows/flows.d.ts.map +1 -0
- package/resources/workflows/flows/flows.js +61 -0
- package/resources/workflows/flows/flows.js.map +1 -0
- package/resources/workflows/flows/flows.mjs +56 -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 +313 -0
- package/resources/workflows/triggers.d.mts.map +1 -0
- package/resources/workflows/triggers.d.ts +313 -0
- package/resources/workflows/triggers.d.ts.map +1 -0
- package/resources/workflows/triggers.js +62 -0
- package/resources/workflows/triggers.js.map +1 -0
- package/resources/workflows/triggers.mjs +58 -0
- package/resources/workflows/triggers.mjs.map +1 -0
- package/resources/workflows/workflows.d.mts +57 -0
- package/resources/workflows/workflows.d.mts.map +1 -0
- package/resources/workflows/workflows.d.ts +57 -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 +176 -68
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/env.ts +2 -2
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/apps.ts +547 -30
- package/src/resources/carriers.ts +191 -7
- package/src/resources/connect/connect.ts +73 -0
- package/src/resources/connect/countries.ts +101 -0
- package/src/resources/connect/index.ts +27 -0
- package/src/resources/connect/proxies.ts +596 -0
- package/src/resources/connect/users.ts +512 -0
- package/src/resources/connect.ts +3 -0
- package/src/resources/credentials/credentials.ts +3 -0
- package/src/resources/credentials/packages/credentials/credentials.ts +3 -0
- package/src/resources/credentials/packages/credentials/fields.ts +3 -0
- package/src/resources/credentials/packages/packages.ts +3 -0
- package/src/resources/devices/apps.ts +67 -41
- package/src/resources/devices/devices.ts +268 -71
- package/src/resources/devices/esim.ts +208 -0
- package/src/resources/devices/index.ts +34 -15
- package/src/resources/devices/keyboard.ts +6 -0
- package/src/resources/devices/language.ts +91 -0
- package/src/resources/devices/location.ts +3 -17
- package/src/resources/devices/proxy.ts +61 -9
- package/src/resources/devices/state.ts +82 -3
- package/src/resources/devices/tasks.ts +3 -0
- package/src/resources/devices/timezone.ts +84 -0
- package/src/resources/hooks.ts +44 -3
- package/src/resources/index.ts +39 -3
- package/src/resources/models.ts +3 -0
- package/src/resources/proxies.ts +186 -21
- package/src/resources/shared.ts +42 -11
- package/src/resources/tasks/tasks.ts +184 -8
- package/src/resources/webhooks/deliveries.ts +284 -0
- package/src/resources/webhooks/index.ts +26 -0
- package/src/resources/webhooks/webhooks.ts +433 -0
- package/src/resources/webhooks.ts +3 -0
- package/src/resources/workflows/action-catalog.ts +71 -0
- package/src/resources/workflows/actions/actions.ts +155 -0
- package/src/resources/workflows/actions/index.ts +15 -0
- package/src/resources/workflows/actions/services.ts +61 -0
- package/src/resources/workflows/actions.ts +3 -0
- package/src/resources/workflows/events/catalog.ts +88 -0
- package/src/resources/workflows/events/events.ts +189 -0
- package/src/resources/workflows/events/index.ts +16 -0
- package/src/resources/workflows/events.ts +3 -0
- package/src/resources/workflows/executions.ts +149 -0
- package/src/resources/workflows/flows/actions.ts +141 -0
- package/src/resources/workflows/flows/flows.ts +250 -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 +454 -0
- package/src/resources/workflows/workflows.ts +218 -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 -29
- package/resources/agents.d.mts.map +0 -1
- package/resources/agents.d.ts +0 -29
- 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 -59
- package/resources/devices/time.d.mts.map +0 -1
- package/resources/devices/time.d.ts +0 -59
- 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 -43
- package/src/resources/devices/time.ts +0 -147
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
* List available services
|
|
11
|
+
*/
|
|
12
|
+
list(options?: RequestOptions): APIPromise<ServiceListResponse> {
|
|
13
|
+
return this._client.get('/actions/services', options);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* List allowed methods for a service
|
|
18
|
+
*/
|
|
19
|
+
listMethods(service: string, options?: RequestOptions): APIPromise<ServiceListMethodsResponse> {
|
|
20
|
+
return this._client.get(path`/actions/services/${service}/methods`, options);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface ServiceListResponse {
|
|
25
|
+
data: Array<string>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface ServiceListMethodsResponse {
|
|
29
|
+
data: Array<ServiceListMethodsResponse.Data>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export namespace ServiceListMethodsResponse {
|
|
33
|
+
export interface Data {
|
|
34
|
+
method: string;
|
|
35
|
+
|
|
36
|
+
params: Array<Data.Param>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export namespace Data {
|
|
40
|
+
export interface Param {
|
|
41
|
+
description: string;
|
|
42
|
+
|
|
43
|
+
name: string;
|
|
44
|
+
|
|
45
|
+
required: boolean;
|
|
46
|
+
|
|
47
|
+
type: 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
48
|
+
|
|
49
|
+
default?: unknown;
|
|
50
|
+
|
|
51
|
+
example?: unknown;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export declare namespace Services {
|
|
57
|
+
export {
|
|
58
|
+
type ServiceListResponse as ServiceListResponse,
|
|
59
|
+
type ServiceListMethodsResponse as ServiceListMethodsResponse,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
export class Catalog extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List event catalog
|
|
11
|
+
*/
|
|
12
|
+
list(
|
|
13
|
+
query: CatalogListParams | null | undefined = {},
|
|
14
|
+
options?: RequestOptions,
|
|
15
|
+
): APIPromise<CatalogListResponse> {
|
|
16
|
+
return this._client.get('/events/catalog', { query, ...options });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Register event types in the catalog
|
|
21
|
+
*/
|
|
22
|
+
register(body: CatalogRegisterParams, options?: RequestOptions): APIPromise<CatalogRegisterResponse> {
|
|
23
|
+
return this._client.post('/events/catalog/register', { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface CatalogListResponse {
|
|
28
|
+
items: Array<CatalogListResponse.Item>;
|
|
29
|
+
|
|
30
|
+
pagination: Shared.Pagination;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export namespace CatalogListResponse {
|
|
34
|
+
export interface Item {
|
|
35
|
+
createdAt: string | null;
|
|
36
|
+
|
|
37
|
+
description: string | null;
|
|
38
|
+
|
|
39
|
+
eventType: string;
|
|
40
|
+
|
|
41
|
+
label: string;
|
|
42
|
+
|
|
43
|
+
source: string | null;
|
|
44
|
+
|
|
45
|
+
updatedAt: string | null;
|
|
46
|
+
|
|
47
|
+
payloadSchema?: unknown;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface CatalogRegisterResponse {
|
|
52
|
+
message: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface CatalogListParams {
|
|
56
|
+
page?: number;
|
|
57
|
+
|
|
58
|
+
pageSize?: number;
|
|
59
|
+
|
|
60
|
+
source?: 'device' | 'system' | 'webhook';
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface CatalogRegisterParams {
|
|
64
|
+
events: Array<CatalogRegisterParams.Event>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export namespace CatalogRegisterParams {
|
|
68
|
+
export interface Event {
|
|
69
|
+
eventType: string;
|
|
70
|
+
|
|
71
|
+
label: string;
|
|
72
|
+
|
|
73
|
+
description?: string;
|
|
74
|
+
|
|
75
|
+
payloadSchema?: { [key: string]: unknown };
|
|
76
|
+
|
|
77
|
+
source?: 'device' | 'system' | 'webhook';
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export declare namespace Catalog {
|
|
82
|
+
export {
|
|
83
|
+
type CatalogListResponse as CatalogListResponse,
|
|
84
|
+
type CatalogRegisterResponse as CatalogRegisterResponse,
|
|
85
|
+
type CatalogListParams as CatalogListParams,
|
|
86
|
+
type CatalogRegisterParams as CatalogRegisterParams,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
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 {
|
|
7
|
+
Catalog,
|
|
8
|
+
CatalogListParams,
|
|
9
|
+
CatalogListResponse,
|
|
10
|
+
CatalogRegisterParams,
|
|
11
|
+
CatalogRegisterResponse,
|
|
12
|
+
} from './catalog';
|
|
13
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
14
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
15
|
+
|
|
16
|
+
export class Events extends APIResource {
|
|
17
|
+
catalog: CatalogAPI.Catalog = new CatalogAPI.Catalog(this._client);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Simulate an event against all configured flows. Returns which flows would match
|
|
21
|
+
* and what actions would run, without storing the event or enqueuing jobs.
|
|
22
|
+
*/
|
|
23
|
+
dryRun(body: EventDryRunParams, options?: RequestOptions): APIPromise<EventDryRunResponse> {
|
|
24
|
+
return this._client.post('/events/dry-run', { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Ingest an event for trigger evaluation. Returns immediately with 202 Accepted.
|
|
29
|
+
*/
|
|
30
|
+
ingest(body: EventIngestParams, options?: RequestOptions): APIPromise<EventIngestResponse> {
|
|
31
|
+
return this._client.post('/events/ingest', { body, ...options });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface EventDryRunResponse {
|
|
36
|
+
data: EventDryRunResponse.Data;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export namespace EventDryRunResponse {
|
|
40
|
+
export interface Data {
|
|
41
|
+
matchedFlows: Array<Data.MatchedFlow>;
|
|
42
|
+
|
|
43
|
+
validation: Data.Validation;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export namespace Data {
|
|
47
|
+
export interface MatchedFlow {
|
|
48
|
+
actions: Array<MatchedFlow.Action>;
|
|
49
|
+
|
|
50
|
+
flow: WorkflowsAPI.Flow;
|
|
51
|
+
|
|
52
|
+
gates: MatchedFlow.Gates;
|
|
53
|
+
|
|
54
|
+
trigger: MatchedFlow.Trigger;
|
|
55
|
+
|
|
56
|
+
wouldFire: boolean;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export namespace MatchedFlow {
|
|
60
|
+
export interface Action {
|
|
61
|
+
continueOnError: boolean;
|
|
62
|
+
|
|
63
|
+
method: string;
|
|
64
|
+
|
|
65
|
+
name: string;
|
|
66
|
+
|
|
67
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Nested child actions (loop/branch bodies), each the same shape as a
|
|
71
|
+
* ResolvedAction.
|
|
72
|
+
*/
|
|
73
|
+
children?: Array<unknown>;
|
|
74
|
+
|
|
75
|
+
params?: { [key: string]: unknown };
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface Gates {
|
|
79
|
+
blocked: boolean;
|
|
80
|
+
|
|
81
|
+
cooldownActive: boolean | null;
|
|
82
|
+
|
|
83
|
+
deviceAttached: boolean;
|
|
84
|
+
|
|
85
|
+
deviceIds: Array<string>;
|
|
86
|
+
|
|
87
|
+
enabled: boolean;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface Trigger {
|
|
91
|
+
id: string;
|
|
92
|
+
|
|
93
|
+
activation: 'event' | 'schedule' | 'custom';
|
|
94
|
+
|
|
95
|
+
createdAt: string | null;
|
|
96
|
+
|
|
97
|
+
customPayloadSchema: { [key: string]: unknown } | null;
|
|
98
|
+
|
|
99
|
+
description: string | null;
|
|
100
|
+
|
|
101
|
+
eventType: string | null;
|
|
102
|
+
|
|
103
|
+
name: string;
|
|
104
|
+
|
|
105
|
+
scheduleRule: Trigger.ScheduleRule | null;
|
|
106
|
+
|
|
107
|
+
timezone: string | null;
|
|
108
|
+
|
|
109
|
+
updatedAt: string | null;
|
|
110
|
+
|
|
111
|
+
userId: string;
|
|
112
|
+
|
|
113
|
+
conditions?: unknown;
|
|
114
|
+
|
|
115
|
+
nextFireTime?: string | null;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export namespace Trigger {
|
|
119
|
+
export interface ScheduleRule {
|
|
120
|
+
type: 'once' | 'cron' | 'recurring';
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* ISO 8601 datetime (for type=once)
|
|
124
|
+
*/
|
|
125
|
+
dateTime?: string;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Cron expression (for type=cron)
|
|
129
|
+
*/
|
|
130
|
+
expression?: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* RRULE string (for type=recurring)
|
|
134
|
+
*/
|
|
135
|
+
rrule?: string;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface Validation {
|
|
141
|
+
valid: boolean;
|
|
142
|
+
|
|
143
|
+
errors?: Array<Validation.Error>;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export namespace Validation {
|
|
147
|
+
export interface Error {
|
|
148
|
+
field: string;
|
|
149
|
+
|
|
150
|
+
message: string;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface EventIngestResponse {
|
|
157
|
+
eventId: string;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface EventDryRunParams {
|
|
161
|
+
eventType: string;
|
|
162
|
+
|
|
163
|
+
payload?: { [key: string]: unknown };
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface EventIngestParams {
|
|
167
|
+
eventType: string;
|
|
168
|
+
|
|
169
|
+
payload?: { [key: string]: unknown };
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
Events.Catalog = Catalog;
|
|
173
|
+
|
|
174
|
+
export declare namespace Events {
|
|
175
|
+
export {
|
|
176
|
+
type EventDryRunResponse as EventDryRunResponse,
|
|
177
|
+
type EventIngestResponse as EventIngestResponse,
|
|
178
|
+
type EventDryRunParams as EventDryRunParams,
|
|
179
|
+
type EventIngestParams as EventIngestParams,
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
export {
|
|
183
|
+
Catalog as Catalog,
|
|
184
|
+
type CatalogListResponse as CatalogListResponse,
|
|
185
|
+
type CatalogRegisterResponse as CatalogRegisterResponse,
|
|
186
|
+
type CatalogListParams as CatalogListParams,
|
|
187
|
+
type CatalogRegisterParams as CatalogRegisterParams,
|
|
188
|
+
};
|
|
189
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Catalog,
|
|
5
|
+
type CatalogListResponse,
|
|
6
|
+
type CatalogRegisterResponse,
|
|
7
|
+
type CatalogListParams,
|
|
8
|
+
type CatalogRegisterParams,
|
|
9
|
+
} from './catalog';
|
|
10
|
+
export {
|
|
11
|
+
Events,
|
|
12
|
+
type EventDryRunResponse,
|
|
13
|
+
type EventIngestResponse,
|
|
14
|
+
type EventDryRunParams,
|
|
15
|
+
type EventIngestParams,
|
|
16
|
+
} from './events';
|
|
@@ -0,0 +1,149 @@
|
|
|
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 { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
import { path } from '../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Executions extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get execution details
|
|
12
|
+
*/
|
|
13
|
+
retrieve(executionID: string, options?: RequestOptions): APIPromise<ExecutionRetrieveResponse> {
|
|
14
|
+
return this._client.get(path`/executions/${executionID}`, options);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* List flow executions
|
|
19
|
+
*/
|
|
20
|
+
list(
|
|
21
|
+
query: ExecutionListParams | null | undefined = {},
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): APIPromise<ExecutionListResponse> {
|
|
24
|
+
return this._client.get('/executions', { query, ...options });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Get execution metrics
|
|
29
|
+
*/
|
|
30
|
+
getMetrics(
|
|
31
|
+
query: ExecutionGetMetricsParams | null | undefined = {},
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<ExecutionGetMetricsResponse> {
|
|
34
|
+
return this._client.get('/executions/metrics', { query, ...options });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface FlowExecution {
|
|
39
|
+
id: string;
|
|
40
|
+
|
|
41
|
+
error: string | null;
|
|
42
|
+
|
|
43
|
+
eventId: string | null;
|
|
44
|
+
|
|
45
|
+
finishedAt: string | null;
|
|
46
|
+
|
|
47
|
+
flowId: string;
|
|
48
|
+
|
|
49
|
+
flowName: string | null;
|
|
50
|
+
|
|
51
|
+
kind: 'live' | 'dry_run';
|
|
52
|
+
|
|
53
|
+
startedAt: string | null;
|
|
54
|
+
|
|
55
|
+
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
56
|
+
|
|
57
|
+
triggerId: string;
|
|
58
|
+
|
|
59
|
+
triggerName: string | null;
|
|
60
|
+
|
|
61
|
+
result?: unknown;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface ExecutionRetrieveResponse {
|
|
65
|
+
data: FlowExecution;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface ExecutionListResponse {
|
|
69
|
+
items: Array<FlowExecution>;
|
|
70
|
+
|
|
71
|
+
pagination: Shared.Pagination;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface ExecutionGetMetricsResponse {
|
|
75
|
+
data: ExecutionGetMetricsResponse.Data;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export namespace ExecutionGetMetricsResponse {
|
|
79
|
+
export interface Data {
|
|
80
|
+
avgDurationMs: number | null;
|
|
81
|
+
|
|
82
|
+
byStatus: Data.ByStatus;
|
|
83
|
+
|
|
84
|
+
lastExecutionAt: string | null;
|
|
85
|
+
|
|
86
|
+
total: number;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export namespace Data {
|
|
90
|
+
export interface ByStatus {
|
|
91
|
+
cancelled: number;
|
|
92
|
+
|
|
93
|
+
failed: number;
|
|
94
|
+
|
|
95
|
+
invalid: number;
|
|
96
|
+
|
|
97
|
+
pending: number;
|
|
98
|
+
|
|
99
|
+
running: number;
|
|
100
|
+
|
|
101
|
+
skipped: number;
|
|
102
|
+
|
|
103
|
+
success: number;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface ExecutionListParams {
|
|
109
|
+
flowId?: string;
|
|
110
|
+
|
|
111
|
+
from?: string | null;
|
|
112
|
+
|
|
113
|
+
orderBy?: 'startedAt' | 'finishedAt' | 'status';
|
|
114
|
+
|
|
115
|
+
orderByDirection?: 'asc' | 'desc';
|
|
116
|
+
|
|
117
|
+
page?: number;
|
|
118
|
+
|
|
119
|
+
pageSize?: number;
|
|
120
|
+
|
|
121
|
+
search?: string;
|
|
122
|
+
|
|
123
|
+
status?: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid';
|
|
124
|
+
|
|
125
|
+
to?: string | null;
|
|
126
|
+
|
|
127
|
+
triggerId?: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface ExecutionGetMetricsParams {
|
|
131
|
+
flowId?: string;
|
|
132
|
+
|
|
133
|
+
from?: string | null;
|
|
134
|
+
|
|
135
|
+
to?: string | null;
|
|
136
|
+
|
|
137
|
+
triggerId?: string;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export declare namespace Executions {
|
|
141
|
+
export {
|
|
142
|
+
type FlowExecution as FlowExecution,
|
|
143
|
+
type ExecutionRetrieveResponse as ExecutionRetrieveResponse,
|
|
144
|
+
type ExecutionListResponse as ExecutionListResponse,
|
|
145
|
+
type ExecutionGetMetricsResponse as ExecutionGetMetricsResponse,
|
|
146
|
+
type ExecutionListParams as ExecutionListParams,
|
|
147
|
+
type ExecutionGetMetricsParams as ExecutionGetMetricsParams,
|
|
148
|
+
};
|
|
149
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as FlowsAPI from './flows';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Actions extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* List actions for a flow
|
|
12
|
+
*/
|
|
13
|
+
list(flowID: string, options?: RequestOptions): APIPromise<ActionListResponse> {
|
|
14
|
+
return this._client.get(path`/flows/${flowID}/actions`, options);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Add an action to a flow
|
|
19
|
+
*/
|
|
20
|
+
add(flowID: string, body: ActionAddParams, options?: RequestOptions): APIPromise<ActionAddResponse> {
|
|
21
|
+
return this._client.post(path`/flows/${flowID}/actions`, { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Remove an action from a flow
|
|
26
|
+
*/
|
|
27
|
+
remove(
|
|
28
|
+
flowActionID: string,
|
|
29
|
+
params: ActionRemoveParams,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): APIPromise<ActionRemoveResponse> {
|
|
32
|
+
const { flowId } = params;
|
|
33
|
+
return this._client.delete(path`/flows/${flowId}/actions/${flowActionID}`, options);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Replace all actions for a flow
|
|
38
|
+
*/
|
|
39
|
+
replace(
|
|
40
|
+
flowID: string,
|
|
41
|
+
body: ActionReplaceParams,
|
|
42
|
+
options?: RequestOptions,
|
|
43
|
+
): APIPromise<ActionReplaceResponse> {
|
|
44
|
+
return this._client.put(path`/flows/${flowID}/actions`, { body, ...options });
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface FlowAction {
|
|
49
|
+
id: string;
|
|
50
|
+
|
|
51
|
+
actionId: string;
|
|
52
|
+
|
|
53
|
+
continueOnError: boolean;
|
|
54
|
+
|
|
55
|
+
createdAt: string | null;
|
|
56
|
+
|
|
57
|
+
flowId: string;
|
|
58
|
+
|
|
59
|
+
nameOverride: string | null;
|
|
60
|
+
|
|
61
|
+
overrides: FlowAction.Overrides | null;
|
|
62
|
+
|
|
63
|
+
parentFlowActionId: string | null;
|
|
64
|
+
|
|
65
|
+
position: number;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export namespace FlowAction {
|
|
69
|
+
export interface Overrides {
|
|
70
|
+
params?: { [key: string]: unknown };
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface ActionListResponse {
|
|
75
|
+
data: Array<FlowAction>;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface ActionAddResponse {
|
|
79
|
+
data: FlowAction;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface ActionRemoveResponse {
|
|
83
|
+
message: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface ActionReplaceResponse {
|
|
87
|
+
data: Array<FlowAction>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface ActionAddParams {
|
|
91
|
+
actionId: string;
|
|
92
|
+
|
|
93
|
+
position: number;
|
|
94
|
+
|
|
95
|
+
children?: Array<FlowsAPI.FlowChildActionInput>;
|
|
96
|
+
|
|
97
|
+
continueOnError?: boolean;
|
|
98
|
+
|
|
99
|
+
nameOverride?: string;
|
|
100
|
+
|
|
101
|
+
overrides?: FlowsAPI.FlowActionOverrides | null;
|
|
102
|
+
|
|
103
|
+
parentFlowActionId?: string | null;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface ActionRemoveParams {
|
|
107
|
+
flowId: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface ActionReplaceParams {
|
|
111
|
+
actions: Array<ActionReplaceParams.Action>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export namespace ActionReplaceParams {
|
|
115
|
+
export interface Action {
|
|
116
|
+
actionId: string;
|
|
117
|
+
|
|
118
|
+
position: number;
|
|
119
|
+
|
|
120
|
+
children?: Array<FlowsAPI.FlowChildActionInput>;
|
|
121
|
+
|
|
122
|
+
continueOnError?: boolean;
|
|
123
|
+
|
|
124
|
+
nameOverride?: string;
|
|
125
|
+
|
|
126
|
+
overrides?: FlowsAPI.FlowActionOverrides | null;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export declare namespace Actions {
|
|
131
|
+
export {
|
|
132
|
+
type FlowAction as FlowAction,
|
|
133
|
+
type ActionListResponse as ActionListResponse,
|
|
134
|
+
type ActionAddResponse as ActionAddResponse,
|
|
135
|
+
type ActionRemoveResponse as ActionRemoveResponse,
|
|
136
|
+
type ActionReplaceResponse as ActionReplaceResponse,
|
|
137
|
+
type ActionAddParams as ActionAddParams,
|
|
138
|
+
type ActionRemoveParams as ActionRemoveParams,
|
|
139
|
+
type ActionReplaceParams as ActionReplaceParams,
|
|
140
|
+
};
|
|
141
|
+
}
|