@mobilerun/sdk 4.0.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +313 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +34 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +34 -29
- package/client.d.ts.map +1 -1
- package/client.js +44 -22
- package/client.js.map +1 -1
- package/client.mjs +46 -24
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +10 -10
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +10 -10
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/lib/trajectory-decoder-stream.d.mts.map +1 -1
- package/lib/trajectory-decoder-stream.d.ts.map +1 -1
- package/package.json +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/apps.d.mts +203 -16
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +203 -16
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +98 -0
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +98 -0
- package/resources/apps.mjs.map +1 -1
- package/resources/carriers.d.mts +105 -7
- package/resources/carriers.d.mts.map +1 -1
- package/resources/carriers.d.ts +105 -7
- package/resources/carriers.d.ts.map +1 -1
- package/resources/carriers.js.map +1 -1
- package/resources/carriers.mjs.map +1 -1
- package/resources/connect/connect.d.mts +18 -0
- package/resources/connect/connect.d.mts.map +1 -0
- package/resources/connect/connect.d.ts +18 -0
- package/resources/connect/connect.d.ts.map +1 -0
- package/resources/connect/connect.js +25 -0
- package/resources/connect/connect.js.map +1 -0
- package/resources/connect/connect.mjs +20 -0
- package/resources/connect/connect.mjs.map +1 -0
- package/resources/connect/countries.d.mts +84 -0
- package/resources/connect/countries.d.mts.map +1 -0
- package/resources/connect/countries.d.ts +84 -0
- package/resources/connect/countries.d.ts.map +1 -0
- package/resources/connect/countries.js +20 -0
- package/resources/connect/countries.js.map +1 -0
- package/resources/connect/countries.mjs +16 -0
- package/resources/connect/countries.mjs.map +1 -0
- package/resources/connect/index.d.mts +5 -0
- package/resources/connect/index.d.mts.map +1 -0
- package/resources/connect/index.d.ts +5 -0
- package/resources/connect/index.d.ts.map +1 -0
- package/resources/connect/index.js +13 -0
- package/resources/connect/index.js.map +1 -0
- package/resources/connect/index.mjs +6 -0
- package/resources/connect/index.mjs.map +1 -0
- package/resources/connect/proxies.d.mts +456 -0
- package/resources/connect/proxies.d.mts.map +1 -0
- package/resources/connect/proxies.d.ts +456 -0
- package/resources/connect/proxies.d.ts.map +1 -0
- package/resources/connect/proxies.js +59 -0
- package/resources/connect/proxies.js.map +1 -0
- package/resources/connect/proxies.mjs +55 -0
- package/resources/connect/proxies.mjs.map +1 -0
- package/resources/connect/users.d.mts +392 -0
- package/resources/connect/users.d.mts.map +1 -0
- package/resources/connect/users.d.ts +392 -0
- package/resources/connect/users.d.ts.map +1 -0
- package/resources/connect/users.js +59 -0
- package/resources/connect/users.js.map +1 -0
- package/resources/connect/users.mjs +55 -0
- package/resources/connect/users.mjs.map +1 -0
- package/resources/connect.d.mts +2 -0
- package/resources/connect.d.mts.map +1 -0
- package/resources/connect.d.ts +2 -0
- package/resources/connect.d.ts.map +1 -0
- package/resources/connect.js +6 -0
- package/resources/connect.js.map +1 -0
- package/resources/connect.mjs +3 -0
- package/resources/connect.mjs.map +1 -0
- package/resources/credentials/credentials.d.mts +3 -1
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +3 -1
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +3 -1
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +3 -1
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/index.d.mts.map +1 -1
- package/resources/credentials/index.d.ts.map +1 -1
- package/resources/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.mts +14 -4
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +14 -4
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +7 -3
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +7 -3
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +8 -3
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +8 -3
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/fields.js +8 -3
- package/resources/credentials/packages/credentials/fields.js.map +1 -1
- package/resources/credentials/packages/credentials/fields.mjs +8 -3
- package/resources/credentials/packages/credentials/fields.mjs.map +1 -1
- package/resources/credentials/packages/credentials/index.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/index.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials.mjs.map +1 -1
- package/resources/credentials/packages/index.d.mts.map +1 -1
- package/resources/credentials/packages/index.d.ts.map +1 -1
- package/resources/credentials/packages/index.mjs.map +1 -1
- package/resources/credentials/packages/packages.d.mts +5 -2
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +5 -2
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +5 -2
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +5 -2
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/credentials/packages.d.mts.map +1 -1
- package/resources/credentials/packages.d.ts.map +1 -1
- package/resources/credentials/packages.mjs.map +1 -1
- package/resources/credentials.d.mts.map +1 -1
- package/resources/credentials.d.ts.map +1 -1
- package/resources/credentials.mjs.map +1 -1
- package/resources/devices/actions.d.mts +10 -5
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +10 -5
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +10 -5
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +10 -5
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +78 -24
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +78 -24
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +38 -22
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +38 -22
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +168 -41
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +168 -41
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +86 -27
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +86 -27
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/esim.d.mts +14 -6
- package/resources/devices/esim.d.mts.map +1 -1
- package/resources/devices/esim.d.ts +14 -6
- package/resources/devices/esim.d.ts.map +1 -1
- package/resources/devices/esim.js +6 -4
- package/resources/devices/esim.js.map +1 -1
- package/resources/devices/esim.mjs +6 -4
- package/resources/devices/esim.mjs.map +1 -1
- package/resources/devices/files.d.mts +7 -4
- package/resources/devices/files.d.mts.map +1 -1
- package/resources/devices/files.d.ts +7 -4
- package/resources/devices/files.d.ts.map +1 -1
- package/resources/devices/files.js +7 -4
- package/resources/devices/files.js.map +1 -1
- package/resources/devices/files.mjs +7 -4
- package/resources/devices/files.mjs.map +1 -1
- package/resources/devices/index.d.mts +6 -5
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +6 -5
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +5 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +3 -2
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +10 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +10 -3
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.js +5 -3
- package/resources/devices/keyboard.js.map +1 -1
- package/resources/devices/keyboard.mjs +5 -3
- package/resources/devices/keyboard.mjs.map +1 -1
- package/resources/devices/language.d.mts +45 -0
- package/resources/devices/language.d.mts.map +1 -0
- package/resources/devices/language.d.ts +45 -0
- package/resources/devices/language.d.ts.map +1 -0
- package/resources/devices/language.js +49 -0
- package/resources/devices/language.js.map +1 -0
- package/resources/devices/language.mjs +45 -0
- package/resources/devices/language.mjs.map +1 -0
- package/resources/devices/location.d.mts +7 -12
- package/resources/devices/location.d.mts.map +1 -1
- package/resources/devices/location.d.ts +7 -12
- package/resources/devices/location.d.ts.map +1 -1
- package/resources/devices/location.js +4 -2
- package/resources/devices/location.js.map +1 -1
- package/resources/devices/location.mjs +4 -2
- package/resources/devices/location.mjs.map +1 -1
- package/resources/devices/packages.d.mts +2 -1
- package/resources/devices/packages.d.mts.map +1 -1
- package/resources/devices/packages.d.ts +2 -1
- package/resources/devices/packages.d.ts.map +1 -1
- package/resources/devices/packages.js +2 -1
- package/resources/devices/packages.js.map +1 -1
- package/resources/devices/packages.mjs +2 -1
- package/resources/devices/packages.mjs.map +1 -1
- package/resources/devices/profile.d.mts.map +1 -1
- package/resources/devices/profile.d.ts.map +1 -1
- package/resources/devices/profile.mjs.map +1 -1
- package/resources/devices/proxy.d.mts +31 -10
- package/resources/devices/proxy.d.mts.map +1 -1
- package/resources/devices/proxy.d.ts +31 -10
- package/resources/devices/proxy.d.ts.map +1 -1
- package/resources/devices/proxy.js +7 -3
- package/resources/devices/proxy.js.map +1 -1
- package/resources/devices/proxy.mjs +7 -3
- package/resources/devices/proxy.mjs.map +1 -1
- package/resources/devices/state.d.mts +44 -5
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +44 -5
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +22 -2
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +22 -2
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/tasks.d.mts +4 -9
- package/resources/devices/tasks.d.mts.map +1 -1
- package/resources/devices/tasks.d.ts +4 -9
- package/resources/devices/tasks.d.ts.map +1 -1
- package/resources/devices/tasks.js +2 -1
- package/resources/devices/tasks.js.map +1 -1
- package/resources/devices/tasks.mjs +2 -1
- package/resources/devices/tasks.mjs.map +1 -1
- package/resources/devices/timezone.d.mts +39 -0
- package/resources/devices/timezone.d.mts.map +1 -0
- package/resources/devices/timezone.d.ts +39 -0
- package/resources/devices/timezone.d.ts.map +1 -0
- package/resources/devices/{time.js → timezone.js} +15 -30
- package/resources/devices/timezone.js.map +1 -0
- package/resources/devices/{time.mjs → timezone.mjs} +13 -28
- package/resources/devices/timezone.mjs.map +1 -0
- package/resources/devices.d.mts.map +1 -1
- package/resources/devices.d.ts.map +1 -1
- package/resources/devices.mjs.map +1 -1
- package/resources/hooks.d.mts +0 -208
- package/resources/hooks.d.mts.map +1 -1
- package/resources/hooks.d.ts +0 -208
- package/resources/hooks.d.ts.map +1 -1
- package/resources/hooks.js +0 -51
- package/resources/hooks.js.map +1 -1
- package/resources/hooks.mjs +0 -51
- package/resources/hooks.mjs.map +1 -1
- package/resources/index.d.mts +9 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -3
- package/resources/index.mjs.map +1 -1
- package/resources/models.d.mts +3 -0
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +3 -0
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -0
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -0
- package/resources/models.mjs.map +1 -1
- package/resources/profiles.d.mts +69 -6
- package/resources/profiles.d.mts.map +1 -1
- package/resources/profiles.d.ts +69 -6
- package/resources/profiles.d.ts.map +1 -1
- package/resources/profiles.js.map +1 -1
- package/resources/profiles.mjs.map +1 -1
- package/resources/proxies.d.mts +101 -6
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +101 -6
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +20 -5
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +20 -5
- package/resources/proxies.mjs.map +1 -1
- package/resources/shared.d.mts +32 -7
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +32 -7
- package/resources/shared.d.ts.map +1 -1
- package/resources/tasks/index.d.mts.map +1 -1
- package/resources/tasks/index.d.ts.map +1 -1
- package/resources/tasks/index.mjs.map +1 -1
- package/resources/tasks/screenshots.d.mts.map +1 -1
- package/resources/tasks/screenshots.d.ts.map +1 -1
- package/resources/tasks/screenshots.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +220 -64
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +220 -64
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +10 -2
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +10 -2
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/tasks/ui-states.d.mts.map +1 -1
- package/resources/tasks/ui-states.d.ts.map +1 -1
- package/resources/tasks/ui-states.mjs.map +1 -1
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +207 -0
- package/resources/webhooks/deliveries.d.mts.map +1 -0
- package/resources/webhooks/deliveries.d.ts +207 -0
- package/resources/webhooks/deliveries.d.ts.map +1 -0
- package/resources/webhooks/deliveries.js +73 -0
- package/resources/webhooks/deliveries.js.map +1 -0
- package/resources/webhooks/deliveries.mjs +69 -0
- package/resources/webhooks/deliveries.mjs.map +1 -0
- package/resources/webhooks/index.d.mts +3 -0
- package/resources/webhooks/index.d.mts.map +1 -0
- package/resources/webhooks/index.d.ts +3 -0
- package/resources/webhooks/index.d.ts.map +1 -0
- package/resources/webhooks/index.js +9 -0
- package/resources/webhooks/index.js.map +1 -0
- package/resources/webhooks/index.mjs +4 -0
- package/resources/webhooks/index.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +329 -0
- package/resources/webhooks/webhooks.d.mts.map +1 -0
- package/resources/webhooks/webhooks.d.ts +329 -0
- package/resources/webhooks/webhooks.d.ts.map +1 -0
- package/resources/webhooks/webhooks.js +140 -0
- package/resources/webhooks/webhooks.js.map +1 -0
- package/resources/webhooks/webhooks.mjs +135 -0
- package/resources/webhooks/webhooks.mjs.map +1 -0
- package/resources/webhooks.d.mts +2 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +2 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +6 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +3 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources/workflows/action-catalog.d.mts +43 -0
- package/resources/workflows/action-catalog.d.mts.map +1 -0
- package/resources/workflows/action-catalog.d.ts +43 -0
- package/resources/workflows/action-catalog.d.ts.map +1 -0
- package/resources/workflows/action-catalog.js +25 -0
- package/resources/workflows/action-catalog.js.map +1 -0
- package/resources/workflows/action-catalog.mjs +21 -0
- package/resources/workflows/action-catalog.mjs.map +1 -0
- package/resources/workflows/actions/actions.d.mts +96 -0
- package/resources/workflows/actions/actions.d.mts.map +1 -0
- package/resources/workflows/actions/actions.d.ts +96 -0
- package/resources/workflows/actions/actions.d.ts.map +1 -0
- package/resources/workflows/actions/actions.js +53 -0
- package/resources/workflows/actions/actions.js.map +1 -0
- package/resources/workflows/actions/actions.mjs +48 -0
- package/resources/workflows/actions/actions.mjs.map +1 -0
- package/resources/workflows/actions/index.d.mts +3 -0
- package/resources/workflows/actions/index.d.mts.map +1 -0
- package/resources/workflows/actions/index.d.ts +3 -0
- package/resources/workflows/actions/index.d.ts.map +1 -0
- package/resources/workflows/actions/index.js +9 -0
- package/resources/workflows/actions/index.js.map +1 -0
- package/resources/workflows/actions/index.mjs +4 -0
- package/resources/workflows/actions/index.mjs.map +1 -0
- package/resources/workflows/actions/services.d.mts +42 -0
- package/resources/workflows/actions/services.d.mts.map +1 -0
- package/resources/workflows/actions/services.d.ts +42 -0
- package/resources/workflows/actions/services.d.ts.map +1 -0
- package/resources/workflows/actions/services.js +25 -0
- package/resources/workflows/actions/services.js.map +1 -0
- package/resources/workflows/actions/services.mjs +21 -0
- package/resources/workflows/actions/services.mjs.map +1 -0
- package/resources/workflows/actions.d.mts +2 -0
- package/resources/workflows/actions.d.mts.map +1 -0
- package/resources/workflows/actions.d.ts +2 -0
- package/resources/workflows/actions.d.ts.map +1 -0
- package/resources/workflows/actions.js +6 -0
- package/resources/workflows/actions.js.map +1 -0
- package/resources/workflows/actions.mjs +3 -0
- package/resources/workflows/actions.mjs.map +1 -0
- package/resources/workflows/events/catalog.d.mts +4 -0
- package/resources/workflows/events/catalog.d.mts.map +1 -0
- package/resources/workflows/events/catalog.d.ts +4 -0
- package/resources/workflows/events/catalog.d.ts.map +1 -0
- package/resources/workflows/events/catalog.js +9 -0
- package/resources/workflows/events/catalog.js.map +1 -0
- package/resources/workflows/events/catalog.mjs +5 -0
- package/resources/workflows/events/catalog.mjs.map +1 -0
- package/resources/workflows/events/events.d.mts +113 -0
- package/resources/workflows/events/events.d.mts.map +1 -0
- package/resources/workflows/events/events.d.ts +113 -0
- package/resources/workflows/events/events.d.ts.map +1 -0
- package/resources/workflows/events/events.js +30 -0
- package/resources/workflows/events/events.js.map +1 -0
- package/resources/workflows/events/events.mjs +25 -0
- package/resources/workflows/events/events.mjs.map +1 -0
- package/resources/workflows/events/index.d.mts +3 -0
- package/resources/workflows/events/index.d.mts.map +1 -0
- package/resources/workflows/events/index.d.ts +3 -0
- package/resources/workflows/events/index.d.ts.map +1 -0
- package/resources/workflows/events/index.js +9 -0
- package/resources/workflows/events/index.js.map +1 -0
- package/resources/workflows/events/index.mjs +4 -0
- package/resources/workflows/events/index.mjs.map +1 -0
- package/resources/workflows/events.d.mts +2 -0
- package/resources/workflows/events.d.mts.map +1 -0
- package/resources/workflows/events.d.ts +2 -0
- package/resources/workflows/events.d.ts.map +1 -0
- package/resources/workflows/events.js +6 -0
- package/resources/workflows/events.js.map +1 -0
- package/resources/workflows/events.mjs +3 -0
- package/resources/workflows/events.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +121 -0
- package/resources/workflows/executions.d.mts.map +1 -0
- package/resources/workflows/executions.d.ts +121 -0
- package/resources/workflows/executions.d.ts.map +1 -0
- package/resources/workflows/executions.js +33 -0
- package/resources/workflows/executions.js.map +1 -0
- package/resources/workflows/executions.mjs +29 -0
- package/resources/workflows/executions.mjs.map +1 -0
- package/resources/workflows/flows/actions.d.mts +89 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -0
- package/resources/workflows/flows/actions.d.ts +89 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -0
- package/resources/workflows/flows/actions.js +43 -0
- package/resources/workflows/flows/actions.js.map +1 -0
- package/resources/workflows/flows/actions.mjs +39 -0
- package/resources/workflows/flows/actions.mjs.map +1 -0
- package/resources/workflows/flows/flows.d.mts +154 -0
- package/resources/workflows/flows/flows.d.mts.map +1 -0
- package/resources/workflows/flows/flows.d.ts +154 -0
- package/resources/workflows/flows/flows.d.ts.map +1 -0
- package/resources/workflows/flows/flows.js +73 -0
- package/resources/workflows/flows/flows.js.map +1 -0
- package/resources/workflows/flows/flows.mjs +68 -0
- package/resources/workflows/flows/flows.mjs.map +1 -0
- package/resources/workflows/flows/index.d.mts +3 -0
- package/resources/workflows/flows/index.d.mts.map +1 -0
- package/resources/workflows/flows/index.d.ts +3 -0
- package/resources/workflows/flows/index.d.ts.map +1 -0
- package/resources/workflows/flows/index.js +9 -0
- package/resources/workflows/flows/index.js.map +1 -0
- package/resources/workflows/flows/index.mjs +4 -0
- package/resources/workflows/flows/index.mjs.map +1 -0
- package/resources/workflows/flows.d.mts +2 -0
- package/resources/workflows/flows.d.mts.map +1 -0
- package/resources/workflows/flows.d.ts +2 -0
- package/resources/workflows/flows.d.ts.map +1 -0
- package/resources/workflows/flows.js +6 -0
- package/resources/workflows/flows.js.map +1 -0
- package/resources/workflows/flows.mjs +3 -0
- package/resources/workflows/flows.mjs.map +1 -0
- package/resources/workflows/index.d.mts +9 -0
- package/resources/workflows/index.d.mts.map +1 -0
- package/resources/workflows/index.d.ts +9 -0
- package/resources/workflows/index.d.ts.map +1 -0
- package/resources/workflows/index.js +21 -0
- package/resources/workflows/index.js.map +1 -0
- package/resources/workflows/index.mjs +10 -0
- package/resources/workflows/index.mjs.map +1 -0
- package/resources/workflows/timezones.d.mts +16 -0
- package/resources/workflows/timezones.d.mts.map +1 -0
- package/resources/workflows/timezones.d.ts +16 -0
- package/resources/workflows/timezones.d.ts.map +1 -0
- package/resources/workflows/timezones.js +15 -0
- package/resources/workflows/timezones.js.map +1 -0
- package/resources/workflows/timezones.mjs +11 -0
- package/resources/workflows/timezones.mjs.map +1 -0
- package/resources/workflows/triggers.d.mts +325 -0
- package/resources/workflows/triggers.d.mts.map +1 -0
- package/resources/workflows/triggers.d.ts +325 -0
- package/resources/workflows/triggers.d.ts.map +1 -0
- package/resources/workflows/triggers.js +69 -0
- package/resources/workflows/triggers.js.map +1 -0
- package/resources/workflows/triggers.mjs +65 -0
- package/resources/workflows/triggers.mjs.map +1 -0
- package/resources/workflows/workflows.d.mts +72 -0
- package/resources/workflows/workflows.d.mts.map +1 -0
- package/resources/workflows/workflows.d.ts +72 -0
- package/resources/workflows/workflows.d.ts.map +1 -0
- package/resources/workflows/workflows.js +41 -0
- package/resources/workflows/workflows.js.map +1 -0
- package/resources/workflows/workflows.mjs +36 -0
- package/resources/workflows/workflows.mjs.map +1 -0
- package/resources/workflows.d.mts +2 -0
- package/resources/workflows.d.mts.map +1 -0
- package/resources/workflows.d.ts +2 -0
- package/resources/workflows.d.ts.map +1 -0
- package/resources/workflows.js +6 -0
- package/resources/workflows.js.map +1 -0
- package/resources/workflows.mjs +3 -0
- package/resources/workflows.mjs.map +1 -0
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +163 -96
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/apps.ts +553 -28
- package/src/resources/carriers.ts +188 -7
- package/src/resources/connect/connect.ts +73 -0
- package/src/resources/connect/countries.ts +106 -0
- package/src/resources/connect/index.ts +27 -0
- package/src/resources/connect/proxies.ts +598 -0
- package/src/resources/connect/users.ts +517 -0
- package/src/resources/connect.ts +3 -0
- package/src/resources/credentials/credentials.ts +3 -1
- package/src/resources/credentials/packages/credentials/credentials.ts +16 -4
- package/src/resources/credentials/packages/credentials/fields.ts +8 -3
- package/src/resources/credentials/packages/packages.ts +5 -2
- package/src/resources/devices/actions.ts +10 -5
- package/src/resources/devices/apps.ts +104 -42
- package/src/resources/devices/devices.ts +307 -103
- package/src/resources/devices/esim.ts +15 -6
- package/src/resources/devices/files.ts +7 -4
- package/src/resources/devices/index.ts +17 -13
- package/src/resources/devices/keyboard.ts +11 -3
- package/src/resources/devices/language.ts +93 -0
- package/src/resources/devices/location.ts +7 -19
- package/src/resources/devices/packages.ts +2 -1
- package/src/resources/devices/proxy.ts +34 -11
- package/src/resources/devices/state.ts +89 -5
- package/src/resources/devices/tasks.ts +4 -12
- package/src/resources/devices/{time.ts → timezone.ts} +24 -52
- package/src/resources/hooks.ts +1 -292
- package/src/resources/index.ts +39 -18
- package/src/resources/models.ts +3 -0
- package/src/resources/profiles.ts +105 -6
- package/src/resources/proxies.ts +124 -5
- package/src/resources/shared.ts +46 -10
- package/src/resources/tasks/tasks.ts +295 -77
- package/src/resources/webhooks/deliveries.ts +323 -0
- package/src/resources/webhooks/index.ts +26 -0
- package/src/resources/webhooks/webhooks.ts +503 -0
- package/src/resources/webhooks.ts +3 -0
- package/src/resources/workflows/action-catalog.ts +74 -0
- package/src/resources/workflows/actions/actions.ts +167 -0
- package/src/resources/workflows/actions/index.ts +15 -0
- package/src/resources/workflows/actions/services.ts +64 -0
- package/src/resources/workflows/actions.ts +3 -0
- package/src/resources/workflows/events/catalog.ts +5 -0
- package/src/resources/workflows/events/events.ts +167 -0
- package/src/resources/workflows/events/index.ts +10 -0
- package/src/resources/workflows/events.ts +3 -0
- package/src/resources/workflows/executions.ts +194 -0
- package/src/resources/workflows/flows/actions.ts +149 -0
- package/src/resources/workflows/flows/flows.ts +284 -0
- package/src/resources/workflows/flows/index.ts +29 -0
- package/src/resources/workflows/flows.ts +3 -0
- package/src/resources/workflows/index.ts +68 -0
- package/src/resources/workflows/timezones.ts +22 -0
- package/src/resources/workflows/triggers.ts +471 -0
- package/src/resources/workflows/workflows.ts +239 -0
- package/src/resources/workflows.ts +3 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/agents.d.mts +0 -30
- package/resources/agents.d.mts.map +0 -1
- package/resources/agents.d.ts +0 -30
- package/resources/agents.d.ts.map +0 -1
- package/resources/agents.js +0 -18
- package/resources/agents.js.map +0 -1
- package/resources/agents.mjs +0 -14
- package/resources/agents.mjs.map +0 -1
- package/resources/devices/time.d.mts +0 -45
- package/resources/devices/time.d.mts.map +0 -1
- package/resources/devices/time.d.ts +0 -45
- package/resources/devices/time.d.ts.map +0 -1
- package/resources/devices/time.js.map +0 -1
- package/resources/devices/time.mjs.map +0 -1
- package/src/resources/agents.ts +0 -45
|
@@ -0,0 +1,517 @@
|
|
|
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
|
+
/**
|
|
10
|
+
* Manage your Mobilerun Connect Socks Users
|
|
11
|
+
*/
|
|
12
|
+
export class Users extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Creates a SOCKS5 credential, optionally bound to a proxy for dedicated routing.
|
|
15
|
+
* Username and password are generated when omitted.
|
|
16
|
+
*/
|
|
17
|
+
create(body: UserCreateParams, options?: RequestOptions): APIPromise<UserCreateResponse> {
|
|
18
|
+
return this._client.post('/connect/users', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Returns the SOCKS5 user identified by the path ID. The response includes the
|
|
23
|
+
* user's password.
|
|
24
|
+
*/
|
|
25
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<UserRetrieveResponse> {
|
|
26
|
+
return this._client.get(path`/connect/users/${id}`, options);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Rebind the user to a different proxy (or detach it by passing null).
|
|
31
|
+
*/
|
|
32
|
+
update(id: string, body: UserUpdateParams, options?: RequestOptions): APIPromise<UserUpdateResponse> {
|
|
33
|
+
return this._client.patch(path`/connect/users/${id}`, { body, ...options });
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Returns SOCKS5 users owned by the caller. Passwords are omitted from the list.
|
|
38
|
+
*/
|
|
39
|
+
list(
|
|
40
|
+
query: UserListParams | null | undefined = {},
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): APIPromise<UserListResponse> {
|
|
43
|
+
return this._client.get('/connect/users', { query, ...options });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Deletes the SOCKS5 user identified by the path ID, revoking its credentials and
|
|
48
|
+
* any proxy binding. Returns 404 if no such user exists for the caller.
|
|
49
|
+
*/
|
|
50
|
+
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
51
|
+
return this._client.delete(path`/connect/users/${id}`, {
|
|
52
|
+
...options,
|
|
53
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Returns the connection history recorded for this user, one item per connection
|
|
59
|
+
* (aggregated across the connection's lifetime). Supports filtering on every
|
|
60
|
+
* property plus ordering and pagination. Returns 503 when the connection-insights
|
|
61
|
+
* backend is disabled or unreachable.
|
|
62
|
+
*/
|
|
63
|
+
listConnections(
|
|
64
|
+
id: string,
|
|
65
|
+
query: UserListConnectionsParams | null | undefined = {},
|
|
66
|
+
options?: RequestOptions,
|
|
67
|
+
): APIPromise<UserListConnectionsResponse> {
|
|
68
|
+
return this._client.get(path`/connect/users/${id}/connections`, { query, ...options });
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* A SOCKS5 user including its password. Returned only on create and single-user
|
|
74
|
+
* reads.
|
|
75
|
+
*/
|
|
76
|
+
export interface UserCreateResponse {
|
|
77
|
+
id: string;
|
|
78
|
+
|
|
79
|
+
createdAt: string;
|
|
80
|
+
|
|
81
|
+
password: string;
|
|
82
|
+
|
|
83
|
+
username: string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The proxy this user routes to (dedicated routing), or null if unbound.
|
|
87
|
+
*/
|
|
88
|
+
proxyId?: string | null;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* A SOCKS5 user including its password. Returned only on create and single-user
|
|
93
|
+
* reads.
|
|
94
|
+
*/
|
|
95
|
+
export interface UserRetrieveResponse {
|
|
96
|
+
id: string;
|
|
97
|
+
|
|
98
|
+
createdAt: string;
|
|
99
|
+
|
|
100
|
+
password: string;
|
|
101
|
+
|
|
102
|
+
username: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* The proxy this user routes to (dedicated routing), or null if unbound.
|
|
106
|
+
*/
|
|
107
|
+
proxyId?: string | null;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* A SOCKS5 credential without its password.
|
|
112
|
+
*/
|
|
113
|
+
export interface UserUpdateResponse {
|
|
114
|
+
id: string;
|
|
115
|
+
|
|
116
|
+
createdAt: string;
|
|
117
|
+
|
|
118
|
+
username: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The proxy this user routes to (dedicated routing), or null if unbound.
|
|
122
|
+
*/
|
|
123
|
+
proxyId?: string | null;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* A page of SOCKS5 users.
|
|
128
|
+
*/
|
|
129
|
+
export interface UserListResponse {
|
|
130
|
+
items: Array<UserListResponse.Item>;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Pagination metadata for a list response.
|
|
134
|
+
*/
|
|
135
|
+
pagination: UserListResponse.Pagination;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export namespace UserListResponse {
|
|
139
|
+
/**
|
|
140
|
+
* A SOCKS5 credential without its password.
|
|
141
|
+
*/
|
|
142
|
+
export interface Item {
|
|
143
|
+
id: string;
|
|
144
|
+
|
|
145
|
+
createdAt: string;
|
|
146
|
+
|
|
147
|
+
username: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* The proxy this user routes to (dedicated routing), or null if unbound.
|
|
151
|
+
*/
|
|
152
|
+
proxyId?: string | null;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Pagination metadata for a list response.
|
|
157
|
+
*/
|
|
158
|
+
export interface Pagination {
|
|
159
|
+
/**
|
|
160
|
+
* Whether a next page exists.
|
|
161
|
+
*/
|
|
162
|
+
hasNext: boolean;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Whether a previous page exists.
|
|
166
|
+
*/
|
|
167
|
+
hasPrev: boolean;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Current page number (1-based).
|
|
171
|
+
*/
|
|
172
|
+
page: number;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Total number of pages.
|
|
176
|
+
*/
|
|
177
|
+
pages: number;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Number of items per page.
|
|
181
|
+
*/
|
|
182
|
+
pageSize: number;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Total number of items across all pages.
|
|
186
|
+
*/
|
|
187
|
+
total: number;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* A page of connections.
|
|
193
|
+
*/
|
|
194
|
+
export interface UserListConnectionsResponse {
|
|
195
|
+
items: Array<UserListConnectionsResponse.Item>;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Pagination metadata for a list response.
|
|
199
|
+
*/
|
|
200
|
+
pagination: UserListConnectionsResponse.Pagination;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export namespace UserListConnectionsResponse {
|
|
204
|
+
/**
|
|
205
|
+
* A single proxy connection, aggregated across its lifetime. Byte counts are
|
|
206
|
+
* totals for the whole connection.
|
|
207
|
+
*/
|
|
208
|
+
export interface Item {
|
|
209
|
+
/**
|
|
210
|
+
* Total bytes received from upstream over the connection's lifetime.
|
|
211
|
+
*/
|
|
212
|
+
bytesIn: number;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Total bytes sent to upstream over the connection's lifetime.
|
|
216
|
+
*/
|
|
217
|
+
bytesOut: number;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Upstream country code (ISO 3166-1 alpha-2), or empty if unknown.
|
|
221
|
+
*/
|
|
222
|
+
country: string;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Destination host the client connected to.
|
|
226
|
+
*/
|
|
227
|
+
dstHost: string;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Destination port the client connected to.
|
|
231
|
+
*/
|
|
232
|
+
dstPort: number;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Elapsed time between startedAt and endedAt, in milliseconds.
|
|
236
|
+
*/
|
|
237
|
+
durationMs: number;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Time of the connection's last recorded activity (close time once closed).
|
|
241
|
+
*/
|
|
242
|
+
endedAt: string;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Transport protocol of a connection.
|
|
246
|
+
*/
|
|
247
|
+
protocol: 'tcp' | 'udp' | 'unknown';
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Upstream provider that served the connection.
|
|
251
|
+
*/
|
|
252
|
+
provider: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* The proxy the connection was routed through. All-zero when the upstream was
|
|
256
|
+
* unresolved at capture time.
|
|
257
|
+
*/
|
|
258
|
+
proxyId: string;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Unique id of this connection.
|
|
262
|
+
*/
|
|
263
|
+
sessionId: string;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Client source IP address.
|
|
267
|
+
*/
|
|
268
|
+
srcIp: string;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* When the connection started.
|
|
272
|
+
*/
|
|
273
|
+
startedAt: string;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* `active` while the connection is still open (no terminal record yet); `closed`
|
|
277
|
+
* once it has ended.
|
|
278
|
+
*/
|
|
279
|
+
status: 'active' | 'closed';
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* bytesIn + bytesOut.
|
|
283
|
+
*/
|
|
284
|
+
totalBytes: number;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* The user that made the connection.
|
|
288
|
+
*/
|
|
289
|
+
userId: string;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Why the connection closed; null while still active.
|
|
293
|
+
*/
|
|
294
|
+
closeReason?: string | null;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Pagination metadata for a list response.
|
|
299
|
+
*/
|
|
300
|
+
export interface Pagination {
|
|
301
|
+
/**
|
|
302
|
+
* Whether a next page exists.
|
|
303
|
+
*/
|
|
304
|
+
hasNext: boolean;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Whether a previous page exists.
|
|
308
|
+
*/
|
|
309
|
+
hasPrev: boolean;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Current page number (1-based).
|
|
313
|
+
*/
|
|
314
|
+
page: number;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Total number of pages.
|
|
318
|
+
*/
|
|
319
|
+
pages: number;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Number of items per page.
|
|
323
|
+
*/
|
|
324
|
+
pageSize: number;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Total number of items across all pages.
|
|
328
|
+
*/
|
|
329
|
+
total: number;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export interface UserCreateParams {
|
|
334
|
+
/**
|
|
335
|
+
* Desired SOCKS5 password, 1-255 bytes (RFC 1929). Generated when omitted.
|
|
336
|
+
*/
|
|
337
|
+
password?: string;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Proxy to bind the user to for dedicated routing.
|
|
341
|
+
*/
|
|
342
|
+
proxyId?: string;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Desired SOCKS5 username, 1-255 bytes (RFC 1929). Generated when omitted.
|
|
346
|
+
*/
|
|
347
|
+
username?: string;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export interface UserUpdateParams {
|
|
351
|
+
/**
|
|
352
|
+
* Proxy to rebind to, or null to detach. Omit to leave the user's current binding
|
|
353
|
+
* unchanged — only an explicit null detaches.
|
|
354
|
+
*/
|
|
355
|
+
proxyId?: string | null;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
export interface UserListParams {
|
|
359
|
+
/**
|
|
360
|
+
* Page number (1-based).
|
|
361
|
+
*/
|
|
362
|
+
page?: number;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Number of items per page.
|
|
366
|
+
*/
|
|
367
|
+
pageSize?: number;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Filter to users bound to this proxy. Users not bound to it (including unbound
|
|
371
|
+
* users) are excluded.
|
|
372
|
+
*/
|
|
373
|
+
proxyId?: string;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export interface UserListConnectionsParams {
|
|
377
|
+
/**
|
|
378
|
+
* Filter to connections that closed with this reason (closed connections only).
|
|
379
|
+
*/
|
|
380
|
+
closeReason?: string;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Filter to connections served from this upstream country (ISO 3166-1 alpha-2).
|
|
384
|
+
*/
|
|
385
|
+
country?: string;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Filter to connections to this destination host (exact match).
|
|
389
|
+
*/
|
|
390
|
+
dstHost?: string;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Filter to connections to this destination port.
|
|
394
|
+
*/
|
|
395
|
+
dstPort?: number;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Filter to connections whose last activity was at or after this time (inclusive).
|
|
399
|
+
*/
|
|
400
|
+
endedAfter?: string;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Filter to connections whose last activity was at or before this time
|
|
404
|
+
* (inclusive).
|
|
405
|
+
*/
|
|
406
|
+
endedBefore?: string;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Filter to connections with at most this many bytes received from upstream.
|
|
410
|
+
*/
|
|
411
|
+
maxBytesIn?: number;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Filter to connections with at most this many bytes sent to upstream.
|
|
415
|
+
*/
|
|
416
|
+
maxBytesOut?: number;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Filter to connections lasting at most this many milliseconds.
|
|
420
|
+
*/
|
|
421
|
+
maxDurationMs?: number;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Filter to connections with at most this much total traffic (bytesIn + bytesOut).
|
|
425
|
+
*/
|
|
426
|
+
maxTotalBytes?: number;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Filter to connections with at least this many bytes received from upstream.
|
|
430
|
+
*/
|
|
431
|
+
minBytesIn?: number;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Filter to connections with at least this many bytes sent to upstream.
|
|
435
|
+
*/
|
|
436
|
+
minBytesOut?: number;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Filter to connections lasting at least this many milliseconds.
|
|
440
|
+
*/
|
|
441
|
+
minDurationMs?: number;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Filter to connections with at least this much total traffic (bytesIn +
|
|
445
|
+
* bytesOut).
|
|
446
|
+
*/
|
|
447
|
+
minTotalBytes?: number;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Sort direction.
|
|
451
|
+
*/
|
|
452
|
+
order?: 'asc' | 'desc';
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Property to order the results by.
|
|
456
|
+
*/
|
|
457
|
+
orderBy?: 'startedAt' | 'endedAt' | 'bytesIn' | 'bytesOut' | 'totalBytes' | 'durationMs';
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Page number (1-based).
|
|
461
|
+
*/
|
|
462
|
+
page?: number;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Number of items per page.
|
|
466
|
+
*/
|
|
467
|
+
pageSize?: number;
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Filter to connections of this transport protocol.
|
|
471
|
+
*/
|
|
472
|
+
protocol?: 'tcp' | 'udp' | 'unknown';
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Filter to connections served by this upstream provider.
|
|
476
|
+
*/
|
|
477
|
+
provider?: string;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Filter to connections routed through this proxy.
|
|
481
|
+
*/
|
|
482
|
+
proxyId?: string;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Filter to a single connection by its session id.
|
|
486
|
+
*/
|
|
487
|
+
sessionId?: string;
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Filter to connections that started at or after this time (inclusive).
|
|
491
|
+
*/
|
|
492
|
+
startedAfter?: string;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Filter to connections that started at or before this time (inclusive).
|
|
496
|
+
*/
|
|
497
|
+
startedBefore?: string;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Filter by connection status.
|
|
501
|
+
*/
|
|
502
|
+
status?: 'active' | 'closed';
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export declare namespace Users {
|
|
506
|
+
export {
|
|
507
|
+
type UserCreateResponse as UserCreateResponse,
|
|
508
|
+
type UserRetrieveResponse as UserRetrieveResponse,
|
|
509
|
+
type UserUpdateResponse as UserUpdateResponse,
|
|
510
|
+
type UserListResponse as UserListResponse,
|
|
511
|
+
type UserListConnectionsResponse as UserListConnectionsResponse,
|
|
512
|
+
type UserCreateParams as UserCreateParams,
|
|
513
|
+
type UserUpdateParams as UserUpdateParams,
|
|
514
|
+
type UserListParams as UserListParams,
|
|
515
|
+
type UserListConnectionsParams as UserListConnectionsParams,
|
|
516
|
+
};
|
|
517
|
+
}
|
|
@@ -17,7 +17,9 @@ export class Credentials extends APIResource {
|
|
|
17
17
|
packages: PackagesAPI.Packages = new PackagesAPI.Packages(this._client);
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Returns a paginated list of all credentials belonging to the authenticated user
|
|
21
|
+
* across every package. Accepts standard pagination query parameters and responds
|
|
22
|
+
* with the credential items plus pagination metadata.
|
|
21
23
|
*/
|
|
22
24
|
list(
|
|
23
25
|
query: CredentialListParams | null | undefined = {},
|
|
@@ -19,7 +19,9 @@ export class Credentials extends APIResource {
|
|
|
19
19
|
fields: FieldsAPI.Fields = new FieldsAPI.Fields(this._client);
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Creates a credential under the given package with a `credentialName` and at
|
|
23
|
+
* least one field. Each field has a `fieldType` (email, username, password,
|
|
24
|
+
* api_token, phone_number, two_factor_secret, or backup_codes) and a value.
|
|
23
25
|
*/
|
|
24
26
|
create(
|
|
25
27
|
packageName: string,
|
|
@@ -30,7 +32,8 @@ export class Credentials extends APIResource {
|
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
/**
|
|
33
|
-
*
|
|
35
|
+
* Fetches a single credential by `packageName` and `credentialName`, including all
|
|
36
|
+
* of its stored fields. Returns not found if no matching credential exists.
|
|
34
37
|
*/
|
|
35
38
|
retrieve(
|
|
36
39
|
credentialName: string,
|
|
@@ -45,7 +48,8 @@ export class Credentials extends APIResource {
|
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
/**
|
|
48
|
-
*
|
|
51
|
+
* Permanently deletes the credential identified by `packageName` and
|
|
52
|
+
* `credentialName`, removing all of its fields. Returns the deleted credential.
|
|
49
53
|
*/
|
|
50
54
|
delete(
|
|
51
55
|
credentialName: string,
|
|
@@ -61,15 +65,23 @@ export class Credentials extends APIResource {
|
|
|
61
65
|
}
|
|
62
66
|
|
|
63
67
|
export interface Credential {
|
|
68
|
+
createdBy: string | null;
|
|
69
|
+
|
|
64
70
|
credentialName: string;
|
|
65
71
|
|
|
66
72
|
fields: Array<Credential.Field>;
|
|
67
73
|
|
|
74
|
+
ownerId: string;
|
|
75
|
+
|
|
68
76
|
packageName: string;
|
|
69
77
|
|
|
70
78
|
secretPath: string;
|
|
71
79
|
|
|
72
|
-
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated Deprecated: use createdBy (same value — the creating actor). Null
|
|
82
|
+
* for credentials created before rollout.
|
|
83
|
+
*/
|
|
84
|
+
userId: string | null;
|
|
73
85
|
}
|
|
74
86
|
|
|
75
87
|
export namespace Credential {
|
|
@@ -8,7 +8,9 @@ import { path } from '../../../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Fields extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Adds a single field to an existing credential. The body specifies a `fieldType`
|
|
12
|
+
* (one of the supported field types) and its value. Returns a conflict if a field
|
|
13
|
+
* of that type already exists on the credential.
|
|
12
14
|
*/
|
|
13
15
|
create(
|
|
14
16
|
credentialName: string,
|
|
@@ -23,7 +25,9 @@ export class Fields extends APIResource {
|
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
/**
|
|
26
|
-
*
|
|
28
|
+
* Updates the value of an existing field on a credential, identified by
|
|
29
|
+
* `packageName`, `credentialName`, and `fieldType` in the path. The body carries
|
|
30
|
+
* the new value and returns the updated credential.
|
|
27
31
|
*/
|
|
28
32
|
update(
|
|
29
33
|
fieldType:
|
|
@@ -45,7 +49,8 @@ export class Fields extends APIResource {
|
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
/**
|
|
48
|
-
*
|
|
52
|
+
* Removes a single field of the given `fieldType` from the specified credential
|
|
53
|
+
* while leaving the credential itself intact. Returns the updated credential.
|
|
49
54
|
*/
|
|
50
55
|
delete(
|
|
51
56
|
fieldType:
|
|
@@ -20,14 +20,17 @@ export class Packages extends APIResource {
|
|
|
20
20
|
credentials: CredentialsAPI.Credentials = new CredentialsAPI.Credentials(this._client);
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Creates a new package (identified by `packageName`) under which credentials can
|
|
24
|
+
* be grouped. Returns a conflict if a package with the same name already exists
|
|
25
|
+
* for the user.
|
|
24
26
|
*/
|
|
25
27
|
create(body: PackageCreateParams, options?: RequestOptions): APIPromise<PackageCreateResponse> {
|
|
26
28
|
return this._client.post('/credentials/packages', { body, ...options });
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
/**
|
|
30
|
-
*
|
|
32
|
+
* Returns all credentials stored under the given `packageName`. Each credential
|
|
33
|
+
* includes its name, secret path, and the list of fields it holds.
|
|
31
34
|
*/
|
|
32
35
|
list(packageName: string, options?: RequestOptions): APIPromise<PackageListResponse> {
|
|
33
36
|
return this._client.get(path`/credentials/packages/${packageName}`, options);
|
|
@@ -8,7 +8,8 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Actions extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Performs a global system action on the device, such as navigating back or going
|
|
12
|
+
* to the home screen, identified by an action code.
|
|
12
13
|
*/
|
|
13
14
|
global(deviceID: string, params: ActionGlobalParams, options?: RequestOptions): APIPromise<void> {
|
|
14
15
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -28,7 +29,7 @@ export class Actions extends APIResource {
|
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
+
* Returns whether the accessibility overlay is currently visible on the device.
|
|
32
33
|
*/
|
|
33
34
|
overlayVisible(
|
|
34
35
|
deviceID: string,
|
|
@@ -50,7 +51,8 @@ export class Actions extends APIResource {
|
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
/**
|
|
53
|
-
*
|
|
54
|
+
* Shows or hides the accessibility overlay on the device based on the visibility
|
|
55
|
+
* flag in the request body.
|
|
54
56
|
*/
|
|
55
57
|
setOverlayVisible(
|
|
56
58
|
deviceID: string,
|
|
@@ -74,7 +76,9 @@ export class Actions extends APIResource {
|
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
/**
|
|
77
|
-
*
|
|
79
|
+
* Swipes from a start coordinate to an end coordinate over the given duration in
|
|
80
|
+
* milliseconds. An optional stealth flag applies human-like jitter and curved
|
|
81
|
+
* paths on devices that support it.
|
|
78
82
|
*/
|
|
79
83
|
swipe(deviceID: string, params: ActionSwipeParams, options?: RequestOptions): APIPromise<void> {
|
|
80
84
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -94,7 +98,8 @@ export class Actions extends APIResource {
|
|
|
94
98
|
}
|
|
95
99
|
|
|
96
100
|
/**
|
|
97
|
-
*
|
|
101
|
+
* Taps the device screen at the given x/y coordinates. An optional stealth flag
|
|
102
|
+
* routes the tap through human-like input on devices that support it.
|
|
98
103
|
*/
|
|
99
104
|
tap(deviceID: string, params: ActionTapParams, options?: RequestOptions): APIPromise<void> {
|
|
100
105
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|