@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
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
AppListParams,
|
|
20
20
|
AppListResponse,
|
|
21
21
|
AppStartParams,
|
|
22
|
-
|
|
22
|
+
AppStopParams,
|
|
23
23
|
Apps,
|
|
24
24
|
} from './apps';
|
|
25
25
|
import * as EsimAPI from './esim';
|
|
@@ -45,8 +45,10 @@ import {
|
|
|
45
45
|
} from './files';
|
|
46
46
|
import * as KeyboardAPI from './keyboard';
|
|
47
47
|
import { Keyboard, KeyboardClearParams, KeyboardKeyParams, KeyboardWriteParams } from './keyboard';
|
|
48
|
+
import * as LanguageAPI from './language';
|
|
49
|
+
import { Language, LanguageGetParams, LanguageGetResponse, LanguageSetParams } from './language';
|
|
48
50
|
import * as LocationAPI from './location';
|
|
49
|
-
import { Location, LocationGetParams,
|
|
51
|
+
import { Location, LocationGetParams, LocationSetParams } from './location';
|
|
50
52
|
import * as PackagesAPI from './packages';
|
|
51
53
|
import { PackageListParams, PackageListResponse, Packages } from './packages';
|
|
52
54
|
import * as ProfileAPI from './profile';
|
|
@@ -61,60 +63,67 @@ import {
|
|
|
61
63
|
} from './proxy';
|
|
62
64
|
import * as StateAPI from './state';
|
|
63
65
|
import {
|
|
66
|
+
A11YNode,
|
|
64
67
|
Rect,
|
|
65
68
|
State,
|
|
66
69
|
StateScreenshotParams,
|
|
67
70
|
StateScreenshotResponse,
|
|
71
|
+
StateTimeParams,
|
|
72
|
+
StateTimeResponse,
|
|
68
73
|
StateUiParams,
|
|
69
74
|
StateUiResponse,
|
|
70
75
|
} from './state';
|
|
71
76
|
import * as TasksAPI from './tasks';
|
|
72
77
|
import { TaskListParams, TaskListResponse, Tasks } from './tasks';
|
|
73
|
-
import * as
|
|
74
|
-
import {
|
|
75
|
-
Time,
|
|
76
|
-
TimeSetTimezoneParams,
|
|
77
|
-
TimeTimeParams,
|
|
78
|
-
TimeTimeResponse,
|
|
79
|
-
TimeTimezoneParams,
|
|
80
|
-
TimeTimezoneResponse,
|
|
81
|
-
} from './time';
|
|
78
|
+
import * as TimezoneAPI from './timezone';
|
|
79
|
+
import { Timezone, TimezoneGetParams, TimezoneGetResponse, TimezoneSetParams } from './timezone';
|
|
82
80
|
import { APIPromise } from '../../core/api-promise';
|
|
83
81
|
import { buildHeaders } from '../../internal/headers';
|
|
84
82
|
import { RequestOptions } from '../../internal/request-options';
|
|
85
83
|
import { path } from '../../internal/utils/path';
|
|
86
84
|
|
|
87
85
|
export class Devices extends APIResource {
|
|
88
|
-
time: TimeAPI.Time = new TimeAPI.Time(this._client);
|
|
89
|
-
profile: ProfileAPI.Profile = new ProfileAPI.Profile(this._client);
|
|
90
|
-
files: FilesAPI.Files = new FilesAPI.Files(this._client);
|
|
91
|
-
proxy: ProxyAPI.Proxy = new ProxyAPI.Proxy(this._client);
|
|
92
|
-
location: LocationAPI.Location = new LocationAPI.Location(this._client);
|
|
93
86
|
actions: ActionsAPI.Actions = new ActionsAPI.Actions(this._client);
|
|
94
|
-
state: StateAPI.State = new StateAPI.State(this._client);
|
|
95
87
|
apps: AppsAPI.Apps = new AppsAPI.Apps(this._client);
|
|
96
|
-
|
|
88
|
+
esim: EsimAPI.Esim = new EsimAPI.Esim(this._client);
|
|
89
|
+
files: FilesAPI.Files = new FilesAPI.Files(this._client);
|
|
97
90
|
keyboard: KeyboardAPI.Keyboard = new KeyboardAPI.Keyboard(this._client);
|
|
91
|
+
location: LocationAPI.Location = new LocationAPI.Location(this._client);
|
|
92
|
+
packages: PackagesAPI.Packages = new PackagesAPI.Packages(this._client);
|
|
93
|
+
profile: ProfileAPI.Profile = new ProfileAPI.Profile(this._client);
|
|
94
|
+
proxy: ProxyAPI.Proxy = new ProxyAPI.Proxy(this._client);
|
|
95
|
+
state: StateAPI.State = new StateAPI.State(this._client);
|
|
98
96
|
tasks: TasksAPI.Tasks = new TasksAPI.Tasks(this._client);
|
|
99
|
-
|
|
97
|
+
timezone: TimezoneAPI.Timezone = new TimezoneAPI.Timezone(this._client);
|
|
98
|
+
language: LanguageAPI.Language = new LanguageAPI.Language(this._client);
|
|
100
99
|
|
|
101
100
|
/**
|
|
102
|
-
*
|
|
101
|
+
* Requests a new device for the authenticated user from the device spec in the
|
|
102
|
+
* request body. Optional query parameters select the canonical device type, target
|
|
103
|
+
* country, billing mode, and a profile to use as the base spec; deprecated
|
|
104
|
+
* device-type aliases remain accepted only during the documented compatibility
|
|
105
|
+
* grace period. The response returns the device and its stream token.
|
|
103
106
|
*/
|
|
104
107
|
create(params: DeviceCreateParams, options?: RequestOptions): APIPromise<Device> {
|
|
105
|
-
const { deviceType, ...body } = params;
|
|
106
|
-
return this._client.post('/devices', {
|
|
108
|
+
const { billing, query_country, deviceType, profileId, ...body } = params;
|
|
109
|
+
return this._client.post('/devices', {
|
|
110
|
+
query: { billing, country: query_country, deviceType, profileId },
|
|
111
|
+
body,
|
|
112
|
+
...options,
|
|
113
|
+
});
|
|
107
114
|
}
|
|
108
115
|
|
|
109
116
|
/**
|
|
110
|
-
*
|
|
117
|
+
* Returns the current state and metadata for a single device, including its
|
|
118
|
+
* lifecycle state, type, stream URL, billing strategy, and timestamps. A stream
|
|
119
|
+
* token is included while the device is active.
|
|
111
120
|
*/
|
|
112
121
|
retrieve(deviceID: string, options?: RequestOptions): APIPromise<Device> {
|
|
113
122
|
return this._client.get(path`/devices/${deviceID}`, options);
|
|
114
123
|
}
|
|
115
124
|
|
|
116
125
|
/**
|
|
117
|
-
*
|
|
126
|
+
* Returns a paginated list of the user's devices along with pagination metadata.
|
|
118
127
|
*/
|
|
119
128
|
list(
|
|
120
129
|
query: DeviceListParams | null | undefined = {},
|
|
@@ -124,21 +133,71 @@ export class Devices extends APIResource {
|
|
|
124
133
|
}
|
|
125
134
|
|
|
126
135
|
/**
|
|
127
|
-
*
|
|
136
|
+
* Returns the number of claimed devices for the user, broken down by device type.
|
|
128
137
|
*/
|
|
129
138
|
count(options?: RequestOptions): APIPromise<DeviceCountResponse> {
|
|
130
139
|
return this._client.get('/devices/count', options);
|
|
131
140
|
}
|
|
132
141
|
|
|
133
142
|
/**
|
|
134
|
-
*
|
|
143
|
+
* Returns a live snapshot of the device's spoofed identity, including model,
|
|
144
|
+
* display, identifiers, and carrier. Devices without fingerprint support return an
|
|
145
|
+
* unsupported-feature error.
|
|
146
|
+
*/
|
|
147
|
+
fingerprint(
|
|
148
|
+
deviceID: string,
|
|
149
|
+
params: DeviceFingerprintParams | null | undefined = {},
|
|
150
|
+
options?: RequestOptions,
|
|
151
|
+
): APIPromise<DeviceFingerprintResponse> {
|
|
152
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
153
|
+
return this._client.get(path`/devices/${deviceID}/fingerprint`, {
|
|
154
|
+
...options,
|
|
155
|
+
headers: buildHeaders([
|
|
156
|
+
{
|
|
157
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
158
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
159
|
+
: undefined),
|
|
160
|
+
},
|
|
161
|
+
options?.headers,
|
|
162
|
+
]),
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Triggers a reboot of the device. The device transitions through its reboot
|
|
168
|
+
* lifecycle and becomes ready again once the restart completes.
|
|
169
|
+
*/
|
|
170
|
+
reboot(deviceID: string, options?: RequestOptions): APIPromise<void> {
|
|
171
|
+
return this._client.post(path`/devices/${deviceID}/reboot`, {
|
|
172
|
+
...options,
|
|
173
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Resets the device back to a clean state, clearing installed apps and user data
|
|
179
|
+
* accumulated during the session. The device transitions through its reset
|
|
180
|
+
* lifecycle before becoming ready again.
|
|
181
|
+
*/
|
|
182
|
+
reset(deviceID: string, options?: RequestOptions): APIPromise<void> {
|
|
183
|
+
return this._client.post(path`/devices/${deviceID}/reset`, {
|
|
184
|
+
...options,
|
|
185
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Sets the display name for a device from the name in the request body and returns
|
|
191
|
+
* the updated device.
|
|
135
192
|
*/
|
|
136
193
|
setName(deviceID: string, body: DeviceSetNameParams, options?: RequestOptions): APIPromise<Device> {
|
|
137
194
|
return this._client.put(path`/devices/${deviceID}/name`, { body, ...options });
|
|
138
195
|
}
|
|
139
196
|
|
|
140
197
|
/**
|
|
141
|
-
*
|
|
198
|
+
* Terminates the device and releases its resources. Termination can be scheduled
|
|
199
|
+
* for a future time or chained from a previous device via the request body, in
|
|
200
|
+
* which case a service key is required.
|
|
142
201
|
*/
|
|
143
202
|
terminate(deviceID: string, body: DeviceTerminateParams, options?: RequestOptions): APIPromise<void> {
|
|
144
203
|
return this._client.delete(path`/devices/${deviceID}`, {
|
|
@@ -149,7 +208,9 @@ export class Devices extends APIResource {
|
|
|
149
208
|
}
|
|
150
209
|
|
|
151
210
|
/**
|
|
152
|
-
*
|
|
211
|
+
* Blocks until the device reaches the ready state, then returns the same payload
|
|
212
|
+
* as Get device info. The call returns early with an error if the wait is
|
|
213
|
+
* cancelled or times out.
|
|
153
214
|
*/
|
|
154
215
|
waitReady(deviceID: string, options?: RequestOptions): APIPromise<Device> {
|
|
155
216
|
return this._client.get(path`/devices/${deviceID}/wait`, options);
|
|
@@ -186,10 +247,19 @@ export interface Device {
|
|
|
186
247
|
*/
|
|
187
248
|
$schema?: string;
|
|
188
249
|
|
|
250
|
+
billingStrategy?: string;
|
|
251
|
+
|
|
252
|
+
createdBy?: string;
|
|
253
|
+
|
|
254
|
+
ownerId?: string;
|
|
255
|
+
|
|
189
256
|
providerId?: string;
|
|
190
257
|
|
|
191
258
|
streamToken?: string;
|
|
192
259
|
|
|
260
|
+
/**
|
|
261
|
+
* @deprecated Deprecated: use ownerId/createdBy.
|
|
262
|
+
*/
|
|
193
263
|
userId?: string;
|
|
194
264
|
}
|
|
195
265
|
|
|
@@ -206,15 +276,85 @@ export interface DeviceListResponse {
|
|
|
206
276
|
|
|
207
277
|
export type DeviceCountResponse = { [key: string]: number };
|
|
208
278
|
|
|
279
|
+
export interface DeviceFingerprintResponse {
|
|
280
|
+
carrier: Shared.DeviceCarrier;
|
|
281
|
+
|
|
282
|
+
display: DeviceFingerprintResponse.Display;
|
|
283
|
+
|
|
284
|
+
identifiers: Shared.DeviceIdentifiers;
|
|
285
|
+
|
|
286
|
+
model: DeviceFingerprintResponse.Model;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* A URL to the JSON Schema for this object.
|
|
290
|
+
*/
|
|
291
|
+
$schema?: string;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export namespace DeviceFingerprintResponse {
|
|
295
|
+
export interface Display {
|
|
296
|
+
densityDpi?: number;
|
|
297
|
+
|
|
298
|
+
height?: number;
|
|
299
|
+
|
|
300
|
+
width?: number;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export interface Model {
|
|
304
|
+
aospVersion?: string;
|
|
305
|
+
|
|
306
|
+
brand?: string;
|
|
307
|
+
|
|
308
|
+
device?: string;
|
|
309
|
+
|
|
310
|
+
hardware?: string;
|
|
311
|
+
|
|
312
|
+
imageRepository?: string;
|
|
313
|
+
|
|
314
|
+
manufacturer?: string;
|
|
315
|
+
|
|
316
|
+
model?: string;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
209
320
|
export interface DeviceCreateParams {
|
|
210
321
|
/**
|
|
211
|
-
* Query param
|
|
322
|
+
* Query param: Billing mode. 'auto' uses a subscription slot when available and
|
|
323
|
+
* otherwise bills per minute; 'subscription' requires an available subscription
|
|
324
|
+
* slot; 'minute' bills per minute. Only cloud phone and cloud emulator devices
|
|
325
|
+
* support per-minute billing.
|
|
326
|
+
*/
|
|
327
|
+
billing?: 'auto' | 'subscription' | 'minute';
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Query param: ISO 3166-1 alpha-2 country code. If omitted the system picks the
|
|
331
|
+
* country with the most availability.
|
|
332
|
+
*/
|
|
333
|
+
query_country?: string;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Query param: Deprecated device type aliases are accepted during a compatibility
|
|
337
|
+
* grace period: dedicated_premium_device maps to android_cloud_phone,
|
|
338
|
+
* dedicated_physical_device maps to android_physical_phone, dedicated_ios_device
|
|
339
|
+
* maps to ios_stealth_phone, and dedicated_emulated_device maps to
|
|
340
|
+
* android_emulator.
|
|
212
341
|
*/
|
|
213
342
|
deviceType?:
|
|
214
|
-
| '
|
|
343
|
+
| 'android_cloud_phone'
|
|
215
344
|
| 'dedicated_premium_device'
|
|
216
|
-
| '
|
|
217
|
-
| 'dedicated_ios_device'
|
|
345
|
+
| 'dedicated_physical_device'
|
|
346
|
+
| 'dedicated_ios_device'
|
|
347
|
+
| 'dedicated_emulated_device';
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Query param: Profile ID to use as device spec
|
|
351
|
+
*/
|
|
352
|
+
profileId?: string;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Body param
|
|
356
|
+
*/
|
|
357
|
+
androidVersion?: number;
|
|
218
358
|
|
|
219
359
|
/**
|
|
220
360
|
* Body param
|
|
@@ -226,6 +366,11 @@ export interface DeviceCreateParams {
|
|
|
226
366
|
*/
|
|
227
367
|
carrier?: Shared.DeviceCarrier;
|
|
228
368
|
|
|
369
|
+
/**
|
|
370
|
+
* Body param
|
|
371
|
+
*/
|
|
372
|
+
body_country?: string;
|
|
373
|
+
|
|
229
374
|
/**
|
|
230
375
|
* Body param
|
|
231
376
|
*/
|
|
@@ -236,6 +381,16 @@ export interface DeviceCreateParams {
|
|
|
236
381
|
*/
|
|
237
382
|
identifiers?: Shared.DeviceIdentifiers;
|
|
238
383
|
|
|
384
|
+
/**
|
|
385
|
+
* Body param
|
|
386
|
+
*/
|
|
387
|
+
locale?: string;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Body param
|
|
391
|
+
*/
|
|
392
|
+
location?: Shared.Location;
|
|
393
|
+
|
|
239
394
|
/**
|
|
240
395
|
* Body param
|
|
241
396
|
*/
|
|
@@ -245,28 +400,36 @@ export interface DeviceCreateParams {
|
|
|
245
400
|
* Body param
|
|
246
401
|
*/
|
|
247
402
|
proxy?: DeviceCreateParams.Proxy;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Body param
|
|
406
|
+
*/
|
|
407
|
+
timezone?: string;
|
|
248
408
|
}
|
|
249
409
|
|
|
250
410
|
export namespace DeviceCreateParams {
|
|
251
411
|
export interface Proxy {
|
|
412
|
+
connect?: Proxy.Connect;
|
|
413
|
+
|
|
252
414
|
name?: string;
|
|
253
415
|
|
|
254
416
|
smartIp?: boolean;
|
|
255
417
|
|
|
256
|
-
socks5?:
|
|
257
|
-
|
|
258
|
-
wireguard?: string;
|
|
418
|
+
socks5?: Shared.Socks5;
|
|
259
419
|
}
|
|
260
420
|
|
|
261
421
|
export namespace Proxy {
|
|
262
|
-
export interface
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
422
|
+
export interface Connect {
|
|
423
|
+
/**
|
|
424
|
+
* Existing Mobilerun Connect proxy id; its credentials are fetched server-side.
|
|
425
|
+
*/
|
|
426
|
+
id?: string;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* ISO 3166-1 alpha-2 country code; provisions (or reuses) a rotating residential
|
|
430
|
+
* Mobilerun Connect proxy for the device.
|
|
431
|
+
*/
|
|
432
|
+
country?: string;
|
|
270
433
|
}
|
|
271
434
|
}
|
|
272
435
|
}
|
|
@@ -274,6 +437,17 @@ export namespace DeviceCreateParams {
|
|
|
274
437
|
export interface DeviceListParams {
|
|
275
438
|
country?: string;
|
|
276
439
|
|
|
440
|
+
/**
|
|
441
|
+
* Filter to devices created by this user id. Mutually exclusive with mine.
|
|
442
|
+
*/
|
|
443
|
+
createdBy?: string;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* When true, only return devices created by the calling user (resolved from
|
|
447
|
+
* X-User-ID, never a client-supplied id).
|
|
448
|
+
*/
|
|
449
|
+
mine?: boolean;
|
|
450
|
+
|
|
277
451
|
name?: string;
|
|
278
452
|
|
|
279
453
|
orderBy?: 'id' | 'createdAt' | 'updatedAt' | 'assignedAt';
|
|
@@ -287,14 +461,34 @@ export interface DeviceListParams {
|
|
|
287
461
|
providerId?: string;
|
|
288
462
|
|
|
289
463
|
state?: Array<
|
|
290
|
-
|
|
464
|
+
| 'creating'
|
|
465
|
+
| 'assigned'
|
|
466
|
+
| 'ready'
|
|
467
|
+
| 'rebooting'
|
|
468
|
+
| 'migrating'
|
|
469
|
+
| 'resetting'
|
|
470
|
+
| 'terminated'
|
|
471
|
+
| 'maintenance'
|
|
472
|
+
| 'stopped'
|
|
473
|
+
| 'unknown'
|
|
291
474
|
> | null;
|
|
292
475
|
|
|
476
|
+
/**
|
|
477
|
+
* Deprecated device type aliases are accepted during a compatibility grace period:
|
|
478
|
+
* dedicated_premium_device maps to android_cloud_phone, dedicated_physical_device
|
|
479
|
+
* maps to android_physical_phone, dedicated_ios_device maps to ios_stealth_phone,
|
|
480
|
+
* and dedicated_emulated_device maps to android_emulator.
|
|
481
|
+
*/
|
|
293
482
|
type?:
|
|
294
|
-
| '
|
|
483
|
+
| 'android_cloud_phone'
|
|
295
484
|
| 'dedicated_premium_device'
|
|
296
|
-
| '
|
|
297
|
-
| 'dedicated_ios_device'
|
|
485
|
+
| 'dedicated_physical_device'
|
|
486
|
+
| 'dedicated_ios_device'
|
|
487
|
+
| 'dedicated_emulated_device';
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export interface DeviceFingerprintParams {
|
|
491
|
+
'X-Device-Display-ID'?: number;
|
|
298
492
|
}
|
|
299
493
|
|
|
300
494
|
export interface DeviceSetNameParams {
|
|
@@ -307,40 +501,62 @@ export interface DeviceTerminateParams {
|
|
|
307
501
|
terminateAt?: string;
|
|
308
502
|
}
|
|
309
503
|
|
|
310
|
-
Devices.Time = Time;
|
|
311
|
-
Devices.Profile = Profile;
|
|
312
|
-
Devices.Files = Files;
|
|
313
|
-
Devices.Proxy = ProxyAPIProxy;
|
|
314
|
-
Devices.Location = Location;
|
|
315
504
|
Devices.Actions = Actions;
|
|
316
|
-
Devices.State = State;
|
|
317
505
|
Devices.Apps = Apps;
|
|
318
|
-
Devices.
|
|
506
|
+
Devices.Esim = Esim;
|
|
507
|
+
Devices.Files = Files;
|
|
319
508
|
Devices.Keyboard = Keyboard;
|
|
509
|
+
Devices.Location = Location;
|
|
510
|
+
Devices.Packages = Packages;
|
|
511
|
+
Devices.Profile = Profile;
|
|
512
|
+
Devices.Proxy = ProxyAPIProxy;
|
|
513
|
+
Devices.State = State;
|
|
320
514
|
Devices.Tasks = Tasks;
|
|
321
|
-
Devices.
|
|
515
|
+
Devices.Timezone = Timezone;
|
|
516
|
+
Devices.Language = Language;
|
|
322
517
|
|
|
323
518
|
export declare namespace Devices {
|
|
324
519
|
export {
|
|
325
520
|
type Device as Device,
|
|
326
521
|
type DeviceListResponse as DeviceListResponse,
|
|
327
522
|
type DeviceCountResponse as DeviceCountResponse,
|
|
523
|
+
type DeviceFingerprintResponse as DeviceFingerprintResponse,
|
|
328
524
|
type DeviceCreateParams as DeviceCreateParams,
|
|
329
525
|
type DeviceListParams as DeviceListParams,
|
|
526
|
+
type DeviceFingerprintParams as DeviceFingerprintParams,
|
|
330
527
|
type DeviceSetNameParams as DeviceSetNameParams,
|
|
331
528
|
type DeviceTerminateParams as DeviceTerminateParams,
|
|
332
529
|
};
|
|
333
530
|
|
|
334
531
|
export {
|
|
335
|
-
|
|
336
|
-
type
|
|
337
|
-
type
|
|
338
|
-
type
|
|
339
|
-
type
|
|
340
|
-
type
|
|
532
|
+
Actions as Actions,
|
|
533
|
+
type ActionOverlayVisibleResponse as ActionOverlayVisibleResponse,
|
|
534
|
+
type ActionGlobalParams as ActionGlobalParams,
|
|
535
|
+
type ActionOverlayVisibleParams as ActionOverlayVisibleParams,
|
|
536
|
+
type ActionSetOverlayVisibleParams as ActionSetOverlayVisibleParams,
|
|
537
|
+
type ActionSwipeParams as ActionSwipeParams,
|
|
538
|
+
type ActionTapParams as ActionTapParams,
|
|
341
539
|
};
|
|
342
540
|
|
|
343
|
-
export {
|
|
541
|
+
export {
|
|
542
|
+
Apps as Apps,
|
|
543
|
+
type AppListResponse as AppListResponse,
|
|
544
|
+
type AppListParams as AppListParams,
|
|
545
|
+
type AppDeleteParams as AppDeleteParams,
|
|
546
|
+
type AppInstallParams as AppInstallParams,
|
|
547
|
+
type AppStartParams as AppStartParams,
|
|
548
|
+
type AppStopParams as AppStopParams,
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
export {
|
|
552
|
+
Esim as Esim,
|
|
553
|
+
type EsimListResponse as EsimListResponse,
|
|
554
|
+
type EsimActivateResponse as EsimActivateResponse,
|
|
555
|
+
type EsimListParams as EsimListParams,
|
|
556
|
+
type EsimActivateParams as EsimActivateParams,
|
|
557
|
+
type EsimEnableParams as EsimEnableParams,
|
|
558
|
+
type EsimRemoveParams as EsimRemoveParams,
|
|
559
|
+
};
|
|
344
560
|
|
|
345
561
|
export {
|
|
346
562
|
Files as Files,
|
|
@@ -354,71 +570,59 @@ export declare namespace Devices {
|
|
|
354
570
|
};
|
|
355
571
|
|
|
356
572
|
export {
|
|
357
|
-
|
|
358
|
-
type
|
|
359
|
-
type
|
|
360
|
-
type
|
|
361
|
-
type ProxyStatusParams as ProxyStatusParams,
|
|
573
|
+
Keyboard as Keyboard,
|
|
574
|
+
type KeyboardClearParams as KeyboardClearParams,
|
|
575
|
+
type KeyboardKeyParams as KeyboardKeyParams,
|
|
576
|
+
type KeyboardWriteParams as KeyboardWriteParams,
|
|
362
577
|
};
|
|
363
578
|
|
|
364
579
|
export {
|
|
365
580
|
Location as Location,
|
|
366
|
-
type LocationGetResponse as LocationGetResponse,
|
|
367
581
|
type LocationGetParams as LocationGetParams,
|
|
368
582
|
type LocationSetParams as LocationSetParams,
|
|
369
583
|
};
|
|
370
584
|
|
|
371
585
|
export {
|
|
372
|
-
|
|
373
|
-
type
|
|
374
|
-
type
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
586
|
+
Packages as Packages,
|
|
587
|
+
type PackageListResponse as PackageListResponse,
|
|
588
|
+
type PackageListParams as PackageListParams,
|
|
589
|
+
};
|
|
590
|
+
|
|
591
|
+
export { Profile as Profile, type ProfileUpdateParams as ProfileUpdateParams };
|
|
592
|
+
|
|
593
|
+
export {
|
|
594
|
+
ProxyAPIProxy as Proxy,
|
|
595
|
+
type ProxyStatusResponse as ProxyStatusResponse,
|
|
596
|
+
type ProxyConnectParams as ProxyConnectParams,
|
|
597
|
+
type ProxyDisconnectParams as ProxyDisconnectParams,
|
|
598
|
+
type ProxyStatusParams as ProxyStatusParams,
|
|
379
599
|
};
|
|
380
600
|
|
|
381
601
|
export {
|
|
382
602
|
State as State,
|
|
603
|
+
type A11YNode as A11YNode,
|
|
383
604
|
type Rect as Rect,
|
|
384
605
|
type StateScreenshotResponse as StateScreenshotResponse,
|
|
606
|
+
type StateTimeResponse as StateTimeResponse,
|
|
385
607
|
type StateUiResponse as StateUiResponse,
|
|
386
608
|
type StateScreenshotParams as StateScreenshotParams,
|
|
609
|
+
type StateTimeParams as StateTimeParams,
|
|
387
610
|
type StateUiParams as StateUiParams,
|
|
388
611
|
};
|
|
389
612
|
|
|
390
|
-
export {
|
|
391
|
-
Apps as Apps,
|
|
392
|
-
type AppListResponse as AppListResponse,
|
|
393
|
-
type AppUpdateParams as AppUpdateParams,
|
|
394
|
-
type AppListParams as AppListParams,
|
|
395
|
-
type AppDeleteParams as AppDeleteParams,
|
|
396
|
-
type AppInstallParams as AppInstallParams,
|
|
397
|
-
type AppStartParams as AppStartParams,
|
|
398
|
-
};
|
|
399
|
-
|
|
400
|
-
export {
|
|
401
|
-
Packages as Packages,
|
|
402
|
-
type PackageListResponse as PackageListResponse,
|
|
403
|
-
type PackageListParams as PackageListParams,
|
|
404
|
-
};
|
|
613
|
+
export { Tasks as Tasks, type TaskListResponse as TaskListResponse, type TaskListParams as TaskListParams };
|
|
405
614
|
|
|
406
615
|
export {
|
|
407
|
-
|
|
408
|
-
type
|
|
409
|
-
type
|
|
410
|
-
type
|
|
616
|
+
Timezone as Timezone,
|
|
617
|
+
type TimezoneGetResponse as TimezoneGetResponse,
|
|
618
|
+
type TimezoneGetParams as TimezoneGetParams,
|
|
619
|
+
type TimezoneSetParams as TimezoneSetParams,
|
|
411
620
|
};
|
|
412
621
|
|
|
413
|
-
export { Tasks as Tasks, type TaskListResponse as TaskListResponse, type TaskListParams as TaskListParams };
|
|
414
|
-
|
|
415
622
|
export {
|
|
416
|
-
|
|
417
|
-
type
|
|
418
|
-
type
|
|
419
|
-
type
|
|
420
|
-
type EsimActivateParams as EsimActivateParams,
|
|
421
|
-
type EsimEnableParams as EsimEnableParams,
|
|
422
|
-
type EsimRemoveParams as EsimRemoveParams,
|
|
623
|
+
Language as Language,
|
|
624
|
+
type LanguageGetResponse as LanguageGetResponse,
|
|
625
|
+
type LanguageGetParams as LanguageGetParams,
|
|
626
|
+
type LanguageSetParams as LanguageSetParams,
|
|
423
627
|
};
|
|
424
628
|
}
|
|
@@ -8,7 +8,7 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Esim extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Returns the eSIM subscriptions currently provisioned on the device.
|
|
12
12
|
*/
|
|
13
13
|
list(
|
|
14
14
|
deviceID: string,
|
|
@@ -30,7 +30,7 @@ export class Esim extends APIResource {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Download profile and/or enable subscription.
|
|
34
34
|
*/
|
|
35
35
|
activate(
|
|
36
36
|
deviceID: string,
|
|
@@ -53,7 +53,8 @@ export class Esim extends APIResource {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Enables the eSIM subscription identified by the subId in the request body so it
|
|
57
|
+
* becomes the active subscription.
|
|
57
58
|
*/
|
|
58
59
|
enable(deviceID: string, params: EsimEnableParams, options?: RequestOptions): APIPromise<void> {
|
|
59
60
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -73,7 +74,8 @@ export class Esim extends APIResource {
|
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
/**
|
|
76
|
-
*
|
|
77
|
+
* Deletes the eSIM subscription identified by the subId query parameter from the
|
|
78
|
+
* device.
|
|
77
79
|
*/
|
|
78
80
|
remove(deviceID: string, params: EsimRemoveParams, options?: RequestOptions): APIPromise<void> {
|
|
79
81
|
const { subId, 'X-Device-Display-ID': xDeviceDisplayID } = params;
|
|
@@ -152,12 +154,19 @@ export interface EsimActivateParams {
|
|
|
152
154
|
/**
|
|
153
155
|
* Body param
|
|
154
156
|
*/
|
|
155
|
-
|
|
157
|
+
smDpAddr: string;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Body param: Optional carrier-issued confirmation code (the 4th LPA segment).
|
|
161
|
+
* Required only for plans whose SM-DP+ challenges the device for one. Requires
|
|
162
|
+
* matchingId — the LPA spec only interprets segment 4 when segment 3 is present.
|
|
163
|
+
*/
|
|
164
|
+
confirmationCode?: string;
|
|
156
165
|
|
|
157
166
|
/**
|
|
158
167
|
* Body param
|
|
159
168
|
*/
|
|
160
|
-
|
|
169
|
+
matchingId?: string;
|
|
161
170
|
|
|
162
171
|
/**
|
|
163
172
|
* Header param
|