@mobilerun/sdk 4.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 +272 -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 +41 -24
- package/client.d.mts.map +1 -1
- package/client.d.ts +41 -24
- 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/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 +101 -36
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +101 -36
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +63 -20
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +63 -20
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/esim.d.mts +8 -2
- package/resources/devices/esim.d.mts.map +1 -1
- package/resources/devices/esim.d.ts +8 -2
- package/resources/devices/esim.d.ts.map +1 -1
- package/resources/devices/esim.mjs.map +1 -1
- 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 +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 +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 +2 -7
- package/resources/devices/proxy.d.mts.map +1 -1
- package/resources/devices/proxy.d.ts +2 -7
- package/resources/devices/proxy.d.ts.map +1 -1
- 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/{time.js → timezone.js} +13 -30
- package/resources/devices/timezone.js.map +1 -0
- package/resources/devices/{time.mjs → timezone.mjs} +11 -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 +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 +90 -1
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +90 -1
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +9 -0
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +9 -0
- package/resources/proxies.mjs.map +1 -1
- package/resources/shared.d.mts +21 -10
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +21 -10
- 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 +66 -5
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +66 -5
- 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 +173 -68
- package/src/internal/types.ts +6 -8
- 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 +225 -103
- package/src/resources/devices/esim.ts +9 -2
- package/src/resources/devices/index.ts +17 -13
- 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 +2 -8
- package/src/resources/devices/state.ts +82 -3
- package/src/resources/devices/tasks.ts +3 -0
- package/src/resources/devices/{time.ts → timezone.ts} +22 -52
- package/src/resources/hooks.ts +44 -3
- package/src/resources/index.ts +37 -3
- package/src/resources/models.ts +3 -0
- package/src/resources/proxies.ts +113 -0
- package/src/resources/shared.ts +31 -12
- package/src/resources/tasks/tasks.ts +103 -5
- 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 -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,49 +63,50 @@ 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
|
* Provision a new device
|
|
103
102
|
*/
|
|
104
103
|
create(params: DeviceCreateParams, options?: RequestOptions): APIPromise<Device> {
|
|
105
|
-
const { deviceType, ...body } = params;
|
|
106
|
-
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
|
+
});
|
|
107
110
|
}
|
|
108
111
|
|
|
109
112
|
/**
|
|
@@ -130,6 +133,48 @@ export class Devices extends APIResource {
|
|
|
130
133
|
return this._client.get('/devices/count', options);
|
|
131
134
|
}
|
|
132
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
|
+
|
|
133
178
|
/**
|
|
134
179
|
* Update device name
|
|
135
180
|
*/
|
|
@@ -206,15 +251,68 @@ export interface DeviceListResponse {
|
|
|
206
251
|
|
|
207
252
|
export type DeviceCountResponse = { [key: string]: number };
|
|
208
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
|
+
|
|
209
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
|
+
|
|
210
302
|
/**
|
|
211
303
|
* Query param
|
|
212
304
|
*/
|
|
213
|
-
deviceType?:
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
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;
|
|
218
316
|
|
|
219
317
|
/**
|
|
220
318
|
* Body param
|
|
@@ -226,6 +324,11 @@ export interface DeviceCreateParams {
|
|
|
226
324
|
*/
|
|
227
325
|
carrier?: Shared.DeviceCarrier;
|
|
228
326
|
|
|
327
|
+
/**
|
|
328
|
+
* Body param
|
|
329
|
+
*/
|
|
330
|
+
body_country?: string;
|
|
331
|
+
|
|
229
332
|
/**
|
|
230
333
|
* Body param
|
|
231
334
|
*/
|
|
@@ -236,6 +339,16 @@ export interface DeviceCreateParams {
|
|
|
236
339
|
*/
|
|
237
340
|
identifiers?: Shared.DeviceIdentifiers;
|
|
238
341
|
|
|
342
|
+
/**
|
|
343
|
+
* Body param
|
|
344
|
+
*/
|
|
345
|
+
locale?: string;
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Body param
|
|
349
|
+
*/
|
|
350
|
+
location?: Shared.Location;
|
|
351
|
+
|
|
239
352
|
/**
|
|
240
353
|
* Body param
|
|
241
354
|
*/
|
|
@@ -245,6 +358,11 @@ export interface DeviceCreateParams {
|
|
|
245
358
|
* Body param
|
|
246
359
|
*/
|
|
247
360
|
proxy?: DeviceCreateParams.Proxy;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Body param
|
|
364
|
+
*/
|
|
365
|
+
timezone?: string;
|
|
248
366
|
}
|
|
249
367
|
|
|
250
368
|
export namespace DeviceCreateParams {
|
|
@@ -253,21 +371,7 @@ export namespace DeviceCreateParams {
|
|
|
253
371
|
|
|
254
372
|
smartIp?: boolean;
|
|
255
373
|
|
|
256
|
-
socks5?:
|
|
257
|
-
|
|
258
|
-
wireguard?: string;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
export namespace Proxy {
|
|
262
|
-
export interface Socks5 {
|
|
263
|
-
host: string;
|
|
264
|
-
|
|
265
|
-
password: string;
|
|
266
|
-
|
|
267
|
-
port: number;
|
|
268
|
-
|
|
269
|
-
user: string;
|
|
270
|
-
}
|
|
374
|
+
socks5?: Shared.Socks5;
|
|
271
375
|
}
|
|
272
376
|
}
|
|
273
377
|
|
|
@@ -287,14 +391,22 @@ export interface DeviceListParams {
|
|
|
287
391
|
providerId?: string;
|
|
288
392
|
|
|
289
393
|
state?: Array<
|
|
290
|
-
|
|
394
|
+
| 'creating'
|
|
395
|
+
| 'assigned'
|
|
396
|
+
| 'ready'
|
|
397
|
+
| 'rebooting'
|
|
398
|
+
| 'migrating'
|
|
399
|
+
| 'resetting'
|
|
400
|
+
| 'terminated'
|
|
401
|
+
| 'maintenance'
|
|
402
|
+
| 'unknown'
|
|
291
403
|
> | null;
|
|
292
404
|
|
|
293
|
-
type?:
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
405
|
+
type?: 'dedicated_physical_device' | 'dedicated_premium_device' | 'dedicated_ios_device';
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
export interface DeviceFingerprintParams {
|
|
409
|
+
'X-Device-Display-ID'?: number;
|
|
298
410
|
}
|
|
299
411
|
|
|
300
412
|
export interface DeviceSetNameParams {
|
|
@@ -307,40 +419,62 @@ export interface DeviceTerminateParams {
|
|
|
307
419
|
terminateAt?: string;
|
|
308
420
|
}
|
|
309
421
|
|
|
310
|
-
Devices.Time = Time;
|
|
311
|
-
Devices.Profile = Profile;
|
|
312
|
-
Devices.Files = Files;
|
|
313
|
-
Devices.Proxy = ProxyAPIProxy;
|
|
314
|
-
Devices.Location = Location;
|
|
315
422
|
Devices.Actions = Actions;
|
|
316
|
-
Devices.State = State;
|
|
317
423
|
Devices.Apps = Apps;
|
|
318
|
-
Devices.
|
|
424
|
+
Devices.Esim = Esim;
|
|
425
|
+
Devices.Files = Files;
|
|
319
426
|
Devices.Keyboard = Keyboard;
|
|
427
|
+
Devices.Location = Location;
|
|
428
|
+
Devices.Packages = Packages;
|
|
429
|
+
Devices.Profile = Profile;
|
|
430
|
+
Devices.Proxy = ProxyAPIProxy;
|
|
431
|
+
Devices.State = State;
|
|
320
432
|
Devices.Tasks = Tasks;
|
|
321
|
-
Devices.
|
|
433
|
+
Devices.Timezone = Timezone;
|
|
434
|
+
Devices.Language = Language;
|
|
322
435
|
|
|
323
436
|
export declare namespace Devices {
|
|
324
437
|
export {
|
|
325
438
|
type Device as Device,
|
|
326
439
|
type DeviceListResponse as DeviceListResponse,
|
|
327
440
|
type DeviceCountResponse as DeviceCountResponse,
|
|
441
|
+
type DeviceFingerprintResponse as DeviceFingerprintResponse,
|
|
328
442
|
type DeviceCreateParams as DeviceCreateParams,
|
|
329
443
|
type DeviceListParams as DeviceListParams,
|
|
444
|
+
type DeviceFingerprintParams as DeviceFingerprintParams,
|
|
330
445
|
type DeviceSetNameParams as DeviceSetNameParams,
|
|
331
446
|
type DeviceTerminateParams as DeviceTerminateParams,
|
|
332
447
|
};
|
|
333
448
|
|
|
334
449
|
export {
|
|
335
|
-
|
|
336
|
-
type
|
|
337
|
-
type
|
|
338
|
-
type
|
|
339
|
-
type
|
|
340
|
-
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,
|
|
341
457
|
};
|
|
342
458
|
|
|
343
|
-
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
|
+
};
|
|
344
478
|
|
|
345
479
|
export {
|
|
346
480
|
Files as Files,
|
|
@@ -354,71 +488,59 @@ export declare namespace Devices {
|
|
|
354
488
|
};
|
|
355
489
|
|
|
356
490
|
export {
|
|
357
|
-
|
|
358
|
-
type
|
|
359
|
-
type
|
|
360
|
-
type
|
|
361
|
-
type ProxyStatusParams as ProxyStatusParams,
|
|
491
|
+
Keyboard as Keyboard,
|
|
492
|
+
type KeyboardClearParams as KeyboardClearParams,
|
|
493
|
+
type KeyboardKeyParams as KeyboardKeyParams,
|
|
494
|
+
type KeyboardWriteParams as KeyboardWriteParams,
|
|
362
495
|
};
|
|
363
496
|
|
|
364
497
|
export {
|
|
365
498
|
Location as Location,
|
|
366
|
-
type LocationGetResponse as LocationGetResponse,
|
|
367
499
|
type LocationGetParams as LocationGetParams,
|
|
368
500
|
type LocationSetParams as LocationSetParams,
|
|
369
501
|
};
|
|
370
502
|
|
|
371
503
|
export {
|
|
372
|
-
|
|
373
|
-
type
|
|
374
|
-
type
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
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,
|
|
379
517
|
};
|
|
380
518
|
|
|
381
519
|
export {
|
|
382
520
|
State as State,
|
|
521
|
+
type A11YNode as A11YNode,
|
|
383
522
|
type Rect as Rect,
|
|
384
523
|
type StateScreenshotResponse as StateScreenshotResponse,
|
|
524
|
+
type StateTimeResponse as StateTimeResponse,
|
|
385
525
|
type StateUiResponse as StateUiResponse,
|
|
386
526
|
type StateScreenshotParams as StateScreenshotParams,
|
|
527
|
+
type StateTimeParams as StateTimeParams,
|
|
387
528
|
type StateUiParams as StateUiParams,
|
|
388
529
|
};
|
|
389
530
|
|
|
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
|
-
};
|
|
531
|
+
export { Tasks as Tasks, type TaskListResponse as TaskListResponse, type TaskListParams as TaskListParams };
|
|
405
532
|
|
|
406
533
|
export {
|
|
407
|
-
|
|
408
|
-
type
|
|
409
|
-
type
|
|
410
|
-
type
|
|
534
|
+
Timezone as Timezone,
|
|
535
|
+
type TimezoneGetResponse as TimezoneGetResponse,
|
|
536
|
+
type TimezoneGetParams as TimezoneGetParams,
|
|
537
|
+
type TimezoneSetParams as TimezoneSetParams,
|
|
411
538
|
};
|
|
412
539
|
|
|
413
|
-
export { Tasks as Tasks, type TaskListResponse as TaskListResponse, type TaskListParams as TaskListParams };
|
|
414
|
-
|
|
415
540
|
export {
|
|
416
|
-
|
|
417
|
-
type
|
|
418
|
-
type
|
|
419
|
-
type
|
|
420
|
-
type EsimActivateParams as EsimActivateParams,
|
|
421
|
-
type EsimEnableParams as EsimEnableParams,
|
|
422
|
-
type EsimRemoveParams as EsimRemoveParams,
|
|
541
|
+
Language as Language,
|
|
542
|
+
type LanguageGetResponse as LanguageGetResponse,
|
|
543
|
+
type LanguageGetParams as LanguageGetParams,
|
|
544
|
+
type LanguageSetParams as LanguageSetParams,
|
|
423
545
|
};
|
|
424
546
|
}
|
|
@@ -152,12 +152,19 @@ export interface EsimActivateParams {
|
|
|
152
152
|
/**
|
|
153
153
|
* Body param
|
|
154
154
|
*/
|
|
155
|
-
|
|
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;
|
|
156
163
|
|
|
157
164
|
/**
|
|
158
165
|
* Body param
|
|
159
166
|
*/
|
|
160
|
-
|
|
167
|
+
matchingId?: string;
|
|
161
168
|
|
|
162
169
|
/**
|
|
163
170
|
* Header param
|
|
@@ -12,19 +12,21 @@ export {
|
|
|
12
12
|
export {
|
|
13
13
|
Apps,
|
|
14
14
|
type AppListResponse,
|
|
15
|
-
type AppUpdateParams,
|
|
16
15
|
type AppListParams,
|
|
17
16
|
type AppDeleteParams,
|
|
18
17
|
type AppInstallParams,
|
|
19
18
|
type AppStartParams,
|
|
19
|
+
type AppStopParams,
|
|
20
20
|
} from './apps';
|
|
21
21
|
export {
|
|
22
22
|
Devices,
|
|
23
23
|
type Device,
|
|
24
24
|
type DeviceListResponse,
|
|
25
25
|
type DeviceCountResponse,
|
|
26
|
+
type DeviceFingerprintResponse,
|
|
26
27
|
type DeviceCreateParams,
|
|
27
28
|
type DeviceListParams,
|
|
29
|
+
type DeviceFingerprintParams,
|
|
28
30
|
type DeviceSetNameParams,
|
|
29
31
|
type DeviceTerminateParams,
|
|
30
32
|
} from './devices';
|
|
@@ -54,11 +56,12 @@ export {
|
|
|
54
56
|
type KeyboardWriteParams,
|
|
55
57
|
} from './keyboard';
|
|
56
58
|
export {
|
|
57
|
-
|
|
58
|
-
type
|
|
59
|
-
type
|
|
60
|
-
type
|
|
61
|
-
} from './
|
|
59
|
+
Language,
|
|
60
|
+
type LanguageGetResponse,
|
|
61
|
+
type LanguageGetParams,
|
|
62
|
+
type LanguageSetParams,
|
|
63
|
+
} from './language';
|
|
64
|
+
export { Location, type LocationGetParams, type LocationSetParams } from './location';
|
|
62
65
|
export { Packages, type PackageListResponse, type PackageListParams } from './packages';
|
|
63
66
|
export { Profile, type ProfileUpdateParams } from './profile';
|
|
64
67
|
export {
|
|
@@ -70,18 +73,19 @@ export {
|
|
|
70
73
|
} from './proxy';
|
|
71
74
|
export {
|
|
72
75
|
State,
|
|
76
|
+
type A11YNode,
|
|
73
77
|
type Rect,
|
|
74
78
|
type StateScreenshotResponse,
|
|
79
|
+
type StateTimeResponse,
|
|
75
80
|
type StateUiResponse,
|
|
76
81
|
type StateScreenshotParams,
|
|
82
|
+
type StateTimeParams,
|
|
77
83
|
type StateUiParams,
|
|
78
84
|
} from './state';
|
|
79
85
|
export { Tasks, type TaskListResponse, type TaskListParams } from './tasks';
|
|
80
86
|
export {
|
|
81
|
-
|
|
82
|
-
type
|
|
83
|
-
type
|
|
84
|
-
type
|
|
85
|
-
|
|
86
|
-
type TimeTimezoneParams,
|
|
87
|
-
} from './time';
|
|
87
|
+
Timezone,
|
|
88
|
+
type TimezoneGetResponse,
|
|
89
|
+
type TimezoneGetParams,
|
|
90
|
+
type TimezoneSetParams,
|
|
91
|
+
} from './timezone';
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
import { path } from '../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Language extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get device language/locale
|
|
12
|
+
*/
|
|
13
|
+
get(
|
|
14
|
+
deviceID: string,
|
|
15
|
+
params: LanguageGetParams | null | undefined = {},
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): APIPromise<LanguageGetResponse> {
|
|
18
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
19
|
+
return this._client.get(path`/devices/${deviceID}/language`, {
|
|
20
|
+
...options,
|
|
21
|
+
headers: buildHeaders([
|
|
22
|
+
{
|
|
23
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
24
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
25
|
+
: undefined),
|
|
26
|
+
},
|
|
27
|
+
options?.headers,
|
|
28
|
+
]),
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Set device language/locale
|
|
34
|
+
*/
|
|
35
|
+
set(deviceID: string, params: LanguageSetParams, options?: RequestOptions): APIPromise<void> {
|
|
36
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
37
|
+
return this._client.post(path`/devices/${deviceID}/language`, {
|
|
38
|
+
body,
|
|
39
|
+
...options,
|
|
40
|
+
headers: buildHeaders([
|
|
41
|
+
{
|
|
42
|
+
Accept: '*/*',
|
|
43
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
44
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
45
|
+
: undefined),
|
|
46
|
+
},
|
|
47
|
+
options?.headers,
|
|
48
|
+
]),
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface LanguageGetResponse {
|
|
54
|
+
locale: string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* A URL to the JSON Schema for this object.
|
|
58
|
+
*/
|
|
59
|
+
$schema?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface LanguageGetParams {
|
|
63
|
+
'X-Device-Display-ID'?: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface LanguageSetParams {
|
|
67
|
+
/**
|
|
68
|
+
* Body param: BCP-47 locale: a 2–3 letter language tag, optionally followed by a
|
|
69
|
+
* 4-letter script and/or a 2-letter region (e.g. en-US, de-DE, ja-JP, zh-Hans-CN).
|
|
70
|
+
*/
|
|
71
|
+
locale: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Body param: Restart zygote so the locale change takes full effect immediately.
|
|
75
|
+
* Without it, the locale is written but won't fully apply until the next reboot.
|
|
76
|
+
*/
|
|
77
|
+
restart?: boolean;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Header param
|
|
81
|
+
*/
|
|
82
|
+
'X-Device-Display-ID'?: number;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export declare namespace Language {
|
|
86
|
+
export {
|
|
87
|
+
type LanguageGetResponse as LanguageGetResponse,
|
|
88
|
+
type LanguageGetParams as LanguageGetParams,
|
|
89
|
+
type LanguageSetParams as LanguageSetParams,
|
|
90
|
+
};
|
|
91
|
+
}
|