@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
|
@@ -10,21 +10,25 @@ export class Carriers extends APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* Create a new carrier
|
|
12
12
|
*/
|
|
13
|
-
create(body: CarrierCreateParams, options?: RequestOptions): APIPromise<
|
|
13
|
+
create(body: CarrierCreateParams, options?: RequestOptions): APIPromise<CarrierCreateResponse> {
|
|
14
14
|
return this._client.post('/carriers', { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Get carrier by ID
|
|
19
19
|
*/
|
|
20
|
-
retrieve(carrierID: number, options?: RequestOptions): APIPromise<
|
|
20
|
+
retrieve(carrierID: number, options?: RequestOptions): APIPromise<CarrierRetrieveResponse> {
|
|
21
21
|
return this._client.get(path`/carriers/${carrierID}`, options);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Update a carrier
|
|
26
26
|
*/
|
|
27
|
-
update(
|
|
27
|
+
update(
|
|
28
|
+
carrierID: number,
|
|
29
|
+
body: CarrierUpdateParams,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): APIPromise<CarrierUpdateResponse> {
|
|
28
32
|
return this._client.patch(path`/carriers/${carrierID}`, { body, ...options });
|
|
29
33
|
}
|
|
30
34
|
|
|
@@ -48,12 +52,98 @@ export class Carriers extends APIResource {
|
|
|
48
52
|
/**
|
|
49
53
|
* Get carrier by MCC and MNC
|
|
50
54
|
*/
|
|
51
|
-
lookup(query: CarrierLookupParams, options?: RequestOptions): APIPromise<
|
|
55
|
+
lookup(query: CarrierLookupParams, options?: RequestOptions): APIPromise<CarrierLookupResponse> {
|
|
52
56
|
return this._client.get('/carriers/lookup', { query, ...options });
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
59
|
|
|
56
|
-
export interface
|
|
60
|
+
export interface CarrierCreateResponse {
|
|
61
|
+
id: number;
|
|
62
|
+
|
|
63
|
+
company: string;
|
|
64
|
+
|
|
65
|
+
country: string;
|
|
66
|
+
|
|
67
|
+
country_code: string;
|
|
68
|
+
|
|
69
|
+
country_iso: string;
|
|
70
|
+
|
|
71
|
+
created_at: string;
|
|
72
|
+
|
|
73
|
+
detail_url: string;
|
|
74
|
+
|
|
75
|
+
gsm_bands: string;
|
|
76
|
+
|
|
77
|
+
lte_bands: string;
|
|
78
|
+
|
|
79
|
+
mcc: string;
|
|
80
|
+
|
|
81
|
+
mnc: string;
|
|
82
|
+
|
|
83
|
+
mobile_prefix: string;
|
|
84
|
+
|
|
85
|
+
nsn_size: string;
|
|
86
|
+
|
|
87
|
+
number_format: string;
|
|
88
|
+
|
|
89
|
+
operator: string;
|
|
90
|
+
|
|
91
|
+
protocols: string;
|
|
92
|
+
|
|
93
|
+
umts_bands: string;
|
|
94
|
+
|
|
95
|
+
website: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* A URL to the JSON Schema for this object.
|
|
99
|
+
*/
|
|
100
|
+
$schema?: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface CarrierRetrieveResponse {
|
|
104
|
+
id: number;
|
|
105
|
+
|
|
106
|
+
company: string;
|
|
107
|
+
|
|
108
|
+
country: string;
|
|
109
|
+
|
|
110
|
+
country_code: string;
|
|
111
|
+
|
|
112
|
+
country_iso: string;
|
|
113
|
+
|
|
114
|
+
created_at: string;
|
|
115
|
+
|
|
116
|
+
detail_url: string;
|
|
117
|
+
|
|
118
|
+
gsm_bands: string;
|
|
119
|
+
|
|
120
|
+
lte_bands: string;
|
|
121
|
+
|
|
122
|
+
mcc: string;
|
|
123
|
+
|
|
124
|
+
mnc: string;
|
|
125
|
+
|
|
126
|
+
mobile_prefix: string;
|
|
127
|
+
|
|
128
|
+
nsn_size: string;
|
|
129
|
+
|
|
130
|
+
number_format: string;
|
|
131
|
+
|
|
132
|
+
operator: string;
|
|
133
|
+
|
|
134
|
+
protocols: string;
|
|
135
|
+
|
|
136
|
+
umts_bands: string;
|
|
137
|
+
|
|
138
|
+
website: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* A URL to the JSON Schema for this object.
|
|
142
|
+
*/
|
|
143
|
+
$schema?: string;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export interface CarrierUpdateResponse {
|
|
57
147
|
id: number;
|
|
58
148
|
|
|
59
149
|
company: string;
|
|
@@ -97,7 +187,7 @@ export interface Carrier {
|
|
|
97
187
|
}
|
|
98
188
|
|
|
99
189
|
export interface CarrierListResponse {
|
|
100
|
-
items: Array<
|
|
190
|
+
items: Array<CarrierListResponse.Item> | null;
|
|
101
191
|
|
|
102
192
|
pagination: Shared.Meta;
|
|
103
193
|
|
|
@@ -107,6 +197,51 @@ export interface CarrierListResponse {
|
|
|
107
197
|
$schema?: string;
|
|
108
198
|
}
|
|
109
199
|
|
|
200
|
+
export namespace CarrierListResponse {
|
|
201
|
+
export interface Item {
|
|
202
|
+
id: number;
|
|
203
|
+
|
|
204
|
+
company: string;
|
|
205
|
+
|
|
206
|
+
country: string;
|
|
207
|
+
|
|
208
|
+
country_code: string;
|
|
209
|
+
|
|
210
|
+
country_iso: string;
|
|
211
|
+
|
|
212
|
+
created_at: string;
|
|
213
|
+
|
|
214
|
+
detail_url: string;
|
|
215
|
+
|
|
216
|
+
gsm_bands: string;
|
|
217
|
+
|
|
218
|
+
lte_bands: string;
|
|
219
|
+
|
|
220
|
+
mcc: string;
|
|
221
|
+
|
|
222
|
+
mnc: string;
|
|
223
|
+
|
|
224
|
+
mobile_prefix: string;
|
|
225
|
+
|
|
226
|
+
nsn_size: string;
|
|
227
|
+
|
|
228
|
+
number_format: string;
|
|
229
|
+
|
|
230
|
+
operator: string;
|
|
231
|
+
|
|
232
|
+
protocols: string;
|
|
233
|
+
|
|
234
|
+
umts_bands: string;
|
|
235
|
+
|
|
236
|
+
website: string;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* A URL to the JSON Schema for this object.
|
|
240
|
+
*/
|
|
241
|
+
$schema?: string;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
110
245
|
export interface CarrierDeleteResponse {
|
|
111
246
|
message: string;
|
|
112
247
|
|
|
@@ -116,6 +251,49 @@ export interface CarrierDeleteResponse {
|
|
|
116
251
|
$schema?: string;
|
|
117
252
|
}
|
|
118
253
|
|
|
254
|
+
export interface CarrierLookupResponse {
|
|
255
|
+
id: number;
|
|
256
|
+
|
|
257
|
+
company: string;
|
|
258
|
+
|
|
259
|
+
country: string;
|
|
260
|
+
|
|
261
|
+
country_code: string;
|
|
262
|
+
|
|
263
|
+
country_iso: string;
|
|
264
|
+
|
|
265
|
+
created_at: string;
|
|
266
|
+
|
|
267
|
+
detail_url: string;
|
|
268
|
+
|
|
269
|
+
gsm_bands: string;
|
|
270
|
+
|
|
271
|
+
lte_bands: string;
|
|
272
|
+
|
|
273
|
+
mcc: string;
|
|
274
|
+
|
|
275
|
+
mnc: string;
|
|
276
|
+
|
|
277
|
+
mobile_prefix: string;
|
|
278
|
+
|
|
279
|
+
nsn_size: string;
|
|
280
|
+
|
|
281
|
+
number_format: string;
|
|
282
|
+
|
|
283
|
+
operator: string;
|
|
284
|
+
|
|
285
|
+
protocols: string;
|
|
286
|
+
|
|
287
|
+
umts_bands: string;
|
|
288
|
+
|
|
289
|
+
website: string;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* A URL to the JSON Schema for this object.
|
|
293
|
+
*/
|
|
294
|
+
$schema?: string;
|
|
295
|
+
}
|
|
296
|
+
|
|
119
297
|
export interface CarrierCreateParams {
|
|
120
298
|
/**
|
|
121
299
|
* Country name
|
|
@@ -316,9 +494,12 @@ export interface CarrierLookupParams {
|
|
|
316
494
|
|
|
317
495
|
export declare namespace Carriers {
|
|
318
496
|
export {
|
|
319
|
-
type
|
|
497
|
+
type CarrierCreateResponse as CarrierCreateResponse,
|
|
498
|
+
type CarrierRetrieveResponse as CarrierRetrieveResponse,
|
|
499
|
+
type CarrierUpdateResponse as CarrierUpdateResponse,
|
|
320
500
|
type CarrierListResponse as CarrierListResponse,
|
|
321
501
|
type CarrierDeleteResponse as CarrierDeleteResponse,
|
|
502
|
+
type CarrierLookupResponse as CarrierLookupResponse,
|
|
322
503
|
type CarrierCreateParams as CarrierCreateParams,
|
|
323
504
|
type CarrierUpdateParams as CarrierUpdateParams,
|
|
324
505
|
type CarrierListParams as CarrierListParams,
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as CountriesAPI from './countries';
|
|
5
|
+
import { Countries, CountryListParams, CountryListResponse } from './countries';
|
|
6
|
+
import * as ProxiesAPI from './proxies';
|
|
7
|
+
import {
|
|
8
|
+
Proxies,
|
|
9
|
+
ProxyBuyParams,
|
|
10
|
+
ProxyBuyResponse,
|
|
11
|
+
ProxyListConnectionsParams,
|
|
12
|
+
ProxyListConnectionsResponse,
|
|
13
|
+
ProxyListParams,
|
|
14
|
+
ProxyListResponse,
|
|
15
|
+
ProxyPingResponse,
|
|
16
|
+
ProxyRetrieveResponse,
|
|
17
|
+
} from './proxies';
|
|
18
|
+
import * as UsersAPI from './users';
|
|
19
|
+
import {
|
|
20
|
+
UserCreateParams,
|
|
21
|
+
UserCreateResponse,
|
|
22
|
+
UserListConnectionsParams,
|
|
23
|
+
UserListConnectionsResponse,
|
|
24
|
+
UserListParams,
|
|
25
|
+
UserListResponse,
|
|
26
|
+
UserRetrieveResponse,
|
|
27
|
+
UserUpdateParams,
|
|
28
|
+
UserUpdateResponse,
|
|
29
|
+
Users,
|
|
30
|
+
} from './users';
|
|
31
|
+
|
|
32
|
+
export class Connect extends APIResource {
|
|
33
|
+
countries: CountriesAPI.Countries = new CountriesAPI.Countries(this._client);
|
|
34
|
+
proxies: ProxiesAPI.Proxies = new ProxiesAPI.Proxies(this._client);
|
|
35
|
+
users: UsersAPI.Users = new UsersAPI.Users(this._client);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
Connect.Countries = Countries;
|
|
39
|
+
Connect.Proxies = Proxies;
|
|
40
|
+
Connect.Users = Users;
|
|
41
|
+
|
|
42
|
+
export declare namespace Connect {
|
|
43
|
+
export {
|
|
44
|
+
Countries as Countries,
|
|
45
|
+
type CountryListResponse as CountryListResponse,
|
|
46
|
+
type CountryListParams as CountryListParams,
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
Proxies as Proxies,
|
|
51
|
+
type ProxyRetrieveResponse as ProxyRetrieveResponse,
|
|
52
|
+
type ProxyListResponse as ProxyListResponse,
|
|
53
|
+
type ProxyBuyResponse as ProxyBuyResponse,
|
|
54
|
+
type ProxyListConnectionsResponse as ProxyListConnectionsResponse,
|
|
55
|
+
type ProxyPingResponse as ProxyPingResponse,
|
|
56
|
+
type ProxyListParams as ProxyListParams,
|
|
57
|
+
type ProxyBuyParams as ProxyBuyParams,
|
|
58
|
+
type ProxyListConnectionsParams as ProxyListConnectionsParams,
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
Users as Users,
|
|
63
|
+
type UserCreateResponse as UserCreateResponse,
|
|
64
|
+
type UserRetrieveResponse as UserRetrieveResponse,
|
|
65
|
+
type UserUpdateResponse as UserUpdateResponse,
|
|
66
|
+
type UserListResponse as UserListResponse,
|
|
67
|
+
type UserListConnectionsResponse as UserListConnectionsResponse,
|
|
68
|
+
type UserCreateParams as UserCreateParams,
|
|
69
|
+
type UserUpdateParams as UserUpdateParams,
|
|
70
|
+
type UserListParams as UserListParams,
|
|
71
|
+
type UserListConnectionsParams as UserListConnectionsParams,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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 { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Mobilerun Connect country coverage information
|
|
9
|
+
*/
|
|
10
|
+
export class Countries extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Lookup of countries that can be selected when creating a proxy. Each country
|
|
13
|
+
* lists the proxy types available there; without a ?type filter, every covered
|
|
14
|
+
* country is returned.
|
|
15
|
+
*/
|
|
16
|
+
list(
|
|
17
|
+
query: CountryListParams | null | undefined = {},
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): APIPromise<CountryListResponse> {
|
|
20
|
+
return this._client.get('/connect/countries', { query, ...options });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A page of countries.
|
|
26
|
+
*/
|
|
27
|
+
export interface CountryListResponse {
|
|
28
|
+
items: Array<CountryListResponse.Item>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Pagination metadata for a list response.
|
|
32
|
+
*/
|
|
33
|
+
pagination: CountryListResponse.Pagination;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export namespace CountryListResponse {
|
|
37
|
+
export interface Item {
|
|
38
|
+
/**
|
|
39
|
+
* ISO 3166-1 alpha-2 country code (lowercase).
|
|
40
|
+
*/
|
|
41
|
+
code: string;
|
|
42
|
+
|
|
43
|
+
name: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Proxy types available to provision in this country.
|
|
47
|
+
*/
|
|
48
|
+
proxyTypes: Array<'dedicated_residential' | 'residential' | 'mobile'>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Pagination metadata for a list response.
|
|
53
|
+
*/
|
|
54
|
+
export interface Pagination {
|
|
55
|
+
/**
|
|
56
|
+
* Whether a next page exists.
|
|
57
|
+
*/
|
|
58
|
+
hasNext: boolean;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Whether a previous page exists.
|
|
62
|
+
*/
|
|
63
|
+
hasPrev: boolean;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Current page number (1-based).
|
|
67
|
+
*/
|
|
68
|
+
page: number;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Total number of pages.
|
|
72
|
+
*/
|
|
73
|
+
pages: number;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Number of items per page.
|
|
77
|
+
*/
|
|
78
|
+
pageSize: number;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Total number of items across all pages.
|
|
82
|
+
*/
|
|
83
|
+
total: number;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface CountryListParams {
|
|
88
|
+
/**
|
|
89
|
+
* Page number (1-based).
|
|
90
|
+
*/
|
|
91
|
+
page?: number;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Number of items per page.
|
|
95
|
+
*/
|
|
96
|
+
pageSize?: number;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Filter to countries offering this proxy type.
|
|
100
|
+
*/
|
|
101
|
+
type?: 'dedicated_residential' | 'residential' | 'mobile';
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export declare namespace Countries {
|
|
105
|
+
export { type CountryListResponse as CountryListResponse, type CountryListParams as CountryListParams };
|
|
106
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Connect } from './connect';
|
|
4
|
+
export { Countries, type CountryListResponse, type CountryListParams } from './countries';
|
|
5
|
+
export {
|
|
6
|
+
Proxies,
|
|
7
|
+
type ProxyRetrieveResponse,
|
|
8
|
+
type ProxyListResponse,
|
|
9
|
+
type ProxyBuyResponse,
|
|
10
|
+
type ProxyListConnectionsResponse,
|
|
11
|
+
type ProxyPingResponse,
|
|
12
|
+
type ProxyListParams,
|
|
13
|
+
type ProxyBuyParams,
|
|
14
|
+
type ProxyListConnectionsParams,
|
|
15
|
+
} from './proxies';
|
|
16
|
+
export {
|
|
17
|
+
Users,
|
|
18
|
+
type UserCreateResponse,
|
|
19
|
+
type UserRetrieveResponse,
|
|
20
|
+
type UserUpdateResponse,
|
|
21
|
+
type UserListResponse,
|
|
22
|
+
type UserListConnectionsResponse,
|
|
23
|
+
type UserCreateParams,
|
|
24
|
+
type UserUpdateParams,
|
|
25
|
+
type UserListParams,
|
|
26
|
+
type UserListConnectionsParams,
|
|
27
|
+
} from './users';
|