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