@mobilerun/sdk 3.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +542 -0
- package/README.md +2 -2
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +41 -25
- package/client.d.mts.map +1 -1
- package/client.d.ts +41 -25
- package/client.d.ts.map +1 -1
- package/client.js +52 -18
- package/client.js.map +1 -1
- package/client.mjs +53 -19
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +10 -10
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +10 -10
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/lib/trajectory-decoder-stream.d.mts.map +1 -1
- package/lib/trajectory-decoder-stream.d.ts.map +1 -1
- package/package.json +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/apps.d.mts +198 -16
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +198 -16
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +102 -0
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +102 -0
- package/resources/apps.mjs.map +1 -1
- package/resources/carriers.d.mts +108 -7
- package/resources/carriers.d.mts.map +1 -1
- package/resources/carriers.d.ts +108 -7
- package/resources/carriers.d.ts.map +1 -1
- package/resources/carriers.js +3 -0
- package/resources/carriers.js.map +1 -1
- package/resources/carriers.mjs +3 -0
- package/resources/carriers.mjs.map +1 -1
- package/resources/connect/connect.d.mts +18 -0
- package/resources/connect/connect.d.mts.map +1 -0
- package/resources/connect/connect.d.ts +18 -0
- package/resources/connect/connect.d.ts.map +1 -0
- package/resources/connect/connect.js +25 -0
- package/resources/connect/connect.js.map +1 -0
- package/resources/connect/connect.mjs +20 -0
- package/resources/connect/connect.mjs.map +1 -0
- package/resources/connect/countries.d.mts +79 -0
- package/resources/connect/countries.d.mts.map +1 -0
- package/resources/connect/countries.d.ts +79 -0
- package/resources/connect/countries.d.ts.map +1 -0
- package/resources/connect/countries.js +15 -0
- package/resources/connect/countries.js.map +1 -0
- package/resources/connect/countries.mjs +11 -0
- package/resources/connect/countries.mjs.map +1 -0
- package/resources/connect/index.d.mts +5 -0
- package/resources/connect/index.d.mts.map +1 -0
- package/resources/connect/index.d.ts +5 -0
- package/resources/connect/index.d.ts.map +1 -0
- package/resources/connect/index.js +13 -0
- package/resources/connect/index.js.map +1 -0
- package/resources/connect/index.mjs +6 -0
- package/resources/connect/index.mjs.map +1 -0
- package/resources/connect/proxies.d.mts +454 -0
- package/resources/connect/proxies.d.mts.map +1 -0
- package/resources/connect/proxies.d.ts +454 -0
- package/resources/connect/proxies.d.ts.map +1 -0
- package/resources/connect/proxies.js +57 -0
- package/resources/connect/proxies.js.map +1 -0
- package/resources/connect/proxies.mjs +53 -0
- package/resources/connect/proxies.mjs.map +1 -0
- package/resources/connect/users.d.mts +387 -0
- package/resources/connect/users.d.mts.map +1 -0
- package/resources/connect/users.d.ts +387 -0
- package/resources/connect/users.d.ts.map +1 -0
- package/resources/connect/users.js +54 -0
- package/resources/connect/users.js.map +1 -0
- package/resources/connect/users.mjs +50 -0
- package/resources/connect/users.mjs.map +1 -0
- package/resources/connect.d.mts +2 -0
- package/resources/connect.d.mts.map +1 -0
- package/resources/connect.d.ts +2 -0
- package/resources/connect.d.ts.map +1 -0
- package/resources/connect.js +6 -0
- package/resources/connect.js.map +1 -0
- package/resources/connect.mjs +3 -0
- package/resources/connect.mjs.map +1 -0
- package/resources/credentials/credentials.d.mts +3 -0
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +3 -0
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +3 -0
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +3 -0
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/index.d.mts.map +1 -1
- package/resources/credentials/index.d.ts.map +1 -1
- package/resources/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.mts +3 -0
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +3 -0
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +3 -0
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +3 -0
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +3 -0
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +3 -0
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/fields.js +3 -0
- package/resources/credentials/packages/credentials/fields.js.map +1 -1
- package/resources/credentials/packages/credentials/fields.mjs +3 -0
- package/resources/credentials/packages/credentials/fields.mjs.map +1 -1
- package/resources/credentials/packages/credentials/index.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/index.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials.mjs.map +1 -1
- package/resources/credentials/packages/index.d.mts.map +1 -1
- package/resources/credentials/packages/index.d.ts.map +1 -1
- package/resources/credentials/packages/index.mjs.map +1 -1
- package/resources/credentials/packages/packages.d.mts +3 -0
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +3 -0
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +3 -0
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +3 -0
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/credentials/packages.d.mts.map +1 -1
- package/resources/credentials/packages.d.ts.map +1 -1
- package/resources/credentials/packages.mjs.map +1 -1
- package/resources/credentials.d.mts.map +1 -1
- package/resources/credentials.d.ts.map +1 -1
- package/resources/credentials.mjs.map +1 -1
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +43 -22
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +43 -22
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +19 -19
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +19 -19
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +118 -27
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +118 -27
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +71 -18
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +72 -19
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/esim.d.mts +101 -0
- package/resources/devices/esim.d.mts.map +1 -0
- package/resources/devices/esim.d.ts +101 -0
- package/resources/devices/esim.d.ts.map +1 -0
- package/resources/devices/{time.js → esim.js} +23 -22
- package/resources/devices/esim.js.map +1 -0
- package/resources/devices/{time.mjs → esim.mjs} +21 -20
- package/resources/devices/esim.mjs.map +1 -0
- package/resources/devices/files.d.mts.map +1 -1
- package/resources/devices/files.d.ts.map +1 -1
- package/resources/devices/files.mjs.map +1 -1
- package/resources/devices/index.d.mts +8 -6
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +8 -6
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +7 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +5 -3
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +5 -0
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +5 -0
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.mjs.map +1 -1
- package/resources/devices/language.d.mts +43 -0
- package/resources/devices/language.d.mts.map +1 -0
- package/resources/devices/language.d.ts +43 -0
- package/resources/devices/language.d.ts.map +1 -0
- package/resources/devices/language.js +47 -0
- package/resources/devices/language.js.map +1 -0
- package/resources/devices/language.mjs +43 -0
- package/resources/devices/language.mjs.map +1 -0
- package/resources/devices/location.d.mts +3 -10
- package/resources/devices/location.d.mts.map +1 -1
- package/resources/devices/location.d.ts +3 -10
- package/resources/devices/location.d.ts.map +1 -1
- package/resources/devices/location.js.map +1 -1
- package/resources/devices/location.mjs.map +1 -1
- package/resources/devices/packages.d.mts.map +1 -1
- package/resources/devices/packages.d.ts.map +1 -1
- package/resources/devices/packages.mjs.map +1 -1
- package/resources/devices/profile.d.mts.map +1 -1
- package/resources/devices/profile.d.ts.map +1 -1
- package/resources/devices/profile.mjs.map +1 -1
- package/resources/devices/proxy.d.mts +35 -9
- package/resources/devices/proxy.d.mts.map +1 -1
- package/resources/devices/proxy.d.ts +35 -9
- package/resources/devices/proxy.d.ts.map +1 -1
- package/resources/devices/proxy.js +17 -0
- package/resources/devices/proxy.js.map +1 -1
- package/resources/devices/proxy.mjs +17 -0
- package/resources/devices/proxy.mjs.map +1 -1
- package/resources/devices/state.d.mts +38 -3
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +38 -3
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +17 -0
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +17 -0
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/tasks.d.mts +3 -0
- package/resources/devices/tasks.d.mts.map +1 -1
- package/resources/devices/tasks.d.ts +3 -0
- package/resources/devices/tasks.d.ts.map +1 -1
- package/resources/devices/tasks.js +3 -0
- package/resources/devices/tasks.js.map +1 -1
- package/resources/devices/tasks.mjs +3 -0
- package/resources/devices/tasks.mjs.map +1 -1
- package/resources/devices/timezone.d.mts +37 -0
- package/resources/devices/timezone.d.mts.map +1 -0
- package/resources/devices/timezone.d.ts +37 -0
- package/resources/devices/timezone.d.ts.map +1 -0
- package/resources/devices/timezone.js +47 -0
- package/resources/devices/timezone.js.map +1 -0
- package/resources/devices/timezone.mjs +43 -0
- package/resources/devices/timezone.mjs.map +1 -0
- package/resources/devices.d.mts.map +1 -1
- package/resources/devices.d.ts.map +1 -1
- package/resources/devices.mjs.map +1 -1
- package/resources/hooks.d.mts +35 -4
- package/resources/hooks.d.mts.map +1 -1
- package/resources/hooks.d.ts +35 -4
- package/resources/hooks.d.ts.map +1 -1
- package/resources/hooks.js +9 -3
- package/resources/hooks.js.map +1 -1
- package/resources/hooks.mjs +9 -3
- package/resources/hooks.mjs.map +1 -1
- package/resources/index.d.mts +8 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -2
- package/resources/index.mjs.map +1 -1
- package/resources/models.d.mts +3 -0
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +3 -0
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -0
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -0
- package/resources/models.mjs.map +1 -1
- package/resources/profiles.d.mts.map +1 -1
- package/resources/profiles.d.ts.map +1 -1
- package/resources/profiles.mjs.map +1 -1
- package/resources/proxies.d.mts +141 -21
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +141 -21
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +11 -2
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +11 -2
- package/resources/proxies.mjs.map +1 -1
- package/resources/shared.d.mts +28 -8
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +28 -8
- package/resources/shared.d.ts.map +1 -1
- package/resources/tasks/index.d.mts.map +1 -1
- package/resources/tasks/index.d.ts.map +1 -1
- package/resources/tasks/index.mjs.map +1 -1
- package/resources/tasks/screenshots.d.mts.map +1 -1
- package/resources/tasks/screenshots.d.ts.map +1 -1
- package/resources/tasks/screenshots.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +121 -9
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +121 -9
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/tasks/ui-states.d.mts.map +1 -1
- package/resources/tasks/ui-states.d.ts.map +1 -1
- package/resources/tasks/ui-states.mjs.map +1 -1
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +173 -0
- package/resources/webhooks/deliveries.d.mts.map +1 -0
- package/resources/webhooks/deliveries.d.ts +173 -0
- package/resources/webhooks/deliveries.d.ts.map +1 -0
- package/resources/webhooks/deliveries.js +62 -0
- package/resources/webhooks/deliveries.js.map +1 -0
- package/resources/webhooks/deliveries.mjs +58 -0
- package/resources/webhooks/deliveries.mjs.map +1 -0
- package/resources/webhooks/index.d.mts +3 -0
- package/resources/webhooks/index.d.mts.map +1 -0
- package/resources/webhooks/index.d.ts +3 -0
- package/resources/webhooks/index.d.ts.map +1 -0
- package/resources/webhooks/index.js +9 -0
- package/resources/webhooks/index.js.map +1 -0
- package/resources/webhooks/index.mjs +4 -0
- package/resources/webhooks/index.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +271 -0
- package/resources/webhooks/webhooks.d.mts.map +1 -0
- package/resources/webhooks/webhooks.d.ts +271 -0
- package/resources/webhooks/webhooks.d.ts.map +1 -0
- package/resources/webhooks/webhooks.js +122 -0
- package/resources/webhooks/webhooks.js.map +1 -0
- package/resources/webhooks/webhooks.mjs +117 -0
- package/resources/webhooks/webhooks.mjs.map +1 -0
- package/resources/webhooks.d.mts +2 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +2 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +6 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +3 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources/workflows/action-catalog.d.mts +40 -0
- package/resources/workflows/action-catalog.d.mts.map +1 -0
- package/resources/workflows/action-catalog.d.ts +40 -0
- package/resources/workflows/action-catalog.d.ts.map +1 -0
- package/resources/workflows/action-catalog.js +22 -0
- package/resources/workflows/action-catalog.js.map +1 -0
- package/resources/workflows/action-catalog.mjs +18 -0
- package/resources/workflows/action-catalog.mjs.map +1 -0
- package/resources/workflows/actions/actions.d.mts +86 -0
- package/resources/workflows/actions/actions.d.mts.map +1 -0
- package/resources/workflows/actions/actions.d.ts +86 -0
- package/resources/workflows/actions/actions.d.ts.map +1 -0
- package/resources/workflows/actions/actions.js +48 -0
- package/resources/workflows/actions/actions.js.map +1 -0
- package/resources/workflows/actions/actions.mjs +43 -0
- package/resources/workflows/actions/actions.mjs.map +1 -0
- package/resources/workflows/actions/index.d.mts +3 -0
- package/resources/workflows/actions/index.d.mts.map +1 -0
- package/resources/workflows/actions/index.d.ts +3 -0
- package/resources/workflows/actions/index.d.ts.map +1 -0
- package/resources/workflows/actions/index.js +9 -0
- package/resources/workflows/actions/index.js.map +1 -0
- package/resources/workflows/actions/index.mjs +4 -0
- package/resources/workflows/actions/index.mjs.map +1 -0
- package/resources/workflows/actions/services.d.mts +39 -0
- package/resources/workflows/actions/services.d.mts.map +1 -0
- package/resources/workflows/actions/services.d.ts +39 -0
- package/resources/workflows/actions/services.d.ts.map +1 -0
- package/resources/workflows/actions/services.js +22 -0
- package/resources/workflows/actions/services.js.map +1 -0
- package/resources/workflows/actions/services.mjs +18 -0
- package/resources/workflows/actions/services.mjs.map +1 -0
- package/resources/workflows/actions.d.mts +2 -0
- package/resources/workflows/actions.d.mts.map +1 -0
- package/resources/workflows/actions.d.ts +2 -0
- package/resources/workflows/actions.d.ts.map +1 -0
- package/resources/workflows/actions.js +6 -0
- package/resources/workflows/actions.js.map +1 -0
- package/resources/workflows/actions.mjs +3 -0
- package/resources/workflows/actions.mjs.map +1 -0
- package/resources/workflows/events/catalog.d.mts +55 -0
- package/resources/workflows/events/catalog.d.mts.map +1 -0
- package/resources/workflows/events/catalog.d.ts +55 -0
- package/resources/workflows/events/catalog.d.ts.map +1 -0
- package/resources/workflows/events/catalog.js +21 -0
- package/resources/workflows/events/catalog.js.map +1 -0
- package/resources/workflows/events/catalog.mjs +17 -0
- package/resources/workflows/events/catalog.mjs.map +1 -0
- package/resources/workflows/events/events.d.mts +123 -0
- package/resources/workflows/events/events.d.mts.map +1 -0
- package/resources/workflows/events/events.d.ts +123 -0
- package/resources/workflows/events/events.d.ts.map +1 -0
- package/resources/workflows/events/events.js +30 -0
- package/resources/workflows/events/events.js.map +1 -0
- package/resources/workflows/events/events.mjs +25 -0
- package/resources/workflows/events/events.mjs.map +1 -0
- package/resources/workflows/events/index.d.mts +3 -0
- package/resources/workflows/events/index.d.mts.map +1 -0
- package/resources/workflows/events/index.d.ts +3 -0
- package/resources/workflows/events/index.d.ts.map +1 -0
- package/resources/workflows/events/index.js +9 -0
- package/resources/workflows/events/index.js.map +1 -0
- package/resources/workflows/events/index.mjs +4 -0
- package/resources/workflows/events/index.mjs.map +1 -0
- package/resources/workflows/events.d.mts +2 -0
- package/resources/workflows/events.d.mts.map +1 -0
- package/resources/workflows/events.d.ts +2 -0
- package/resources/workflows/events.d.ts.map +1 -0
- package/resources/workflows/events.js +6 -0
- package/resources/workflows/events.js.map +1 -0
- package/resources/workflows/events.mjs +3 -0
- package/resources/workflows/events.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +83 -0
- package/resources/workflows/executions.d.mts.map +1 -0
- package/resources/workflows/executions.d.ts +83 -0
- package/resources/workflows/executions.d.ts.map +1 -0
- package/resources/workflows/executions.js +28 -0
- package/resources/workflows/executions.js.map +1 -0
- package/resources/workflows/executions.mjs +24 -0
- package/resources/workflows/executions.mjs.map +1 -0
- package/resources/workflows/flows/actions.d.mts +81 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -0
- package/resources/workflows/flows/actions.d.ts +81 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -0
- package/resources/workflows/flows/actions.js +35 -0
- package/resources/workflows/flows/actions.js.map +1 -0
- package/resources/workflows/flows/actions.mjs +31 -0
- package/resources/workflows/flows/actions.mjs.map +1 -0
- package/resources/workflows/flows/flows.d.mts +128 -0
- package/resources/workflows/flows/flows.d.mts.map +1 -0
- package/resources/workflows/flows/flows.d.ts +128 -0
- package/resources/workflows/flows/flows.d.ts.map +1 -0
- package/resources/workflows/flows/flows.js +61 -0
- package/resources/workflows/flows/flows.js.map +1 -0
- package/resources/workflows/flows/flows.mjs +56 -0
- package/resources/workflows/flows/flows.mjs.map +1 -0
- package/resources/workflows/flows/index.d.mts +3 -0
- package/resources/workflows/flows/index.d.mts.map +1 -0
- package/resources/workflows/flows/index.d.ts +3 -0
- package/resources/workflows/flows/index.d.ts.map +1 -0
- package/resources/workflows/flows/index.js +9 -0
- package/resources/workflows/flows/index.js.map +1 -0
- package/resources/workflows/flows/index.mjs +4 -0
- package/resources/workflows/flows/index.mjs.map +1 -0
- package/resources/workflows/flows.d.mts +2 -0
- package/resources/workflows/flows.d.mts.map +1 -0
- package/resources/workflows/flows.d.ts +2 -0
- package/resources/workflows/flows.d.ts.map +1 -0
- package/resources/workflows/flows.js +6 -0
- package/resources/workflows/flows.js.map +1 -0
- package/resources/workflows/flows.mjs +3 -0
- package/resources/workflows/flows.mjs.map +1 -0
- package/resources/workflows/index.d.mts +9 -0
- package/resources/workflows/index.d.mts.map +1 -0
- package/resources/workflows/index.d.ts +9 -0
- package/resources/workflows/index.d.ts.map +1 -0
- package/resources/workflows/index.js +21 -0
- package/resources/workflows/index.js.map +1 -0
- package/resources/workflows/index.mjs +10 -0
- package/resources/workflows/index.mjs.map +1 -0
- package/resources/workflows/timezones.d.mts +16 -0
- package/resources/workflows/timezones.d.mts.map +1 -0
- package/resources/workflows/timezones.d.ts +16 -0
- package/resources/workflows/timezones.d.ts.map +1 -0
- package/resources/workflows/timezones.js +15 -0
- package/resources/workflows/timezones.js.map +1 -0
- package/resources/workflows/timezones.mjs +11 -0
- package/resources/workflows/timezones.mjs.map +1 -0
- package/resources/workflows/triggers.d.mts +313 -0
- package/resources/workflows/triggers.d.mts.map +1 -0
- package/resources/workflows/triggers.d.ts +313 -0
- package/resources/workflows/triggers.d.ts.map +1 -0
- package/resources/workflows/triggers.js +62 -0
- package/resources/workflows/triggers.js.map +1 -0
- package/resources/workflows/triggers.mjs +58 -0
- package/resources/workflows/triggers.mjs.map +1 -0
- package/resources/workflows/workflows.d.mts +57 -0
- package/resources/workflows/workflows.d.mts.map +1 -0
- package/resources/workflows/workflows.d.ts +57 -0
- package/resources/workflows/workflows.d.ts.map +1 -0
- package/resources/workflows/workflows.js +41 -0
- package/resources/workflows/workflows.js.map +1 -0
- package/resources/workflows/workflows.mjs +36 -0
- package/resources/workflows/workflows.mjs.map +1 -0
- package/resources/workflows.d.mts +2 -0
- package/resources/workflows.d.mts.map +1 -0
- package/resources/workflows.d.ts +2 -0
- package/resources/workflows.d.ts.map +1 -0
- package/resources/workflows.js +6 -0
- package/resources/workflows.js.map +1 -0
- package/resources/workflows.mjs +3 -0
- package/resources/workflows.mjs.map +1 -0
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +176 -68
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/env.ts +2 -2
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/apps.ts +547 -30
- package/src/resources/carriers.ts +191 -7
- package/src/resources/connect/connect.ts +73 -0
- package/src/resources/connect/countries.ts +101 -0
- package/src/resources/connect/index.ts +27 -0
- package/src/resources/connect/proxies.ts +596 -0
- package/src/resources/connect/users.ts +512 -0
- package/src/resources/connect.ts +3 -0
- package/src/resources/credentials/credentials.ts +3 -0
- package/src/resources/credentials/packages/credentials/credentials.ts +3 -0
- package/src/resources/credentials/packages/credentials/fields.ts +3 -0
- package/src/resources/credentials/packages/packages.ts +3 -0
- package/src/resources/devices/apps.ts +67 -41
- package/src/resources/devices/devices.ts +268 -71
- package/src/resources/devices/esim.ts +208 -0
- package/src/resources/devices/index.ts +34 -15
- package/src/resources/devices/keyboard.ts +6 -0
- package/src/resources/devices/language.ts +91 -0
- package/src/resources/devices/location.ts +3 -17
- package/src/resources/devices/proxy.ts +61 -9
- package/src/resources/devices/state.ts +82 -3
- package/src/resources/devices/tasks.ts +3 -0
- package/src/resources/devices/timezone.ts +84 -0
- package/src/resources/hooks.ts +44 -3
- package/src/resources/index.ts +39 -3
- package/src/resources/models.ts +3 -0
- package/src/resources/proxies.ts +186 -21
- package/src/resources/shared.ts +42 -11
- package/src/resources/tasks/tasks.ts +184 -8
- package/src/resources/webhooks/deliveries.ts +284 -0
- package/src/resources/webhooks/index.ts +26 -0
- package/src/resources/webhooks/webhooks.ts +433 -0
- package/src/resources/webhooks.ts +3 -0
- package/src/resources/workflows/action-catalog.ts +71 -0
- package/src/resources/workflows/actions/actions.ts +155 -0
- package/src/resources/workflows/actions/index.ts +15 -0
- package/src/resources/workflows/actions/services.ts +61 -0
- package/src/resources/workflows/actions.ts +3 -0
- package/src/resources/workflows/events/catalog.ts +88 -0
- package/src/resources/workflows/events/events.ts +189 -0
- package/src/resources/workflows/events/index.ts +16 -0
- package/src/resources/workflows/events.ts +3 -0
- package/src/resources/workflows/executions.ts +149 -0
- package/src/resources/workflows/flows/actions.ts +141 -0
- package/src/resources/workflows/flows/flows.ts +250 -0
- package/src/resources/workflows/flows/index.ts +29 -0
- package/src/resources/workflows/flows.ts +3 -0
- package/src/resources/workflows/index.ts +68 -0
- package/src/resources/workflows/timezones.ts +22 -0
- package/src/resources/workflows/triggers.ts +454 -0
- package/src/resources/workflows/workflows.ts +218 -0
- package/src/resources/workflows.ts +3 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/agents.d.mts +0 -29
- package/resources/agents.d.mts.map +0 -1
- package/resources/agents.d.ts +0 -29
- package/resources/agents.d.ts.map +0 -1
- package/resources/agents.js +0 -18
- package/resources/agents.js.map +0 -1
- package/resources/agents.mjs +0 -14
- package/resources/agents.mjs.map +0 -1
- package/resources/devices/time.d.mts +0 -59
- package/resources/devices/time.d.mts.map +0 -1
- package/resources/devices/time.d.ts +0 -59
- package/resources/devices/time.d.ts.map +0 -1
- package/resources/devices/time.js.map +0 -1
- package/resources/devices/time.mjs.map +0 -1
- package/src/resources/agents.ts +0 -43
- package/src/resources/devices/time.ts +0 -147
|
@@ -0,0 +1,596 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
import { path } from '../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Proxies extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get a proxy by ID, including its password
|
|
12
|
+
*/
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ProxyRetrieveResponse> {
|
|
14
|
+
return this._client.get(path`/connect/proxies/${id}`, options);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Returns proxies owned by the user identified by the X-User-ID header.
|
|
19
|
+
* Credentials are omitted from the list.
|
|
20
|
+
*/
|
|
21
|
+
list(
|
|
22
|
+
query: ProxyListParams | null | undefined = {},
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): APIPromise<ProxyListResponse> {
|
|
25
|
+
return this._client.get('/connect/proxies', { query, ...options });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Provisions a proxy for the caller in the selected country.
|
|
30
|
+
*/
|
|
31
|
+
buy(body: ProxyBuyParams, options?: RequestOptions): APIPromise<ProxyBuyResponse> {
|
|
32
|
+
return this._client.post('/connect/proxies', { body, ...options });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Delete a proxy
|
|
37
|
+
*/
|
|
38
|
+
cancel(id: string, options?: RequestOptions): APIPromise<void> {
|
|
39
|
+
return this._client.delete(path`/connect/proxies/${id}`, {
|
|
40
|
+
...options,
|
|
41
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Returns the connection history recorded for this proxy, one item per connection
|
|
47
|
+
* (aggregated across the connection's lifetime). Supports filtering on every
|
|
48
|
+
* property plus ordering and pagination. Returns 503 when the connection-insights
|
|
49
|
+
* backend is disabled or unreachable.
|
|
50
|
+
*/
|
|
51
|
+
listConnections(
|
|
52
|
+
id: string,
|
|
53
|
+
query: ProxyListConnectionsParams | null | undefined = {},
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): APIPromise<ProxyListConnectionsResponse> {
|
|
56
|
+
return this._client.get(path`/connect/proxies/${id}/connections`, { query, ...options });
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Returns the most recent cached network-latency measurement for the proxy,
|
|
61
|
+
* sampled periodically by connecting through the proxy to a fixed target.
|
|
62
|
+
* `latency` is null when no measurement is available yet (e.g. the proxy is not
|
|
63
|
+
* active, or it has not been sampled since coming online).
|
|
64
|
+
*/
|
|
65
|
+
ping(id: string, options?: RequestOptions): APIPromise<ProxyPingResponse> {
|
|
66
|
+
return this._client.get(path`/connect/proxies/${id}/ping`, options);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* A proxy including its password. Returned only on create and single-proxy reads.
|
|
72
|
+
*/
|
|
73
|
+
export interface ProxyRetrieveResponse {
|
|
74
|
+
id: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* ISO 3166-1 alpha-2 country code (lowercase).
|
|
78
|
+
*/
|
|
79
|
+
country: string;
|
|
80
|
+
|
|
81
|
+
createdAt: string;
|
|
82
|
+
|
|
83
|
+
host: string;
|
|
84
|
+
|
|
85
|
+
password: string;
|
|
86
|
+
|
|
87
|
+
port: number;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Lifecycle of a proxy. A freshly created proxy is `provisioning` — or
|
|
91
|
+
* `pending_payment` until the customer completes checkout — and becomes `active`
|
|
92
|
+
* once its upstream is assigned. `cancelling` retains full access through the paid
|
|
93
|
+
* period; when the subscription expires the proxy is `ended`. `error` marks a
|
|
94
|
+
* failed provisioning attempt.
|
|
95
|
+
*/
|
|
96
|
+
status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
97
|
+
|
|
98
|
+
type: 'residential';
|
|
99
|
+
|
|
100
|
+
username: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Checkout URL to complete payment while status is `pending_payment`. Null once
|
|
104
|
+
* paid or when no payment was required.
|
|
105
|
+
*/
|
|
106
|
+
paymentUrl?: string | null;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* A page of proxies.
|
|
111
|
+
*/
|
|
112
|
+
export interface ProxyListResponse {
|
|
113
|
+
items: Array<ProxyListResponse.Item>;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Pagination metadata for a list response.
|
|
117
|
+
*/
|
|
118
|
+
pagination: ProxyListResponse.Pagination;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export namespace ProxyListResponse {
|
|
122
|
+
/**
|
|
123
|
+
* A provisioned proxy without its credentials.
|
|
124
|
+
*/
|
|
125
|
+
export interface Item {
|
|
126
|
+
id: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* ISO 3166-1 alpha-2 country code (lowercase).
|
|
130
|
+
*/
|
|
131
|
+
country: string;
|
|
132
|
+
|
|
133
|
+
createdAt: string;
|
|
134
|
+
|
|
135
|
+
host: string;
|
|
136
|
+
|
|
137
|
+
port: number;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Lifecycle of a proxy. A freshly created proxy is `provisioning` — or
|
|
141
|
+
* `pending_payment` until the customer completes checkout — and becomes `active`
|
|
142
|
+
* once its upstream is assigned. `cancelling` retains full access through the paid
|
|
143
|
+
* period; when the subscription expires the proxy is `ended`. `error` marks a
|
|
144
|
+
* failed provisioning attempt.
|
|
145
|
+
*/
|
|
146
|
+
status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
147
|
+
|
|
148
|
+
type: 'residential';
|
|
149
|
+
|
|
150
|
+
username: string;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Pagination metadata for a list response.
|
|
155
|
+
*/
|
|
156
|
+
export interface Pagination {
|
|
157
|
+
/**
|
|
158
|
+
* Whether a next page exists.
|
|
159
|
+
*/
|
|
160
|
+
hasNext: boolean;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Whether a previous page exists.
|
|
164
|
+
*/
|
|
165
|
+
hasPrev: boolean;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Current page number (1-based).
|
|
169
|
+
*/
|
|
170
|
+
page: number;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Total number of pages.
|
|
174
|
+
*/
|
|
175
|
+
pages: number;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Number of items per page.
|
|
179
|
+
*/
|
|
180
|
+
pageSize: number;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Total number of items across all pages.
|
|
184
|
+
*/
|
|
185
|
+
total: number;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* A proxy including its password. Returned only on create and single-proxy reads.
|
|
191
|
+
*/
|
|
192
|
+
export interface ProxyBuyResponse {
|
|
193
|
+
id: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* ISO 3166-1 alpha-2 country code (lowercase).
|
|
197
|
+
*/
|
|
198
|
+
country: string;
|
|
199
|
+
|
|
200
|
+
createdAt: string;
|
|
201
|
+
|
|
202
|
+
host: string;
|
|
203
|
+
|
|
204
|
+
password: string;
|
|
205
|
+
|
|
206
|
+
port: number;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Lifecycle of a proxy. A freshly created proxy is `provisioning` — or
|
|
210
|
+
* `pending_payment` until the customer completes checkout — and becomes `active`
|
|
211
|
+
* once its upstream is assigned. `cancelling` retains full access through the paid
|
|
212
|
+
* period; when the subscription expires the proxy is `ended`. `error` marks a
|
|
213
|
+
* failed provisioning attempt.
|
|
214
|
+
*/
|
|
215
|
+
status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
216
|
+
|
|
217
|
+
type: 'residential';
|
|
218
|
+
|
|
219
|
+
username: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Checkout URL to complete payment while status is `pending_payment`. Null once
|
|
223
|
+
* paid or when no payment was required.
|
|
224
|
+
*/
|
|
225
|
+
paymentUrl?: string | null;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* A page of connections.
|
|
230
|
+
*/
|
|
231
|
+
export interface ProxyListConnectionsResponse {
|
|
232
|
+
items: Array<ProxyListConnectionsResponse.Item>;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Pagination metadata for a list response.
|
|
236
|
+
*/
|
|
237
|
+
pagination: ProxyListConnectionsResponse.Pagination;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export namespace ProxyListConnectionsResponse {
|
|
241
|
+
/**
|
|
242
|
+
* A single proxy connection, aggregated across its lifetime. Byte counts are
|
|
243
|
+
* totals for the whole connection.
|
|
244
|
+
*/
|
|
245
|
+
export interface Item {
|
|
246
|
+
/**
|
|
247
|
+
* Total bytes received from upstream over the connection's lifetime.
|
|
248
|
+
*/
|
|
249
|
+
bytesIn: number;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Total bytes sent to upstream over the connection's lifetime.
|
|
253
|
+
*/
|
|
254
|
+
bytesOut: number;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Upstream country code (ISO 3166-1 alpha-2), or empty if unknown.
|
|
258
|
+
*/
|
|
259
|
+
country: string;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Destination host the client connected to.
|
|
263
|
+
*/
|
|
264
|
+
dstHost: string;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Destination port the client connected to.
|
|
268
|
+
*/
|
|
269
|
+
dstPort: number;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Elapsed time between startedAt and endedAt, in milliseconds.
|
|
273
|
+
*/
|
|
274
|
+
durationMs: number;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Time of the connection's last recorded activity (close time once closed).
|
|
278
|
+
*/
|
|
279
|
+
endedAt: string;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Transport protocol of a connection.
|
|
283
|
+
*/
|
|
284
|
+
protocol: 'tcp' | 'udp' | 'unknown';
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Upstream provider that served the connection.
|
|
288
|
+
*/
|
|
289
|
+
provider: string;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* The proxy the connection was routed through. All-zero when the upstream was
|
|
293
|
+
* unresolved at capture time.
|
|
294
|
+
*/
|
|
295
|
+
proxyId: string;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Unique id of this connection.
|
|
299
|
+
*/
|
|
300
|
+
sessionId: string;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Client source IP address.
|
|
304
|
+
*/
|
|
305
|
+
srcIp: string;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* When the connection started.
|
|
309
|
+
*/
|
|
310
|
+
startedAt: string;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* `active` while the connection is still open (no terminal record yet); `closed`
|
|
314
|
+
* once it has ended.
|
|
315
|
+
*/
|
|
316
|
+
status: 'active' | 'closed';
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* bytesIn + bytesOut.
|
|
320
|
+
*/
|
|
321
|
+
totalBytes: number;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* The user that made the connection.
|
|
325
|
+
*/
|
|
326
|
+
userId: string;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Why the connection closed; null while still active.
|
|
330
|
+
*/
|
|
331
|
+
closeReason?: string | null;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Pagination metadata for a list response.
|
|
336
|
+
*/
|
|
337
|
+
export interface Pagination {
|
|
338
|
+
/**
|
|
339
|
+
* Whether a next page exists.
|
|
340
|
+
*/
|
|
341
|
+
hasNext: boolean;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Whether a previous page exists.
|
|
345
|
+
*/
|
|
346
|
+
hasPrev: boolean;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Current page number (1-based).
|
|
350
|
+
*/
|
|
351
|
+
page: number;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Total number of pages.
|
|
355
|
+
*/
|
|
356
|
+
pages: number;
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Number of items per page.
|
|
360
|
+
*/
|
|
361
|
+
pageSize: number;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Total number of items across all pages.
|
|
365
|
+
*/
|
|
366
|
+
total: number;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* The latest cached latency reading for a proxy.
|
|
372
|
+
*/
|
|
373
|
+
export interface ProxyPingResponse {
|
|
374
|
+
/**
|
|
375
|
+
* An aggregated latency measurement taken through the proxy.
|
|
376
|
+
*/
|
|
377
|
+
latency: ProxyPingResponse.Latency | null;
|
|
378
|
+
|
|
379
|
+
proxyId: string;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export namespace ProxyPingResponse {
|
|
383
|
+
/**
|
|
384
|
+
* An aggregated latency measurement taken through the proxy.
|
|
385
|
+
*/
|
|
386
|
+
export interface Latency {
|
|
387
|
+
/**
|
|
388
|
+
* Mean round-trip time over successful probes, in milliseconds.
|
|
389
|
+
*/
|
|
390
|
+
avgMs: number;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Round-trip time spread (max - min) over successful probes, in milliseconds.
|
|
394
|
+
*/
|
|
395
|
+
jitterMs: number;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Maximum round-trip time over successful probes, in milliseconds.
|
|
399
|
+
*/
|
|
400
|
+
maxMs: number;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* When this measurement was taken.
|
|
404
|
+
*/
|
|
405
|
+
measuredAt: string;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Minimum round-trip time over successful probes, in milliseconds.
|
|
409
|
+
*/
|
|
410
|
+
minMs: number;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Fraction of probes that failed, 0..1 (1 means the proxy was unreachable; rtt
|
|
414
|
+
* fields are 0).
|
|
415
|
+
*/
|
|
416
|
+
packetLoss: number;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Number of probes taken in this measurement.
|
|
420
|
+
*/
|
|
421
|
+
samples: number;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* The host:port the latency was measured against, through the proxy.
|
|
425
|
+
*/
|
|
426
|
+
target: string;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export interface ProxyListParams {
|
|
431
|
+
/**
|
|
432
|
+
* Filter to proxies in this country (ISO 3166-1 alpha-2, lowercase).
|
|
433
|
+
*/
|
|
434
|
+
country?: string;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Page number (1-based).
|
|
438
|
+
*/
|
|
439
|
+
page?: number;
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Number of items per page.
|
|
443
|
+
*/
|
|
444
|
+
pageSize?: number;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
export interface ProxyBuyParams {
|
|
448
|
+
/**
|
|
449
|
+
* ISO 3166-1 alpha-2 country code to provision the proxy in.
|
|
450
|
+
*/
|
|
451
|
+
country: string;
|
|
452
|
+
|
|
453
|
+
type?: 'residential';
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
export interface ProxyListConnectionsParams {
|
|
457
|
+
/**
|
|
458
|
+
* Filter to connections that closed with this reason (closed connections only).
|
|
459
|
+
*/
|
|
460
|
+
closeReason?: string;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Filter to connections served from this upstream country (ISO 3166-1 alpha-2).
|
|
464
|
+
*/
|
|
465
|
+
country?: string;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Filter to connections to this destination host (exact match).
|
|
469
|
+
*/
|
|
470
|
+
dstHost?: string;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Filter to connections to this destination port.
|
|
474
|
+
*/
|
|
475
|
+
dstPort?: number;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Filter to connections whose last activity was at or after this time (inclusive).
|
|
479
|
+
*/
|
|
480
|
+
endedAfter?: string;
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Filter to connections whose last activity was at or before this time
|
|
484
|
+
* (inclusive).
|
|
485
|
+
*/
|
|
486
|
+
endedBefore?: string;
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Filter to connections with at most this many bytes received from upstream.
|
|
490
|
+
*/
|
|
491
|
+
maxBytesIn?: number;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Filter to connections with at most this many bytes sent to upstream.
|
|
495
|
+
*/
|
|
496
|
+
maxBytesOut?: number;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Filter to connections lasting at most this many milliseconds.
|
|
500
|
+
*/
|
|
501
|
+
maxDurationMs?: number;
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Filter to connections with at most this much total traffic (bytesIn + bytesOut).
|
|
505
|
+
*/
|
|
506
|
+
maxTotalBytes?: number;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Filter to connections with at least this many bytes received from upstream.
|
|
510
|
+
*/
|
|
511
|
+
minBytesIn?: number;
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Filter to connections with at least this many bytes sent to upstream.
|
|
515
|
+
*/
|
|
516
|
+
minBytesOut?: number;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Filter to connections lasting at least this many milliseconds.
|
|
520
|
+
*/
|
|
521
|
+
minDurationMs?: number;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Filter to connections with at least this much total traffic (bytesIn +
|
|
525
|
+
* bytesOut).
|
|
526
|
+
*/
|
|
527
|
+
minTotalBytes?: number;
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Sort direction.
|
|
531
|
+
*/
|
|
532
|
+
order?: 'asc' | 'desc';
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Property to order the results by.
|
|
536
|
+
*/
|
|
537
|
+
orderBy?: 'startedAt' | 'endedAt' | 'bytesIn' | 'bytesOut' | 'totalBytes' | 'durationMs';
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Page number (1-based).
|
|
541
|
+
*/
|
|
542
|
+
page?: number;
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Number of items per page.
|
|
546
|
+
*/
|
|
547
|
+
pageSize?: number;
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Filter to connections of this transport protocol.
|
|
551
|
+
*/
|
|
552
|
+
protocol?: 'tcp' | 'udp' | 'unknown';
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Filter to connections served by this upstream provider.
|
|
556
|
+
*/
|
|
557
|
+
provider?: string;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Filter to a single connection by its session id.
|
|
561
|
+
*/
|
|
562
|
+
sessionId?: string;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Filter to connections that started at or after this time (inclusive).
|
|
566
|
+
*/
|
|
567
|
+
startedAfter?: string;
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Filter to connections that started at or before this time (inclusive).
|
|
571
|
+
*/
|
|
572
|
+
startedBefore?: string;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Filter by connection status.
|
|
576
|
+
*/
|
|
577
|
+
status?: 'active' | 'closed';
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* Filter to connections made by this user.
|
|
581
|
+
*/
|
|
582
|
+
userId?: string;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export declare namespace Proxies {
|
|
586
|
+
export {
|
|
587
|
+
type ProxyRetrieveResponse as ProxyRetrieveResponse,
|
|
588
|
+
type ProxyListResponse as ProxyListResponse,
|
|
589
|
+
type ProxyBuyResponse as ProxyBuyResponse,
|
|
590
|
+
type ProxyListConnectionsResponse as ProxyListConnectionsResponse,
|
|
591
|
+
type ProxyPingResponse as ProxyPingResponse,
|
|
592
|
+
type ProxyListParams as ProxyListParams,
|
|
593
|
+
type ProxyBuyParams as ProxyBuyParams,
|
|
594
|
+
type ProxyListConnectionsParams as ProxyListConnectionsParams,
|
|
595
|
+
};
|
|
596
|
+
}
|