@mobilerun/sdk 4.0.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +313 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +34 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +34 -29
- package/client.d.ts.map +1 -1
- package/client.js +44 -22
- package/client.js.map +1 -1
- package/client.mjs +46 -24
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +10 -10
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +10 -10
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/lib/trajectory-decoder-stream.d.mts.map +1 -1
- package/lib/trajectory-decoder-stream.d.ts.map +1 -1
- package/package.json +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/apps.d.mts +203 -16
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +203 -16
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +98 -0
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +98 -0
- package/resources/apps.mjs.map +1 -1
- package/resources/carriers.d.mts +105 -7
- package/resources/carriers.d.mts.map +1 -1
- package/resources/carriers.d.ts +105 -7
- package/resources/carriers.d.ts.map +1 -1
- package/resources/carriers.js.map +1 -1
- package/resources/carriers.mjs.map +1 -1
- package/resources/connect/connect.d.mts +18 -0
- package/resources/connect/connect.d.mts.map +1 -0
- package/resources/connect/connect.d.ts +18 -0
- package/resources/connect/connect.d.ts.map +1 -0
- package/resources/connect/connect.js +25 -0
- package/resources/connect/connect.js.map +1 -0
- package/resources/connect/connect.mjs +20 -0
- package/resources/connect/connect.mjs.map +1 -0
- package/resources/connect/countries.d.mts +84 -0
- package/resources/connect/countries.d.mts.map +1 -0
- package/resources/connect/countries.d.ts +84 -0
- package/resources/connect/countries.d.ts.map +1 -0
- package/resources/connect/countries.js +20 -0
- package/resources/connect/countries.js.map +1 -0
- package/resources/connect/countries.mjs +16 -0
- package/resources/connect/countries.mjs.map +1 -0
- package/resources/connect/index.d.mts +5 -0
- package/resources/connect/index.d.mts.map +1 -0
- package/resources/connect/index.d.ts +5 -0
- package/resources/connect/index.d.ts.map +1 -0
- package/resources/connect/index.js +13 -0
- package/resources/connect/index.js.map +1 -0
- package/resources/connect/index.mjs +6 -0
- package/resources/connect/index.mjs.map +1 -0
- package/resources/connect/proxies.d.mts +456 -0
- package/resources/connect/proxies.d.mts.map +1 -0
- package/resources/connect/proxies.d.ts +456 -0
- package/resources/connect/proxies.d.ts.map +1 -0
- package/resources/connect/proxies.js +59 -0
- package/resources/connect/proxies.js.map +1 -0
- package/resources/connect/proxies.mjs +55 -0
- package/resources/connect/proxies.mjs.map +1 -0
- package/resources/connect/users.d.mts +392 -0
- package/resources/connect/users.d.mts.map +1 -0
- package/resources/connect/users.d.ts +392 -0
- package/resources/connect/users.d.ts.map +1 -0
- package/resources/connect/users.js +59 -0
- package/resources/connect/users.js.map +1 -0
- package/resources/connect/users.mjs +55 -0
- package/resources/connect/users.mjs.map +1 -0
- package/resources/connect.d.mts +2 -0
- package/resources/connect.d.mts.map +1 -0
- package/resources/connect.d.ts +2 -0
- package/resources/connect.d.ts.map +1 -0
- package/resources/connect.js +6 -0
- package/resources/connect.js.map +1 -0
- package/resources/connect.mjs +3 -0
- package/resources/connect.mjs.map +1 -0
- package/resources/credentials/credentials.d.mts +3 -1
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +3 -1
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +3 -1
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +3 -1
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/index.d.mts.map +1 -1
- package/resources/credentials/index.d.ts.map +1 -1
- package/resources/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.mts +14 -4
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +14 -4
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +7 -3
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +7 -3
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +8 -3
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +8 -3
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/fields.js +8 -3
- package/resources/credentials/packages/credentials/fields.js.map +1 -1
- package/resources/credentials/packages/credentials/fields.mjs +8 -3
- package/resources/credentials/packages/credentials/fields.mjs.map +1 -1
- package/resources/credentials/packages/credentials/index.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/index.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials.mjs.map +1 -1
- package/resources/credentials/packages/index.d.mts.map +1 -1
- package/resources/credentials/packages/index.d.ts.map +1 -1
- package/resources/credentials/packages/index.mjs.map +1 -1
- package/resources/credentials/packages/packages.d.mts +5 -2
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +5 -2
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +5 -2
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +5 -2
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/credentials/packages.d.mts.map +1 -1
- package/resources/credentials/packages.d.ts.map +1 -1
- package/resources/credentials/packages.mjs.map +1 -1
- package/resources/credentials.d.mts.map +1 -1
- package/resources/credentials.d.ts.map +1 -1
- package/resources/credentials.mjs.map +1 -1
- package/resources/devices/actions.d.mts +10 -5
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +10 -5
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +10 -5
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +10 -5
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +78 -24
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +78 -24
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +38 -22
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +38 -22
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +168 -41
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +168 -41
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +86 -27
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +86 -27
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/esim.d.mts +14 -6
- package/resources/devices/esim.d.mts.map +1 -1
- package/resources/devices/esim.d.ts +14 -6
- package/resources/devices/esim.d.ts.map +1 -1
- package/resources/devices/esim.js +6 -4
- package/resources/devices/esim.js.map +1 -1
- package/resources/devices/esim.mjs +6 -4
- package/resources/devices/esim.mjs.map +1 -1
- package/resources/devices/files.d.mts +7 -4
- package/resources/devices/files.d.mts.map +1 -1
- package/resources/devices/files.d.ts +7 -4
- package/resources/devices/files.d.ts.map +1 -1
- package/resources/devices/files.js +7 -4
- package/resources/devices/files.js.map +1 -1
- package/resources/devices/files.mjs +7 -4
- package/resources/devices/files.mjs.map +1 -1
- package/resources/devices/index.d.mts +6 -5
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +6 -5
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +5 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +3 -2
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +10 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +10 -3
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.js +5 -3
- package/resources/devices/keyboard.js.map +1 -1
- package/resources/devices/keyboard.mjs +5 -3
- package/resources/devices/keyboard.mjs.map +1 -1
- package/resources/devices/language.d.mts +45 -0
- package/resources/devices/language.d.mts.map +1 -0
- package/resources/devices/language.d.ts +45 -0
- package/resources/devices/language.d.ts.map +1 -0
- package/resources/devices/language.js +49 -0
- package/resources/devices/language.js.map +1 -0
- package/resources/devices/language.mjs +45 -0
- package/resources/devices/language.mjs.map +1 -0
- package/resources/devices/location.d.mts +7 -12
- package/resources/devices/location.d.mts.map +1 -1
- package/resources/devices/location.d.ts +7 -12
- package/resources/devices/location.d.ts.map +1 -1
- package/resources/devices/location.js +4 -2
- package/resources/devices/location.js.map +1 -1
- package/resources/devices/location.mjs +4 -2
- package/resources/devices/location.mjs.map +1 -1
- package/resources/devices/packages.d.mts +2 -1
- package/resources/devices/packages.d.mts.map +1 -1
- package/resources/devices/packages.d.ts +2 -1
- package/resources/devices/packages.d.ts.map +1 -1
- package/resources/devices/packages.js +2 -1
- package/resources/devices/packages.js.map +1 -1
- package/resources/devices/packages.mjs +2 -1
- package/resources/devices/packages.mjs.map +1 -1
- package/resources/devices/profile.d.mts.map +1 -1
- package/resources/devices/profile.d.ts.map +1 -1
- package/resources/devices/profile.mjs.map +1 -1
- package/resources/devices/proxy.d.mts +31 -10
- package/resources/devices/proxy.d.mts.map +1 -1
- package/resources/devices/proxy.d.ts +31 -10
- package/resources/devices/proxy.d.ts.map +1 -1
- package/resources/devices/proxy.js +7 -3
- package/resources/devices/proxy.js.map +1 -1
- package/resources/devices/proxy.mjs +7 -3
- package/resources/devices/proxy.mjs.map +1 -1
- package/resources/devices/state.d.mts +44 -5
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +44 -5
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +22 -2
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +22 -2
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/tasks.d.mts +4 -9
- package/resources/devices/tasks.d.mts.map +1 -1
- package/resources/devices/tasks.d.ts +4 -9
- package/resources/devices/tasks.d.ts.map +1 -1
- package/resources/devices/tasks.js +2 -1
- package/resources/devices/tasks.js.map +1 -1
- package/resources/devices/tasks.mjs +2 -1
- package/resources/devices/tasks.mjs.map +1 -1
- package/resources/devices/timezone.d.mts +39 -0
- package/resources/devices/timezone.d.mts.map +1 -0
- package/resources/devices/timezone.d.ts +39 -0
- package/resources/devices/timezone.d.ts.map +1 -0
- package/resources/devices/{time.js → timezone.js} +15 -30
- package/resources/devices/timezone.js.map +1 -0
- package/resources/devices/{time.mjs → timezone.mjs} +13 -28
- package/resources/devices/timezone.mjs.map +1 -0
- package/resources/devices.d.mts.map +1 -1
- package/resources/devices.d.ts.map +1 -1
- package/resources/devices.mjs.map +1 -1
- package/resources/hooks.d.mts +0 -208
- package/resources/hooks.d.mts.map +1 -1
- package/resources/hooks.d.ts +0 -208
- package/resources/hooks.d.ts.map +1 -1
- package/resources/hooks.js +0 -51
- package/resources/hooks.js.map +1 -1
- package/resources/hooks.mjs +0 -51
- package/resources/hooks.mjs.map +1 -1
- package/resources/index.d.mts +9 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -3
- package/resources/index.mjs.map +1 -1
- package/resources/models.d.mts +3 -0
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +3 -0
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -0
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -0
- package/resources/models.mjs.map +1 -1
- package/resources/profiles.d.mts +69 -6
- package/resources/profiles.d.mts.map +1 -1
- package/resources/profiles.d.ts +69 -6
- package/resources/profiles.d.ts.map +1 -1
- package/resources/profiles.js.map +1 -1
- package/resources/profiles.mjs.map +1 -1
- package/resources/proxies.d.mts +101 -6
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +101 -6
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +20 -5
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +20 -5
- package/resources/proxies.mjs.map +1 -1
- package/resources/shared.d.mts +32 -7
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +32 -7
- package/resources/shared.d.ts.map +1 -1
- package/resources/tasks/index.d.mts.map +1 -1
- package/resources/tasks/index.d.ts.map +1 -1
- package/resources/tasks/index.mjs.map +1 -1
- package/resources/tasks/screenshots.d.mts.map +1 -1
- package/resources/tasks/screenshots.d.ts.map +1 -1
- package/resources/tasks/screenshots.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +220 -64
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +220 -64
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +10 -2
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +10 -2
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/tasks/ui-states.d.mts.map +1 -1
- package/resources/tasks/ui-states.d.ts.map +1 -1
- package/resources/tasks/ui-states.mjs.map +1 -1
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +207 -0
- package/resources/webhooks/deliveries.d.mts.map +1 -0
- package/resources/webhooks/deliveries.d.ts +207 -0
- package/resources/webhooks/deliveries.d.ts.map +1 -0
- package/resources/webhooks/deliveries.js +73 -0
- package/resources/webhooks/deliveries.js.map +1 -0
- package/resources/webhooks/deliveries.mjs +69 -0
- package/resources/webhooks/deliveries.mjs.map +1 -0
- package/resources/webhooks/index.d.mts +3 -0
- package/resources/webhooks/index.d.mts.map +1 -0
- package/resources/webhooks/index.d.ts +3 -0
- package/resources/webhooks/index.d.ts.map +1 -0
- package/resources/webhooks/index.js +9 -0
- package/resources/webhooks/index.js.map +1 -0
- package/resources/webhooks/index.mjs +4 -0
- package/resources/webhooks/index.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +329 -0
- package/resources/webhooks/webhooks.d.mts.map +1 -0
- package/resources/webhooks/webhooks.d.ts +329 -0
- package/resources/webhooks/webhooks.d.ts.map +1 -0
- package/resources/webhooks/webhooks.js +140 -0
- package/resources/webhooks/webhooks.js.map +1 -0
- package/resources/webhooks/webhooks.mjs +135 -0
- package/resources/webhooks/webhooks.mjs.map +1 -0
- package/resources/webhooks.d.mts +2 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +2 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +6 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +3 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources/workflows/action-catalog.d.mts +43 -0
- package/resources/workflows/action-catalog.d.mts.map +1 -0
- package/resources/workflows/action-catalog.d.ts +43 -0
- package/resources/workflows/action-catalog.d.ts.map +1 -0
- package/resources/workflows/action-catalog.js +25 -0
- package/resources/workflows/action-catalog.js.map +1 -0
- package/resources/workflows/action-catalog.mjs +21 -0
- package/resources/workflows/action-catalog.mjs.map +1 -0
- package/resources/workflows/actions/actions.d.mts +96 -0
- package/resources/workflows/actions/actions.d.mts.map +1 -0
- package/resources/workflows/actions/actions.d.ts +96 -0
- package/resources/workflows/actions/actions.d.ts.map +1 -0
- package/resources/workflows/actions/actions.js +53 -0
- package/resources/workflows/actions/actions.js.map +1 -0
- package/resources/workflows/actions/actions.mjs +48 -0
- package/resources/workflows/actions/actions.mjs.map +1 -0
- package/resources/workflows/actions/index.d.mts +3 -0
- package/resources/workflows/actions/index.d.mts.map +1 -0
- package/resources/workflows/actions/index.d.ts +3 -0
- package/resources/workflows/actions/index.d.ts.map +1 -0
- package/resources/workflows/actions/index.js +9 -0
- package/resources/workflows/actions/index.js.map +1 -0
- package/resources/workflows/actions/index.mjs +4 -0
- package/resources/workflows/actions/index.mjs.map +1 -0
- package/resources/workflows/actions/services.d.mts +42 -0
- package/resources/workflows/actions/services.d.mts.map +1 -0
- package/resources/workflows/actions/services.d.ts +42 -0
- package/resources/workflows/actions/services.d.ts.map +1 -0
- package/resources/workflows/actions/services.js +25 -0
- package/resources/workflows/actions/services.js.map +1 -0
- package/resources/workflows/actions/services.mjs +21 -0
- package/resources/workflows/actions/services.mjs.map +1 -0
- package/resources/workflows/actions.d.mts +2 -0
- package/resources/workflows/actions.d.mts.map +1 -0
- package/resources/workflows/actions.d.ts +2 -0
- package/resources/workflows/actions.d.ts.map +1 -0
- package/resources/workflows/actions.js +6 -0
- package/resources/workflows/actions.js.map +1 -0
- package/resources/workflows/actions.mjs +3 -0
- package/resources/workflows/actions.mjs.map +1 -0
- package/resources/workflows/events/catalog.d.mts +4 -0
- package/resources/workflows/events/catalog.d.mts.map +1 -0
- package/resources/workflows/events/catalog.d.ts +4 -0
- package/resources/workflows/events/catalog.d.ts.map +1 -0
- package/resources/workflows/events/catalog.js +9 -0
- package/resources/workflows/events/catalog.js.map +1 -0
- package/resources/workflows/events/catalog.mjs +5 -0
- package/resources/workflows/events/catalog.mjs.map +1 -0
- package/resources/workflows/events/events.d.mts +113 -0
- package/resources/workflows/events/events.d.mts.map +1 -0
- package/resources/workflows/events/events.d.ts +113 -0
- package/resources/workflows/events/events.d.ts.map +1 -0
- package/resources/workflows/events/events.js +30 -0
- package/resources/workflows/events/events.js.map +1 -0
- package/resources/workflows/events/events.mjs +25 -0
- package/resources/workflows/events/events.mjs.map +1 -0
- package/resources/workflows/events/index.d.mts +3 -0
- package/resources/workflows/events/index.d.mts.map +1 -0
- package/resources/workflows/events/index.d.ts +3 -0
- package/resources/workflows/events/index.d.ts.map +1 -0
- package/resources/workflows/events/index.js +9 -0
- package/resources/workflows/events/index.js.map +1 -0
- package/resources/workflows/events/index.mjs +4 -0
- package/resources/workflows/events/index.mjs.map +1 -0
- package/resources/workflows/events.d.mts +2 -0
- package/resources/workflows/events.d.mts.map +1 -0
- package/resources/workflows/events.d.ts +2 -0
- package/resources/workflows/events.d.ts.map +1 -0
- package/resources/workflows/events.js +6 -0
- package/resources/workflows/events.js.map +1 -0
- package/resources/workflows/events.mjs +3 -0
- package/resources/workflows/events.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +121 -0
- package/resources/workflows/executions.d.mts.map +1 -0
- package/resources/workflows/executions.d.ts +121 -0
- package/resources/workflows/executions.d.ts.map +1 -0
- package/resources/workflows/executions.js +33 -0
- package/resources/workflows/executions.js.map +1 -0
- package/resources/workflows/executions.mjs +29 -0
- package/resources/workflows/executions.mjs.map +1 -0
- package/resources/workflows/flows/actions.d.mts +89 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -0
- package/resources/workflows/flows/actions.d.ts +89 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -0
- package/resources/workflows/flows/actions.js +43 -0
- package/resources/workflows/flows/actions.js.map +1 -0
- package/resources/workflows/flows/actions.mjs +39 -0
- package/resources/workflows/flows/actions.mjs.map +1 -0
- package/resources/workflows/flows/flows.d.mts +154 -0
- package/resources/workflows/flows/flows.d.mts.map +1 -0
- package/resources/workflows/flows/flows.d.ts +154 -0
- package/resources/workflows/flows/flows.d.ts.map +1 -0
- package/resources/workflows/flows/flows.js +73 -0
- package/resources/workflows/flows/flows.js.map +1 -0
- package/resources/workflows/flows/flows.mjs +68 -0
- package/resources/workflows/flows/flows.mjs.map +1 -0
- package/resources/workflows/flows/index.d.mts +3 -0
- package/resources/workflows/flows/index.d.mts.map +1 -0
- package/resources/workflows/flows/index.d.ts +3 -0
- package/resources/workflows/flows/index.d.ts.map +1 -0
- package/resources/workflows/flows/index.js +9 -0
- package/resources/workflows/flows/index.js.map +1 -0
- package/resources/workflows/flows/index.mjs +4 -0
- package/resources/workflows/flows/index.mjs.map +1 -0
- package/resources/workflows/flows.d.mts +2 -0
- package/resources/workflows/flows.d.mts.map +1 -0
- package/resources/workflows/flows.d.ts +2 -0
- package/resources/workflows/flows.d.ts.map +1 -0
- package/resources/workflows/flows.js +6 -0
- package/resources/workflows/flows.js.map +1 -0
- package/resources/workflows/flows.mjs +3 -0
- package/resources/workflows/flows.mjs.map +1 -0
- package/resources/workflows/index.d.mts +9 -0
- package/resources/workflows/index.d.mts.map +1 -0
- package/resources/workflows/index.d.ts +9 -0
- package/resources/workflows/index.d.ts.map +1 -0
- package/resources/workflows/index.js +21 -0
- package/resources/workflows/index.js.map +1 -0
- package/resources/workflows/index.mjs +10 -0
- package/resources/workflows/index.mjs.map +1 -0
- package/resources/workflows/timezones.d.mts +16 -0
- package/resources/workflows/timezones.d.mts.map +1 -0
- package/resources/workflows/timezones.d.ts +16 -0
- package/resources/workflows/timezones.d.ts.map +1 -0
- package/resources/workflows/timezones.js +15 -0
- package/resources/workflows/timezones.js.map +1 -0
- package/resources/workflows/timezones.mjs +11 -0
- package/resources/workflows/timezones.mjs.map +1 -0
- package/resources/workflows/triggers.d.mts +325 -0
- package/resources/workflows/triggers.d.mts.map +1 -0
- package/resources/workflows/triggers.d.ts +325 -0
- package/resources/workflows/triggers.d.ts.map +1 -0
- package/resources/workflows/triggers.js +69 -0
- package/resources/workflows/triggers.js.map +1 -0
- package/resources/workflows/triggers.mjs +65 -0
- package/resources/workflows/triggers.mjs.map +1 -0
- package/resources/workflows/workflows.d.mts +72 -0
- package/resources/workflows/workflows.d.mts.map +1 -0
- package/resources/workflows/workflows.d.ts +72 -0
- package/resources/workflows/workflows.d.ts.map +1 -0
- package/resources/workflows/workflows.js +41 -0
- package/resources/workflows/workflows.js.map +1 -0
- package/resources/workflows/workflows.mjs +36 -0
- package/resources/workflows/workflows.mjs.map +1 -0
- package/resources/workflows.d.mts +2 -0
- package/resources/workflows.d.mts.map +1 -0
- package/resources/workflows.d.ts +2 -0
- package/resources/workflows.d.ts.map +1 -0
- package/resources/workflows.js +6 -0
- package/resources/workflows.js.map +1 -0
- package/resources/workflows.mjs +3 -0
- package/resources/workflows.mjs.map +1 -0
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +163 -96
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/apps.ts +553 -28
- package/src/resources/carriers.ts +188 -7
- package/src/resources/connect/connect.ts +73 -0
- package/src/resources/connect/countries.ts +106 -0
- package/src/resources/connect/index.ts +27 -0
- package/src/resources/connect/proxies.ts +598 -0
- package/src/resources/connect/users.ts +517 -0
- package/src/resources/connect.ts +3 -0
- package/src/resources/credentials/credentials.ts +3 -1
- package/src/resources/credentials/packages/credentials/credentials.ts +16 -4
- package/src/resources/credentials/packages/credentials/fields.ts +8 -3
- package/src/resources/credentials/packages/packages.ts +5 -2
- package/src/resources/devices/actions.ts +10 -5
- package/src/resources/devices/apps.ts +104 -42
- package/src/resources/devices/devices.ts +307 -103
- package/src/resources/devices/esim.ts +15 -6
- package/src/resources/devices/files.ts +7 -4
- package/src/resources/devices/index.ts +17 -13
- package/src/resources/devices/keyboard.ts +11 -3
- package/src/resources/devices/language.ts +93 -0
- package/src/resources/devices/location.ts +7 -19
- package/src/resources/devices/packages.ts +2 -1
- package/src/resources/devices/proxy.ts +34 -11
- package/src/resources/devices/state.ts +89 -5
- package/src/resources/devices/tasks.ts +4 -12
- package/src/resources/devices/{time.ts → timezone.ts} +24 -52
- package/src/resources/hooks.ts +1 -292
- package/src/resources/index.ts +39 -18
- package/src/resources/models.ts +3 -0
- package/src/resources/profiles.ts +105 -6
- package/src/resources/proxies.ts +124 -5
- package/src/resources/shared.ts +46 -10
- package/src/resources/tasks/tasks.ts +295 -77
- package/src/resources/webhooks/deliveries.ts +323 -0
- package/src/resources/webhooks/index.ts +26 -0
- package/src/resources/webhooks/webhooks.ts +503 -0
- package/src/resources/webhooks.ts +3 -0
- package/src/resources/workflows/action-catalog.ts +74 -0
- package/src/resources/workflows/actions/actions.ts +167 -0
- package/src/resources/workflows/actions/index.ts +15 -0
- package/src/resources/workflows/actions/services.ts +64 -0
- package/src/resources/workflows/actions.ts +3 -0
- package/src/resources/workflows/events/catalog.ts +5 -0
- package/src/resources/workflows/events/events.ts +167 -0
- package/src/resources/workflows/events/index.ts +10 -0
- package/src/resources/workflows/events.ts +3 -0
- package/src/resources/workflows/executions.ts +194 -0
- package/src/resources/workflows/flows/actions.ts +149 -0
- package/src/resources/workflows/flows/flows.ts +284 -0
- package/src/resources/workflows/flows/index.ts +29 -0
- package/src/resources/workflows/flows.ts +3 -0
- package/src/resources/workflows/index.ts +68 -0
- package/src/resources/workflows/timezones.ts +22 -0
- package/src/resources/workflows/triggers.ts +471 -0
- package/src/resources/workflows/workflows.ts +239 -0
- package/src/resources/workflows.ts +3 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/agents.d.mts +0 -30
- package/resources/agents.d.mts.map +0 -1
- package/resources/agents.d.ts +0 -30
- package/resources/agents.d.ts.map +0 -1
- package/resources/agents.js +0 -18
- package/resources/agents.js.map +0 -1
- package/resources/agents.mjs +0 -14
- package/resources/agents.mjs.map +0 -1
- package/resources/devices/time.d.mts +0 -45
- package/resources/devices/time.d.mts.map +0 -1
- package/resources/devices/time.d.ts +0 -45
- package/resources/devices/time.d.ts.map +0 -1
- package/resources/devices/time.js.map +0 -1
- package/resources/devices/time.mjs.map +0 -1
- package/src/resources/agents.ts +0 -45
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as Shared from "../../shared.js";
|
|
3
|
+
import * as ServicesAPI from "./services.js";
|
|
4
|
+
import { ServiceListMethodsResponse, ServiceListResponse, Services } from "./services.js";
|
|
5
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
6
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
7
|
+
export declare class Actions extends APIResource {
|
|
8
|
+
services: ServicesAPI.Services;
|
|
9
|
+
/**
|
|
10
|
+
* Create a reusable action from a catalog entry (`catalogEntryId`), with an
|
|
11
|
+
* optional `params` object supplying the values for that entry's service method.
|
|
12
|
+
* Returns 400 if the params are invalid for the chosen catalog entry.
|
|
13
|
+
*/
|
|
14
|
+
create(body: ActionCreateParams, options?: RequestOptions): APIPromise<ActionCreateResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Fetch a single action by its ID, including its configured service, method, and
|
|
17
|
+
* params. Returns 404 if no action matches.
|
|
18
|
+
*/
|
|
19
|
+
retrieve(actionID: string, options?: RequestOptions): APIPromise<ActionRetrieveResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Partially update an action's name, description, or params; all fields are
|
|
22
|
+
* optional. Returns 404 if the action does not exist.
|
|
23
|
+
*/
|
|
24
|
+
update(actionID: string, body?: ActionUpdateParams | null | undefined, options?: RequestOptions): APIPromise<ActionUpdateResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Return a paginated list of actions. Supports filtering by `service`, free-text
|
|
27
|
+
* `search`, and ordering by name, createdAt, or updatedAt.
|
|
28
|
+
*/
|
|
29
|
+
list(query?: ActionListParams | null | undefined, options?: RequestOptions): APIPromise<ActionListResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Delete an action by its ID. Returns 404 if no action matches.
|
|
32
|
+
*/
|
|
33
|
+
delete(actionID: string, options?: RequestOptions): APIPromise<ActionDeleteResponse>;
|
|
34
|
+
}
|
|
35
|
+
export interface Action {
|
|
36
|
+
id: string;
|
|
37
|
+
catalogEntryId: string;
|
|
38
|
+
createdAt: string | null;
|
|
39
|
+
createdBy: string | null;
|
|
40
|
+
description: string | null;
|
|
41
|
+
method: string;
|
|
42
|
+
name: string;
|
|
43
|
+
ownerId: string;
|
|
44
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
45
|
+
updatedAt: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
48
|
+
*/
|
|
49
|
+
userId: string;
|
|
50
|
+
params?: unknown;
|
|
51
|
+
paramsSchema?: unknown;
|
|
52
|
+
}
|
|
53
|
+
export interface ActionCreateResponse {
|
|
54
|
+
data: Action;
|
|
55
|
+
}
|
|
56
|
+
export interface ActionRetrieveResponse {
|
|
57
|
+
data: Action;
|
|
58
|
+
}
|
|
59
|
+
export interface ActionUpdateResponse {
|
|
60
|
+
data: Action;
|
|
61
|
+
}
|
|
62
|
+
export interface ActionListResponse {
|
|
63
|
+
items: Array<Action>;
|
|
64
|
+
pagination: Shared.Pagination;
|
|
65
|
+
}
|
|
66
|
+
export interface ActionDeleteResponse {
|
|
67
|
+
message: string;
|
|
68
|
+
}
|
|
69
|
+
export interface ActionCreateParams {
|
|
70
|
+
catalogEntryId: string;
|
|
71
|
+
name: string;
|
|
72
|
+
description?: string;
|
|
73
|
+
params?: {
|
|
74
|
+
[key: string]: unknown;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
export interface ActionUpdateParams {
|
|
78
|
+
description?: string;
|
|
79
|
+
name?: string;
|
|
80
|
+
params?: {
|
|
81
|
+
[key: string]: unknown;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
export interface ActionListParams {
|
|
85
|
+
orderBy?: 'name' | 'createdAt' | 'updatedAt';
|
|
86
|
+
orderByDirection?: 'asc' | 'desc';
|
|
87
|
+
page?: number;
|
|
88
|
+
pageSize?: number;
|
|
89
|
+
search?: string;
|
|
90
|
+
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
91
|
+
}
|
|
92
|
+
export declare namespace Actions {
|
|
93
|
+
export { type Action as Action, type ActionCreateResponse as ActionCreateResponse, type ActionRetrieveResponse as ActionRetrieveResponse, type ActionUpdateResponse as ActionUpdateResponse, type ActionListResponse as ActionListResponse, type ActionDeleteResponse as ActionDeleteResponse, type ActionCreateParams as ActionCreateParams, type ActionUpdateParams as ActionUpdateParams, type ActionListParams as ActionListParams, };
|
|
94
|
+
export { Services as Services, type ServiceListResponse as ServiceListResponse, type ServiceListMethodsResponse as ServiceListMethodsResponse, };
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,QAAQ,EAAE,sBAAmB;AACvF,OAAO,EAAE,UAA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C/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Actions = void 0;
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const ServicesAPI = tslib_1.__importStar(require("./services.js"));
|
|
8
|
+
const services_1 = require("./services.js");
|
|
9
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
10
|
+
class Actions extends resource_1.APIResource {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.services = new ServicesAPI.Services(this._client);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Create a reusable action from a catalog entry (`catalogEntryId`), with an
|
|
17
|
+
* optional `params` object supplying the values for that entry's service method.
|
|
18
|
+
* Returns 400 if the params are invalid for the chosen catalog entry.
|
|
19
|
+
*/
|
|
20
|
+
create(body, options) {
|
|
21
|
+
return this._client.post('/actions', { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Fetch a single action by its ID, including its configured service, method, and
|
|
25
|
+
* params. Returns 404 if no action matches.
|
|
26
|
+
*/
|
|
27
|
+
retrieve(actionID, options) {
|
|
28
|
+
return this._client.get((0, path_1.path) `/actions/${actionID}`, options);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Partially update an action's name, description, or params; all fields are
|
|
32
|
+
* optional. Returns 404 if the action does not exist.
|
|
33
|
+
*/
|
|
34
|
+
update(actionID, body = {}, options) {
|
|
35
|
+
return this._client.patch((0, path_1.path) `/actions/${actionID}`, { body, ...options });
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Return a paginated list of actions. Supports filtering by `service`, free-text
|
|
39
|
+
* `search`, and ordering by name, createdAt, or updatedAt.
|
|
40
|
+
*/
|
|
41
|
+
list(query = {}, options) {
|
|
42
|
+
return this._client.get('/actions', { query, ...options });
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Delete an action by its ID. Returns 404 if no action matches.
|
|
46
|
+
*/
|
|
47
|
+
delete(actionID, options) {
|
|
48
|
+
return this._client.delete((0, path_1.path) `/actions/${actionID}`, options);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.Actions = Actions;
|
|
52
|
+
Actions.Services = services_1.Services;
|
|
53
|
+
//# sourceMappingURL=actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../src/resources/workflows/actions/actions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,mEAA0C;AAC1C,4CAAuF;AAGvF,0DAAoD;AAEpD,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgD1E,CAAC;IA9CC;;;;OAIG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,QAAgB,EAChB,OAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;CACF;AAjDD,0BAiDC;AAuFD,OAAO,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as ServicesAPI from "./services.mjs";
|
|
4
|
+
import { Services } from "./services.mjs";
|
|
5
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
6
|
+
export class Actions extends APIResource {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.services = new ServicesAPI.Services(this._client);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Create a reusable action from a catalog entry (`catalogEntryId`), with an
|
|
13
|
+
* optional `params` object supplying the values for that entry's service method.
|
|
14
|
+
* Returns 400 if the params are invalid for the chosen catalog entry.
|
|
15
|
+
*/
|
|
16
|
+
create(body, options) {
|
|
17
|
+
return this._client.post('/actions', { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Fetch a single action by its ID, including its configured service, method, and
|
|
21
|
+
* params. Returns 404 if no action matches.
|
|
22
|
+
*/
|
|
23
|
+
retrieve(actionID, options) {
|
|
24
|
+
return this._client.get(path `/actions/${actionID}`, options);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Partially update an action's name, description, or params; all fields are
|
|
28
|
+
* optional. Returns 404 if the action does not exist.
|
|
29
|
+
*/
|
|
30
|
+
update(actionID, body = {}, options) {
|
|
31
|
+
return this._client.patch(path `/actions/${actionID}`, { body, ...options });
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Return a paginated list of actions. Supports filtering by `service`, free-text
|
|
35
|
+
* `search`, and ordering by name, createdAt, or updatedAt.
|
|
36
|
+
*/
|
|
37
|
+
list(query = {}, options) {
|
|
38
|
+
return this._client.get('/actions', { query, ...options });
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Delete an action by its ID. Returns 404 if no action matches.
|
|
42
|
+
*/
|
|
43
|
+
delete(actionID, options) {
|
|
44
|
+
return this._client.delete(path `/actions/${actionID}`, options);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
Actions.Services = Services;
|
|
48
|
+
//# sourceMappingURL=actions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.mjs","sourceRoot":"","sources":["../../../src/resources/workflows/actions/actions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,KAAK,WAAW,uBAAmB;AAC1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ionCreateResponse, type ActionRetrieveResponse, type ActionUpdateResponse, type ActionListResponse, type ActionDeleteResponse, type ActionCreateParams, type ActionUpdateParams, type ActionListParams, } from "./actions.mjs";
|
|
2
|
+
export { Services, type ServiceListResponse, type ServiceListMethodsResponse } from "./services.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,sBAAkB;AACnB,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,0BAA0B,EAAE,uBAAmB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Actions, type Action, type ActionCreateResponse, type ActionRetrieveResponse, type ActionUpdateResponse, type ActionListResponse, type ActionDeleteResponse, type ActionCreateParams, type ActionUpdateParams, type ActionListParams, } from "./actions.js";
|
|
2
|
+
export { Services, type ServiceListResponse, type ServiceListMethodsResponse } from "./services.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,qBAAkB;AACnB,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,0BAA0B,EAAE,sBAAmB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Services = exports.Actions = void 0;
|
|
5
|
+
var actions_1 = require("./actions.js");
|
|
6
|
+
Object.defineProperty(exports, "Actions", { enumerable: true, get: function () { return actions_1.Actions; } });
|
|
7
|
+
var services_1 = require("./services.js");
|
|
8
|
+
Object.defineProperty(exports, "Services", { enumerable: true, get: function () { return services_1.Services; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/workflows/actions/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAWmB;AAVjB,kGAAA,OAAO,OAAA;AAWT,0CAAiG;AAAxF,oGAAA,QAAQ,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/workflows/actions/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,OAAO,GAUR,sBAAkB;AACnB,OAAO,EAAE,QAAQ,EAA6D,uBAAmB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
export declare class Services extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Return the names of the services that actions can be built against. Use these
|
|
7
|
+
* values to look up each service's allowed methods.
|
|
8
|
+
*/
|
|
9
|
+
list(options?: RequestOptions): APIPromise<ServiceListResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Return the methods allowed for the given service, each with its parameter
|
|
12
|
+
* definitions (name, type, whether required, description, and optional
|
|
13
|
+
* default/example). Returns 404 if the service is unknown.
|
|
14
|
+
*/
|
|
15
|
+
listMethods(service: string, options?: RequestOptions): APIPromise<ServiceListMethodsResponse>;
|
|
16
|
+
}
|
|
17
|
+
export interface ServiceListResponse {
|
|
18
|
+
data: Array<string>;
|
|
19
|
+
}
|
|
20
|
+
export interface ServiceListMethodsResponse {
|
|
21
|
+
data: Array<ServiceListMethodsResponse.Data>;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace ServiceListMethodsResponse {
|
|
24
|
+
interface Data {
|
|
25
|
+
method: string;
|
|
26
|
+
params: Array<Data.Param>;
|
|
27
|
+
}
|
|
28
|
+
namespace Data {
|
|
29
|
+
interface Param {
|
|
30
|
+
description: string;
|
|
31
|
+
name: string;
|
|
32
|
+
required: boolean;
|
|
33
|
+
type: 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
34
|
+
default?: unknown;
|
|
35
|
+
example?: unknown;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export declare namespace Services {
|
|
40
|
+
export { type ServiceListResponse as ServiceListResponse, type ServiceListMethodsResponse as ServiceListMethodsResponse, };
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=services.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.d.mts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/services.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI/D;;;;OAIG;IACH,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;CAG/F;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACrB;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,KAAK,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC;CAC9C;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,IAAI;QACnB,MAAM,EAAE,MAAM,CAAC;QAEf,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC3B;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,KAAK;YACpB,WAAW,EAAE,MAAM,CAAC;YAEpB,IAAI,EAAE,MAAM,CAAC;YAEb,QAAQ,EAAE,OAAO,CAAC;YAElB,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;YAE3D,OAAO,CAAC,EAAE,OAAO,CAAC;YAElB,OAAO,CAAC,EAAE,OAAO,CAAC;SACnB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
export declare class Services extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Return the names of the services that actions can be built against. Use these
|
|
7
|
+
* values to look up each service's allowed methods.
|
|
8
|
+
*/
|
|
9
|
+
list(options?: RequestOptions): APIPromise<ServiceListResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Return the methods allowed for the given service, each with its parameter
|
|
12
|
+
* definitions (name, type, whether required, description, and optional
|
|
13
|
+
* default/example). Returns 404 if the service is unknown.
|
|
14
|
+
*/
|
|
15
|
+
listMethods(service: string, options?: RequestOptions): APIPromise<ServiceListMethodsResponse>;
|
|
16
|
+
}
|
|
17
|
+
export interface ServiceListResponse {
|
|
18
|
+
data: Array<string>;
|
|
19
|
+
}
|
|
20
|
+
export interface ServiceListMethodsResponse {
|
|
21
|
+
data: Array<ServiceListMethodsResponse.Data>;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace ServiceListMethodsResponse {
|
|
24
|
+
interface Data {
|
|
25
|
+
method: string;
|
|
26
|
+
params: Array<Data.Param>;
|
|
27
|
+
}
|
|
28
|
+
namespace Data {
|
|
29
|
+
interface Param {
|
|
30
|
+
description: string;
|
|
31
|
+
name: string;
|
|
32
|
+
required: boolean;
|
|
33
|
+
type: 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
34
|
+
default?: unknown;
|
|
35
|
+
example?: unknown;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export declare namespace Services {
|
|
40
|
+
export { type ServiceListResponse as ServiceListResponse, type ServiceListMethodsResponse as ServiceListMethodsResponse, };
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/services.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI/D;;;;OAIG;IACH,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;CAG/F;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACrB;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,KAAK,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC;CAC9C;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,IAAI;QACnB,MAAM,EAAE,MAAM,CAAC;QAEf,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC3B;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,KAAK;YACpB,WAAW,EAAE,MAAM,CAAC;YAEpB,IAAI,EAAE,MAAM,CAAC;YAEb,QAAQ,EAAE,OAAO,CAAC;YAElB,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;YAE3D,OAAO,CAAC,EAAE,OAAO,CAAC;YAElB,OAAO,CAAC,EAAE,OAAO,CAAC;SACnB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Services = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
class Services extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Return the names of the services that actions can be built against. Use these
|
|
10
|
+
* values to look up each service's allowed methods.
|
|
11
|
+
*/
|
|
12
|
+
list(options) {
|
|
13
|
+
return this._client.get('/actions/services', options);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Return the methods allowed for the given service, each with its parameter
|
|
17
|
+
* definitions (name, type, whether required, description, and optional
|
|
18
|
+
* default/example). Returns 404 if the service is unknown.
|
|
19
|
+
*/
|
|
20
|
+
listMethods(service, options) {
|
|
21
|
+
return this._client.get((0, path_1.path) `/actions/services/${service}/methods`, options);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Services = Services;
|
|
25
|
+
//# sourceMappingURL=services.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.js","sourceRoot":"","sources":["../../../src/resources/workflows/actions/services.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;OAGG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACH,WAAW,CAAC,OAAe,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF;AAjBD,4BAiBC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
+
export class Services extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Return the names of the services that actions can be built against. Use these
|
|
7
|
+
* values to look up each service's allowed methods.
|
|
8
|
+
*/
|
|
9
|
+
list(options) {
|
|
10
|
+
return this._client.get('/actions/services', options);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Return the methods allowed for the given service, each with its parameter
|
|
14
|
+
* definitions (name, type, whether required, description, and optional
|
|
15
|
+
* default/example). Returns 404 if the service is unknown.
|
|
16
|
+
*/
|
|
17
|
+
listMethods(service, options) {
|
|
18
|
+
return this._client.get(path `/actions/services/${service}/methods`, options);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=services.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.mjs","sourceRoot":"","sources":["../../../src/resources/workflows/actions/services.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACH,WAAW,CAAC,OAAe,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/actions.ts"],"names":[],"mappings":"AAEA,oCAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/resources/workflows/actions.ts"],"names":[],"mappings":"AAEA,mCAAgC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./actions/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../src/resources/workflows/actions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.mjs","sourceRoot":"","sources":["../../src/resources/workflows/actions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,oCAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","sourceRoot":"","sources":["../../../src/resources/workflows/events/catalog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,qBAAa,OAAQ,SAAQ,WAAW;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/resources/workflows/events/catalog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AAErD,qBAAa,OAAQ,SAAQ,WAAW;CAAG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Catalog = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
class Catalog extends resource_1.APIResource {
|
|
7
|
+
}
|
|
8
|
+
exports.Catalog = Catalog;
|
|
9
|
+
//# sourceMappingURL=catalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../../src/resources/workflows/events/catalog.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,MAAa,OAAQ,SAAQ,sBAAW;CAAG;AAA3C,0BAA2C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","sourceRoot":"","sources":["../../../src/resources/workflows/events/catalog.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,MAAM,OAAO,OAAQ,SAAQ,WAAW;CAAG"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as WorkflowsAPI from "../workflows.mjs";
|
|
3
|
+
import * as CatalogAPI from "./catalog.mjs";
|
|
4
|
+
import { Catalog } from "./catalog.mjs";
|
|
5
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
6
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
7
|
+
export declare class Events extends APIResource {
|
|
8
|
+
catalog: CatalogAPI.Catalog;
|
|
9
|
+
/**
|
|
10
|
+
* Simulate an event against all configured flows. Returns which flows would match
|
|
11
|
+
* and what actions would run, without storing the event or enqueuing jobs.
|
|
12
|
+
*/
|
|
13
|
+
dryRun(body: EventDryRunParams, options?: RequestOptions): APIPromise<EventDryRunResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Ingest an event for trigger evaluation. Returns immediately with 202 Accepted.
|
|
16
|
+
*/
|
|
17
|
+
ingest(body: EventIngestParams, options?: RequestOptions): APIPromise<EventIngestResponse>;
|
|
18
|
+
}
|
|
19
|
+
export interface EventDryRunResponse {
|
|
20
|
+
data: EventDryRunResponse.Data;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace EventDryRunResponse {
|
|
23
|
+
interface Data {
|
|
24
|
+
matchedFlows: Array<Data.MatchedFlow>;
|
|
25
|
+
validation: Data.Validation;
|
|
26
|
+
}
|
|
27
|
+
namespace Data {
|
|
28
|
+
interface MatchedFlow {
|
|
29
|
+
actions: Array<MatchedFlow.Action>;
|
|
30
|
+
flow: WorkflowsAPI.Flow;
|
|
31
|
+
gates: MatchedFlow.Gates;
|
|
32
|
+
trigger: MatchedFlow.Trigger;
|
|
33
|
+
wouldFire: boolean;
|
|
34
|
+
}
|
|
35
|
+
namespace MatchedFlow {
|
|
36
|
+
interface Action {
|
|
37
|
+
continueOnError: boolean;
|
|
38
|
+
method: string;
|
|
39
|
+
name: string;
|
|
40
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
41
|
+
/**
|
|
42
|
+
* Nested child actions (loop/branch bodies), each the same shape as a
|
|
43
|
+
* ResolvedAction.
|
|
44
|
+
*/
|
|
45
|
+
children?: Array<unknown>;
|
|
46
|
+
params?: {
|
|
47
|
+
[key: string]: unknown;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
interface Gates {
|
|
51
|
+
blocked: boolean;
|
|
52
|
+
cooldownActive: boolean | null;
|
|
53
|
+
deviceAttached: boolean;
|
|
54
|
+
deviceIds: Array<string>;
|
|
55
|
+
enabled: boolean;
|
|
56
|
+
}
|
|
57
|
+
interface Trigger {
|
|
58
|
+
id: string;
|
|
59
|
+
activation: 'event' | 'schedule' | 'custom';
|
|
60
|
+
createdAt: string | null;
|
|
61
|
+
createdBy: string | null;
|
|
62
|
+
customPayloadSchema: {
|
|
63
|
+
[key: string]: unknown;
|
|
64
|
+
} | null;
|
|
65
|
+
description: string | null;
|
|
66
|
+
eventType: string | null;
|
|
67
|
+
name: string;
|
|
68
|
+
ownerId: string;
|
|
69
|
+
scheduleRule: unknown;
|
|
70
|
+
timezone: string | null;
|
|
71
|
+
updatedAt: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
74
|
+
*/
|
|
75
|
+
userId: string;
|
|
76
|
+
conditions?: unknown;
|
|
77
|
+
nextFireTime?: string | null;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
interface Validation {
|
|
81
|
+
valid: boolean;
|
|
82
|
+
errors?: Array<Validation.Error>;
|
|
83
|
+
}
|
|
84
|
+
namespace Validation {
|
|
85
|
+
interface Error {
|
|
86
|
+
field: string;
|
|
87
|
+
message: string;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export interface EventIngestResponse {
|
|
93
|
+
eventId: string;
|
|
94
|
+
}
|
|
95
|
+
export interface EventDryRunParams {
|
|
96
|
+
eventType: string;
|
|
97
|
+
deviceId?: string;
|
|
98
|
+
payload?: {
|
|
99
|
+
[key: string]: unknown;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
export interface EventIngestParams {
|
|
103
|
+
eventType: string;
|
|
104
|
+
deviceId?: string;
|
|
105
|
+
payload?: {
|
|
106
|
+
[key: string]: unknown;
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
export declare namespace Events {
|
|
110
|
+
export { type EventDryRunResponse as EventDryRunResponse, type EventIngestResponse as EventIngestResponse, type EventDryRunParams as EventDryRunParams, type EventIngestParams as EventIngestParams, };
|
|
111
|
+
export { Catalog as Catalog };
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=events.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../../../src/resources/workflows/events/events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,YAAY,yBAAqB;AAC7C,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,OAAO,EAAE,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAEnE,qBAAa,MAAO,SAAQ,WAAW;IACrC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,C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