@mobilerun/sdk 3.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +542 -0
- package/README.md +2 -2
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +41 -25
- package/client.d.mts.map +1 -1
- package/client.d.ts +41 -25
- package/client.d.ts.map +1 -1
- package/client.js +52 -18
- package/client.js.map +1 -1
- package/client.mjs +53 -19
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +10 -10
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +10 -10
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/lib/trajectory-decoder-stream.d.mts.map +1 -1
- package/lib/trajectory-decoder-stream.d.ts.map +1 -1
- package/package.json +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/apps.d.mts +198 -16
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +198 -16
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +102 -0
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +102 -0
- package/resources/apps.mjs.map +1 -1
- package/resources/carriers.d.mts +108 -7
- package/resources/carriers.d.mts.map +1 -1
- package/resources/carriers.d.ts +108 -7
- package/resources/carriers.d.ts.map +1 -1
- package/resources/carriers.js +3 -0
- package/resources/carriers.js.map +1 -1
- package/resources/carriers.mjs +3 -0
- package/resources/carriers.mjs.map +1 -1
- package/resources/connect/connect.d.mts +18 -0
- package/resources/connect/connect.d.mts.map +1 -0
- package/resources/connect/connect.d.ts +18 -0
- package/resources/connect/connect.d.ts.map +1 -0
- package/resources/connect/connect.js +25 -0
- package/resources/connect/connect.js.map +1 -0
- package/resources/connect/connect.mjs +20 -0
- package/resources/connect/connect.mjs.map +1 -0
- package/resources/connect/countries.d.mts +79 -0
- package/resources/connect/countries.d.mts.map +1 -0
- package/resources/connect/countries.d.ts +79 -0
- package/resources/connect/countries.d.ts.map +1 -0
- package/resources/connect/countries.js +15 -0
- package/resources/connect/countries.js.map +1 -0
- package/resources/connect/countries.mjs +11 -0
- package/resources/connect/countries.mjs.map +1 -0
- package/resources/connect/index.d.mts +5 -0
- package/resources/connect/index.d.mts.map +1 -0
- package/resources/connect/index.d.ts +5 -0
- package/resources/connect/index.d.ts.map +1 -0
- package/resources/connect/index.js +13 -0
- package/resources/connect/index.js.map +1 -0
- package/resources/connect/index.mjs +6 -0
- package/resources/connect/index.mjs.map +1 -0
- package/resources/connect/proxies.d.mts +454 -0
- package/resources/connect/proxies.d.mts.map +1 -0
- package/resources/connect/proxies.d.ts +454 -0
- package/resources/connect/proxies.d.ts.map +1 -0
- package/resources/connect/proxies.js +57 -0
- package/resources/connect/proxies.js.map +1 -0
- package/resources/connect/proxies.mjs +53 -0
- package/resources/connect/proxies.mjs.map +1 -0
- package/resources/connect/users.d.mts +387 -0
- package/resources/connect/users.d.mts.map +1 -0
- package/resources/connect/users.d.ts +387 -0
- package/resources/connect/users.d.ts.map +1 -0
- package/resources/connect/users.js +54 -0
- package/resources/connect/users.js.map +1 -0
- package/resources/connect/users.mjs +50 -0
- package/resources/connect/users.mjs.map +1 -0
- package/resources/connect.d.mts +2 -0
- package/resources/connect.d.mts.map +1 -0
- package/resources/connect.d.ts +2 -0
- package/resources/connect.d.ts.map +1 -0
- package/resources/connect.js +6 -0
- package/resources/connect.js.map +1 -0
- package/resources/connect.mjs +3 -0
- package/resources/connect.mjs.map +1 -0
- package/resources/credentials/credentials.d.mts +3 -0
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +3 -0
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +3 -0
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +3 -0
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/index.d.mts.map +1 -1
- package/resources/credentials/index.d.ts.map +1 -1
- package/resources/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.mts +3 -0
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +3 -0
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +3 -0
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +3 -0
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +3 -0
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +3 -0
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/fields.js +3 -0
- package/resources/credentials/packages/credentials/fields.js.map +1 -1
- package/resources/credentials/packages/credentials/fields.mjs +3 -0
- package/resources/credentials/packages/credentials/fields.mjs.map +1 -1
- package/resources/credentials/packages/credentials/index.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/index.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials.mjs.map +1 -1
- package/resources/credentials/packages/index.d.mts.map +1 -1
- package/resources/credentials/packages/index.d.ts.map +1 -1
- package/resources/credentials/packages/index.mjs.map +1 -1
- package/resources/credentials/packages/packages.d.mts +3 -0
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +3 -0
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +3 -0
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +3 -0
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/credentials/packages.d.mts.map +1 -1
- package/resources/credentials/packages.d.ts.map +1 -1
- package/resources/credentials/packages.mjs.map +1 -1
- package/resources/credentials.d.mts.map +1 -1
- package/resources/credentials.d.ts.map +1 -1
- package/resources/credentials.mjs.map +1 -1
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +43 -22
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +43 -22
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +19 -19
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +19 -19
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +118 -27
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +118 -27
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +71 -18
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +72 -19
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/esim.d.mts +101 -0
- package/resources/devices/esim.d.mts.map +1 -0
- package/resources/devices/esim.d.ts +101 -0
- package/resources/devices/esim.d.ts.map +1 -0
- package/resources/devices/{time.js → esim.js} +23 -22
- package/resources/devices/esim.js.map +1 -0
- package/resources/devices/{time.mjs → esim.mjs} +21 -20
- package/resources/devices/esim.mjs.map +1 -0
- package/resources/devices/files.d.mts.map +1 -1
- package/resources/devices/files.d.ts.map +1 -1
- package/resources/devices/files.mjs.map +1 -1
- package/resources/devices/index.d.mts +8 -6
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +8 -6
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +7 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +5 -3
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +5 -0
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +5 -0
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.mjs.map +1 -1
- package/resources/devices/language.d.mts +43 -0
- package/resources/devices/language.d.mts.map +1 -0
- package/resources/devices/language.d.ts +43 -0
- package/resources/devices/language.d.ts.map +1 -0
- package/resources/devices/language.js +47 -0
- package/resources/devices/language.js.map +1 -0
- package/resources/devices/language.mjs +43 -0
- package/resources/devices/language.mjs.map +1 -0
- package/resources/devices/location.d.mts +3 -10
- package/resources/devices/location.d.mts.map +1 -1
- package/resources/devices/location.d.ts +3 -10
- package/resources/devices/location.d.ts.map +1 -1
- package/resources/devices/location.js.map +1 -1
- package/resources/devices/location.mjs.map +1 -1
- package/resources/devices/packages.d.mts.map +1 -1
- package/resources/devices/packages.d.ts.map +1 -1
- package/resources/devices/packages.mjs.map +1 -1
- package/resources/devices/profile.d.mts.map +1 -1
- package/resources/devices/profile.d.ts.map +1 -1
- package/resources/devices/profile.mjs.map +1 -1
- package/resources/devices/proxy.d.mts +35 -9
- package/resources/devices/proxy.d.mts.map +1 -1
- package/resources/devices/proxy.d.ts +35 -9
- package/resources/devices/proxy.d.ts.map +1 -1
- package/resources/devices/proxy.js +17 -0
- package/resources/devices/proxy.js.map +1 -1
- package/resources/devices/proxy.mjs +17 -0
- package/resources/devices/proxy.mjs.map +1 -1
- package/resources/devices/state.d.mts +38 -3
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +38 -3
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +17 -0
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +17 -0
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/tasks.d.mts +3 -0
- package/resources/devices/tasks.d.mts.map +1 -1
- package/resources/devices/tasks.d.ts +3 -0
- package/resources/devices/tasks.d.ts.map +1 -1
- package/resources/devices/tasks.js +3 -0
- package/resources/devices/tasks.js.map +1 -1
- package/resources/devices/tasks.mjs +3 -0
- package/resources/devices/tasks.mjs.map +1 -1
- package/resources/devices/timezone.d.mts +37 -0
- package/resources/devices/timezone.d.mts.map +1 -0
- package/resources/devices/timezone.d.ts +37 -0
- package/resources/devices/timezone.d.ts.map +1 -0
- package/resources/devices/timezone.js +47 -0
- package/resources/devices/timezone.js.map +1 -0
- package/resources/devices/timezone.mjs +43 -0
- package/resources/devices/timezone.mjs.map +1 -0
- package/resources/devices.d.mts.map +1 -1
- package/resources/devices.d.ts.map +1 -1
- package/resources/devices.mjs.map +1 -1
- package/resources/hooks.d.mts +35 -4
- package/resources/hooks.d.mts.map +1 -1
- package/resources/hooks.d.ts +35 -4
- package/resources/hooks.d.ts.map +1 -1
- package/resources/hooks.js +9 -3
- package/resources/hooks.js.map +1 -1
- package/resources/hooks.mjs +9 -3
- package/resources/hooks.mjs.map +1 -1
- package/resources/index.d.mts +8 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -2
- package/resources/index.mjs.map +1 -1
- package/resources/models.d.mts +3 -0
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +3 -0
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -0
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -0
- package/resources/models.mjs.map +1 -1
- package/resources/profiles.d.mts.map +1 -1
- package/resources/profiles.d.ts.map +1 -1
- package/resources/profiles.mjs.map +1 -1
- package/resources/proxies.d.mts +141 -21
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +141 -21
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +11 -2
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +11 -2
- package/resources/proxies.mjs.map +1 -1
- package/resources/shared.d.mts +28 -8
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +28 -8
- package/resources/shared.d.ts.map +1 -1
- package/resources/tasks/index.d.mts.map +1 -1
- package/resources/tasks/index.d.ts.map +1 -1
- package/resources/tasks/index.mjs.map +1 -1
- package/resources/tasks/screenshots.d.mts.map +1 -1
- package/resources/tasks/screenshots.d.ts.map +1 -1
- package/resources/tasks/screenshots.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +121 -9
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +121 -9
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/tasks/ui-states.d.mts.map +1 -1
- package/resources/tasks/ui-states.d.ts.map +1 -1
- package/resources/tasks/ui-states.mjs.map +1 -1
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +173 -0
- package/resources/webhooks/deliveries.d.mts.map +1 -0
- package/resources/webhooks/deliveries.d.ts +173 -0
- package/resources/webhooks/deliveries.d.ts.map +1 -0
- package/resources/webhooks/deliveries.js +62 -0
- package/resources/webhooks/deliveries.js.map +1 -0
- package/resources/webhooks/deliveries.mjs +58 -0
- package/resources/webhooks/deliveries.mjs.map +1 -0
- package/resources/webhooks/index.d.mts +3 -0
- package/resources/webhooks/index.d.mts.map +1 -0
- package/resources/webhooks/index.d.ts +3 -0
- package/resources/webhooks/index.d.ts.map +1 -0
- package/resources/webhooks/index.js +9 -0
- package/resources/webhooks/index.js.map +1 -0
- package/resources/webhooks/index.mjs +4 -0
- package/resources/webhooks/index.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +271 -0
- package/resources/webhooks/webhooks.d.mts.map +1 -0
- package/resources/webhooks/webhooks.d.ts +271 -0
- package/resources/webhooks/webhooks.d.ts.map +1 -0
- package/resources/webhooks/webhooks.js +122 -0
- package/resources/webhooks/webhooks.js.map +1 -0
- package/resources/webhooks/webhooks.mjs +117 -0
- package/resources/webhooks/webhooks.mjs.map +1 -0
- package/resources/webhooks.d.mts +2 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +2 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +6 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +3 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources/workflows/action-catalog.d.mts +40 -0
- package/resources/workflows/action-catalog.d.mts.map +1 -0
- package/resources/workflows/action-catalog.d.ts +40 -0
- package/resources/workflows/action-catalog.d.ts.map +1 -0
- package/resources/workflows/action-catalog.js +22 -0
- package/resources/workflows/action-catalog.js.map +1 -0
- package/resources/workflows/action-catalog.mjs +18 -0
- package/resources/workflows/action-catalog.mjs.map +1 -0
- package/resources/workflows/actions/actions.d.mts +86 -0
- package/resources/workflows/actions/actions.d.mts.map +1 -0
- package/resources/workflows/actions/actions.d.ts +86 -0
- package/resources/workflows/actions/actions.d.ts.map +1 -0
- package/resources/workflows/actions/actions.js +48 -0
- package/resources/workflows/actions/actions.js.map +1 -0
- package/resources/workflows/actions/actions.mjs +43 -0
- package/resources/workflows/actions/actions.mjs.map +1 -0
- package/resources/workflows/actions/index.d.mts +3 -0
- package/resources/workflows/actions/index.d.mts.map +1 -0
- package/resources/workflows/actions/index.d.ts +3 -0
- package/resources/workflows/actions/index.d.ts.map +1 -0
- package/resources/workflows/actions/index.js +9 -0
- package/resources/workflows/actions/index.js.map +1 -0
- package/resources/workflows/actions/index.mjs +4 -0
- package/resources/workflows/actions/index.mjs.map +1 -0
- package/resources/workflows/actions/services.d.mts +39 -0
- package/resources/workflows/actions/services.d.mts.map +1 -0
- package/resources/workflows/actions/services.d.ts +39 -0
- package/resources/workflows/actions/services.d.ts.map +1 -0
- package/resources/workflows/actions/services.js +22 -0
- package/resources/workflows/actions/services.js.map +1 -0
- package/resources/workflows/actions/services.mjs +18 -0
- package/resources/workflows/actions/services.mjs.map +1 -0
- package/resources/workflows/actions.d.mts +2 -0
- package/resources/workflows/actions.d.mts.map +1 -0
- package/resources/workflows/actions.d.ts +2 -0
- package/resources/workflows/actions.d.ts.map +1 -0
- package/resources/workflows/actions.js +6 -0
- package/resources/workflows/actions.js.map +1 -0
- package/resources/workflows/actions.mjs +3 -0
- package/resources/workflows/actions.mjs.map +1 -0
- package/resources/workflows/events/catalog.d.mts +55 -0
- package/resources/workflows/events/catalog.d.mts.map +1 -0
- package/resources/workflows/events/catalog.d.ts +55 -0
- package/resources/workflows/events/catalog.d.ts.map +1 -0
- package/resources/workflows/events/catalog.js +21 -0
- package/resources/workflows/events/catalog.js.map +1 -0
- package/resources/workflows/events/catalog.mjs +17 -0
- package/resources/workflows/events/catalog.mjs.map +1 -0
- package/resources/workflows/events/events.d.mts +123 -0
- package/resources/workflows/events/events.d.mts.map +1 -0
- package/resources/workflows/events/events.d.ts +123 -0
- package/resources/workflows/events/events.d.ts.map +1 -0
- package/resources/workflows/events/events.js +30 -0
- package/resources/workflows/events/events.js.map +1 -0
- package/resources/workflows/events/events.mjs +25 -0
- package/resources/workflows/events/events.mjs.map +1 -0
- package/resources/workflows/events/index.d.mts +3 -0
- package/resources/workflows/events/index.d.mts.map +1 -0
- package/resources/workflows/events/index.d.ts +3 -0
- package/resources/workflows/events/index.d.ts.map +1 -0
- package/resources/workflows/events/index.js +9 -0
- package/resources/workflows/events/index.js.map +1 -0
- package/resources/workflows/events/index.mjs +4 -0
- package/resources/workflows/events/index.mjs.map +1 -0
- package/resources/workflows/events.d.mts +2 -0
- package/resources/workflows/events.d.mts.map +1 -0
- package/resources/workflows/events.d.ts +2 -0
- package/resources/workflows/events.d.ts.map +1 -0
- package/resources/workflows/events.js +6 -0
- package/resources/workflows/events.js.map +1 -0
- package/resources/workflows/events.mjs +3 -0
- package/resources/workflows/events.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +83 -0
- package/resources/workflows/executions.d.mts.map +1 -0
- package/resources/workflows/executions.d.ts +83 -0
- package/resources/workflows/executions.d.ts.map +1 -0
- package/resources/workflows/executions.js +28 -0
- package/resources/workflows/executions.js.map +1 -0
- package/resources/workflows/executions.mjs +24 -0
- package/resources/workflows/executions.mjs.map +1 -0
- package/resources/workflows/flows/actions.d.mts +81 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -0
- package/resources/workflows/flows/actions.d.ts +81 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -0
- package/resources/workflows/flows/actions.js +35 -0
- package/resources/workflows/flows/actions.js.map +1 -0
- package/resources/workflows/flows/actions.mjs +31 -0
- package/resources/workflows/flows/actions.mjs.map +1 -0
- package/resources/workflows/flows/flows.d.mts +128 -0
- package/resources/workflows/flows/flows.d.mts.map +1 -0
- package/resources/workflows/flows/flows.d.ts +128 -0
- package/resources/workflows/flows/flows.d.ts.map +1 -0
- package/resources/workflows/flows/flows.js +61 -0
- package/resources/workflows/flows/flows.js.map +1 -0
- package/resources/workflows/flows/flows.mjs +56 -0
- package/resources/workflows/flows/flows.mjs.map +1 -0
- package/resources/workflows/flows/index.d.mts +3 -0
- package/resources/workflows/flows/index.d.mts.map +1 -0
- package/resources/workflows/flows/index.d.ts +3 -0
- package/resources/workflows/flows/index.d.ts.map +1 -0
- package/resources/workflows/flows/index.js +9 -0
- package/resources/workflows/flows/index.js.map +1 -0
- package/resources/workflows/flows/index.mjs +4 -0
- package/resources/workflows/flows/index.mjs.map +1 -0
- package/resources/workflows/flows.d.mts +2 -0
- package/resources/workflows/flows.d.mts.map +1 -0
- package/resources/workflows/flows.d.ts +2 -0
- package/resources/workflows/flows.d.ts.map +1 -0
- package/resources/workflows/flows.js +6 -0
- package/resources/workflows/flows.js.map +1 -0
- package/resources/workflows/flows.mjs +3 -0
- package/resources/workflows/flows.mjs.map +1 -0
- package/resources/workflows/index.d.mts +9 -0
- package/resources/workflows/index.d.mts.map +1 -0
- package/resources/workflows/index.d.ts +9 -0
- package/resources/workflows/index.d.ts.map +1 -0
- package/resources/workflows/index.js +21 -0
- package/resources/workflows/index.js.map +1 -0
- package/resources/workflows/index.mjs +10 -0
- package/resources/workflows/index.mjs.map +1 -0
- package/resources/workflows/timezones.d.mts +16 -0
- package/resources/workflows/timezones.d.mts.map +1 -0
- package/resources/workflows/timezones.d.ts +16 -0
- package/resources/workflows/timezones.d.ts.map +1 -0
- package/resources/workflows/timezones.js +15 -0
- package/resources/workflows/timezones.js.map +1 -0
- package/resources/workflows/timezones.mjs +11 -0
- package/resources/workflows/timezones.mjs.map +1 -0
- package/resources/workflows/triggers.d.mts +313 -0
- package/resources/workflows/triggers.d.mts.map +1 -0
- package/resources/workflows/triggers.d.ts +313 -0
- package/resources/workflows/triggers.d.ts.map +1 -0
- package/resources/workflows/triggers.js +62 -0
- package/resources/workflows/triggers.js.map +1 -0
- package/resources/workflows/triggers.mjs +58 -0
- package/resources/workflows/triggers.mjs.map +1 -0
- package/resources/workflows/workflows.d.mts +57 -0
- package/resources/workflows/workflows.d.mts.map +1 -0
- package/resources/workflows/workflows.d.ts +57 -0
- package/resources/workflows/workflows.d.ts.map +1 -0
- package/resources/workflows/workflows.js +41 -0
- package/resources/workflows/workflows.js.map +1 -0
- package/resources/workflows/workflows.mjs +36 -0
- package/resources/workflows/workflows.mjs.map +1 -0
- package/resources/workflows.d.mts +2 -0
- package/resources/workflows.d.mts.map +1 -0
- package/resources/workflows.d.ts +2 -0
- package/resources/workflows.d.ts.map +1 -0
- package/resources/workflows.js +6 -0
- package/resources/workflows.js.map +1 -0
- package/resources/workflows.mjs +3 -0
- package/resources/workflows.mjs.map +1 -0
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +176 -68
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/env.ts +2 -2
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/apps.ts +547 -30
- package/src/resources/carriers.ts +191 -7
- package/src/resources/connect/connect.ts +73 -0
- package/src/resources/connect/countries.ts +101 -0
- package/src/resources/connect/index.ts +27 -0
- package/src/resources/connect/proxies.ts +596 -0
- package/src/resources/connect/users.ts +512 -0
- package/src/resources/connect.ts +3 -0
- package/src/resources/credentials/credentials.ts +3 -0
- package/src/resources/credentials/packages/credentials/credentials.ts +3 -0
- package/src/resources/credentials/packages/credentials/fields.ts +3 -0
- package/src/resources/credentials/packages/packages.ts +3 -0
- package/src/resources/devices/apps.ts +67 -41
- package/src/resources/devices/devices.ts +268 -71
- package/src/resources/devices/esim.ts +208 -0
- package/src/resources/devices/index.ts +34 -15
- package/src/resources/devices/keyboard.ts +6 -0
- package/src/resources/devices/language.ts +91 -0
- package/src/resources/devices/location.ts +3 -17
- package/src/resources/devices/proxy.ts +61 -9
- package/src/resources/devices/state.ts +82 -3
- package/src/resources/devices/tasks.ts +3 -0
- package/src/resources/devices/timezone.ts +84 -0
- package/src/resources/hooks.ts +44 -3
- package/src/resources/index.ts +39 -3
- package/src/resources/models.ts +3 -0
- package/src/resources/proxies.ts +186 -21
- package/src/resources/shared.ts +42 -11
- package/src/resources/tasks/tasks.ts +184 -8
- package/src/resources/webhooks/deliveries.ts +284 -0
- package/src/resources/webhooks/index.ts +26 -0
- package/src/resources/webhooks/webhooks.ts +433 -0
- package/src/resources/webhooks.ts +3 -0
- package/src/resources/workflows/action-catalog.ts +71 -0
- package/src/resources/workflows/actions/actions.ts +155 -0
- package/src/resources/workflows/actions/index.ts +15 -0
- package/src/resources/workflows/actions/services.ts +61 -0
- package/src/resources/workflows/actions.ts +3 -0
- package/src/resources/workflows/events/catalog.ts +88 -0
- package/src/resources/workflows/events/events.ts +189 -0
- package/src/resources/workflows/events/index.ts +16 -0
- package/src/resources/workflows/events.ts +3 -0
- package/src/resources/workflows/executions.ts +149 -0
- package/src/resources/workflows/flows/actions.ts +141 -0
- package/src/resources/workflows/flows/flows.ts +250 -0
- package/src/resources/workflows/flows/index.ts +29 -0
- package/src/resources/workflows/flows.ts +3 -0
- package/src/resources/workflows/index.ts +68 -0
- package/src/resources/workflows/timezones.ts +22 -0
- package/src/resources/workflows/triggers.ts +454 -0
- package/src/resources/workflows/workflows.ts +218 -0
- package/src/resources/workflows.ts +3 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/agents.d.mts +0 -29
- package/resources/agents.d.mts.map +0 -1
- package/resources/agents.d.ts +0 -29
- package/resources/agents.d.ts.map +0 -1
- package/resources/agents.js +0 -18
- package/resources/agents.js.map +0 -1
- package/resources/agents.mjs +0 -14
- package/resources/agents.mjs.map +0 -1
- package/resources/devices/time.d.mts +0 -59
- package/resources/devices/time.d.mts.map +0 -1
- package/resources/devices/time.d.ts +0 -59
- package/resources/devices/time.d.ts.map +0 -1
- package/resources/devices/time.js.map +0 -1
- package/resources/devices/time.mjs.map +0 -1
- package/src/resources/agents.ts +0 -43
- package/src/resources/devices/time.ts +0 -147
|
@@ -19,9 +19,19 @@ import {
|
|
|
19
19
|
AppListParams,
|
|
20
20
|
AppListResponse,
|
|
21
21
|
AppStartParams,
|
|
22
|
-
|
|
22
|
+
AppStopParams,
|
|
23
23
|
Apps,
|
|
24
24
|
} from './apps';
|
|
25
|
+
import * as EsimAPI from './esim';
|
|
26
|
+
import {
|
|
27
|
+
Esim,
|
|
28
|
+
EsimActivateParams,
|
|
29
|
+
EsimActivateResponse,
|
|
30
|
+
EsimEnableParams,
|
|
31
|
+
EsimListParams,
|
|
32
|
+
EsimListResponse,
|
|
33
|
+
EsimRemoveParams,
|
|
34
|
+
} from './esim';
|
|
25
35
|
import * as FilesAPI from './files';
|
|
26
36
|
import {
|
|
27
37
|
FileDeleteParams,
|
|
@@ -35,59 +45,68 @@ import {
|
|
|
35
45
|
} from './files';
|
|
36
46
|
import * as KeyboardAPI from './keyboard';
|
|
37
47
|
import { Keyboard, KeyboardClearParams, KeyboardKeyParams, KeyboardWriteParams } from './keyboard';
|
|
48
|
+
import * as LanguageAPI from './language';
|
|
49
|
+
import { Language, LanguageGetParams, LanguageGetResponse, LanguageSetParams } from './language';
|
|
38
50
|
import * as LocationAPI from './location';
|
|
39
|
-
import { Location, LocationGetParams,
|
|
51
|
+
import { Location, LocationGetParams, LocationSetParams } from './location';
|
|
40
52
|
import * as PackagesAPI from './packages';
|
|
41
53
|
import { PackageListParams, PackageListResponse, Packages } from './packages';
|
|
42
54
|
import * as ProfileAPI from './profile';
|
|
43
55
|
import { Profile, ProfileUpdateParams } from './profile';
|
|
44
56
|
import * as ProxyAPI from './proxy';
|
|
45
|
-
import {
|
|
57
|
+
import {
|
|
58
|
+
Proxy as ProxyAPIProxy,
|
|
59
|
+
ProxyConnectParams,
|
|
60
|
+
ProxyDisconnectParams,
|
|
61
|
+
ProxyStatusParams,
|
|
62
|
+
ProxyStatusResponse,
|
|
63
|
+
} from './proxy';
|
|
46
64
|
import * as StateAPI from './state';
|
|
47
65
|
import {
|
|
66
|
+
A11YNode,
|
|
48
67
|
Rect,
|
|
49
68
|
State,
|
|
50
69
|
StateScreenshotParams,
|
|
51
70
|
StateScreenshotResponse,
|
|
71
|
+
StateTimeParams,
|
|
72
|
+
StateTimeResponse,
|
|
52
73
|
StateUiParams,
|
|
53
74
|
StateUiResponse,
|
|
54
75
|
} from './state';
|
|
55
76
|
import * as TasksAPI from './tasks';
|
|
56
77
|
import { TaskListParams, TaskListResponse, Tasks } from './tasks';
|
|
57
|
-
import * as
|
|
58
|
-
import {
|
|
59
|
-
Time,
|
|
60
|
-
TimeSetTimeParams,
|
|
61
|
-
TimeSetTimezoneParams,
|
|
62
|
-
TimeTimeParams,
|
|
63
|
-
TimeTimeResponse,
|
|
64
|
-
TimeTimezoneParams,
|
|
65
|
-
TimeTimezoneResponse,
|
|
66
|
-
} from './time';
|
|
78
|
+
import * as TimezoneAPI from './timezone';
|
|
79
|
+
import { Timezone, TimezoneGetParams, TimezoneGetResponse, TimezoneSetParams } from './timezone';
|
|
67
80
|
import { APIPromise } from '../../core/api-promise';
|
|
68
81
|
import { buildHeaders } from '../../internal/headers';
|
|
69
82
|
import { RequestOptions } from '../../internal/request-options';
|
|
70
83
|
import { path } from '../../internal/utils/path';
|
|
71
84
|
|
|
72
85
|
export class Devices extends APIResource {
|
|
73
|
-
time: TimeAPI.Time = new TimeAPI.Time(this._client);
|
|
74
|
-
profile: ProfileAPI.Profile = new ProfileAPI.Profile(this._client);
|
|
75
|
-
files: FilesAPI.Files = new FilesAPI.Files(this._client);
|
|
76
|
-
proxy: ProxyAPI.Proxy = new ProxyAPI.Proxy(this._client);
|
|
77
|
-
location: LocationAPI.Location = new LocationAPI.Location(this._client);
|
|
78
86
|
actions: ActionsAPI.Actions = new ActionsAPI.Actions(this._client);
|
|
79
|
-
state: StateAPI.State = new StateAPI.State(this._client);
|
|
80
87
|
apps: AppsAPI.Apps = new AppsAPI.Apps(this._client);
|
|
81
|
-
|
|
88
|
+
esim: EsimAPI.Esim = new EsimAPI.Esim(this._client);
|
|
89
|
+
files: FilesAPI.Files = new FilesAPI.Files(this._client);
|
|
82
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);
|
|
83
96
|
tasks: TasksAPI.Tasks = new TasksAPI.Tasks(this._client);
|
|
97
|
+
timezone: TimezoneAPI.Timezone = new TimezoneAPI.Timezone(this._client);
|
|
98
|
+
language: LanguageAPI.Language = new LanguageAPI.Language(this._client);
|
|
84
99
|
|
|
85
100
|
/**
|
|
86
101
|
* Provision a new device
|
|
87
102
|
*/
|
|
88
103
|
create(params: DeviceCreateParams, options?: RequestOptions): APIPromise<Device> {
|
|
89
|
-
const { deviceType, ...body } = params;
|
|
90
|
-
return this._client.post('/devices', {
|
|
104
|
+
const { query_country, deviceType, profileId, ...body } = params;
|
|
105
|
+
return this._client.post('/devices', {
|
|
106
|
+
query: { country: query_country, deviceType, profileId },
|
|
107
|
+
body,
|
|
108
|
+
...options,
|
|
109
|
+
});
|
|
91
110
|
}
|
|
92
111
|
|
|
93
112
|
/**
|
|
@@ -114,6 +133,55 @@ export class Devices extends APIResource {
|
|
|
114
133
|
return this._client.get('/devices/count', options);
|
|
115
134
|
}
|
|
116
135
|
|
|
136
|
+
/**
|
|
137
|
+
* Device fingerprint snapshot
|
|
138
|
+
*/
|
|
139
|
+
fingerprint(
|
|
140
|
+
deviceID: string,
|
|
141
|
+
params: DeviceFingerprintParams | null | undefined = {},
|
|
142
|
+
options?: RequestOptions,
|
|
143
|
+
): APIPromise<DeviceFingerprintResponse> {
|
|
144
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
145
|
+
return this._client.get(path`/devices/${deviceID}/fingerprint`, {
|
|
146
|
+
...options,
|
|
147
|
+
headers: buildHeaders([
|
|
148
|
+
{
|
|
149
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
150
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
151
|
+
: undefined),
|
|
152
|
+
},
|
|
153
|
+
options?.headers,
|
|
154
|
+
]),
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Reboot a device
|
|
160
|
+
*/
|
|
161
|
+
reboot(deviceID: string, options?: RequestOptions): APIPromise<void> {
|
|
162
|
+
return this._client.post(path`/devices/${deviceID}/reboot`, {
|
|
163
|
+
...options,
|
|
164
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Reset a device to a fresh state
|
|
170
|
+
*/
|
|
171
|
+
reset(deviceID: string, options?: RequestOptions): APIPromise<void> {
|
|
172
|
+
return this._client.post(path`/devices/${deviceID}/reset`, {
|
|
173
|
+
...options,
|
|
174
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Update device name
|
|
180
|
+
*/
|
|
181
|
+
setName(deviceID: string, body: DeviceSetNameParams, options?: RequestOptions): APIPromise<Device> {
|
|
182
|
+
return this._client.put(path`/devices/${deviceID}/name`, { body, ...options });
|
|
183
|
+
}
|
|
184
|
+
|
|
117
185
|
/**
|
|
118
186
|
* Terminate a device
|
|
119
187
|
*/
|
|
@@ -136,6 +204,8 @@ export class Devices extends APIResource {
|
|
|
136
204
|
export interface Device {
|
|
137
205
|
id: string;
|
|
138
206
|
|
|
207
|
+
activeTaskId: string;
|
|
208
|
+
|
|
139
209
|
assignedAt: string | null;
|
|
140
210
|
|
|
141
211
|
createdAt: string;
|
|
@@ -161,6 +231,8 @@ export interface Device {
|
|
|
161
231
|
*/
|
|
162
232
|
$schema?: string;
|
|
163
233
|
|
|
234
|
+
providerId?: string;
|
|
235
|
+
|
|
164
236
|
streamToken?: string;
|
|
165
237
|
|
|
166
238
|
userId?: string;
|
|
@@ -179,11 +251,68 @@ export interface DeviceListResponse {
|
|
|
179
251
|
|
|
180
252
|
export type DeviceCountResponse = { [key: string]: number };
|
|
181
253
|
|
|
254
|
+
export interface DeviceFingerprintResponse {
|
|
255
|
+
carrier: Shared.DeviceCarrier;
|
|
256
|
+
|
|
257
|
+
display: DeviceFingerprintResponse.Display;
|
|
258
|
+
|
|
259
|
+
identifiers: Shared.DeviceIdentifiers;
|
|
260
|
+
|
|
261
|
+
model: DeviceFingerprintResponse.Model;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* A URL to the JSON Schema for this object.
|
|
265
|
+
*/
|
|
266
|
+
$schema?: string;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export namespace DeviceFingerprintResponse {
|
|
270
|
+
export interface Display {
|
|
271
|
+
densityDpi?: number;
|
|
272
|
+
|
|
273
|
+
height?: number;
|
|
274
|
+
|
|
275
|
+
width?: number;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export interface Model {
|
|
279
|
+
aospVersion?: string;
|
|
280
|
+
|
|
281
|
+
brand?: string;
|
|
282
|
+
|
|
283
|
+
device?: string;
|
|
284
|
+
|
|
285
|
+
hardware?: string;
|
|
286
|
+
|
|
287
|
+
imageRepository?: string;
|
|
288
|
+
|
|
289
|
+
manufacturer?: string;
|
|
290
|
+
|
|
291
|
+
model?: string;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
182
295
|
export interface DeviceCreateParams {
|
|
296
|
+
/**
|
|
297
|
+
* Query param: ISO 3166-1 alpha-2 country code. If omitted the system picks the
|
|
298
|
+
* country with the most availability.
|
|
299
|
+
*/
|
|
300
|
+
query_country?: string;
|
|
301
|
+
|
|
183
302
|
/**
|
|
184
303
|
* Query param
|
|
185
304
|
*/
|
|
186
|
-
deviceType?: 'dedicated_physical_device' | 'dedicated_premium_device' | '
|
|
305
|
+
deviceType?: 'dedicated_physical_device' | 'dedicated_premium_device' | 'dedicated_ios_device';
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Query param: Profile ID to use as device spec
|
|
309
|
+
*/
|
|
310
|
+
profileId?: string;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Body param
|
|
314
|
+
*/
|
|
315
|
+
androidVersion?: number;
|
|
187
316
|
|
|
188
317
|
/**
|
|
189
318
|
* Body param
|
|
@@ -195,6 +324,11 @@ export interface DeviceCreateParams {
|
|
|
195
324
|
*/
|
|
196
325
|
carrier?: Shared.DeviceCarrier;
|
|
197
326
|
|
|
327
|
+
/**
|
|
328
|
+
* Body param
|
|
329
|
+
*/
|
|
330
|
+
body_country?: string;
|
|
331
|
+
|
|
198
332
|
/**
|
|
199
333
|
* Body param
|
|
200
334
|
*/
|
|
@@ -205,6 +339,16 @@ export interface DeviceCreateParams {
|
|
|
205
339
|
*/
|
|
206
340
|
identifiers?: Shared.DeviceIdentifiers;
|
|
207
341
|
|
|
342
|
+
/**
|
|
343
|
+
* Body param
|
|
344
|
+
*/
|
|
345
|
+
locale?: string;
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Body param
|
|
349
|
+
*/
|
|
350
|
+
location?: Shared.Location;
|
|
351
|
+
|
|
208
352
|
/**
|
|
209
353
|
* Body param
|
|
210
354
|
*/
|
|
@@ -213,12 +357,22 @@ export interface DeviceCreateParams {
|
|
|
213
357
|
/**
|
|
214
358
|
* Body param
|
|
215
359
|
*/
|
|
216
|
-
proxy?:
|
|
360
|
+
proxy?: DeviceCreateParams.Proxy;
|
|
217
361
|
|
|
218
362
|
/**
|
|
219
363
|
* Body param
|
|
220
364
|
*/
|
|
221
|
-
|
|
365
|
+
timezone?: string;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export namespace DeviceCreateParams {
|
|
369
|
+
export interface Proxy {
|
|
370
|
+
name?: string;
|
|
371
|
+
|
|
372
|
+
smartIp?: boolean;
|
|
373
|
+
|
|
374
|
+
socks5?: Shared.Socks5;
|
|
375
|
+
}
|
|
222
376
|
}
|
|
223
377
|
|
|
224
378
|
export interface DeviceListParams {
|
|
@@ -234,9 +388,29 @@ export interface DeviceListParams {
|
|
|
234
388
|
|
|
235
389
|
pageSize?: number;
|
|
236
390
|
|
|
237
|
-
|
|
391
|
+
providerId?: string;
|
|
392
|
+
|
|
393
|
+
state?: Array<
|
|
394
|
+
| 'creating'
|
|
395
|
+
| 'assigned'
|
|
396
|
+
| 'ready'
|
|
397
|
+
| 'rebooting'
|
|
398
|
+
| 'migrating'
|
|
399
|
+
| 'resetting'
|
|
400
|
+
| 'terminated'
|
|
401
|
+
| 'maintenance'
|
|
402
|
+
| 'unknown'
|
|
403
|
+
> | null;
|
|
404
|
+
|
|
405
|
+
type?: 'dedicated_physical_device' | 'dedicated_premium_device' | 'dedicated_ios_device';
|
|
406
|
+
}
|
|
238
407
|
|
|
239
|
-
|
|
408
|
+
export interface DeviceFingerprintParams {
|
|
409
|
+
'X-Device-Display-ID'?: number;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export interface DeviceSetNameParams {
|
|
413
|
+
name: string;
|
|
240
414
|
}
|
|
241
415
|
|
|
242
416
|
export interface DeviceTerminateParams {
|
|
@@ -245,39 +419,62 @@ export interface DeviceTerminateParams {
|
|
|
245
419
|
terminateAt?: string;
|
|
246
420
|
}
|
|
247
421
|
|
|
248
|
-
Devices.Time = Time;
|
|
249
|
-
Devices.Profile = Profile;
|
|
250
|
-
Devices.Files = Files;
|
|
251
|
-
Devices.Proxy = Proxy;
|
|
252
|
-
Devices.Location = Location;
|
|
253
422
|
Devices.Actions = Actions;
|
|
254
|
-
Devices.State = State;
|
|
255
423
|
Devices.Apps = Apps;
|
|
256
|
-
Devices.
|
|
424
|
+
Devices.Esim = Esim;
|
|
425
|
+
Devices.Files = Files;
|
|
257
426
|
Devices.Keyboard = Keyboard;
|
|
427
|
+
Devices.Location = Location;
|
|
428
|
+
Devices.Packages = Packages;
|
|
429
|
+
Devices.Profile = Profile;
|
|
430
|
+
Devices.Proxy = ProxyAPIProxy;
|
|
431
|
+
Devices.State = State;
|
|
258
432
|
Devices.Tasks = Tasks;
|
|
433
|
+
Devices.Timezone = Timezone;
|
|
434
|
+
Devices.Language = Language;
|
|
259
435
|
|
|
260
436
|
export declare namespace Devices {
|
|
261
437
|
export {
|
|
262
438
|
type Device as Device,
|
|
263
439
|
type DeviceListResponse as DeviceListResponse,
|
|
264
440
|
type DeviceCountResponse as DeviceCountResponse,
|
|
441
|
+
type DeviceFingerprintResponse as DeviceFingerprintResponse,
|
|
265
442
|
type DeviceCreateParams as DeviceCreateParams,
|
|
266
443
|
type DeviceListParams as DeviceListParams,
|
|
444
|
+
type DeviceFingerprintParams as DeviceFingerprintParams,
|
|
445
|
+
type DeviceSetNameParams as DeviceSetNameParams,
|
|
267
446
|
type DeviceTerminateParams as DeviceTerminateParams,
|
|
268
447
|
};
|
|
269
448
|
|
|
270
449
|
export {
|
|
271
|
-
|
|
272
|
-
type
|
|
273
|
-
type
|
|
274
|
-
type
|
|
275
|
-
type
|
|
276
|
-
type
|
|
277
|
-
type
|
|
450
|
+
Actions as Actions,
|
|
451
|
+
type ActionOverlayVisibleResponse as ActionOverlayVisibleResponse,
|
|
452
|
+
type ActionGlobalParams as ActionGlobalParams,
|
|
453
|
+
type ActionOverlayVisibleParams as ActionOverlayVisibleParams,
|
|
454
|
+
type ActionSetOverlayVisibleParams as ActionSetOverlayVisibleParams,
|
|
455
|
+
type ActionSwipeParams as ActionSwipeParams,
|
|
456
|
+
type ActionTapParams as ActionTapParams,
|
|
278
457
|
};
|
|
279
458
|
|
|
280
|
-
export {
|
|
459
|
+
export {
|
|
460
|
+
Apps as Apps,
|
|
461
|
+
type AppListResponse as AppListResponse,
|
|
462
|
+
type AppListParams as AppListParams,
|
|
463
|
+
type AppDeleteParams as AppDeleteParams,
|
|
464
|
+
type AppInstallParams as AppInstallParams,
|
|
465
|
+
type AppStartParams as AppStartParams,
|
|
466
|
+
type AppStopParams as AppStopParams,
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
export {
|
|
470
|
+
Esim as Esim,
|
|
471
|
+
type EsimListResponse as EsimListResponse,
|
|
472
|
+
type EsimActivateResponse as EsimActivateResponse,
|
|
473
|
+
type EsimListParams as EsimListParams,
|
|
474
|
+
type EsimActivateParams as EsimActivateParams,
|
|
475
|
+
type EsimEnableParams as EsimEnableParams,
|
|
476
|
+
type EsimRemoveParams as EsimRemoveParams,
|
|
477
|
+
};
|
|
281
478
|
|
|
282
479
|
export {
|
|
283
480
|
Files as Files,
|
|
@@ -291,59 +488,59 @@ export declare namespace Devices {
|
|
|
291
488
|
};
|
|
292
489
|
|
|
293
490
|
export {
|
|
294
|
-
|
|
295
|
-
type
|
|
296
|
-
type
|
|
491
|
+
Keyboard as Keyboard,
|
|
492
|
+
type KeyboardClearParams as KeyboardClearParams,
|
|
493
|
+
type KeyboardKeyParams as KeyboardKeyParams,
|
|
494
|
+
type KeyboardWriteParams as KeyboardWriteParams,
|
|
297
495
|
};
|
|
298
496
|
|
|
299
497
|
export {
|
|
300
498
|
Location as Location,
|
|
301
|
-
type LocationGetResponse as LocationGetResponse,
|
|
302
499
|
type LocationGetParams as LocationGetParams,
|
|
303
500
|
type LocationSetParams as LocationSetParams,
|
|
304
501
|
};
|
|
305
502
|
|
|
306
503
|
export {
|
|
307
|
-
|
|
308
|
-
type
|
|
309
|
-
type
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
504
|
+
Packages as Packages,
|
|
505
|
+
type PackageListResponse as PackageListResponse,
|
|
506
|
+
type PackageListParams as PackageListParams,
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
export { Profile as Profile, type ProfileUpdateParams as ProfileUpdateParams };
|
|
510
|
+
|
|
511
|
+
export {
|
|
512
|
+
ProxyAPIProxy as Proxy,
|
|
513
|
+
type ProxyStatusResponse as ProxyStatusResponse,
|
|
514
|
+
type ProxyConnectParams as ProxyConnectParams,
|
|
515
|
+
type ProxyDisconnectParams as ProxyDisconnectParams,
|
|
516
|
+
type ProxyStatusParams as ProxyStatusParams,
|
|
314
517
|
};
|
|
315
518
|
|
|
316
519
|
export {
|
|
317
520
|
State as State,
|
|
521
|
+
type A11YNode as A11YNode,
|
|
318
522
|
type Rect as Rect,
|
|
319
523
|
type StateScreenshotResponse as StateScreenshotResponse,
|
|
524
|
+
type StateTimeResponse as StateTimeResponse,
|
|
320
525
|
type StateUiResponse as StateUiResponse,
|
|
321
526
|
type StateScreenshotParams as StateScreenshotParams,
|
|
527
|
+
type StateTimeParams as StateTimeParams,
|
|
322
528
|
type StateUiParams as StateUiParams,
|
|
323
529
|
};
|
|
324
530
|
|
|
325
|
-
export {
|
|
326
|
-
Apps as Apps,
|
|
327
|
-
type AppListResponse as AppListResponse,
|
|
328
|
-
type AppUpdateParams as AppUpdateParams,
|
|
329
|
-
type AppListParams as AppListParams,
|
|
330
|
-
type AppDeleteParams as AppDeleteParams,
|
|
331
|
-
type AppInstallParams as AppInstallParams,
|
|
332
|
-
type AppStartParams as AppStartParams,
|
|
333
|
-
};
|
|
531
|
+
export { Tasks as Tasks, type TaskListResponse as TaskListResponse, type TaskListParams as TaskListParams };
|
|
334
532
|
|
|
335
533
|
export {
|
|
336
|
-
|
|
337
|
-
type
|
|
338
|
-
type
|
|
534
|
+
Timezone as Timezone,
|
|
535
|
+
type TimezoneGetResponse as TimezoneGetResponse,
|
|
536
|
+
type TimezoneGetParams as TimezoneGetParams,
|
|
537
|
+
type TimezoneSetParams as TimezoneSetParams,
|
|
339
538
|
};
|
|
340
539
|
|
|
341
540
|
export {
|
|
342
|
-
|
|
343
|
-
type
|
|
344
|
-
type
|
|
345
|
-
type
|
|
541
|
+
Language as Language,
|
|
542
|
+
type LanguageGetResponse as LanguageGetResponse,
|
|
543
|
+
type LanguageGetParams as LanguageGetParams,
|
|
544
|
+
type LanguageSetParams as LanguageSetParams,
|
|
346
545
|
};
|
|
347
|
-
|
|
348
|
-
export { Tasks as Tasks, type TaskListResponse as TaskListResponse, type TaskListParams as TaskListParams };
|
|
349
546
|
}
|
|
@@ -0,0 +1,208 @@
|
|
|
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 Esim extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* List eSIM subscriptions
|
|
12
|
+
*/
|
|
13
|
+
list(
|
|
14
|
+
deviceID: string,
|
|
15
|
+
params: EsimListParams | null | undefined = {},
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): APIPromise<EsimListResponse | null> {
|
|
18
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
19
|
+
return this._client.get(path`/devices/${deviceID}/esim`, {
|
|
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
|
+
* Configure eSIM (download profile and/or enable subscription)
|
|
34
|
+
*/
|
|
35
|
+
activate(
|
|
36
|
+
deviceID: string,
|
|
37
|
+
params: EsimActivateParams,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<EsimActivateResponse> {
|
|
40
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
41
|
+
return this._client.post(path`/devices/${deviceID}/esim`, {
|
|
42
|
+
body,
|
|
43
|
+
...options,
|
|
44
|
+
headers: buildHeaders([
|
|
45
|
+
{
|
|
46
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
47
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
48
|
+
: undefined),
|
|
49
|
+
},
|
|
50
|
+
options?.headers,
|
|
51
|
+
]),
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Enable an eSIM subscription
|
|
57
|
+
*/
|
|
58
|
+
enable(deviceID: string, params: EsimEnableParams, options?: RequestOptions): APIPromise<void> {
|
|
59
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
60
|
+
return this._client.put(path`/devices/${deviceID}/esim`, {
|
|
61
|
+
body,
|
|
62
|
+
...options,
|
|
63
|
+
headers: buildHeaders([
|
|
64
|
+
{
|
|
65
|
+
Accept: '*/*',
|
|
66
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
67
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
68
|
+
: undefined),
|
|
69
|
+
},
|
|
70
|
+
options?.headers,
|
|
71
|
+
]),
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Delete eSIM subscription
|
|
77
|
+
*/
|
|
78
|
+
remove(deviceID: string, params: EsimRemoveParams, options?: RequestOptions): APIPromise<void> {
|
|
79
|
+
const { subId, 'X-Device-Display-ID': xDeviceDisplayID } = params;
|
|
80
|
+
return this._client.delete(path`/devices/${deviceID}/esim`, {
|
|
81
|
+
query: { subId },
|
|
82
|
+
...options,
|
|
83
|
+
headers: buildHeaders([
|
|
84
|
+
{
|
|
85
|
+
Accept: '*/*',
|
|
86
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
87
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
88
|
+
: undefined),
|
|
89
|
+
},
|
|
90
|
+
options?.headers,
|
|
91
|
+
]),
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type EsimListResponse = Array<EsimListResponse.EsimListResponseItem>;
|
|
97
|
+
|
|
98
|
+
export namespace EsimListResponse {
|
|
99
|
+
export interface EsimListResponseItem {
|
|
100
|
+
carrier: string;
|
|
101
|
+
|
|
102
|
+
displayName: string;
|
|
103
|
+
|
|
104
|
+
iccid: string;
|
|
105
|
+
|
|
106
|
+
isEmbedded: boolean;
|
|
107
|
+
|
|
108
|
+
slot: number;
|
|
109
|
+
|
|
110
|
+
subId: number;
|
|
111
|
+
|
|
112
|
+
type: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* A URL to the JSON Schema for this object.
|
|
116
|
+
*/
|
|
117
|
+
$schema?: string;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export interface EsimActivateResponse {
|
|
122
|
+
carrier: string;
|
|
123
|
+
|
|
124
|
+
displayName: string;
|
|
125
|
+
|
|
126
|
+
iccid: string;
|
|
127
|
+
|
|
128
|
+
isEmbedded: boolean;
|
|
129
|
+
|
|
130
|
+
slot: number;
|
|
131
|
+
|
|
132
|
+
subId: number;
|
|
133
|
+
|
|
134
|
+
type: string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* A URL to the JSON Schema for this object.
|
|
138
|
+
*/
|
|
139
|
+
$schema?: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface EsimListParams {
|
|
143
|
+
'X-Device-Display-ID'?: number;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export interface EsimActivateParams {
|
|
147
|
+
/**
|
|
148
|
+
* Body param
|
|
149
|
+
*/
|
|
150
|
+
enable: boolean;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Body param
|
|
154
|
+
*/
|
|
155
|
+
smDpAddr: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Body param: Optional carrier-issued confirmation code (the 4th LPA segment).
|
|
159
|
+
* Required only for plans whose SM-DP+ challenges the device for one. Requires
|
|
160
|
+
* matchingId — the LPA spec only interprets segment 4 when segment 3 is present.
|
|
161
|
+
*/
|
|
162
|
+
confirmationCode?: string;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Body param
|
|
166
|
+
*/
|
|
167
|
+
matchingId?: string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Header param
|
|
171
|
+
*/
|
|
172
|
+
'X-Device-Display-ID'?: number;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface EsimEnableParams {
|
|
176
|
+
/**
|
|
177
|
+
* Body param
|
|
178
|
+
*/
|
|
179
|
+
subId: number;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Header param
|
|
183
|
+
*/
|
|
184
|
+
'X-Device-Display-ID'?: number;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export interface EsimRemoveParams {
|
|
188
|
+
/**
|
|
189
|
+
* Query param
|
|
190
|
+
*/
|
|
191
|
+
subId: number;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Header param
|
|
195
|
+
*/
|
|
196
|
+
'X-Device-Display-ID'?: number;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export declare namespace Esim {
|
|
200
|
+
export {
|
|
201
|
+
type EsimListResponse as EsimListResponse,
|
|
202
|
+
type EsimActivateResponse as EsimActivateResponse,
|
|
203
|
+
type EsimListParams as EsimListParams,
|
|
204
|
+
type EsimActivateParams as EsimActivateParams,
|
|
205
|
+
type EsimEnableParams as EsimEnableParams,
|
|
206
|
+
type EsimRemoveParams as EsimRemoveParams,
|
|
207
|
+
};
|
|
208
|
+
}
|