@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
|
@@ -12,21 +12,33 @@ 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,
|
|
30
|
+
type DeviceSetNameParams,
|
|
28
31
|
type DeviceTerminateParams,
|
|
29
32
|
} from './devices';
|
|
33
|
+
export {
|
|
34
|
+
Esim,
|
|
35
|
+
type EsimListResponse,
|
|
36
|
+
type EsimActivateResponse,
|
|
37
|
+
type EsimListParams,
|
|
38
|
+
type EsimActivateParams,
|
|
39
|
+
type EsimEnableParams,
|
|
40
|
+
type EsimRemoveParams,
|
|
41
|
+
} from './esim';
|
|
30
42
|
export {
|
|
31
43
|
Files,
|
|
32
44
|
type FileInfo,
|
|
@@ -44,29 +56,36 @@ export {
|
|
|
44
56
|
type KeyboardWriteParams,
|
|
45
57
|
} from './keyboard';
|
|
46
58
|
export {
|
|
47
|
-
|
|
48
|
-
type
|
|
49
|
-
type
|
|
50
|
-
type
|
|
51
|
-
} from './
|
|
59
|
+
Language,
|
|
60
|
+
type LanguageGetResponse,
|
|
61
|
+
type LanguageGetParams,
|
|
62
|
+
type LanguageSetParams,
|
|
63
|
+
} from './language';
|
|
64
|
+
export { Location, type LocationGetParams, type LocationSetParams } from './location';
|
|
52
65
|
export { Packages, type PackageListResponse, type PackageListParams } from './packages';
|
|
53
66
|
export { Profile, type ProfileUpdateParams } from './profile';
|
|
54
|
-
export {
|
|
67
|
+
export {
|
|
68
|
+
Proxy,
|
|
69
|
+
type ProxyStatusResponse,
|
|
70
|
+
type ProxyConnectParams,
|
|
71
|
+
type ProxyDisconnectParams,
|
|
72
|
+
type ProxyStatusParams,
|
|
73
|
+
} from './proxy';
|
|
55
74
|
export {
|
|
56
75
|
State,
|
|
76
|
+
type A11YNode,
|
|
57
77
|
type Rect,
|
|
58
78
|
type StateScreenshotResponse,
|
|
79
|
+
type StateTimeResponse,
|
|
59
80
|
type StateUiResponse,
|
|
60
81
|
type StateScreenshotParams,
|
|
82
|
+
type StateTimeParams,
|
|
61
83
|
type StateUiParams,
|
|
62
84
|
} from './state';
|
|
63
85
|
export { Tasks, type TaskListResponse, type TaskListParams } from './tasks';
|
|
64
86
|
export {
|
|
65
|
-
|
|
66
|
-
type
|
|
67
|
-
type
|
|
68
|
-
type
|
|
69
|
-
|
|
70
|
-
type TimeTimeParams,
|
|
71
|
-
type TimeTimezoneParams,
|
|
72
|
-
} 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
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as Shared from '../shared';
|
|
4
5
|
import { APIPromise } from '../../core/api-promise';
|
|
5
6
|
import { buildHeaders } from '../../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -14,7 +15,7 @@ export class Location extends APIResource {
|
|
|
14
15
|
deviceID: string,
|
|
15
16
|
params: LocationGetParams | null | undefined = {},
|
|
16
17
|
options?: RequestOptions,
|
|
17
|
-
): APIPromise<
|
|
18
|
+
): APIPromise<Shared.Location> {
|
|
18
19
|
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
19
20
|
return this._client.get(path`/devices/${deviceID}/location`, {
|
|
20
21
|
...options,
|
|
@@ -50,17 +51,6 @@ export class Location extends APIResource {
|
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
export interface LocationGetResponse {
|
|
54
|
-
latitude: number;
|
|
55
|
-
|
|
56
|
-
longitude: number;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* A URL to the JSON Schema for this object.
|
|
60
|
-
*/
|
|
61
|
-
$schema?: string;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
54
|
export interface LocationGetParams {
|
|
65
55
|
'X-Device-Display-ID'?: number;
|
|
66
56
|
}
|
|
@@ -83,9 +73,5 @@ export interface LocationSetParams {
|
|
|
83
73
|
}
|
|
84
74
|
|
|
85
75
|
export declare namespace Location {
|
|
86
|
-
export {
|
|
87
|
-
type LocationGetResponse as LocationGetResponse,
|
|
88
|
-
type LocationGetParams as LocationGetParams,
|
|
89
|
-
type LocationSetParams as LocationSetParams,
|
|
90
|
-
};
|
|
76
|
+
export { type LocationGetParams as LocationGetParams, type LocationSetParams as LocationSetParams };
|
|
91
77
|
}
|
|
@@ -49,6 +49,47 @@ export class Proxy extends APIResource {
|
|
|
49
49
|
]),
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Get proxy connection state
|
|
55
|
+
*/
|
|
56
|
+
status(
|
|
57
|
+
deviceID: string,
|
|
58
|
+
params: ProxyStatusParams | null | undefined = {},
|
|
59
|
+
options?: RequestOptions,
|
|
60
|
+
): APIPromise<ProxyStatusResponse> {
|
|
61
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
62
|
+
return this._client.get(path`/devices/${deviceID}/proxy`, {
|
|
63
|
+
...options,
|
|
64
|
+
headers: buildHeaders([
|
|
65
|
+
{
|
|
66
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
67
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
68
|
+
: undefined),
|
|
69
|
+
},
|
|
70
|
+
options?.headers,
|
|
71
|
+
]),
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface ProxyStatusResponse {
|
|
77
|
+
connected: boolean;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Active proxy name
|
|
81
|
+
*/
|
|
82
|
+
name: string | null;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Active proxy protocol (socks5).
|
|
86
|
+
*/
|
|
87
|
+
protocol: string | null;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* A URL to the JSON Schema for this object.
|
|
91
|
+
*/
|
|
92
|
+
$schema?: string;
|
|
52
93
|
}
|
|
53
94
|
|
|
54
95
|
export interface ProxyConnectParams {
|
|
@@ -57,6 +98,11 @@ export interface ProxyConnectParams {
|
|
|
57
98
|
*/
|
|
58
99
|
host?: string;
|
|
59
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Body param: Proxy name
|
|
103
|
+
*/
|
|
104
|
+
name?: string;
|
|
105
|
+
|
|
60
106
|
/**
|
|
61
107
|
* @deprecated Body param
|
|
62
108
|
*/
|
|
@@ -68,14 +114,14 @@ export interface ProxyConnectParams {
|
|
|
68
114
|
port?: number;
|
|
69
115
|
|
|
70
116
|
/**
|
|
71
|
-
* Body param
|
|
117
|
+
* Body param
|
|
72
118
|
*/
|
|
73
|
-
|
|
119
|
+
smartIp?: boolean;
|
|
74
120
|
|
|
75
121
|
/**
|
|
76
|
-
* Body param
|
|
122
|
+
* Body param: SOCKS5 proxy configuration (required for socks5).
|
|
77
123
|
*/
|
|
78
|
-
|
|
124
|
+
socks5?: ProxyConnectParams.Socks5;
|
|
79
125
|
|
|
80
126
|
/**
|
|
81
127
|
* @deprecated Body param
|
|
@@ -90,16 +136,16 @@ export interface ProxyConnectParams {
|
|
|
90
136
|
|
|
91
137
|
export namespace ProxyConnectParams {
|
|
92
138
|
/**
|
|
93
|
-
*
|
|
139
|
+
* SOCKS5 proxy configuration (required for socks5).
|
|
94
140
|
*/
|
|
95
|
-
export interface
|
|
141
|
+
export interface Socks5 {
|
|
96
142
|
host: string;
|
|
97
143
|
|
|
98
|
-
password: string;
|
|
99
|
-
|
|
100
144
|
port: number;
|
|
101
145
|
|
|
102
|
-
|
|
146
|
+
password?: string;
|
|
147
|
+
|
|
148
|
+
user?: string;
|
|
103
149
|
}
|
|
104
150
|
}
|
|
105
151
|
|
|
@@ -107,9 +153,15 @@ export interface ProxyDisconnectParams {
|
|
|
107
153
|
'X-Device-Display-ID'?: number;
|
|
108
154
|
}
|
|
109
155
|
|
|
156
|
+
export interface ProxyStatusParams {
|
|
157
|
+
'X-Device-Display-ID'?: number;
|
|
158
|
+
}
|
|
159
|
+
|
|
110
160
|
export declare namespace Proxy {
|
|
111
161
|
export {
|
|
162
|
+
type ProxyStatusResponse as ProxyStatusResponse,
|
|
112
163
|
type ProxyConnectParams as ProxyConnectParams,
|
|
113
164
|
type ProxyDisconnectParams as ProxyDisconnectParams,
|
|
165
|
+
type ProxyStatusParams as ProxyStatusParams,
|
|
114
166
|
};
|
|
115
167
|
}
|
|
@@ -31,6 +31,28 @@ export class State extends APIResource {
|
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Device time
|
|
36
|
+
*/
|
|
37
|
+
time(
|
|
38
|
+
deviceID: string,
|
|
39
|
+
params: StateTimeParams | null | undefined = {},
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): APIPromise<string> {
|
|
42
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
43
|
+
return this._client.get(path`/devices/${deviceID}/time`, {
|
|
44
|
+
...options,
|
|
45
|
+
headers: buildHeaders([
|
|
46
|
+
{
|
|
47
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
48
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
49
|
+
: undefined),
|
|
50
|
+
},
|
|
51
|
+
options?.headers,
|
|
52
|
+
]),
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
34
56
|
/**
|
|
35
57
|
* UI state
|
|
36
58
|
*/
|
|
@@ -55,6 +77,54 @@ export class State extends APIResource {
|
|
|
55
77
|
}
|
|
56
78
|
}
|
|
57
79
|
|
|
80
|
+
export interface A11YNode {
|
|
81
|
+
boundsInScreen: A11YNode.BoundsInScreen;
|
|
82
|
+
|
|
83
|
+
children: Array<A11YNode> | null;
|
|
84
|
+
|
|
85
|
+
className: string;
|
|
86
|
+
|
|
87
|
+
contentDescription: string;
|
|
88
|
+
|
|
89
|
+
isCheckable: boolean;
|
|
90
|
+
|
|
91
|
+
isChecked: boolean;
|
|
92
|
+
|
|
93
|
+
isClickable: boolean;
|
|
94
|
+
|
|
95
|
+
isEnabled: boolean;
|
|
96
|
+
|
|
97
|
+
isFocusable: boolean;
|
|
98
|
+
|
|
99
|
+
isFocused: boolean;
|
|
100
|
+
|
|
101
|
+
isLongClickable: boolean;
|
|
102
|
+
|
|
103
|
+
isPassword: boolean;
|
|
104
|
+
|
|
105
|
+
isScrollable: boolean;
|
|
106
|
+
|
|
107
|
+
isSelected: boolean;
|
|
108
|
+
|
|
109
|
+
packageName: string;
|
|
110
|
+
|
|
111
|
+
resourceId: string;
|
|
112
|
+
|
|
113
|
+
text: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export namespace A11YNode {
|
|
117
|
+
export interface BoundsInScreen {
|
|
118
|
+
bottom: number;
|
|
119
|
+
|
|
120
|
+
left: number;
|
|
121
|
+
|
|
122
|
+
right: number;
|
|
123
|
+
|
|
124
|
+
top: number;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
58
128
|
export interface Rect {
|
|
59
129
|
height: number;
|
|
60
130
|
|
|
@@ -63,11 +133,15 @@ export interface Rect {
|
|
|
63
133
|
|
|
64
134
|
export type StateScreenshotResponse = string;
|
|
65
135
|
|
|
136
|
+
export type StateTimeResponse = string;
|
|
137
|
+
|
|
66
138
|
export interface StateUiResponse {
|
|
67
|
-
a11y_tree:
|
|
139
|
+
a11y_tree: A11YNode;
|
|
68
140
|
|
|
69
141
|
device_context: StateUiResponse.DeviceContext;
|
|
70
142
|
|
|
143
|
+
ime_tree: A11YNode;
|
|
144
|
+
|
|
71
145
|
phone_state: StateUiResponse.PhoneState;
|
|
72
146
|
|
|
73
147
|
/**
|
|
@@ -83,8 +157,6 @@ export namespace StateUiResponse {
|
|
|
83
157
|
filtering_params: DeviceContext.FilteringParams;
|
|
84
158
|
|
|
85
159
|
screen_bounds: StateAPI.Rect;
|
|
86
|
-
|
|
87
|
-
screenSize: StateAPI.Rect;
|
|
88
160
|
}
|
|
89
161
|
|
|
90
162
|
export namespace DeviceContext {
|
|
@@ -144,6 +216,10 @@ export interface StateScreenshotParams {
|
|
|
144
216
|
'X-Device-Display-ID'?: number;
|
|
145
217
|
}
|
|
146
218
|
|
|
219
|
+
export interface StateTimeParams {
|
|
220
|
+
'X-Device-Display-ID'?: number;
|
|
221
|
+
}
|
|
222
|
+
|
|
147
223
|
export interface StateUiParams {
|
|
148
224
|
/**
|
|
149
225
|
* Query param
|
|
@@ -158,10 +234,13 @@ export interface StateUiParams {
|
|
|
158
234
|
|
|
159
235
|
export declare namespace State {
|
|
160
236
|
export {
|
|
237
|
+
type A11YNode as A11YNode,
|
|
161
238
|
type Rect as Rect,
|
|
162
239
|
type StateScreenshotResponse as StateScreenshotResponse,
|
|
240
|
+
type StateTimeResponse as StateTimeResponse,
|
|
163
241
|
type StateUiResponse as StateUiResponse,
|
|
164
242
|
type StateScreenshotParams as StateScreenshotParams,
|
|
243
|
+
type StateTimeParams as StateTimeParams,
|
|
165
244
|
type StateUiParams as StateUiParams,
|
|
166
245
|
};
|
|
167
246
|
}
|
|
@@ -6,6 +6,9 @@ import { APIPromise } from '../../core/api-promise';
|
|
|
6
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
7
|
import { path } from '../../internal/utils/path';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Device Management
|
|
11
|
+
*/
|
|
9
12
|
export class Tasks extends APIResource {
|
|
10
13
|
/**
|
|
11
14
|
* List tasks for a device
|
|
@@ -0,0 +1,84 @@
|
|
|
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 Timezone extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get device timezone
|
|
12
|
+
*/
|
|
13
|
+
get(
|
|
14
|
+
deviceID: string,
|
|
15
|
+
params: TimezoneGetParams | null | undefined = {},
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): APIPromise<TimezoneGetResponse> {
|
|
18
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
19
|
+
return this._client.get(path`/devices/${deviceID}/timezone`, {
|
|
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 timezone
|
|
34
|
+
*/
|
|
35
|
+
set(deviceID: string, params: TimezoneSetParams, options?: RequestOptions): APIPromise<void> {
|
|
36
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
37
|
+
return this._client.post(path`/devices/${deviceID}/timezone`, {
|
|
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 TimezoneGetResponse {
|
|
54
|
+
timezone: string | null;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* A URL to the JSON Schema for this object.
|
|
58
|
+
*/
|
|
59
|
+
$schema?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface TimezoneGetParams {
|
|
63
|
+
'X-Device-Display-ID'?: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface TimezoneSetParams {
|
|
67
|
+
/**
|
|
68
|
+
* Body param
|
|
69
|
+
*/
|
|
70
|
+
timezone: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Header param
|
|
74
|
+
*/
|
|
75
|
+
'X-Device-Display-ID'?: number;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export declare namespace Timezone {
|
|
79
|
+
export {
|
|
80
|
+
type TimezoneGetResponse as TimezoneGetResponse,
|
|
81
|
+
type TimezoneGetParams as TimezoneGetParams,
|
|
82
|
+
type TimezoneSetParams as TimezoneSetParams,
|
|
83
|
+
};
|
|
84
|
+
}
|
package/src/resources/hooks.ts
CHANGED
|
@@ -7,9 +7,6 @@ import { APIPromise } from '../core/api-promise';
|
|
|
7
7
|
import { RequestOptions } from '../internal/request-options';
|
|
8
8
|
import { path } from '../internal/utils/path';
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* Webhooks API
|
|
12
|
-
*/
|
|
13
10
|
export class Hooks extends APIResource {
|
|
14
11
|
/**
|
|
15
12
|
* Get a hook subscription by id.
|
|
@@ -59,6 +56,16 @@ export class Hooks extends APIResource {
|
|
|
59
56
|
return this._client.post('/hooks/subscribe', { body, ...options });
|
|
60
57
|
}
|
|
61
58
|
|
|
59
|
+
/**
|
|
60
|
+
* Send a test event to a webhook endpoint.
|
|
61
|
+
*
|
|
62
|
+
* Delivers a sample payload to the hook's URL with a single attempt (no retries)
|
|
63
|
+
* for fast feedback.
|
|
64
|
+
*/
|
|
65
|
+
test(hookID: string, body: HookTestParams, options?: RequestOptions): APIPromise<HookTestResponse> {
|
|
66
|
+
return this._client.post(path`/hooks/${hookID}/test`, { body, ...options });
|
|
67
|
+
}
|
|
68
|
+
|
|
62
69
|
/**
|
|
63
70
|
* Unsubscribe a previously created subscription by id.
|
|
64
71
|
*
|
|
@@ -220,6 +227,31 @@ export interface HookSubscribeResponse {
|
|
|
220
227
|
service?: string | null;
|
|
221
228
|
}
|
|
222
229
|
|
|
230
|
+
/**
|
|
231
|
+
* Response after attempting test delivery.
|
|
232
|
+
*/
|
|
233
|
+
export interface HookTestResponse {
|
|
234
|
+
/**
|
|
235
|
+
* The hook ID
|
|
236
|
+
*/
|
|
237
|
+
id: string;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Whether delivery succeeded (2xx)
|
|
241
|
+
*/
|
|
242
|
+
success: boolean;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Error message if delivery failed
|
|
246
|
+
*/
|
|
247
|
+
error?: string | null;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* HTTP status from target
|
|
251
|
+
*/
|
|
252
|
+
statusCode?: number | null;
|
|
253
|
+
}
|
|
254
|
+
|
|
223
255
|
/**
|
|
224
256
|
* Response model after successful unsubscription.
|
|
225
257
|
*/
|
|
@@ -279,6 +311,13 @@ export interface HookSubscribeParams {
|
|
|
279
311
|
service?: string | null;
|
|
280
312
|
}
|
|
281
313
|
|
|
314
|
+
export interface HookTestParams {
|
|
315
|
+
/**
|
|
316
|
+
* Event type to simulate (default: completed)
|
|
317
|
+
*/
|
|
318
|
+
event?: string | null;
|
|
319
|
+
}
|
|
320
|
+
|
|
282
321
|
export declare namespace Hooks {
|
|
283
322
|
export {
|
|
284
323
|
type HookRetrieveResponse as HookRetrieveResponse,
|
|
@@ -287,10 +326,12 @@ export declare namespace Hooks {
|
|
|
287
326
|
type HookGetSampleDataResponse as HookGetSampleDataResponse,
|
|
288
327
|
type HookPerformResponse as HookPerformResponse,
|
|
289
328
|
type HookSubscribeResponse as HookSubscribeResponse,
|
|
329
|
+
type HookTestResponse as HookTestResponse,
|
|
290
330
|
type HookUnsubscribeResponse as HookUnsubscribeResponse,
|
|
291
331
|
type HookUpdateParams as HookUpdateParams,
|
|
292
332
|
type HookListParams as HookListParams,
|
|
293
333
|
type HookPerformParams as HookPerformParams,
|
|
294
334
|
type HookSubscribeParams as HookSubscribeParams,
|
|
335
|
+
type HookTestParams as HookTestParams,
|
|
295
336
|
};
|
|
296
337
|
}
|