@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
|
@@ -11,7 +11,8 @@ import { path } from '../../internal/utils/path';
|
|
|
11
11
|
|
|
12
12
|
export class Files extends APIResource {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Lists the files at the directory path given in the path query parameter,
|
|
15
|
+
* returning each entry's metadata along with the path and total count.
|
|
15
16
|
*/
|
|
16
17
|
list(deviceID: string, params: FileListParams, options?: RequestOptions): APIPromise<FileListResponse> {
|
|
17
18
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...query } = params;
|
|
@@ -30,7 +31,7 @@ export class Files extends APIResource {
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
|
-
*
|
|
34
|
+
* Deletes the file at the path given in the path query parameter from the device.
|
|
34
35
|
*/
|
|
35
36
|
delete(deviceID: string, params: FileDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
36
37
|
const { path: path_, 'X-Device-Display-ID': xDeviceDisplayID } = params;
|
|
@@ -50,7 +51,8 @@ export class Files extends APIResource {
|
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
/**
|
|
53
|
-
*
|
|
54
|
+
* Pulls the file at the given path query parameter from the device and returns its
|
|
55
|
+
* raw bytes as an octet-stream.
|
|
54
56
|
*/
|
|
55
57
|
download(deviceID: string, params: FileDownloadParams, options?: RequestOptions): APIPromise<string> {
|
|
56
58
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...query } = params;
|
|
@@ -69,7 +71,8 @@ export class Files extends APIResource {
|
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
/**
|
|
72
|
-
*
|
|
74
|
+
* Uploads a file to the device via multipart form data, writing it into the
|
|
75
|
+
* directory given by the path query parameter using the uploaded file's name.
|
|
73
76
|
*/
|
|
74
77
|
upload(deviceID: string, params: FileUploadParams, options?: RequestOptions): APIPromise<void> {
|
|
75
78
|
const { path: path_, 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -12,19 +12,21 @@ export {
|
|
|
12
12
|
export {
|
|
13
13
|
Apps,
|
|
14
14
|
type AppListResponse,
|
|
15
|
-
type AppUpdateParams,
|
|
16
15
|
type AppListParams,
|
|
17
16
|
type AppDeleteParams,
|
|
18
17
|
type AppInstallParams,
|
|
19
18
|
type AppStartParams,
|
|
19
|
+
type AppStopParams,
|
|
20
20
|
} from './apps';
|
|
21
21
|
export {
|
|
22
22
|
Devices,
|
|
23
23
|
type Device,
|
|
24
24
|
type DeviceListResponse,
|
|
25
25
|
type DeviceCountResponse,
|
|
26
|
+
type DeviceFingerprintResponse,
|
|
26
27
|
type DeviceCreateParams,
|
|
27
28
|
type DeviceListParams,
|
|
29
|
+
type DeviceFingerprintParams,
|
|
28
30
|
type DeviceSetNameParams,
|
|
29
31
|
type DeviceTerminateParams,
|
|
30
32
|
} from './devices';
|
|
@@ -54,11 +56,12 @@ export {
|
|
|
54
56
|
type KeyboardWriteParams,
|
|
55
57
|
} from './keyboard';
|
|
56
58
|
export {
|
|
57
|
-
|
|
58
|
-
type
|
|
59
|
-
type
|
|
60
|
-
type
|
|
61
|
-
} from './
|
|
59
|
+
Language,
|
|
60
|
+
type LanguageGetResponse,
|
|
61
|
+
type LanguageGetParams,
|
|
62
|
+
type LanguageSetParams,
|
|
63
|
+
} from './language';
|
|
64
|
+
export { Location, type LocationGetParams, type LocationSetParams } from './location';
|
|
62
65
|
export { Packages, type PackageListResponse, type PackageListParams } from './packages';
|
|
63
66
|
export { Profile, type ProfileUpdateParams } from './profile';
|
|
64
67
|
export {
|
|
@@ -70,18 +73,19 @@ export {
|
|
|
70
73
|
} from './proxy';
|
|
71
74
|
export {
|
|
72
75
|
State,
|
|
76
|
+
type A11YNode,
|
|
73
77
|
type Rect,
|
|
74
78
|
type StateScreenshotResponse,
|
|
79
|
+
type StateTimeResponse,
|
|
75
80
|
type StateUiResponse,
|
|
76
81
|
type StateScreenshotParams,
|
|
82
|
+
type StateTimeParams,
|
|
77
83
|
type StateUiParams,
|
|
78
84
|
} from './state';
|
|
79
85
|
export { Tasks, type TaskListResponse, type TaskListParams } from './tasks';
|
|
80
86
|
export {
|
|
81
|
-
|
|
82
|
-
type
|
|
83
|
-
type
|
|
84
|
-
type
|
|
85
|
-
|
|
86
|
-
type TimeTimezoneParams,
|
|
87
|
-
} from './time';
|
|
87
|
+
Timezone,
|
|
88
|
+
type TimezoneGetResponse,
|
|
89
|
+
type TimezoneGetParams,
|
|
90
|
+
type TimezoneSetParams,
|
|
91
|
+
} from './timezone';
|
|
@@ -8,7 +8,7 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Keyboard extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Clears the contents of the currently focused text input field.
|
|
12
12
|
*/
|
|
13
13
|
clear(
|
|
14
14
|
deviceID: string,
|
|
@@ -31,7 +31,7 @@ export class Keyboard extends APIResource {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Sends a single Android key event to the device, identified by its key code.
|
|
35
35
|
*/
|
|
36
36
|
key(deviceID: string, params: KeyboardKeyParams, options?: RequestOptions): APIPromise<void> {
|
|
37
37
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -51,7 +51,9 @@ export class Keyboard extends APIResource {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Types the given text into the focused input field. Supports optionally clearing
|
|
55
|
+
* the field first and a stealth mode that emulates human typing speed and error
|
|
56
|
+
* rate on supported devices.
|
|
55
57
|
*/
|
|
56
58
|
write(deviceID: string, params: KeyboardWriteParams, options?: RequestOptions): APIPromise<void> {
|
|
57
59
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -98,6 +100,12 @@ export interface KeyboardWriteParams {
|
|
|
98
100
|
*/
|
|
99
101
|
clear?: boolean;
|
|
100
102
|
|
|
103
|
+
/**
|
|
104
|
+
* Body param: Per-character mistake rate for humantouch typing. -1 uses server
|
|
105
|
+
* default.
|
|
106
|
+
*/
|
|
107
|
+
errorRate?: number;
|
|
108
|
+
|
|
101
109
|
/**
|
|
102
110
|
* Body param
|
|
103
111
|
*/
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
import { path } from '../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Language extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns the device's current language/locale as a BCP-47 locale string.
|
|
12
|
+
*/
|
|
13
|
+
get(
|
|
14
|
+
deviceID: string,
|
|
15
|
+
params: LanguageGetParams | null | undefined = {},
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): APIPromise<LanguageGetResponse> {
|
|
18
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
19
|
+
return this._client.get(path`/devices/${deviceID}/language`, {
|
|
20
|
+
...options,
|
|
21
|
+
headers: buildHeaders([
|
|
22
|
+
{
|
|
23
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
24
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
25
|
+
: undefined),
|
|
26
|
+
},
|
|
27
|
+
options?.headers,
|
|
28
|
+
]),
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Sets the device language/locale to the BCP-47 locale in the request body. An
|
|
34
|
+
* optional restart flag applies the change immediately by restarting the zygote
|
|
35
|
+
* instead of waiting for the next reboot.
|
|
36
|
+
*/
|
|
37
|
+
set(deviceID: string, params: LanguageSetParams, options?: RequestOptions): APIPromise<void> {
|
|
38
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
39
|
+
return this._client.post(path`/devices/${deviceID}/language`, {
|
|
40
|
+
body,
|
|
41
|
+
...options,
|
|
42
|
+
headers: buildHeaders([
|
|
43
|
+
{
|
|
44
|
+
Accept: '*/*',
|
|
45
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
46
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
47
|
+
: undefined),
|
|
48
|
+
},
|
|
49
|
+
options?.headers,
|
|
50
|
+
]),
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface LanguageGetResponse {
|
|
56
|
+
locale: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* A URL to the JSON Schema for this object.
|
|
60
|
+
*/
|
|
61
|
+
$schema?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface LanguageGetParams {
|
|
65
|
+
'X-Device-Display-ID'?: number;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface LanguageSetParams {
|
|
69
|
+
/**
|
|
70
|
+
* Body param: BCP-47 locale: a 2–3 letter language tag, optionally followed by a
|
|
71
|
+
* 4-letter script and/or a 2-letter region (e.g. en-US, de-DE, ja-JP, zh-Hans-CN).
|
|
72
|
+
*/
|
|
73
|
+
locale: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Body param: Restart zygote so the locale change takes full effect immediately.
|
|
77
|
+
* Without it, the locale is written but won't fully apply until the next reboot.
|
|
78
|
+
*/
|
|
79
|
+
restart?: boolean;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Header param
|
|
83
|
+
*/
|
|
84
|
+
'X-Device-Display-ID'?: number;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export declare namespace Language {
|
|
88
|
+
export {
|
|
89
|
+
type LanguageGetResponse as LanguageGetResponse,
|
|
90
|
+
type LanguageGetParams as LanguageGetParams,
|
|
91
|
+
type LanguageSetParams as LanguageSetParams,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as Shared from '../shared';
|
|
4
5
|
import { APIPromise } from '../../core/api-promise';
|
|
5
6
|
import { buildHeaders } from '../../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -8,13 +9,14 @@ import { path } from '../../internal/utils/path';
|
|
|
8
9
|
|
|
9
10
|
export class Location extends APIResource {
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* Returns the device's current simulated GPS location as latitude and longitude.
|
|
13
|
+
* Devices without geo support return an unsupported-feature error.
|
|
12
14
|
*/
|
|
13
15
|
get(
|
|
14
16
|
deviceID: string,
|
|
15
17
|
params: LocationGetParams | null | undefined = {},
|
|
16
18
|
options?: RequestOptions,
|
|
17
|
-
): APIPromise<
|
|
19
|
+
): APIPromise<Shared.Location> {
|
|
18
20
|
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
19
21
|
return this._client.get(path`/devices/${deviceID}/location`, {
|
|
20
22
|
...options,
|
|
@@ -30,7 +32,8 @@ export class Location extends APIResource {
|
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
/**
|
|
33
|
-
*
|
|
35
|
+
* Sets the device's simulated GPS location to the latitude and longitude in the
|
|
36
|
+
* request body. Devices without geo support return an unsupported-feature error.
|
|
34
37
|
*/
|
|
35
38
|
set(deviceID: string, params: LocationSetParams, options?: RequestOptions): APIPromise<void> {
|
|
36
39
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -50,17 +53,6 @@ export class Location extends APIResource {
|
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
|
|
53
|
-
export interface LocationGetResponse {
|
|
54
|
-
latitude: number;
|
|
55
|
-
|
|
56
|
-
longitude: number;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* A URL to the JSON Schema for this object.
|
|
60
|
-
*/
|
|
61
|
-
$schema?: string;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
56
|
export interface LocationGetParams {
|
|
65
57
|
'X-Device-Display-ID'?: number;
|
|
66
58
|
}
|
|
@@ -83,9 +75,5 @@ export interface LocationSetParams {
|
|
|
83
75
|
}
|
|
84
76
|
|
|
85
77
|
export declare namespace Location {
|
|
86
|
-
export {
|
|
87
|
-
type LocationGetResponse as LocationGetResponse,
|
|
88
|
-
type LocationGetParams as LocationGetParams,
|
|
89
|
-
type LocationSetParams as LocationSetParams,
|
|
90
|
-
};
|
|
78
|
+
export { type LocationGetParams as LocationGetParams, type LocationSetParams as LocationSetParams };
|
|
91
79
|
}
|
|
@@ -8,7 +8,8 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Packages extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Returns the package names of apps installed on the device. System and protected
|
|
12
|
+
* packages are excluded unless the corresponding query parameters are set.
|
|
12
13
|
*/
|
|
13
14
|
list(
|
|
14
15
|
deviceID: string,
|
|
@@ -8,7 +8,9 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Proxy extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Routes the device's traffic through a SOCKS5 proxy supplied in the request body,
|
|
12
|
+
* replacing any existing connection. A smartIp option can be used to select an IP
|
|
13
|
+
* automatically; the legacy flat host/port/user/password fields remain supported.
|
|
12
14
|
*/
|
|
13
15
|
connect(deviceID: string, params: ProxyConnectParams, options?: RequestOptions): APIPromise<void> {
|
|
14
16
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -28,7 +30,8 @@ export class Proxy extends APIResource {
|
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
/**
|
|
31
|
-
*
|
|
33
|
+
* Disconnects the device's active proxy connection and clears its stored proxy
|
|
34
|
+
* state. Returns successfully if no proxy is connected.
|
|
32
35
|
*/
|
|
33
36
|
disconnect(
|
|
34
37
|
deviceID: string,
|
|
@@ -51,7 +54,8 @@ export class Proxy extends APIResource {
|
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
/**
|
|
54
|
-
*
|
|
57
|
+
* Returns the device's current proxy connection state, including whether a proxy
|
|
58
|
+
* is connected and its protocol and name.
|
|
55
59
|
*/
|
|
56
60
|
status(
|
|
57
61
|
deviceID: string,
|
|
@@ -82,7 +86,7 @@ export interface ProxyStatusResponse {
|
|
|
82
86
|
name: string | null;
|
|
83
87
|
|
|
84
88
|
/**
|
|
85
|
-
* Active proxy protocol (socks5
|
|
89
|
+
* Active proxy protocol (socks5).
|
|
86
90
|
*/
|
|
87
91
|
protocol: string | null;
|
|
88
92
|
|
|
@@ -93,13 +97,20 @@ export interface ProxyStatusResponse {
|
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
export interface ProxyConnectParams {
|
|
100
|
+
/**
|
|
101
|
+
* Body param: Mobilerun Connect proxy — pass exactly one of id (use an existing
|
|
102
|
+
* proxy's credentials) or country (provision or reuse a rotating residential proxy
|
|
103
|
+
* for the device).
|
|
104
|
+
*/
|
|
105
|
+
connect?: ProxyConnectParams.Connect;
|
|
106
|
+
|
|
96
107
|
/**
|
|
97
108
|
* @deprecated Body param
|
|
98
109
|
*/
|
|
99
110
|
host?: string;
|
|
100
111
|
|
|
101
112
|
/**
|
|
102
|
-
* Body param: Proxy name
|
|
113
|
+
* Body param: Proxy name
|
|
103
114
|
*/
|
|
104
115
|
name?: string;
|
|
105
116
|
|
|
@@ -128,12 +139,6 @@ export interface ProxyConnectParams {
|
|
|
128
139
|
*/
|
|
129
140
|
user?: string;
|
|
130
141
|
|
|
131
|
-
/**
|
|
132
|
-
* Body param: WireGuard tunnel configuration file content (required for
|
|
133
|
-
* wireguard).
|
|
134
|
-
*/
|
|
135
|
-
wireguard?: string;
|
|
136
|
-
|
|
137
142
|
/**
|
|
138
143
|
* Header param
|
|
139
144
|
*/
|
|
@@ -141,6 +146,24 @@ export interface ProxyConnectParams {
|
|
|
141
146
|
}
|
|
142
147
|
|
|
143
148
|
export namespace ProxyConnectParams {
|
|
149
|
+
/**
|
|
150
|
+
* Mobilerun Connect proxy — pass exactly one of id (use an existing proxy's
|
|
151
|
+
* credentials) or country (provision or reuse a rotating residential proxy for the
|
|
152
|
+
* device).
|
|
153
|
+
*/
|
|
154
|
+
export interface Connect {
|
|
155
|
+
/**
|
|
156
|
+
* Existing Mobilerun Connect proxy id; its credentials are fetched server-side.
|
|
157
|
+
*/
|
|
158
|
+
id?: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* ISO 3166-1 alpha-2 country code; provisions (or reuses) a rotating residential
|
|
162
|
+
* Mobilerun Connect proxy for the device.
|
|
163
|
+
*/
|
|
164
|
+
country?: string;
|
|
165
|
+
}
|
|
166
|
+
|
|
144
167
|
/**
|
|
145
168
|
* SOCKS5 proxy configuration (required for socks5).
|
|
146
169
|
*/
|
|
@@ -9,7 +9,8 @@ import { path } from '../../internal/utils/path';
|
|
|
9
9
|
|
|
10
10
|
export class State extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Captures the device screen and returns it as a PNG image. An optional
|
|
13
|
+
* hideOverlay query parameter excludes the accessibility overlay from the capture.
|
|
13
14
|
*/
|
|
14
15
|
screenshot(
|
|
15
16
|
deviceID: string,
|
|
@@ -32,7 +33,31 @@ export class State extends APIResource {
|
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
/**
|
|
35
|
-
*
|
|
36
|
+
* Returns the device's current wall-clock time as an RFC 3339 timestamp.
|
|
37
|
+
*/
|
|
38
|
+
time(
|
|
39
|
+
deviceID: string,
|
|
40
|
+
params: StateTimeParams | null | undefined = {},
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): APIPromise<string> {
|
|
43
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
44
|
+
return this._client.get(path`/devices/${deviceID}/time`, {
|
|
45
|
+
...options,
|
|
46
|
+
headers: buildHeaders([
|
|
47
|
+
{
|
|
48
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
49
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
50
|
+
: undefined),
|
|
51
|
+
},
|
|
52
|
+
options?.headers,
|
|
53
|
+
]),
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Returns the current accessibility UI state of the device as a structured tree of
|
|
59
|
+
* on-screen elements. An optional filter query reduces the result to interactive
|
|
60
|
+
* elements.
|
|
36
61
|
*/
|
|
37
62
|
ui(
|
|
38
63
|
deviceID: string,
|
|
@@ -55,6 +80,56 @@ export class State extends APIResource {
|
|
|
55
80
|
}
|
|
56
81
|
}
|
|
57
82
|
|
|
83
|
+
export interface A11YNode {
|
|
84
|
+
boundsInScreen: A11YNode.BoundsInScreen;
|
|
85
|
+
|
|
86
|
+
children: Array<A11YNode> | null;
|
|
87
|
+
|
|
88
|
+
className: string;
|
|
89
|
+
|
|
90
|
+
contentDescription: string;
|
|
91
|
+
|
|
92
|
+
isCheckable: boolean;
|
|
93
|
+
|
|
94
|
+
isChecked: boolean;
|
|
95
|
+
|
|
96
|
+
isClickable: boolean;
|
|
97
|
+
|
|
98
|
+
isEnabled: boolean;
|
|
99
|
+
|
|
100
|
+
isFocusable: boolean;
|
|
101
|
+
|
|
102
|
+
isFocused: boolean;
|
|
103
|
+
|
|
104
|
+
isLongClickable: boolean;
|
|
105
|
+
|
|
106
|
+
isPassword: boolean;
|
|
107
|
+
|
|
108
|
+
isScrollable: boolean;
|
|
109
|
+
|
|
110
|
+
isSelected: boolean;
|
|
111
|
+
|
|
112
|
+
packageName: string;
|
|
113
|
+
|
|
114
|
+
resourceId: string;
|
|
115
|
+
|
|
116
|
+
text: string;
|
|
117
|
+
|
|
118
|
+
isVisibleToUser?: boolean;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export namespace A11YNode {
|
|
122
|
+
export interface BoundsInScreen {
|
|
123
|
+
bottom: number;
|
|
124
|
+
|
|
125
|
+
left: number;
|
|
126
|
+
|
|
127
|
+
right: number;
|
|
128
|
+
|
|
129
|
+
top: number;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
58
133
|
export interface Rect {
|
|
59
134
|
height: number;
|
|
60
135
|
|
|
@@ -63,11 +138,15 @@ export interface Rect {
|
|
|
63
138
|
|
|
64
139
|
export type StateScreenshotResponse = string;
|
|
65
140
|
|
|
141
|
+
export type StateTimeResponse = string;
|
|
142
|
+
|
|
66
143
|
export interface StateUiResponse {
|
|
67
|
-
a11y_tree:
|
|
144
|
+
a11y_tree: A11YNode;
|
|
68
145
|
|
|
69
146
|
device_context: StateUiResponse.DeviceContext;
|
|
70
147
|
|
|
148
|
+
ime_tree: A11YNode;
|
|
149
|
+
|
|
71
150
|
phone_state: StateUiResponse.PhoneState;
|
|
72
151
|
|
|
73
152
|
/**
|
|
@@ -83,8 +162,6 @@ export namespace StateUiResponse {
|
|
|
83
162
|
filtering_params: DeviceContext.FilteringParams;
|
|
84
163
|
|
|
85
164
|
screen_bounds: StateAPI.Rect;
|
|
86
|
-
|
|
87
|
-
screenSize: StateAPI.Rect;
|
|
88
165
|
}
|
|
89
166
|
|
|
90
167
|
export namespace DeviceContext {
|
|
@@ -144,6 +221,10 @@ export interface StateScreenshotParams {
|
|
|
144
221
|
'X-Device-Display-ID'?: number;
|
|
145
222
|
}
|
|
146
223
|
|
|
224
|
+
export interface StateTimeParams {
|
|
225
|
+
'X-Device-Display-ID'?: number;
|
|
226
|
+
}
|
|
227
|
+
|
|
147
228
|
export interface StateUiParams {
|
|
148
229
|
/**
|
|
149
230
|
* Query param
|
|
@@ -158,10 +239,13 @@ export interface StateUiParams {
|
|
|
158
239
|
|
|
159
240
|
export declare namespace State {
|
|
160
241
|
export {
|
|
242
|
+
type A11YNode as A11YNode,
|
|
161
243
|
type Rect as Rect,
|
|
162
244
|
type StateScreenshotResponse as StateScreenshotResponse,
|
|
245
|
+
type StateTimeResponse as StateTimeResponse,
|
|
163
246
|
type StateUiResponse as StateUiResponse,
|
|
164
247
|
type StateScreenshotParams as StateScreenshotParams,
|
|
248
|
+
type StateTimeParams as StateTimeParams,
|
|
165
249
|
type StateUiParams as StateUiParams,
|
|
166
250
|
};
|
|
167
251
|
}
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as Shared from '../shared';
|
|
5
|
+
import * as ResourcesTasksAPI from '../tasks/tasks';
|
|
5
6
|
import { APIPromise } from '../../core/api-promise';
|
|
6
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
8
|
import { path } from '../../internal/utils/path';
|
|
8
9
|
|
|
9
10
|
export class Tasks extends APIResource {
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* Returns a paginated list of tasks that have run on the device, along with
|
|
13
|
+
* pagination metadata.
|
|
12
14
|
*/
|
|
13
15
|
list(
|
|
14
16
|
deviceID: string,
|
|
@@ -20,7 +22,7 @@ export class Tasks extends APIResource {
|
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
export interface TaskListResponse {
|
|
23
|
-
items: Array<
|
|
25
|
+
items: Array<ResourcesTasksAPI.Task> | null;
|
|
24
26
|
|
|
25
27
|
pagination: Shared.Meta;
|
|
26
28
|
|
|
@@ -30,16 +32,6 @@ export interface TaskListResponse {
|
|
|
30
32
|
$schema?: string;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
|
-
export namespace TaskListResponse {
|
|
34
|
-
export interface Item {
|
|
35
|
-
createdAt: string;
|
|
36
|
-
|
|
37
|
-
taskId: string;
|
|
38
|
-
|
|
39
|
-
updatedAt: string;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
35
|
export interface TaskListParams {
|
|
44
36
|
orderBy?: 'id' | 'createdAt' | 'updatedAt' | 'assignedAt';
|
|
45
37
|
|