@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,454 @@
|
|
|
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 Triggers extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a trigger
|
|
12
|
+
*/
|
|
13
|
+
create(body: TriggerCreateParams, options?: RequestOptions): APIPromise<TriggerCreateResponse> {
|
|
14
|
+
return this._client.post('/triggers', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Get a trigger
|
|
19
|
+
*/
|
|
20
|
+
retrieve(triggerID: string, options?: RequestOptions): APIPromise<TriggerRetrieveResponse> {
|
|
21
|
+
return this._client.get(path`/triggers/${triggerID}`, options);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Update a trigger
|
|
26
|
+
*/
|
|
27
|
+
update(
|
|
28
|
+
triggerID: string,
|
|
29
|
+
body: TriggerUpdateParams | null | undefined = {},
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): APIPromise<TriggerUpdateResponse> {
|
|
32
|
+
return this._client.patch(path`/triggers/${triggerID}`, { body, ...options });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* List triggers
|
|
37
|
+
*/
|
|
38
|
+
list(
|
|
39
|
+
query: TriggerListParams | null | undefined = {},
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): APIPromise<TriggerListResponse> {
|
|
42
|
+
return this._client.get('/triggers', { query, ...options });
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Delete a trigger
|
|
47
|
+
*/
|
|
48
|
+
delete(triggerID: string, options?: RequestOptions): APIPromise<TriggerDeleteResponse> {
|
|
49
|
+
return this._client.delete(path`/triggers/${triggerID}`, options);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Invoke a custom trigger directly with an arbitrary JSON payload.
|
|
54
|
+
*
|
|
55
|
+
* Fan-out: a trigger may be referenced by multiple flows (workflows). Firing it
|
|
56
|
+
* enqueues one execution per enabled, non-deleted flow attached to this trigger,
|
|
57
|
+
* each receiving the same payload. The `enqueuedCount` in the response reports how
|
|
58
|
+
* many were enqueued (0 if no flows are attached, or if all matching flows are
|
|
59
|
+
* gated by a cooldown).
|
|
60
|
+
*
|
|
61
|
+
* Payload validation:
|
|
62
|
+
*
|
|
63
|
+
* - If the trigger has a `customPayloadSchema`, the payload is validated against
|
|
64
|
+
* it (JSON Schema via AJV).
|
|
65
|
+
* - If no schema is configured, the payload only needs to be a JSON object — any
|
|
66
|
+
* keys and values are accepted.
|
|
67
|
+
*
|
|
68
|
+
* Only triggers with `activation = "custom"` can be fired through this endpoint;
|
|
69
|
+
* event and schedule triggers return 409.
|
|
70
|
+
*/
|
|
71
|
+
fire(
|
|
72
|
+
triggerID: string,
|
|
73
|
+
body: TriggerFireParams,
|
|
74
|
+
options?: RequestOptions,
|
|
75
|
+
): APIPromise<TriggerFireResponse> {
|
|
76
|
+
return this._client.post(path`/triggers/${triggerID}/fire`, { body, ...options });
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface TriggerCreateResponse {
|
|
81
|
+
data: TriggerCreateResponse.Data;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export namespace TriggerCreateResponse {
|
|
85
|
+
export interface Data {
|
|
86
|
+
id: string;
|
|
87
|
+
|
|
88
|
+
activation: 'event' | 'schedule' | 'custom';
|
|
89
|
+
|
|
90
|
+
createdAt: string | null;
|
|
91
|
+
|
|
92
|
+
customPayloadSchema: { [key: string]: unknown } | null;
|
|
93
|
+
|
|
94
|
+
description: string | null;
|
|
95
|
+
|
|
96
|
+
eventType: string | null;
|
|
97
|
+
|
|
98
|
+
name: string;
|
|
99
|
+
|
|
100
|
+
scheduleRule: Data.ScheduleRule;
|
|
101
|
+
|
|
102
|
+
timezone: string | null;
|
|
103
|
+
|
|
104
|
+
updatedAt: string | null;
|
|
105
|
+
|
|
106
|
+
userId: string;
|
|
107
|
+
|
|
108
|
+
conditions?: unknown;
|
|
109
|
+
|
|
110
|
+
nextFireTime?: string | null;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export namespace Data {
|
|
114
|
+
export interface ScheduleRule {
|
|
115
|
+
type: 'once' | 'cron' | 'recurring';
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* ISO 8601 datetime (for type=once)
|
|
119
|
+
*/
|
|
120
|
+
dateTime?: string;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Cron expression (for type=cron)
|
|
124
|
+
*/
|
|
125
|
+
expression?: string;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* RRULE string (for type=recurring)
|
|
129
|
+
*/
|
|
130
|
+
rrule?: string;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface TriggerRetrieveResponse {
|
|
136
|
+
data: TriggerRetrieveResponse.Data;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export namespace TriggerRetrieveResponse {
|
|
140
|
+
export interface Data {
|
|
141
|
+
id: string;
|
|
142
|
+
|
|
143
|
+
activation: 'event' | 'schedule' | 'custom';
|
|
144
|
+
|
|
145
|
+
createdAt: string | null;
|
|
146
|
+
|
|
147
|
+
customPayloadSchema: { [key: string]: unknown } | null;
|
|
148
|
+
|
|
149
|
+
description: string | null;
|
|
150
|
+
|
|
151
|
+
eventType: string | null;
|
|
152
|
+
|
|
153
|
+
name: string;
|
|
154
|
+
|
|
155
|
+
scheduleRule: Data.ScheduleRule | null;
|
|
156
|
+
|
|
157
|
+
timezone: string | null;
|
|
158
|
+
|
|
159
|
+
updatedAt: string | null;
|
|
160
|
+
|
|
161
|
+
userId: string;
|
|
162
|
+
|
|
163
|
+
conditions?: unknown;
|
|
164
|
+
|
|
165
|
+
nextFireTime?: string | null;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export namespace Data {
|
|
169
|
+
export interface ScheduleRule {
|
|
170
|
+
type: 'once' | 'cron' | 'recurring';
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* ISO 8601 datetime (for type=once)
|
|
174
|
+
*/
|
|
175
|
+
dateTime?: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Cron expression (for type=cron)
|
|
179
|
+
*/
|
|
180
|
+
expression?: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* RRULE string (for type=recurring)
|
|
184
|
+
*/
|
|
185
|
+
rrule?: string;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export interface TriggerUpdateResponse {
|
|
191
|
+
data: TriggerUpdateResponse.Data;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export namespace TriggerUpdateResponse {
|
|
195
|
+
export interface Data {
|
|
196
|
+
id: string;
|
|
197
|
+
|
|
198
|
+
activation: 'event' | 'schedule' | 'custom';
|
|
199
|
+
|
|
200
|
+
createdAt: string | null;
|
|
201
|
+
|
|
202
|
+
customPayloadSchema: { [key: string]: unknown } | null;
|
|
203
|
+
|
|
204
|
+
description: string | null;
|
|
205
|
+
|
|
206
|
+
eventType: string | null;
|
|
207
|
+
|
|
208
|
+
name: string;
|
|
209
|
+
|
|
210
|
+
scheduleRule: Data.ScheduleRule | null;
|
|
211
|
+
|
|
212
|
+
timezone: string | null;
|
|
213
|
+
|
|
214
|
+
updatedAt: string | null;
|
|
215
|
+
|
|
216
|
+
userId: string;
|
|
217
|
+
|
|
218
|
+
conditions?: unknown;
|
|
219
|
+
|
|
220
|
+
nextFireTime?: string | null;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export namespace Data {
|
|
224
|
+
export interface ScheduleRule {
|
|
225
|
+
type: 'once' | 'cron' | 'recurring';
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* ISO 8601 datetime (for type=once)
|
|
229
|
+
*/
|
|
230
|
+
dateTime?: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Cron expression (for type=cron)
|
|
234
|
+
*/
|
|
235
|
+
expression?: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* RRULE string (for type=recurring)
|
|
239
|
+
*/
|
|
240
|
+
rrule?: string;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface TriggerListResponse {
|
|
246
|
+
items: Array<TriggerListResponse.Item>;
|
|
247
|
+
|
|
248
|
+
pagination: Shared.Pagination;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export namespace TriggerListResponse {
|
|
252
|
+
export interface Item {
|
|
253
|
+
id: string;
|
|
254
|
+
|
|
255
|
+
activation: 'event' | 'schedule' | 'custom';
|
|
256
|
+
|
|
257
|
+
createdAt: string | null;
|
|
258
|
+
|
|
259
|
+
customPayloadSchema: { [key: string]: unknown } | null;
|
|
260
|
+
|
|
261
|
+
description: string | null;
|
|
262
|
+
|
|
263
|
+
eventType: string | null;
|
|
264
|
+
|
|
265
|
+
name: string;
|
|
266
|
+
|
|
267
|
+
scheduleRule: Item.ScheduleRule | null;
|
|
268
|
+
|
|
269
|
+
timezone: string | null;
|
|
270
|
+
|
|
271
|
+
updatedAt: string | null;
|
|
272
|
+
|
|
273
|
+
userId: string;
|
|
274
|
+
|
|
275
|
+
conditions?: unknown;
|
|
276
|
+
|
|
277
|
+
nextFireTime?: string | null;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export namespace Item {
|
|
281
|
+
export interface ScheduleRule {
|
|
282
|
+
type: 'once' | 'cron' | 'recurring';
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* ISO 8601 datetime (for type=once)
|
|
286
|
+
*/
|
|
287
|
+
dateTime?: string;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Cron expression (for type=cron)
|
|
291
|
+
*/
|
|
292
|
+
expression?: string;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* RRULE string (for type=recurring)
|
|
296
|
+
*/
|
|
297
|
+
rrule?: string;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export interface TriggerDeleteResponse {
|
|
303
|
+
message: string;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export interface TriggerFireResponse {
|
|
307
|
+
/**
|
|
308
|
+
* Number of flow executions enqueued. May be 0 if no flows are attached to this
|
|
309
|
+
* trigger, or if all attached flows are currently in cooldown.
|
|
310
|
+
*/
|
|
311
|
+
enqueuedCount: number;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Unique ID for this fire invocation. Job IDs in the execution queue are derived
|
|
315
|
+
* from it (one per enqueued flow).
|
|
316
|
+
*/
|
|
317
|
+
invocationId: string;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export interface TriggerCreateParams {
|
|
321
|
+
activation: 'event' | 'schedule' | 'custom';
|
|
322
|
+
|
|
323
|
+
name: string;
|
|
324
|
+
|
|
325
|
+
conditions?: TriggerCreateParams.Conditions;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Optional JSON Schema for validating payloads sent to this custom trigger
|
|
329
|
+
*/
|
|
330
|
+
customPayloadSchema?: { [key: string]: unknown };
|
|
331
|
+
|
|
332
|
+
description?: string;
|
|
333
|
+
|
|
334
|
+
eventType?: string;
|
|
335
|
+
|
|
336
|
+
scheduleRule?: TriggerCreateParams.ScheduleRule;
|
|
337
|
+
|
|
338
|
+
timezone?: string;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export namespace TriggerCreateParams {
|
|
342
|
+
export interface Conditions {
|
|
343
|
+
all?: Array<unknown>;
|
|
344
|
+
|
|
345
|
+
any?: Array<unknown>;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export interface ScheduleRule {
|
|
349
|
+
type: 'once' | 'cron' | 'recurring';
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* ISO 8601 datetime (for type=once)
|
|
353
|
+
*/
|
|
354
|
+
dateTime?: string;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Cron expression (for type=cron)
|
|
358
|
+
*/
|
|
359
|
+
expression?: string;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* RRULE string (for type=recurring)
|
|
363
|
+
*/
|
|
364
|
+
rrule?: string;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export interface TriggerUpdateParams {
|
|
369
|
+
activation?: 'event' | 'schedule' | 'custom';
|
|
370
|
+
|
|
371
|
+
conditions?: TriggerUpdateParams.Conditions;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Optional JSON Schema for validating payloads sent to this custom trigger
|
|
375
|
+
*/
|
|
376
|
+
customPayloadSchema?: { [key: string]: unknown } | null;
|
|
377
|
+
|
|
378
|
+
description?: string;
|
|
379
|
+
|
|
380
|
+
eventType?: string;
|
|
381
|
+
|
|
382
|
+
name?: string;
|
|
383
|
+
|
|
384
|
+
scheduleRule?: TriggerUpdateParams.ScheduleRule;
|
|
385
|
+
|
|
386
|
+
timezone?: string | null;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export namespace TriggerUpdateParams {
|
|
390
|
+
export interface Conditions {
|
|
391
|
+
all?: Array<unknown>;
|
|
392
|
+
|
|
393
|
+
any?: Array<unknown>;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export interface ScheduleRule {
|
|
397
|
+
type: 'once' | 'cron' | 'recurring';
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* ISO 8601 datetime (for type=once)
|
|
401
|
+
*/
|
|
402
|
+
dateTime?: string;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Cron expression (for type=cron)
|
|
406
|
+
*/
|
|
407
|
+
expression?: string;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* RRULE string (for type=recurring)
|
|
411
|
+
*/
|
|
412
|
+
rrule?: string;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export interface TriggerListParams {
|
|
417
|
+
activation?: 'event' | 'schedule' | 'custom';
|
|
418
|
+
|
|
419
|
+
eventType?: string;
|
|
420
|
+
|
|
421
|
+
orderBy?: 'name' | 'createdAt' | 'updatedAt';
|
|
422
|
+
|
|
423
|
+
orderByDirection?: 'asc' | 'desc';
|
|
424
|
+
|
|
425
|
+
page?: number;
|
|
426
|
+
|
|
427
|
+
pageSize?: number;
|
|
428
|
+
|
|
429
|
+
search?: string;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export interface TriggerFireParams {
|
|
433
|
+
/**
|
|
434
|
+
* Arbitrary JSON object forwarded to every flow attached to this trigger.
|
|
435
|
+
* Validated against the trigger's customPayloadSchema when one is configured;
|
|
436
|
+
* otherwise only "must be a JSON object" is enforced.
|
|
437
|
+
*/
|
|
438
|
+
payload: { [key: string]: unknown };
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export declare namespace Triggers {
|
|
442
|
+
export {
|
|
443
|
+
type TriggerCreateResponse as TriggerCreateResponse,
|
|
444
|
+
type TriggerRetrieveResponse as TriggerRetrieveResponse,
|
|
445
|
+
type TriggerUpdateResponse as TriggerUpdateResponse,
|
|
446
|
+
type TriggerListResponse as TriggerListResponse,
|
|
447
|
+
type TriggerDeleteResponse as TriggerDeleteResponse,
|
|
448
|
+
type TriggerFireResponse as TriggerFireResponse,
|
|
449
|
+
type TriggerCreateParams as TriggerCreateParams,
|
|
450
|
+
type TriggerUpdateParams as TriggerUpdateParams,
|
|
451
|
+
type TriggerListParams as TriggerListParams,
|
|
452
|
+
type TriggerFireParams as TriggerFireParams,
|
|
453
|
+
};
|
|
454
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as ActionCatalogAPI from './action-catalog';
|
|
5
|
+
import {
|
|
6
|
+
ActionCatalog,
|
|
7
|
+
ActionCatalogEntry,
|
|
8
|
+
ActionCatalogListParams,
|
|
9
|
+
ActionCatalogListResponse,
|
|
10
|
+
ActionCatalogRetrieveResponse,
|
|
11
|
+
} from './action-catalog';
|
|
12
|
+
import * as ExecutionsAPI from './executions';
|
|
13
|
+
import {
|
|
14
|
+
ExecutionGetMetricsParams,
|
|
15
|
+
ExecutionGetMetricsResponse,
|
|
16
|
+
ExecutionListParams,
|
|
17
|
+
ExecutionListResponse,
|
|
18
|
+
ExecutionRetrieveResponse,
|
|
19
|
+
Executions,
|
|
20
|
+
FlowExecution,
|
|
21
|
+
} from './executions';
|
|
22
|
+
import * as TimezonesAPI from './timezones';
|
|
23
|
+
import { TimezoneListResponse, Timezones } from './timezones';
|
|
24
|
+
import * as TriggersAPI from './triggers';
|
|
25
|
+
import {
|
|
26
|
+
TriggerCreateParams,
|
|
27
|
+
TriggerCreateResponse,
|
|
28
|
+
TriggerDeleteResponse,
|
|
29
|
+
TriggerFireParams,
|
|
30
|
+
TriggerFireResponse,
|
|
31
|
+
TriggerListParams,
|
|
32
|
+
TriggerListResponse,
|
|
33
|
+
TriggerRetrieveResponse,
|
|
34
|
+
TriggerUpdateParams,
|
|
35
|
+
TriggerUpdateResponse,
|
|
36
|
+
Triggers,
|
|
37
|
+
} from './triggers';
|
|
38
|
+
import * as ActionsAPI from './actions/actions';
|
|
39
|
+
import {
|
|
40
|
+
Action,
|
|
41
|
+
ActionCreateParams,
|
|
42
|
+
ActionCreateResponse,
|
|
43
|
+
ActionDeleteResponse,
|
|
44
|
+
ActionListParams,
|
|
45
|
+
ActionListResponse,
|
|
46
|
+
ActionRetrieveResponse,
|
|
47
|
+
ActionUpdateParams,
|
|
48
|
+
ActionUpdateResponse,
|
|
49
|
+
Actions,
|
|
50
|
+
} from './actions/actions';
|
|
51
|
+
import * as EventsAPI from './events/events';
|
|
52
|
+
import {
|
|
53
|
+
EventDryRunParams,
|
|
54
|
+
EventDryRunResponse,
|
|
55
|
+
EventIngestParams,
|
|
56
|
+
EventIngestResponse,
|
|
57
|
+
Events,
|
|
58
|
+
} from './events/events';
|
|
59
|
+
import * as FlowsAPI from './flows/flows';
|
|
60
|
+
import {
|
|
61
|
+
FlowActionOverrides,
|
|
62
|
+
FlowChildActionInput,
|
|
63
|
+
FlowCloneParams,
|
|
64
|
+
FlowCloneResponse,
|
|
65
|
+
FlowCreateParams,
|
|
66
|
+
FlowCreateResponse,
|
|
67
|
+
FlowDeleteResponse,
|
|
68
|
+
FlowListParams,
|
|
69
|
+
FlowListResponse,
|
|
70
|
+
FlowRetrieveResponse,
|
|
71
|
+
FlowUnblockResponse,
|
|
72
|
+
FlowUpdateParams,
|
|
73
|
+
FlowUpdateResponse,
|
|
74
|
+
Flows,
|
|
75
|
+
} from './flows/flows';
|
|
76
|
+
|
|
77
|
+
export class Workflows extends APIResource {
|
|
78
|
+
triggers: TriggersAPI.Triggers = new TriggersAPI.Triggers(this._client);
|
|
79
|
+
actionCatalog: ActionCatalogAPI.ActionCatalog = new ActionCatalogAPI.ActionCatalog(this._client);
|
|
80
|
+
actions: ActionsAPI.Actions = new ActionsAPI.Actions(this._client);
|
|
81
|
+
flows: FlowsAPI.Flows = new FlowsAPI.Flows(this._client);
|
|
82
|
+
events: EventsAPI.Events = new EventsAPI.Events(this._client);
|
|
83
|
+
executions: ExecutionsAPI.Executions = new ExecutionsAPI.Executions(this._client);
|
|
84
|
+
timezones: TimezonesAPI.Timezones = new TimezonesAPI.Timezones(this._client);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface Flow {
|
|
88
|
+
id: string;
|
|
89
|
+
|
|
90
|
+
blockedAt: string | null;
|
|
91
|
+
|
|
92
|
+
consecutiveFailures: number;
|
|
93
|
+
|
|
94
|
+
cooldownScope: 'flow' | 'device';
|
|
95
|
+
|
|
96
|
+
cooldownSeconds: number | null;
|
|
97
|
+
|
|
98
|
+
createdAt: string | null;
|
|
99
|
+
|
|
100
|
+
description: string | null;
|
|
101
|
+
|
|
102
|
+
deviceIds: Array<string>;
|
|
103
|
+
|
|
104
|
+
enabled: boolean;
|
|
105
|
+
|
|
106
|
+
lastFailureAt: string | null;
|
|
107
|
+
|
|
108
|
+
lastFailureCode:
|
|
109
|
+
| 'device_not_found'
|
|
110
|
+
| 'permission_denied'
|
|
111
|
+
| 'client_error'
|
|
112
|
+
| 'transient'
|
|
113
|
+
| 'logic'
|
|
114
|
+
| 'invalid_config'
|
|
115
|
+
| null;
|
|
116
|
+
|
|
117
|
+
lastTriggeredAt: string | null;
|
|
118
|
+
|
|
119
|
+
name: string;
|
|
120
|
+
|
|
121
|
+
notifyOnFailure: boolean;
|
|
122
|
+
|
|
123
|
+
notifyOnSuccess: boolean;
|
|
124
|
+
|
|
125
|
+
notifyWebhookId: string | null;
|
|
126
|
+
|
|
127
|
+
status: 'healthy' | 'failing' | 'blocked';
|
|
128
|
+
|
|
129
|
+
triggerId: string;
|
|
130
|
+
|
|
131
|
+
updatedAt: string | null;
|
|
132
|
+
|
|
133
|
+
userId: string;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
Workflows.Triggers = Triggers;
|
|
137
|
+
Workflows.ActionCatalog = ActionCatalog;
|
|
138
|
+
Workflows.Actions = Actions;
|
|
139
|
+
Workflows.Flows = Flows;
|
|
140
|
+
Workflows.Events = Events;
|
|
141
|
+
Workflows.Executions = Executions;
|
|
142
|
+
Workflows.Timezones = Timezones;
|
|
143
|
+
|
|
144
|
+
export declare namespace Workflows {
|
|
145
|
+
export { type Flow as Flow };
|
|
146
|
+
|
|
147
|
+
export {
|
|
148
|
+
Triggers as Triggers,
|
|
149
|
+
type TriggerCreateResponse as TriggerCreateResponse,
|
|
150
|
+
type TriggerRetrieveResponse as TriggerRetrieveResponse,
|
|
151
|
+
type TriggerUpdateResponse as TriggerUpdateResponse,
|
|
152
|
+
type TriggerListResponse as TriggerListResponse,
|
|
153
|
+
type TriggerDeleteResponse as TriggerDeleteResponse,
|
|
154
|
+
type TriggerFireResponse as TriggerFireResponse,
|
|
155
|
+
type TriggerCreateParams as TriggerCreateParams,
|
|
156
|
+
type TriggerUpdateParams as TriggerUpdateParams,
|
|
157
|
+
type TriggerListParams as TriggerListParams,
|
|
158
|
+
type TriggerFireParams as TriggerFireParams,
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export {
|
|
162
|
+
ActionCatalog as ActionCatalog,
|
|
163
|
+
type ActionCatalogEntry as ActionCatalogEntry,
|
|
164
|
+
type ActionCatalogRetrieveResponse as ActionCatalogRetrieveResponse,
|
|
165
|
+
type ActionCatalogListResponse as ActionCatalogListResponse,
|
|
166
|
+
type ActionCatalogListParams as ActionCatalogListParams,
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
export {
|
|
170
|
+
Actions as Actions,
|
|
171
|
+
type Action as Action,
|
|
172
|
+
type ActionCreateResponse as ActionCreateResponse,
|
|
173
|
+
type ActionRetrieveResponse as ActionRetrieveResponse,
|
|
174
|
+
type ActionUpdateResponse as ActionUpdateResponse,
|
|
175
|
+
type ActionListResponse as ActionListResponse,
|
|
176
|
+
type ActionDeleteResponse as ActionDeleteResponse,
|
|
177
|
+
type ActionCreateParams as ActionCreateParams,
|
|
178
|
+
type ActionUpdateParams as ActionUpdateParams,
|
|
179
|
+
type ActionListParams as ActionListParams,
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
export {
|
|
183
|
+
Flows as Flows,
|
|
184
|
+
type FlowActionOverrides as FlowActionOverrides,
|
|
185
|
+
type FlowChildActionInput as FlowChildActionInput,
|
|
186
|
+
type FlowCreateResponse as FlowCreateResponse,
|
|
187
|
+
type FlowRetrieveResponse as FlowRetrieveResponse,
|
|
188
|
+
type FlowUpdateResponse as FlowUpdateResponse,
|
|
189
|
+
type FlowListResponse as FlowListResponse,
|
|
190
|
+
type FlowDeleteResponse as FlowDeleteResponse,
|
|
191
|
+
type FlowCloneResponse as FlowCloneResponse,
|
|
192
|
+
type FlowUnblockResponse as FlowUnblockResponse,
|
|
193
|
+
type FlowCreateParams as FlowCreateParams,
|
|
194
|
+
type FlowUpdateParams as FlowUpdateParams,
|
|
195
|
+
type FlowListParams as FlowListParams,
|
|
196
|
+
type FlowCloneParams as FlowCloneParams,
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
export {
|
|
200
|
+
Events as Events,
|
|
201
|
+
type EventDryRunResponse as EventDryRunResponse,
|
|
202
|
+
type EventIngestResponse as EventIngestResponse,
|
|
203
|
+
type EventDryRunParams as EventDryRunParams,
|
|
204
|
+
type EventIngestParams as EventIngestParams,
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
export {
|
|
208
|
+
Executions as Executions,
|
|
209
|
+
type FlowExecution as FlowExecution,
|
|
210
|
+
type ExecutionRetrieveResponse as ExecutionRetrieveResponse,
|
|
211
|
+
type ExecutionListResponse as ExecutionListResponse,
|
|
212
|
+
type ExecutionGetMetricsResponse as ExecutionGetMetricsResponse,
|
|
213
|
+
type ExecutionListParams as ExecutionListParams,
|
|
214
|
+
type ExecutionGetMetricsParams as ExecutionGetMetricsParams,
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
export { Timezones as Timezones, type TimezoneListResponse as TimezoneListResponse };
|
|
218
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '5.1.0'; // x-release-please-version
|
package/uploads.d.mts
CHANGED
package/uploads.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
|
package/uploads.d.ts
CHANGED
package/uploads.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,kCAA+B"}
|
package/uploads.mjs
CHANGED
package/uploads.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "5.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|