@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
|
@@ -117,14 +117,26 @@ export interface Task {
|
|
|
117
117
|
|
|
118
118
|
id?: string;
|
|
119
119
|
|
|
120
|
+
accessibility?: boolean;
|
|
121
|
+
|
|
120
122
|
agentId?: number;
|
|
121
123
|
|
|
122
124
|
apps?: Array<string>;
|
|
123
125
|
|
|
126
|
+
cancelRequestedAt?: string | null;
|
|
127
|
+
|
|
128
|
+
claimedAt?: string | null;
|
|
129
|
+
|
|
130
|
+
continueOnFailure?: boolean;
|
|
131
|
+
|
|
124
132
|
createdAt?: string;
|
|
125
133
|
|
|
126
134
|
credentials?: Array<PackageCredentials>;
|
|
127
135
|
|
|
136
|
+
creditsUsed?: number | null;
|
|
137
|
+
|
|
138
|
+
dispatchedAt?: string | null;
|
|
139
|
+
|
|
128
140
|
displayId?: number;
|
|
129
141
|
|
|
130
142
|
executionTimeout?: number;
|
|
@@ -133,8 +145,15 @@ export interface Task {
|
|
|
133
145
|
|
|
134
146
|
finishedAt?: string | null;
|
|
135
147
|
|
|
148
|
+
heartbeatAt?: string | null;
|
|
149
|
+
|
|
136
150
|
maxSteps?: number;
|
|
137
151
|
|
|
152
|
+
/**
|
|
153
|
+
* Memory namespace for cross-task personalization
|
|
154
|
+
*/
|
|
155
|
+
memoryNamespace?: string;
|
|
156
|
+
|
|
138
157
|
message?: string | null;
|
|
139
158
|
|
|
140
159
|
output?: { [key: string]: unknown } | null;
|
|
@@ -149,6 +168,13 @@ export interface Task {
|
|
|
149
168
|
|
|
150
169
|
steps?: number | null;
|
|
151
170
|
|
|
171
|
+
streamUrl?: string | null;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* LLM model used by sub-agent roles: executor, app_opener, structured_output
|
|
175
|
+
*/
|
|
176
|
+
subagentModel?: string;
|
|
177
|
+
|
|
152
178
|
succeeded?: boolean | null;
|
|
153
179
|
|
|
154
180
|
temperature?: number;
|
|
@@ -164,7 +190,15 @@ export interface Task {
|
|
|
164
190
|
vpnCountry?: 'US' | 'BR' | 'FR' | 'DE' | 'IN' | 'JP' | 'KR' | 'ZA' | null;
|
|
165
191
|
}
|
|
166
192
|
|
|
167
|
-
export type TaskStatus =
|
|
193
|
+
export type TaskStatus =
|
|
194
|
+
| 'queued'
|
|
195
|
+
| 'created'
|
|
196
|
+
| 'running'
|
|
197
|
+
| 'cancelling'
|
|
198
|
+
| 'paused'
|
|
199
|
+
| 'completed'
|
|
200
|
+
| 'failed'
|
|
201
|
+
| 'cancelled';
|
|
168
202
|
|
|
169
203
|
export interface UsageResult {
|
|
170
204
|
request_tokens: number;
|
|
@@ -187,7 +221,7 @@ export interface TaskListResponse {
|
|
|
187
221
|
/**
|
|
188
222
|
* The paginated items
|
|
189
223
|
*/
|
|
190
|
-
items: Array<
|
|
224
|
+
items: Array<TaskListResponse.Item>;
|
|
191
225
|
|
|
192
226
|
/**
|
|
193
227
|
* Pagination metadata
|
|
@@ -195,6 +229,94 @@ export interface TaskListResponse {
|
|
|
195
229
|
pagination: Shared.PaginationMeta;
|
|
196
230
|
}
|
|
197
231
|
|
|
232
|
+
export namespace TaskListResponse {
|
|
233
|
+
/**
|
|
234
|
+
* Task representation for list endpoints — omits the large trajectory field.
|
|
235
|
+
*/
|
|
236
|
+
export interface Item {
|
|
237
|
+
id: string;
|
|
238
|
+
|
|
239
|
+
deviceId: string;
|
|
240
|
+
|
|
241
|
+
displayId: number;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* The LLM model identifier to use for the task (e.g. 'gemini/gemini-2.5-flash')
|
|
245
|
+
*/
|
|
246
|
+
llmModel: string;
|
|
247
|
+
|
|
248
|
+
status: TasksAPI.TaskStatus;
|
|
249
|
+
|
|
250
|
+
task: string;
|
|
251
|
+
|
|
252
|
+
tmpDevice: boolean;
|
|
253
|
+
|
|
254
|
+
userId: string;
|
|
255
|
+
|
|
256
|
+
accessibility?: boolean;
|
|
257
|
+
|
|
258
|
+
agentId?: number;
|
|
259
|
+
|
|
260
|
+
apps?: Array<string>;
|
|
261
|
+
|
|
262
|
+
cancelRequestedAt?: string | null;
|
|
263
|
+
|
|
264
|
+
claimedAt?: string | null;
|
|
265
|
+
|
|
266
|
+
continueOnFailure?: boolean;
|
|
267
|
+
|
|
268
|
+
createdAt?: string;
|
|
269
|
+
|
|
270
|
+
credentials?: Array<TasksAPI.PackageCredentials>;
|
|
271
|
+
|
|
272
|
+
creditsUsed?: number | null;
|
|
273
|
+
|
|
274
|
+
dispatchedAt?: string | null;
|
|
275
|
+
|
|
276
|
+
executionTimeout?: number;
|
|
277
|
+
|
|
278
|
+
files?: Array<string>;
|
|
279
|
+
|
|
280
|
+
finishedAt?: string | null;
|
|
281
|
+
|
|
282
|
+
maxSteps?: number;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Memory namespace for cross-task personalization
|
|
286
|
+
*/
|
|
287
|
+
memoryNamespace?: string;
|
|
288
|
+
|
|
289
|
+
message?: string | null;
|
|
290
|
+
|
|
291
|
+
output?: { [key: string]: unknown } | null;
|
|
292
|
+
|
|
293
|
+
outputSchema?: { [key: string]: unknown } | null;
|
|
294
|
+
|
|
295
|
+
reasoning?: boolean;
|
|
296
|
+
|
|
297
|
+
stealth?: boolean;
|
|
298
|
+
|
|
299
|
+
steps?: number | null;
|
|
300
|
+
|
|
301
|
+
streamUrl?: string | null;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* LLM model used by sub-agent roles: executor, app_opener, structured_output
|
|
305
|
+
*/
|
|
306
|
+
subagentModel?: string;
|
|
307
|
+
|
|
308
|
+
succeeded?: boolean | null;
|
|
309
|
+
|
|
310
|
+
temperature?: number;
|
|
311
|
+
|
|
312
|
+
updatedAt?: string;
|
|
313
|
+
|
|
314
|
+
vision?: boolean;
|
|
315
|
+
|
|
316
|
+
vpnCountry?: 'US' | 'BR' | 'FR' | 'DE' | 'IN' | 'JP' | 'KR' | 'ZA' | null;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
198
320
|
export interface TaskGetStatusResponse {
|
|
199
321
|
/**
|
|
200
322
|
* The status of the task
|
|
@@ -232,6 +354,7 @@ export interface TaskGetTrajectoryResponse {
|
|
|
232
354
|
* The trajectory of the task
|
|
233
355
|
*/
|
|
234
356
|
trajectory: Array<
|
|
357
|
+
| TaskGetTrajectoryResponse.TrajectoryQueuedEvent
|
|
235
358
|
| TaskGetTrajectoryResponse.TrajectoryCreatedEvent
|
|
236
359
|
| TaskGetTrajectoryResponse.TrajectoryExceptionEvent
|
|
237
360
|
| TaskGetTrajectoryResponse.TrajectoryCancelEvent
|
|
@@ -266,6 +389,26 @@ export interface TaskGetTrajectoryResponse {
|
|
|
266
389
|
}
|
|
267
390
|
|
|
268
391
|
export namespace TaskGetTrajectoryResponse {
|
|
392
|
+
export interface TrajectoryQueuedEvent {
|
|
393
|
+
/**
|
|
394
|
+
* Emitted to SSE clients when the task is waiting in the device queue.
|
|
395
|
+
*/
|
|
396
|
+
data: TrajectoryQueuedEvent.Data;
|
|
397
|
+
|
|
398
|
+
event: 'QueuedEvent';
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export namespace TrajectoryQueuedEvent {
|
|
402
|
+
/**
|
|
403
|
+
* Emitted to SSE clients when the task is waiting in the device queue.
|
|
404
|
+
*/
|
|
405
|
+
export interface Data {
|
|
406
|
+
id: string;
|
|
407
|
+
|
|
408
|
+
status?: string;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
269
412
|
export interface TrajectoryCreatedEvent {
|
|
270
413
|
data: TrajectoryCreatedEvent.Data;
|
|
271
414
|
|
|
@@ -414,7 +557,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
414
557
|
|
|
415
558
|
export interface TrajectoryManagerPlanEvent {
|
|
416
559
|
/**
|
|
417
|
-
* Coordination event from ManagerAgent to
|
|
560
|
+
* Coordination event from ManagerAgent to MobileAgent.
|
|
418
561
|
*
|
|
419
562
|
* Used for workflow step routing only (NOT streamed to frontend). For internal
|
|
420
563
|
* events with memory_update metadata, see ManagerPlanDetailsEvent.
|
|
@@ -426,7 +569,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
426
569
|
|
|
427
570
|
export namespace TrajectoryManagerPlanEvent {
|
|
428
571
|
/**
|
|
429
|
-
* Coordination event from ManagerAgent to
|
|
572
|
+
* Coordination event from ManagerAgent to MobileAgent.
|
|
430
573
|
*
|
|
431
574
|
* Used for workflow step routing only (NOT streamed to frontend). For internal
|
|
432
575
|
* events with memory_update metadata, see ManagerPlanDetailsEvent.
|
|
@@ -832,9 +975,14 @@ export interface TaskRunResponse {
|
|
|
832
975
|
id: string;
|
|
833
976
|
|
|
834
977
|
/**
|
|
835
|
-
* The
|
|
978
|
+
* The status of the task (queued or created)
|
|
979
|
+
*/
|
|
980
|
+
status: TaskStatus;
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* The URL of the stream (null when queued)
|
|
836
984
|
*/
|
|
837
|
-
streamUrl
|
|
985
|
+
streamUrl?: string | null;
|
|
838
986
|
}
|
|
839
987
|
|
|
840
988
|
export type TaskRunStreamedResponse = unknown;
|
|
@@ -878,10 +1026,14 @@ export interface TaskRunParams {
|
|
|
878
1026
|
|
|
879
1027
|
task: string;
|
|
880
1028
|
|
|
1029
|
+
accessibility?: boolean;
|
|
1030
|
+
|
|
881
1031
|
agentId?: number;
|
|
882
1032
|
|
|
883
1033
|
apps?: Array<string>;
|
|
884
1034
|
|
|
1035
|
+
continueOnFailure?: boolean;
|
|
1036
|
+
|
|
885
1037
|
credentials?: Array<PackageCredentials>;
|
|
886
1038
|
|
|
887
1039
|
/**
|
|
@@ -895,18 +1047,28 @@ export interface TaskRunParams {
|
|
|
895
1047
|
|
|
896
1048
|
/**
|
|
897
1049
|
* The LLM model identifier to use for the task (e.g.
|
|
898
|
-
* 'google/gemini-3.1-flash-lite
|
|
1050
|
+
* 'google/gemini-3.1-flash-lite')
|
|
899
1051
|
*/
|
|
900
1052
|
llmModel?: string;
|
|
901
1053
|
|
|
902
1054
|
maxSteps?: number;
|
|
903
1055
|
|
|
1056
|
+
/**
|
|
1057
|
+
* Memory namespace for cross-task personalization
|
|
1058
|
+
*/
|
|
1059
|
+
memoryNamespace?: string;
|
|
1060
|
+
|
|
904
1061
|
outputSchema?: { [key: string]: unknown } | null;
|
|
905
1062
|
|
|
906
1063
|
reasoning?: boolean;
|
|
907
1064
|
|
|
908
1065
|
stealth?: boolean;
|
|
909
1066
|
|
|
1067
|
+
/**
|
|
1068
|
+
* LLM model used by sub-agent roles: executor, app_opener, structured_output
|
|
1069
|
+
*/
|
|
1070
|
+
subagentModel?: string;
|
|
1071
|
+
|
|
910
1072
|
temperature?: number;
|
|
911
1073
|
|
|
912
1074
|
vision?: boolean;
|
|
@@ -922,10 +1084,14 @@ export interface TaskRunStreamedParams {
|
|
|
922
1084
|
|
|
923
1085
|
task: string;
|
|
924
1086
|
|
|
1087
|
+
accessibility?: boolean;
|
|
1088
|
+
|
|
925
1089
|
agentId?: number;
|
|
926
1090
|
|
|
927
1091
|
apps?: Array<string>;
|
|
928
1092
|
|
|
1093
|
+
continueOnFailure?: boolean;
|
|
1094
|
+
|
|
929
1095
|
credentials?: Array<PackageCredentials>;
|
|
930
1096
|
|
|
931
1097
|
/**
|
|
@@ -939,18 +1105,28 @@ export interface TaskRunStreamedParams {
|
|
|
939
1105
|
|
|
940
1106
|
/**
|
|
941
1107
|
* The LLM model identifier to use for the task (e.g.
|
|
942
|
-
* 'google/gemini-3.1-flash-lite
|
|
1108
|
+
* 'google/gemini-3.1-flash-lite')
|
|
943
1109
|
*/
|
|
944
1110
|
llmModel?: string;
|
|
945
1111
|
|
|
946
1112
|
maxSteps?: number;
|
|
947
1113
|
|
|
1114
|
+
/**
|
|
1115
|
+
* Memory namespace for cross-task personalization
|
|
1116
|
+
*/
|
|
1117
|
+
memoryNamespace?: string;
|
|
1118
|
+
|
|
948
1119
|
outputSchema?: { [key: string]: unknown } | null;
|
|
949
1120
|
|
|
950
1121
|
reasoning?: boolean;
|
|
951
1122
|
|
|
952
1123
|
stealth?: boolean;
|
|
953
1124
|
|
|
1125
|
+
/**
|
|
1126
|
+
* LLM model used by sub-agent roles: executor, app_opener, structured_output
|
|
1127
|
+
*/
|
|
1128
|
+
subagentModel?: string;
|
|
1129
|
+
|
|
954
1130
|
temperature?: number;
|
|
955
1131
|
|
|
956
1132
|
vision?: boolean;
|
|
@@ -0,0 +1,284 @@
|
|
|
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 Deliveries extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* List deliveries across all your webhooks
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const deliveries = await client.webhooks.deliveries.list();
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
list(
|
|
19
|
+
query: DeliveryListParams | null | undefined = {},
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): APIPromise<DeliveryListResponse> {
|
|
22
|
+
return this._client.get('/webhooks/deliveries', { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* List deliveries for a webhook
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const response =
|
|
31
|
+
* await client.webhooks.deliveries.listForWebhook(
|
|
32
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
listForWebhook(
|
|
37
|
+
id: string,
|
|
38
|
+
query: DeliveryListForWebhookParams | null | undefined = {},
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<DeliveryListForWebhookResponse> {
|
|
41
|
+
return this._client.get(path`/webhooks/${id}/deliveries`, { query, ...options });
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Get a delivery with its attempts
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const response =
|
|
50
|
+
* await client.webhooks.deliveries.retrieveAttempts(
|
|
51
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
52
|
+
* { id: '550e8400-e29b-41d4-a716-446655440000' },
|
|
53
|
+
* );
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
retrieveAttempts(
|
|
57
|
+
deliveryID: string,
|
|
58
|
+
params: DeliveryRetrieveAttemptsParams,
|
|
59
|
+
options?: RequestOptions,
|
|
60
|
+
): APIPromise<DeliveryRetrieveAttemptsResponse> {
|
|
61
|
+
const { id } = params;
|
|
62
|
+
return this._client.get(path`/webhooks/${id}/deliveries/${deliveryID}`, options);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Aggregate delivery statistics (excludes test sends)
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const response = await client.webhooks.deliveries.stats();
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
stats(
|
|
74
|
+
query: DeliveryStatsParams | null | undefined = {},
|
|
75
|
+
options?: RequestOptions,
|
|
76
|
+
): APIPromise<DeliveryStatsResponse> {
|
|
77
|
+
return this._client.get('/webhooks/deliveries/stats', { query, ...options });
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface DeliveryListResponse {
|
|
82
|
+
items: Array<DeliveryListResponse.Item>;
|
|
83
|
+
|
|
84
|
+
pagination: Shared.Pagination;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export namespace DeliveryListResponse {
|
|
88
|
+
export interface Item {
|
|
89
|
+
id: string;
|
|
90
|
+
|
|
91
|
+
attempts: number;
|
|
92
|
+
|
|
93
|
+
completedAt: string | null;
|
|
94
|
+
|
|
95
|
+
createdAt: string;
|
|
96
|
+
|
|
97
|
+
durationMs: number | null;
|
|
98
|
+
|
|
99
|
+
endpointId: string;
|
|
100
|
+
|
|
101
|
+
endpointUrl: string;
|
|
102
|
+
|
|
103
|
+
eventId: string;
|
|
104
|
+
|
|
105
|
+
eventType: string;
|
|
106
|
+
|
|
107
|
+
isTest: boolean;
|
|
108
|
+
|
|
109
|
+
lastError: string | null;
|
|
110
|
+
|
|
111
|
+
lastStatusCode: number | null;
|
|
112
|
+
|
|
113
|
+
occurredAt: string;
|
|
114
|
+
|
|
115
|
+
source: string;
|
|
116
|
+
|
|
117
|
+
status: 'pending' | 'success' | 'skipped' | 'dead';
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export interface DeliveryListForWebhookResponse {
|
|
122
|
+
items: Array<DeliveryListForWebhookResponse.Item>;
|
|
123
|
+
|
|
124
|
+
pagination: Shared.Pagination;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export namespace DeliveryListForWebhookResponse {
|
|
128
|
+
export interface Item {
|
|
129
|
+
id: string;
|
|
130
|
+
|
|
131
|
+
attempts: number;
|
|
132
|
+
|
|
133
|
+
completedAt: string | null;
|
|
134
|
+
|
|
135
|
+
createdAt: string;
|
|
136
|
+
|
|
137
|
+
durationMs: number | null;
|
|
138
|
+
|
|
139
|
+
endpointId: string;
|
|
140
|
+
|
|
141
|
+
eventId: string;
|
|
142
|
+
|
|
143
|
+
eventType: string;
|
|
144
|
+
|
|
145
|
+
isTest: boolean;
|
|
146
|
+
|
|
147
|
+
lastError: string | null;
|
|
148
|
+
|
|
149
|
+
lastStatusCode: number | null;
|
|
150
|
+
|
|
151
|
+
occurredAt: string;
|
|
152
|
+
|
|
153
|
+
source: string;
|
|
154
|
+
|
|
155
|
+
status: 'pending' | 'success' | 'skipped' | 'dead';
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export interface DeliveryRetrieveAttemptsResponse {
|
|
160
|
+
data: DeliveryRetrieveAttemptsResponse.Data;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export namespace DeliveryRetrieveAttemptsResponse {
|
|
164
|
+
export interface Data {
|
|
165
|
+
id: string;
|
|
166
|
+
|
|
167
|
+
attempts: Array<Data.Attempt>;
|
|
168
|
+
|
|
169
|
+
completedAt: string | null;
|
|
170
|
+
|
|
171
|
+
createdAt: string;
|
|
172
|
+
|
|
173
|
+
durationMs: number | null;
|
|
174
|
+
|
|
175
|
+
endpointId: string;
|
|
176
|
+
|
|
177
|
+
eventId: string;
|
|
178
|
+
|
|
179
|
+
eventType: string;
|
|
180
|
+
|
|
181
|
+
isTest: boolean;
|
|
182
|
+
|
|
183
|
+
lastError: string | null;
|
|
184
|
+
|
|
185
|
+
lastStatusCode: number | null;
|
|
186
|
+
|
|
187
|
+
occurredAt: string;
|
|
188
|
+
|
|
189
|
+
source: string;
|
|
190
|
+
|
|
191
|
+
status: 'pending' | 'success' | 'skipped' | 'dead';
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export namespace Data {
|
|
195
|
+
export interface Attempt {
|
|
196
|
+
attemptNo: number;
|
|
197
|
+
|
|
198
|
+
durationMs: number | null;
|
|
199
|
+
|
|
200
|
+
error: string | null;
|
|
201
|
+
|
|
202
|
+
requestBody: string | null;
|
|
203
|
+
|
|
204
|
+
requestHeaders: { [key: string]: string } | null;
|
|
205
|
+
|
|
206
|
+
requestMethod: string;
|
|
207
|
+
|
|
208
|
+
requestUrl: string;
|
|
209
|
+
|
|
210
|
+
responseHeaders: { [key: string]: string } | null;
|
|
211
|
+
|
|
212
|
+
responseSnippet: string | null;
|
|
213
|
+
|
|
214
|
+
responseStatus: number | null;
|
|
215
|
+
|
|
216
|
+
sentAt: string;
|
|
217
|
+
|
|
218
|
+
signed: boolean;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export interface DeliveryStatsResponse {
|
|
224
|
+
data: DeliveryStatsResponse.Data;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export namespace DeliveryStatsResponse {
|
|
228
|
+
export interface Data {
|
|
229
|
+
byStatus: Data.ByStatus;
|
|
230
|
+
|
|
231
|
+
successRate: number | null;
|
|
232
|
+
|
|
233
|
+
total: number;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export namespace Data {
|
|
237
|
+
export interface ByStatus {
|
|
238
|
+
dead: number;
|
|
239
|
+
|
|
240
|
+
pending: number;
|
|
241
|
+
|
|
242
|
+
skipped: number;
|
|
243
|
+
|
|
244
|
+
success: number;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export interface DeliveryListParams {
|
|
250
|
+
page?: number;
|
|
251
|
+
|
|
252
|
+
pageSize?: number;
|
|
253
|
+
|
|
254
|
+
since?: string;
|
|
255
|
+
|
|
256
|
+
status?: 'pending' | 'success' | 'skipped' | 'dead';
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export interface DeliveryListForWebhookParams {
|
|
260
|
+
page?: number;
|
|
261
|
+
|
|
262
|
+
pageSize?: number;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export interface DeliveryRetrieveAttemptsParams {
|
|
266
|
+
id: string;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export interface DeliveryStatsParams {
|
|
270
|
+
since?: string;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export declare namespace Deliveries {
|
|
274
|
+
export {
|
|
275
|
+
type DeliveryListResponse as DeliveryListResponse,
|
|
276
|
+
type DeliveryListForWebhookResponse as DeliveryListForWebhookResponse,
|
|
277
|
+
type DeliveryRetrieveAttemptsResponse as DeliveryRetrieveAttemptsResponse,
|
|
278
|
+
type DeliveryStatsResponse as DeliveryStatsResponse,
|
|
279
|
+
type DeliveryListParams as DeliveryListParams,
|
|
280
|
+
type DeliveryListForWebhookParams as DeliveryListForWebhookParams,
|
|
281
|
+
type DeliveryRetrieveAttemptsParams as DeliveryRetrieveAttemptsParams,
|
|
282
|
+
type DeliveryStatsParams as DeliveryStatsParams,
|
|
283
|
+
};
|
|
284
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Deliveries,
|
|
5
|
+
type DeliveryListResponse,
|
|
6
|
+
type DeliveryListForWebhookResponse,
|
|
7
|
+
type DeliveryRetrieveAttemptsResponse,
|
|
8
|
+
type DeliveryStatsResponse,
|
|
9
|
+
type DeliveryListParams,
|
|
10
|
+
type DeliveryListForWebhookParams,
|
|
11
|
+
type DeliveryRetrieveAttemptsParams,
|
|
12
|
+
type DeliveryStatsParams,
|
|
13
|
+
} from './deliveries';
|
|
14
|
+
export {
|
|
15
|
+
Webhooks,
|
|
16
|
+
type WebhookCreateResponse,
|
|
17
|
+
type WebhookRetrieveResponse,
|
|
18
|
+
type WebhookUpdateResponse,
|
|
19
|
+
type WebhookListResponse,
|
|
20
|
+
type WebhookEventTypesResponse,
|
|
21
|
+
type WebhookRotateSecretResponse,
|
|
22
|
+
type WebhookTestDeliveryResponse,
|
|
23
|
+
type WebhookCreateParams,
|
|
24
|
+
type WebhookUpdateParams,
|
|
25
|
+
type WebhookListParams,
|
|
26
|
+
} from './webhooks';
|