@mobilerun/sdk 4.0.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +313 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +34 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +34 -29
- package/client.d.ts.map +1 -1
- package/client.js +44 -22
- package/client.js.map +1 -1
- package/client.mjs +46 -24
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +10 -10
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +10 -10
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/lib/trajectory-decoder-stream.d.mts.map +1 -1
- package/lib/trajectory-decoder-stream.d.ts.map +1 -1
- package/package.json +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/apps.d.mts +203 -16
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +203 -16
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +98 -0
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +98 -0
- package/resources/apps.mjs.map +1 -1
- package/resources/carriers.d.mts +105 -7
- package/resources/carriers.d.mts.map +1 -1
- package/resources/carriers.d.ts +105 -7
- package/resources/carriers.d.ts.map +1 -1
- package/resources/carriers.js.map +1 -1
- package/resources/carriers.mjs.map +1 -1
- package/resources/connect/connect.d.mts +18 -0
- package/resources/connect/connect.d.mts.map +1 -0
- package/resources/connect/connect.d.ts +18 -0
- package/resources/connect/connect.d.ts.map +1 -0
- package/resources/connect/connect.js +25 -0
- package/resources/connect/connect.js.map +1 -0
- package/resources/connect/connect.mjs +20 -0
- package/resources/connect/connect.mjs.map +1 -0
- package/resources/connect/countries.d.mts +84 -0
- package/resources/connect/countries.d.mts.map +1 -0
- package/resources/connect/countries.d.ts +84 -0
- package/resources/connect/countries.d.ts.map +1 -0
- package/resources/connect/countries.js +20 -0
- package/resources/connect/countries.js.map +1 -0
- package/resources/connect/countries.mjs +16 -0
- package/resources/connect/countries.mjs.map +1 -0
- package/resources/connect/index.d.mts +5 -0
- package/resources/connect/index.d.mts.map +1 -0
- package/resources/connect/index.d.ts +5 -0
- package/resources/connect/index.d.ts.map +1 -0
- package/resources/connect/index.js +13 -0
- package/resources/connect/index.js.map +1 -0
- package/resources/connect/index.mjs +6 -0
- package/resources/connect/index.mjs.map +1 -0
- package/resources/connect/proxies.d.mts +456 -0
- package/resources/connect/proxies.d.mts.map +1 -0
- package/resources/connect/proxies.d.ts +456 -0
- package/resources/connect/proxies.d.ts.map +1 -0
- package/resources/connect/proxies.js +59 -0
- package/resources/connect/proxies.js.map +1 -0
- package/resources/connect/proxies.mjs +55 -0
- package/resources/connect/proxies.mjs.map +1 -0
- package/resources/connect/users.d.mts +392 -0
- package/resources/connect/users.d.mts.map +1 -0
- package/resources/connect/users.d.ts +392 -0
- package/resources/connect/users.d.ts.map +1 -0
- package/resources/connect/users.js +59 -0
- package/resources/connect/users.js.map +1 -0
- package/resources/connect/users.mjs +55 -0
- package/resources/connect/users.mjs.map +1 -0
- package/resources/connect.d.mts +2 -0
- package/resources/connect.d.mts.map +1 -0
- package/resources/connect.d.ts +2 -0
- package/resources/connect.d.ts.map +1 -0
- package/resources/connect.js +6 -0
- package/resources/connect.js.map +1 -0
- package/resources/connect.mjs +3 -0
- package/resources/connect.mjs.map +1 -0
- package/resources/credentials/credentials.d.mts +3 -1
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +3 -1
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +3 -1
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +3 -1
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/index.d.mts.map +1 -1
- package/resources/credentials/index.d.ts.map +1 -1
- package/resources/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.mts +14 -4
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +14 -4
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +7 -3
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +7 -3
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +8 -3
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +8 -3
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/fields.js +8 -3
- package/resources/credentials/packages/credentials/fields.js.map +1 -1
- package/resources/credentials/packages/credentials/fields.mjs +8 -3
- package/resources/credentials/packages/credentials/fields.mjs.map +1 -1
- package/resources/credentials/packages/credentials/index.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/index.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials.mjs.map +1 -1
- package/resources/credentials/packages/index.d.mts.map +1 -1
- package/resources/credentials/packages/index.d.ts.map +1 -1
- package/resources/credentials/packages/index.mjs.map +1 -1
- package/resources/credentials/packages/packages.d.mts +5 -2
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +5 -2
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +5 -2
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +5 -2
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/credentials/packages.d.mts.map +1 -1
- package/resources/credentials/packages.d.ts.map +1 -1
- package/resources/credentials/packages.mjs.map +1 -1
- package/resources/credentials.d.mts.map +1 -1
- package/resources/credentials.d.ts.map +1 -1
- package/resources/credentials.mjs.map +1 -1
- package/resources/devices/actions.d.mts +10 -5
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +10 -5
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +10 -5
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +10 -5
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +78 -24
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +78 -24
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +38 -22
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +38 -22
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +168 -41
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +168 -41
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +86 -27
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +86 -27
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/esim.d.mts +14 -6
- package/resources/devices/esim.d.mts.map +1 -1
- package/resources/devices/esim.d.ts +14 -6
- package/resources/devices/esim.d.ts.map +1 -1
- package/resources/devices/esim.js +6 -4
- package/resources/devices/esim.js.map +1 -1
- package/resources/devices/esim.mjs +6 -4
- package/resources/devices/esim.mjs.map +1 -1
- package/resources/devices/files.d.mts +7 -4
- package/resources/devices/files.d.mts.map +1 -1
- package/resources/devices/files.d.ts +7 -4
- package/resources/devices/files.d.ts.map +1 -1
- package/resources/devices/files.js +7 -4
- package/resources/devices/files.js.map +1 -1
- package/resources/devices/files.mjs +7 -4
- package/resources/devices/files.mjs.map +1 -1
- package/resources/devices/index.d.mts +6 -5
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +6 -5
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +5 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +3 -2
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +10 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +10 -3
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.js +5 -3
- package/resources/devices/keyboard.js.map +1 -1
- package/resources/devices/keyboard.mjs +5 -3
- package/resources/devices/keyboard.mjs.map +1 -1
- package/resources/devices/language.d.mts +45 -0
- package/resources/devices/language.d.mts.map +1 -0
- package/resources/devices/language.d.ts +45 -0
- package/resources/devices/language.d.ts.map +1 -0
- package/resources/devices/language.js +49 -0
- package/resources/devices/language.js.map +1 -0
- package/resources/devices/language.mjs +45 -0
- package/resources/devices/language.mjs.map +1 -0
- package/resources/devices/location.d.mts +7 -12
- package/resources/devices/location.d.mts.map +1 -1
- package/resources/devices/location.d.ts +7 -12
- package/resources/devices/location.d.ts.map +1 -1
- package/resources/devices/location.js +4 -2
- package/resources/devices/location.js.map +1 -1
- package/resources/devices/location.mjs +4 -2
- package/resources/devices/location.mjs.map +1 -1
- package/resources/devices/packages.d.mts +2 -1
- package/resources/devices/packages.d.mts.map +1 -1
- package/resources/devices/packages.d.ts +2 -1
- package/resources/devices/packages.d.ts.map +1 -1
- package/resources/devices/packages.js +2 -1
- package/resources/devices/packages.js.map +1 -1
- package/resources/devices/packages.mjs +2 -1
- package/resources/devices/packages.mjs.map +1 -1
- package/resources/devices/profile.d.mts.map +1 -1
- package/resources/devices/profile.d.ts.map +1 -1
- package/resources/devices/profile.mjs.map +1 -1
- package/resources/devices/proxy.d.mts +31 -10
- package/resources/devices/proxy.d.mts.map +1 -1
- package/resources/devices/proxy.d.ts +31 -10
- package/resources/devices/proxy.d.ts.map +1 -1
- package/resources/devices/proxy.js +7 -3
- package/resources/devices/proxy.js.map +1 -1
- package/resources/devices/proxy.mjs +7 -3
- package/resources/devices/proxy.mjs.map +1 -1
- package/resources/devices/state.d.mts +44 -5
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +44 -5
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +22 -2
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +22 -2
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/tasks.d.mts +4 -9
- package/resources/devices/tasks.d.mts.map +1 -1
- package/resources/devices/tasks.d.ts +4 -9
- package/resources/devices/tasks.d.ts.map +1 -1
- package/resources/devices/tasks.js +2 -1
- package/resources/devices/tasks.js.map +1 -1
- package/resources/devices/tasks.mjs +2 -1
- package/resources/devices/tasks.mjs.map +1 -1
- package/resources/devices/timezone.d.mts +39 -0
- package/resources/devices/timezone.d.mts.map +1 -0
- package/resources/devices/timezone.d.ts +39 -0
- package/resources/devices/timezone.d.ts.map +1 -0
- package/resources/devices/{time.js → timezone.js} +15 -30
- package/resources/devices/timezone.js.map +1 -0
- package/resources/devices/{time.mjs → timezone.mjs} +13 -28
- package/resources/devices/timezone.mjs.map +1 -0
- package/resources/devices.d.mts.map +1 -1
- package/resources/devices.d.ts.map +1 -1
- package/resources/devices.mjs.map +1 -1
- package/resources/hooks.d.mts +0 -208
- package/resources/hooks.d.mts.map +1 -1
- package/resources/hooks.d.ts +0 -208
- package/resources/hooks.d.ts.map +1 -1
- package/resources/hooks.js +0 -51
- package/resources/hooks.js.map +1 -1
- package/resources/hooks.mjs +0 -51
- package/resources/hooks.mjs.map +1 -1
- package/resources/index.d.mts +9 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -3
- package/resources/index.mjs.map +1 -1
- package/resources/models.d.mts +3 -0
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +3 -0
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -0
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -0
- package/resources/models.mjs.map +1 -1
- package/resources/profiles.d.mts +69 -6
- package/resources/profiles.d.mts.map +1 -1
- package/resources/profiles.d.ts +69 -6
- package/resources/profiles.d.ts.map +1 -1
- package/resources/profiles.js.map +1 -1
- package/resources/profiles.mjs.map +1 -1
- package/resources/proxies.d.mts +101 -6
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +101 -6
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +20 -5
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +20 -5
- package/resources/proxies.mjs.map +1 -1
- package/resources/shared.d.mts +32 -7
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +32 -7
- package/resources/shared.d.ts.map +1 -1
- package/resources/tasks/index.d.mts.map +1 -1
- package/resources/tasks/index.d.ts.map +1 -1
- package/resources/tasks/index.mjs.map +1 -1
- package/resources/tasks/screenshots.d.mts.map +1 -1
- package/resources/tasks/screenshots.d.ts.map +1 -1
- package/resources/tasks/screenshots.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +220 -64
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +220 -64
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +10 -2
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +10 -2
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/tasks/ui-states.d.mts.map +1 -1
- package/resources/tasks/ui-states.d.ts.map +1 -1
- package/resources/tasks/ui-states.mjs.map +1 -1
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +207 -0
- package/resources/webhooks/deliveries.d.mts.map +1 -0
- package/resources/webhooks/deliveries.d.ts +207 -0
- package/resources/webhooks/deliveries.d.ts.map +1 -0
- package/resources/webhooks/deliveries.js +73 -0
- package/resources/webhooks/deliveries.js.map +1 -0
- package/resources/webhooks/deliveries.mjs +69 -0
- package/resources/webhooks/deliveries.mjs.map +1 -0
- package/resources/webhooks/index.d.mts +3 -0
- package/resources/webhooks/index.d.mts.map +1 -0
- package/resources/webhooks/index.d.ts +3 -0
- package/resources/webhooks/index.d.ts.map +1 -0
- package/resources/webhooks/index.js +9 -0
- package/resources/webhooks/index.js.map +1 -0
- package/resources/webhooks/index.mjs +4 -0
- package/resources/webhooks/index.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +329 -0
- package/resources/webhooks/webhooks.d.mts.map +1 -0
- package/resources/webhooks/webhooks.d.ts +329 -0
- package/resources/webhooks/webhooks.d.ts.map +1 -0
- package/resources/webhooks/webhooks.js +140 -0
- package/resources/webhooks/webhooks.js.map +1 -0
- package/resources/webhooks/webhooks.mjs +135 -0
- package/resources/webhooks/webhooks.mjs.map +1 -0
- package/resources/webhooks.d.mts +2 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +2 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +6 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +3 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources/workflows/action-catalog.d.mts +43 -0
- package/resources/workflows/action-catalog.d.mts.map +1 -0
- package/resources/workflows/action-catalog.d.ts +43 -0
- package/resources/workflows/action-catalog.d.ts.map +1 -0
- package/resources/workflows/action-catalog.js +25 -0
- package/resources/workflows/action-catalog.js.map +1 -0
- package/resources/workflows/action-catalog.mjs +21 -0
- package/resources/workflows/action-catalog.mjs.map +1 -0
- package/resources/workflows/actions/actions.d.mts +96 -0
- package/resources/workflows/actions/actions.d.mts.map +1 -0
- package/resources/workflows/actions/actions.d.ts +96 -0
- package/resources/workflows/actions/actions.d.ts.map +1 -0
- package/resources/workflows/actions/actions.js +53 -0
- package/resources/workflows/actions/actions.js.map +1 -0
- package/resources/workflows/actions/actions.mjs +48 -0
- package/resources/workflows/actions/actions.mjs.map +1 -0
- package/resources/workflows/actions/index.d.mts +3 -0
- package/resources/workflows/actions/index.d.mts.map +1 -0
- package/resources/workflows/actions/index.d.ts +3 -0
- package/resources/workflows/actions/index.d.ts.map +1 -0
- package/resources/workflows/actions/index.js +9 -0
- package/resources/workflows/actions/index.js.map +1 -0
- package/resources/workflows/actions/index.mjs +4 -0
- package/resources/workflows/actions/index.mjs.map +1 -0
- package/resources/workflows/actions/services.d.mts +42 -0
- package/resources/workflows/actions/services.d.mts.map +1 -0
- package/resources/workflows/actions/services.d.ts +42 -0
- package/resources/workflows/actions/services.d.ts.map +1 -0
- package/resources/workflows/actions/services.js +25 -0
- package/resources/workflows/actions/services.js.map +1 -0
- package/resources/workflows/actions/services.mjs +21 -0
- package/resources/workflows/actions/services.mjs.map +1 -0
- package/resources/workflows/actions.d.mts +2 -0
- package/resources/workflows/actions.d.mts.map +1 -0
- package/resources/workflows/actions.d.ts +2 -0
- package/resources/workflows/actions.d.ts.map +1 -0
- package/resources/workflows/actions.js +6 -0
- package/resources/workflows/actions.js.map +1 -0
- package/resources/workflows/actions.mjs +3 -0
- package/resources/workflows/actions.mjs.map +1 -0
- package/resources/workflows/events/catalog.d.mts +4 -0
- package/resources/workflows/events/catalog.d.mts.map +1 -0
- package/resources/workflows/events/catalog.d.ts +4 -0
- package/resources/workflows/events/catalog.d.ts.map +1 -0
- package/resources/workflows/events/catalog.js +9 -0
- package/resources/workflows/events/catalog.js.map +1 -0
- package/resources/workflows/events/catalog.mjs +5 -0
- package/resources/workflows/events/catalog.mjs.map +1 -0
- package/resources/workflows/events/events.d.mts +113 -0
- package/resources/workflows/events/events.d.mts.map +1 -0
- package/resources/workflows/events/events.d.ts +113 -0
- package/resources/workflows/events/events.d.ts.map +1 -0
- package/resources/workflows/events/events.js +30 -0
- package/resources/workflows/events/events.js.map +1 -0
- package/resources/workflows/events/events.mjs +25 -0
- package/resources/workflows/events/events.mjs.map +1 -0
- package/resources/workflows/events/index.d.mts +3 -0
- package/resources/workflows/events/index.d.mts.map +1 -0
- package/resources/workflows/events/index.d.ts +3 -0
- package/resources/workflows/events/index.d.ts.map +1 -0
- package/resources/workflows/events/index.js +9 -0
- package/resources/workflows/events/index.js.map +1 -0
- package/resources/workflows/events/index.mjs +4 -0
- package/resources/workflows/events/index.mjs.map +1 -0
- package/resources/workflows/events.d.mts +2 -0
- package/resources/workflows/events.d.mts.map +1 -0
- package/resources/workflows/events.d.ts +2 -0
- package/resources/workflows/events.d.ts.map +1 -0
- package/resources/workflows/events.js +6 -0
- package/resources/workflows/events.js.map +1 -0
- package/resources/workflows/events.mjs +3 -0
- package/resources/workflows/events.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +121 -0
- package/resources/workflows/executions.d.mts.map +1 -0
- package/resources/workflows/executions.d.ts +121 -0
- package/resources/workflows/executions.d.ts.map +1 -0
- package/resources/workflows/executions.js +33 -0
- package/resources/workflows/executions.js.map +1 -0
- package/resources/workflows/executions.mjs +29 -0
- package/resources/workflows/executions.mjs.map +1 -0
- package/resources/workflows/flows/actions.d.mts +89 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -0
- package/resources/workflows/flows/actions.d.ts +89 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -0
- package/resources/workflows/flows/actions.js +43 -0
- package/resources/workflows/flows/actions.js.map +1 -0
- package/resources/workflows/flows/actions.mjs +39 -0
- package/resources/workflows/flows/actions.mjs.map +1 -0
- package/resources/workflows/flows/flows.d.mts +154 -0
- package/resources/workflows/flows/flows.d.mts.map +1 -0
- package/resources/workflows/flows/flows.d.ts +154 -0
- package/resources/workflows/flows/flows.d.ts.map +1 -0
- package/resources/workflows/flows/flows.js +73 -0
- package/resources/workflows/flows/flows.js.map +1 -0
- package/resources/workflows/flows/flows.mjs +68 -0
- package/resources/workflows/flows/flows.mjs.map +1 -0
- package/resources/workflows/flows/index.d.mts +3 -0
- package/resources/workflows/flows/index.d.mts.map +1 -0
- package/resources/workflows/flows/index.d.ts +3 -0
- package/resources/workflows/flows/index.d.ts.map +1 -0
- package/resources/workflows/flows/index.js +9 -0
- package/resources/workflows/flows/index.js.map +1 -0
- package/resources/workflows/flows/index.mjs +4 -0
- package/resources/workflows/flows/index.mjs.map +1 -0
- package/resources/workflows/flows.d.mts +2 -0
- package/resources/workflows/flows.d.mts.map +1 -0
- package/resources/workflows/flows.d.ts +2 -0
- package/resources/workflows/flows.d.ts.map +1 -0
- package/resources/workflows/flows.js +6 -0
- package/resources/workflows/flows.js.map +1 -0
- package/resources/workflows/flows.mjs +3 -0
- package/resources/workflows/flows.mjs.map +1 -0
- package/resources/workflows/index.d.mts +9 -0
- package/resources/workflows/index.d.mts.map +1 -0
- package/resources/workflows/index.d.ts +9 -0
- package/resources/workflows/index.d.ts.map +1 -0
- package/resources/workflows/index.js +21 -0
- package/resources/workflows/index.js.map +1 -0
- package/resources/workflows/index.mjs +10 -0
- package/resources/workflows/index.mjs.map +1 -0
- package/resources/workflows/timezones.d.mts +16 -0
- package/resources/workflows/timezones.d.mts.map +1 -0
- package/resources/workflows/timezones.d.ts +16 -0
- package/resources/workflows/timezones.d.ts.map +1 -0
- package/resources/workflows/timezones.js +15 -0
- package/resources/workflows/timezones.js.map +1 -0
- package/resources/workflows/timezones.mjs +11 -0
- package/resources/workflows/timezones.mjs.map +1 -0
- package/resources/workflows/triggers.d.mts +325 -0
- package/resources/workflows/triggers.d.mts.map +1 -0
- package/resources/workflows/triggers.d.ts +325 -0
- package/resources/workflows/triggers.d.ts.map +1 -0
- package/resources/workflows/triggers.js +69 -0
- package/resources/workflows/triggers.js.map +1 -0
- package/resources/workflows/triggers.mjs +65 -0
- package/resources/workflows/triggers.mjs.map +1 -0
- package/resources/workflows/workflows.d.mts +72 -0
- package/resources/workflows/workflows.d.mts.map +1 -0
- package/resources/workflows/workflows.d.ts +72 -0
- package/resources/workflows/workflows.d.ts.map +1 -0
- package/resources/workflows/workflows.js +41 -0
- package/resources/workflows/workflows.js.map +1 -0
- package/resources/workflows/workflows.mjs +36 -0
- package/resources/workflows/workflows.mjs.map +1 -0
- package/resources/workflows.d.mts +2 -0
- package/resources/workflows.d.mts.map +1 -0
- package/resources/workflows.d.ts +2 -0
- package/resources/workflows.d.ts.map +1 -0
- package/resources/workflows.js +6 -0
- package/resources/workflows.js.map +1 -0
- package/resources/workflows.mjs +3 -0
- package/resources/workflows.mjs.map +1 -0
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +163 -96
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/apps.ts +553 -28
- package/src/resources/carriers.ts +188 -7
- package/src/resources/connect/connect.ts +73 -0
- package/src/resources/connect/countries.ts +106 -0
- package/src/resources/connect/index.ts +27 -0
- package/src/resources/connect/proxies.ts +598 -0
- package/src/resources/connect/users.ts +517 -0
- package/src/resources/connect.ts +3 -0
- package/src/resources/credentials/credentials.ts +3 -1
- package/src/resources/credentials/packages/credentials/credentials.ts +16 -4
- package/src/resources/credentials/packages/credentials/fields.ts +8 -3
- package/src/resources/credentials/packages/packages.ts +5 -2
- package/src/resources/devices/actions.ts +10 -5
- package/src/resources/devices/apps.ts +104 -42
- package/src/resources/devices/devices.ts +307 -103
- package/src/resources/devices/esim.ts +15 -6
- package/src/resources/devices/files.ts +7 -4
- package/src/resources/devices/index.ts +17 -13
- package/src/resources/devices/keyboard.ts +11 -3
- package/src/resources/devices/language.ts +93 -0
- package/src/resources/devices/location.ts +7 -19
- package/src/resources/devices/packages.ts +2 -1
- package/src/resources/devices/proxy.ts +34 -11
- package/src/resources/devices/state.ts +89 -5
- package/src/resources/devices/tasks.ts +4 -12
- package/src/resources/devices/{time.ts → timezone.ts} +24 -52
- package/src/resources/hooks.ts +1 -292
- package/src/resources/index.ts +39 -18
- package/src/resources/models.ts +3 -0
- package/src/resources/profiles.ts +105 -6
- package/src/resources/proxies.ts +124 -5
- package/src/resources/shared.ts +46 -10
- package/src/resources/tasks/tasks.ts +295 -77
- package/src/resources/webhooks/deliveries.ts +323 -0
- package/src/resources/webhooks/index.ts +26 -0
- package/src/resources/webhooks/webhooks.ts +503 -0
- package/src/resources/webhooks.ts +3 -0
- package/src/resources/workflows/action-catalog.ts +74 -0
- package/src/resources/workflows/actions/actions.ts +167 -0
- package/src/resources/workflows/actions/index.ts +15 -0
- package/src/resources/workflows/actions/services.ts +64 -0
- package/src/resources/workflows/actions.ts +3 -0
- package/src/resources/workflows/events/catalog.ts +5 -0
- package/src/resources/workflows/events/events.ts +167 -0
- package/src/resources/workflows/events/index.ts +10 -0
- package/src/resources/workflows/events.ts +3 -0
- package/src/resources/workflows/executions.ts +194 -0
- package/src/resources/workflows/flows/actions.ts +149 -0
- package/src/resources/workflows/flows/flows.ts +284 -0
- package/src/resources/workflows/flows/index.ts +29 -0
- package/src/resources/workflows/flows.ts +3 -0
- package/src/resources/workflows/index.ts +68 -0
- package/src/resources/workflows/timezones.ts +22 -0
- package/src/resources/workflows/triggers.ts +471 -0
- package/src/resources/workflows/workflows.ts +239 -0
- package/src/resources/workflows.ts +3 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/agents.d.mts +0 -30
- package/resources/agents.d.mts.map +0 -1
- package/resources/agents.d.ts +0 -30
- package/resources/agents.d.ts.map +0 -1
- package/resources/agents.js +0 -18
- package/resources/agents.js.map +0 -1
- package/resources/agents.mjs +0 -14
- package/resources/agents.mjs.map +0 -1
- package/resources/devices/time.d.mts +0 -45
- package/resources/devices/time.d.mts.map +0 -1
- package/resources/devices/time.d.ts +0 -45
- package/resources/devices/time.d.ts.map +0 -1
- package/resources/devices/time.js.map +0 -1
- package/resources/devices/time.mjs.map +0 -1
- package/src/resources/agents.ts +0 -45
package/src/client.ts
CHANGED
|
@@ -17,40 +17,42 @@ import * as Errors from './core/error';
|
|
|
17
17
|
import * as Uploads from './core/uploads';
|
|
18
18
|
import * as API from './resources/index';
|
|
19
19
|
import { APIPromise } from './core/api-promise';
|
|
20
|
-
import { AgentListResponse, Agents } from './resources/agents';
|
|
21
|
-
import { AppListParams, AppListResponse, Apps } from './resources/apps';
|
|
22
20
|
import {
|
|
23
|
-
|
|
21
|
+
AppConfirmUploadResponse,
|
|
22
|
+
AppCreateSignedUploadURLParams,
|
|
23
|
+
AppCreateSignedUploadURLResponse,
|
|
24
|
+
AppDeleteResponse,
|
|
25
|
+
AppListParams,
|
|
26
|
+
AppListResponse,
|
|
27
|
+
AppListVersionsResponse,
|
|
28
|
+
AppMarkFailedResponse,
|
|
29
|
+
AppRetrieveResponse,
|
|
30
|
+
Apps,
|
|
31
|
+
} from './resources/apps';
|
|
32
|
+
import {
|
|
24
33
|
CarrierCreateParams,
|
|
34
|
+
CarrierCreateResponse,
|
|
25
35
|
CarrierDeleteResponse,
|
|
26
36
|
CarrierListParams,
|
|
27
37
|
CarrierListResponse,
|
|
28
38
|
CarrierLookupParams,
|
|
39
|
+
CarrierLookupResponse,
|
|
40
|
+
CarrierRetrieveResponse,
|
|
29
41
|
CarrierUpdateParams,
|
|
42
|
+
CarrierUpdateResponse,
|
|
30
43
|
Carriers,
|
|
31
44
|
} from './resources/carriers';
|
|
32
|
-
import {
|
|
33
|
-
HookGetSampleDataResponse,
|
|
34
|
-
HookListParams,
|
|
35
|
-
HookListResponse,
|
|
36
|
-
HookPerformParams,
|
|
37
|
-
HookPerformResponse,
|
|
38
|
-
HookRetrieveResponse,
|
|
39
|
-
HookSubscribeParams,
|
|
40
|
-
HookSubscribeResponse,
|
|
41
|
-
HookUnsubscribeResponse,
|
|
42
|
-
HookUpdateParams,
|
|
43
|
-
HookUpdateResponse,
|
|
44
|
-
Hooks,
|
|
45
|
-
} from './resources/hooks';
|
|
45
|
+
import { Hooks } from './resources/hooks';
|
|
46
46
|
import { ModelListResponse, Models } from './resources/models';
|
|
47
47
|
import {
|
|
48
|
-
Profile,
|
|
49
48
|
ProfileCreateParams,
|
|
49
|
+
ProfileCreateResponse,
|
|
50
50
|
ProfileDeleteResponse,
|
|
51
51
|
ProfileListParams,
|
|
52
52
|
ProfileListResponse,
|
|
53
|
+
ProfileRetrieveResponse,
|
|
53
54
|
ProfileUpdateParams,
|
|
55
|
+
ProfileUpdateResponse,
|
|
54
56
|
Profiles,
|
|
55
57
|
} from './resources/profiles';
|
|
56
58
|
import {
|
|
@@ -61,10 +63,13 @@ import {
|
|
|
61
63
|
ProxyDeleteResponse,
|
|
62
64
|
ProxyListParams,
|
|
63
65
|
ProxyListResponse,
|
|
66
|
+
ProxyLookupParams,
|
|
67
|
+
ProxyLookupResponse,
|
|
64
68
|
ProxyRetrieveResponse,
|
|
65
69
|
ProxyUpdateParams,
|
|
66
70
|
ProxyUpdateResponse,
|
|
67
71
|
} from './resources/proxies';
|
|
72
|
+
import { Connect } from './resources/connect/connect';
|
|
68
73
|
import {
|
|
69
74
|
CredentialListParams,
|
|
70
75
|
CredentialListResponse,
|
|
@@ -74,6 +79,8 @@ import {
|
|
|
74
79
|
Device,
|
|
75
80
|
DeviceCountResponse,
|
|
76
81
|
DeviceCreateParams,
|
|
82
|
+
DeviceFingerprintParams,
|
|
83
|
+
DeviceFingerprintResponse,
|
|
77
84
|
DeviceListParams,
|
|
78
85
|
DeviceListResponse,
|
|
79
86
|
DeviceSetNameParams,
|
|
@@ -99,6 +106,20 @@ import {
|
|
|
99
106
|
Tasks,
|
|
100
107
|
UsageResult,
|
|
101
108
|
} from './resources/tasks/tasks';
|
|
109
|
+
import {
|
|
110
|
+
WebhookCreateParams,
|
|
111
|
+
WebhookCreateResponse,
|
|
112
|
+
WebhookEventTypesResponse,
|
|
113
|
+
WebhookListParams,
|
|
114
|
+
WebhookListResponse,
|
|
115
|
+
WebhookRetrieveResponse,
|
|
116
|
+
WebhookRotateSecretResponse,
|
|
117
|
+
WebhookTestDeliveryResponse,
|
|
118
|
+
WebhookUpdateParams,
|
|
119
|
+
WebhookUpdateResponse,
|
|
120
|
+
Webhooks,
|
|
121
|
+
} from './resources/webhooks/webhooks';
|
|
122
|
+
import { Flow, Workflows } from './resources/workflows/workflows';
|
|
102
123
|
import { type Fetch } from './internal/builtin-types';
|
|
103
124
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
104
125
|
import { FinalRequestOptions, RequestOptions } from './internal/request-options';
|
|
@@ -243,6 +264,18 @@ export class Mobilerun {
|
|
|
243
264
|
this.fetch = options.fetch ?? Shims.getDefaultFetch();
|
|
244
265
|
this.#encoder = Opts.FallbackEncoder;
|
|
245
266
|
|
|
267
|
+
const customHeadersEnv = readEnv('MOBILERUN_CUSTOM_HEADERS');
|
|
268
|
+
if (customHeadersEnv) {
|
|
269
|
+
const parsed: Record<string, string> = {};
|
|
270
|
+
for (const line of customHeadersEnv.split('\n')) {
|
|
271
|
+
const colon = line.indexOf(':');
|
|
272
|
+
if (colon >= 0) {
|
|
273
|
+
parsed[line.substring(0, colon).trim()] = line.substring(colon + 1).trim();
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
options.defaultHeaders = { ...parsed, ...options.defaultHeaders };
|
|
277
|
+
}
|
|
278
|
+
|
|
246
279
|
this._options = options;
|
|
247
280
|
|
|
248
281
|
this.apiKey = apiKey;
|
|
@@ -738,11 +771,19 @@ export class Mobilerun {
|
|
|
738
771
|
return () => controller.abort();
|
|
739
772
|
}
|
|
740
773
|
|
|
741
|
-
private buildBody({ options
|
|
774
|
+
private buildBody({ options }: { options: FinalRequestOptions }): {
|
|
742
775
|
bodyHeaders: HeadersLike;
|
|
743
776
|
body: BodyInit | undefined;
|
|
744
777
|
} {
|
|
778
|
+
const { body, headers: rawHeaders } = options;
|
|
745
779
|
if (!body) {
|
|
780
|
+
// A resource method always passes a `body` key when its operation defines a
|
|
781
|
+
// request body, even if the caller omitted an optional body param. Keep the
|
|
782
|
+
// content-type for those, and only elide it for operations with no body at
|
|
783
|
+
// all (e.g. GET/DELETE).
|
|
784
|
+
if (body == null && 'body' in options) {
|
|
785
|
+
return this.#encoder({ body, headers: buildHeaders([rawHeaders]) });
|
|
786
|
+
}
|
|
746
787
|
return { bodyHeaders: undefined, body: undefined };
|
|
747
788
|
}
|
|
748
789
|
const headers = buildHeaders([rawHeaders]);
|
|
@@ -802,81 +843,63 @@ export class Mobilerun {
|
|
|
802
843
|
|
|
803
844
|
static toFile = Uploads.toFile;
|
|
804
845
|
|
|
805
|
-
/**
|
|
806
|
-
* Tasks API
|
|
807
|
-
*/
|
|
808
|
-
tasks: API.Tasks = new API.Tasks(this);
|
|
809
|
-
/**
|
|
810
|
-
* Agents API
|
|
811
|
-
*/
|
|
812
|
-
agents: API.Agents = new API.Agents(this);
|
|
813
|
-
proxies: API.Proxies = new API.Proxies(this);
|
|
814
|
-
carriers: API.Carriers = new API.Carriers(this);
|
|
815
|
-
profiles: API.Profiles = new API.Profiles(this);
|
|
816
|
-
devices: API.Devices = new API.Devices(this);
|
|
817
846
|
apps: API.Apps = new API.Apps(this);
|
|
847
|
+
carriers: API.Carriers = new API.Carriers(this);
|
|
818
848
|
credentials: API.Credentials = new API.Credentials(this);
|
|
849
|
+
devices: API.Devices = new API.Devices(this);
|
|
850
|
+
hooks: API.Hooks = new API.Hooks(this);
|
|
819
851
|
/**
|
|
820
|
-
*
|
|
852
|
+
* LLM Models
|
|
821
853
|
*/
|
|
822
|
-
hooks: API.Hooks = new API.Hooks(this);
|
|
823
854
|
models: API.Models = new API.Models(this);
|
|
855
|
+
profiles: API.Profiles = new API.Profiles(this);
|
|
856
|
+
proxies: API.Proxies = new API.Proxies(this);
|
|
857
|
+
connect: API.Connect = new API.Connect(this);
|
|
858
|
+
/**
|
|
859
|
+
* Tasks API
|
|
860
|
+
*/
|
|
861
|
+
tasks: API.Tasks = new API.Tasks(this);
|
|
862
|
+
workflows: API.Workflows = new API.Workflows(this);
|
|
863
|
+
webhooks: API.Webhooks = new API.Webhooks(this);
|
|
824
864
|
}
|
|
825
865
|
|
|
826
|
-
Mobilerun.Tasks = Tasks;
|
|
827
|
-
Mobilerun.Agents = Agents;
|
|
828
|
-
Mobilerun.Proxies = Proxies;
|
|
829
|
-
Mobilerun.Carriers = Carriers;
|
|
830
|
-
Mobilerun.Profiles = Profiles;
|
|
831
|
-
Mobilerun.Devices = Devices;
|
|
832
866
|
Mobilerun.Apps = Apps;
|
|
867
|
+
Mobilerun.Carriers = Carriers;
|
|
833
868
|
Mobilerun.Credentials = Credentials;
|
|
869
|
+
Mobilerun.Devices = Devices;
|
|
834
870
|
Mobilerun.Hooks = Hooks;
|
|
835
871
|
Mobilerun.Models = Models;
|
|
872
|
+
Mobilerun.Profiles = Profiles;
|
|
873
|
+
Mobilerun.Proxies = Proxies;
|
|
874
|
+
Mobilerun.Connect = Connect;
|
|
875
|
+
Mobilerun.Tasks = Tasks;
|
|
876
|
+
Mobilerun.Workflows = Workflows;
|
|
877
|
+
Mobilerun.Webhooks = Webhooks;
|
|
836
878
|
|
|
837
879
|
export declare namespace Mobilerun {
|
|
838
880
|
export type RequestOptions = Opts.RequestOptions;
|
|
839
881
|
|
|
840
882
|
export {
|
|
841
|
-
|
|
842
|
-
type
|
|
843
|
-
type
|
|
844
|
-
type
|
|
845
|
-
type
|
|
846
|
-
type
|
|
847
|
-
type
|
|
848
|
-
type
|
|
849
|
-
type
|
|
850
|
-
type
|
|
851
|
-
type TaskRunStreamedResponse as TaskRunStreamedResponse,
|
|
852
|
-
type TaskSendMessageResponse as TaskSendMessageResponse,
|
|
853
|
-
type TaskStopResponse as TaskStopResponse,
|
|
854
|
-
type TaskListParams as TaskListParams,
|
|
855
|
-
type TaskRunParams as TaskRunParams,
|
|
856
|
-
type TaskRunStreamedParams as TaskRunStreamedParams,
|
|
857
|
-
type TaskSendMessageParams as TaskSendMessageParams,
|
|
858
|
-
};
|
|
859
|
-
|
|
860
|
-
export { Agents as Agents, type AgentListResponse as AgentListResponse };
|
|
861
|
-
|
|
862
|
-
export {
|
|
863
|
-
Proxies as Proxies,
|
|
864
|
-
type ProxyConfig as ProxyConfig,
|
|
865
|
-
type ProxyCreateResponse as ProxyCreateResponse,
|
|
866
|
-
type ProxyRetrieveResponse as ProxyRetrieveResponse,
|
|
867
|
-
type ProxyUpdateResponse as ProxyUpdateResponse,
|
|
868
|
-
type ProxyListResponse as ProxyListResponse,
|
|
869
|
-
type ProxyDeleteResponse as ProxyDeleteResponse,
|
|
870
|
-
type ProxyCreateParams as ProxyCreateParams,
|
|
871
|
-
type ProxyUpdateParams as ProxyUpdateParams,
|
|
872
|
-
type ProxyListParams as ProxyListParams,
|
|
883
|
+
Apps as Apps,
|
|
884
|
+
type AppRetrieveResponse as AppRetrieveResponse,
|
|
885
|
+
type AppListResponse as AppListResponse,
|
|
886
|
+
type AppDeleteResponse as AppDeleteResponse,
|
|
887
|
+
type AppConfirmUploadResponse as AppConfirmUploadResponse,
|
|
888
|
+
type AppCreateSignedUploadURLResponse as AppCreateSignedUploadURLResponse,
|
|
889
|
+
type AppListVersionsResponse as AppListVersionsResponse,
|
|
890
|
+
type AppMarkFailedResponse as AppMarkFailedResponse,
|
|
891
|
+
type AppListParams as AppListParams,
|
|
892
|
+
type AppCreateSignedUploadURLParams as AppCreateSignedUploadURLParams,
|
|
873
893
|
};
|
|
874
894
|
|
|
875
895
|
export {
|
|
876
896
|
Carriers as Carriers,
|
|
877
|
-
type
|
|
897
|
+
type CarrierCreateResponse as CarrierCreateResponse,
|
|
898
|
+
type CarrierRetrieveResponse as CarrierRetrieveResponse,
|
|
899
|
+
type CarrierUpdateResponse as CarrierUpdateResponse,
|
|
878
900
|
type CarrierListResponse as CarrierListResponse,
|
|
879
901
|
type CarrierDeleteResponse as CarrierDeleteResponse,
|
|
902
|
+
type CarrierLookupResponse as CarrierLookupResponse,
|
|
880
903
|
type CarrierCreateParams as CarrierCreateParams,
|
|
881
904
|
type CarrierUpdateParams as CarrierUpdateParams,
|
|
882
905
|
type CarrierListParams as CarrierListParams,
|
|
@@ -884,13 +907,9 @@ export declare namespace Mobilerun {
|
|
|
884
907
|
};
|
|
885
908
|
|
|
886
909
|
export {
|
|
887
|
-
|
|
888
|
-
type
|
|
889
|
-
type
|
|
890
|
-
type ProfileDeleteResponse as ProfileDeleteResponse,
|
|
891
|
-
type ProfileCreateParams as ProfileCreateParams,
|
|
892
|
-
type ProfileUpdateParams as ProfileUpdateParams,
|
|
893
|
-
type ProfileListParams as ProfileListParams,
|
|
910
|
+
Credentials as Credentials,
|
|
911
|
+
type CredentialListResponse as CredentialListResponse,
|
|
912
|
+
type CredentialListParams as CredentialListParams,
|
|
894
913
|
};
|
|
895
914
|
|
|
896
915
|
export {
|
|
@@ -898,42 +917,90 @@ export declare namespace Mobilerun {
|
|
|
898
917
|
type Device as Device,
|
|
899
918
|
type DeviceListResponse as DeviceListResponse,
|
|
900
919
|
type DeviceCountResponse as DeviceCountResponse,
|
|
920
|
+
type DeviceFingerprintResponse as DeviceFingerprintResponse,
|
|
901
921
|
type DeviceCreateParams as DeviceCreateParams,
|
|
902
922
|
type DeviceListParams as DeviceListParams,
|
|
923
|
+
type DeviceFingerprintParams as DeviceFingerprintParams,
|
|
903
924
|
type DeviceSetNameParams as DeviceSetNameParams,
|
|
904
925
|
type DeviceTerminateParams as DeviceTerminateParams,
|
|
905
926
|
};
|
|
906
927
|
|
|
907
|
-
export {
|
|
928
|
+
export { Hooks as Hooks };
|
|
929
|
+
|
|
930
|
+
export { Models as Models, type ModelListResponse as ModelListResponse };
|
|
908
931
|
|
|
909
932
|
export {
|
|
910
|
-
|
|
911
|
-
type
|
|
912
|
-
type
|
|
933
|
+
Profiles as Profiles,
|
|
934
|
+
type ProfileCreateResponse as ProfileCreateResponse,
|
|
935
|
+
type ProfileRetrieveResponse as ProfileRetrieveResponse,
|
|
936
|
+
type ProfileUpdateResponse as ProfileUpdateResponse,
|
|
937
|
+
type ProfileListResponse as ProfileListResponse,
|
|
938
|
+
type ProfileDeleteResponse as ProfileDeleteResponse,
|
|
939
|
+
type ProfileCreateParams as ProfileCreateParams,
|
|
940
|
+
type ProfileUpdateParams as ProfileUpdateParams,
|
|
941
|
+
type ProfileListParams as ProfileListParams,
|
|
913
942
|
};
|
|
914
943
|
|
|
915
944
|
export {
|
|
916
|
-
|
|
917
|
-
type
|
|
918
|
-
type
|
|
919
|
-
type
|
|
920
|
-
type
|
|
921
|
-
type
|
|
922
|
-
type
|
|
923
|
-
type
|
|
924
|
-
type
|
|
925
|
-
type
|
|
926
|
-
type
|
|
927
|
-
type
|
|
945
|
+
Proxies as Proxies,
|
|
946
|
+
type ProxyConfig as ProxyConfig,
|
|
947
|
+
type ProxyCreateResponse as ProxyCreateResponse,
|
|
948
|
+
type ProxyRetrieveResponse as ProxyRetrieveResponse,
|
|
949
|
+
type ProxyUpdateResponse as ProxyUpdateResponse,
|
|
950
|
+
type ProxyListResponse as ProxyListResponse,
|
|
951
|
+
type ProxyDeleteResponse as ProxyDeleteResponse,
|
|
952
|
+
type ProxyLookupResponse as ProxyLookupResponse,
|
|
953
|
+
type ProxyCreateParams as ProxyCreateParams,
|
|
954
|
+
type ProxyUpdateParams as ProxyUpdateParams,
|
|
955
|
+
type ProxyListParams as ProxyListParams,
|
|
956
|
+
type ProxyLookupParams as ProxyLookupParams,
|
|
928
957
|
};
|
|
929
958
|
|
|
930
|
-
export {
|
|
959
|
+
export { Connect as Connect };
|
|
960
|
+
|
|
961
|
+
export {
|
|
962
|
+
Tasks as Tasks,
|
|
963
|
+
type PackageCredentials as PackageCredentials,
|
|
964
|
+
type Task as Task,
|
|
965
|
+
type TaskStatus as TaskStatus,
|
|
966
|
+
type UsageResult as UsageResult,
|
|
967
|
+
type TaskRetrieveResponse as TaskRetrieveResponse,
|
|
968
|
+
type TaskListResponse as TaskListResponse,
|
|
969
|
+
type TaskGetStatusResponse as TaskGetStatusResponse,
|
|
970
|
+
type TaskGetTrajectoryResponse as TaskGetTrajectoryResponse,
|
|
971
|
+
type TaskRunResponse as TaskRunResponse,
|
|
972
|
+
type TaskRunStreamedResponse as TaskRunStreamedResponse,
|
|
973
|
+
type TaskSendMessageResponse as TaskSendMessageResponse,
|
|
974
|
+
type TaskStopResponse as TaskStopResponse,
|
|
975
|
+
type TaskListParams as TaskListParams,
|
|
976
|
+
type TaskRunParams as TaskRunParams,
|
|
977
|
+
type TaskRunStreamedParams as TaskRunStreamedParams,
|
|
978
|
+
type TaskSendMessageParams as TaskSendMessageParams,
|
|
979
|
+
};
|
|
980
|
+
|
|
981
|
+
export { Workflows as Workflows, type Flow as Flow };
|
|
982
|
+
|
|
983
|
+
export {
|
|
984
|
+
Webhooks as Webhooks,
|
|
985
|
+
type WebhookCreateResponse as WebhookCreateResponse,
|
|
986
|
+
type WebhookRetrieveResponse as WebhookRetrieveResponse,
|
|
987
|
+
type WebhookUpdateResponse as WebhookUpdateResponse,
|
|
988
|
+
type WebhookListResponse as WebhookListResponse,
|
|
989
|
+
type WebhookEventTypesResponse as WebhookEventTypesResponse,
|
|
990
|
+
type WebhookRotateSecretResponse as WebhookRotateSecretResponse,
|
|
991
|
+
type WebhookTestDeliveryResponse as WebhookTestDeliveryResponse,
|
|
992
|
+
type WebhookCreateParams as WebhookCreateParams,
|
|
993
|
+
type WebhookUpdateParams as WebhookUpdateParams,
|
|
994
|
+
type WebhookListParams as WebhookListParams,
|
|
995
|
+
};
|
|
931
996
|
|
|
932
997
|
export type DeviceCarrier = API.DeviceCarrier;
|
|
933
998
|
export type DeviceIdentifiers = API.DeviceIdentifiers;
|
|
934
999
|
export type DeviceSpec = API.DeviceSpec;
|
|
1000
|
+
export type Location = API.Location;
|
|
935
1001
|
export type Meta = API.Meta;
|
|
936
1002
|
export type Pagination = API.Pagination;
|
|
937
1003
|
export type PaginationMeta = API.PaginationMeta;
|
|
938
1004
|
export type PermissionSet = API.PermissionSet;
|
|
1005
|
+
export type Socks5 = API.Socks5;
|
|
939
1006
|
}
|
package/src/internal/types.ts
CHANGED
|
@@ -40,7 +40,6 @@ type OverloadedParameters<T> =
|
|
|
40
40
|
: T extends (...args: infer A) => unknown ? A
|
|
41
41
|
: never;
|
|
42
42
|
|
|
43
|
-
/* eslint-disable */
|
|
44
43
|
/**
|
|
45
44
|
* These imports attempt to get types from a parent package's dependencies.
|
|
46
45
|
* Unresolved bare specifiers can trigger [automatic type acquisition][1] in some projects, which
|
|
@@ -63,19 +62,18 @@ type OverloadedParameters<T> =
|
|
|
63
62
|
*
|
|
64
63
|
* [1]: https://www.typescriptlang.org/tsconfig/#typeAcquisition
|
|
65
64
|
*/
|
|
66
|
-
/** @ts-ignore For users with \@types/node */
|
|
65
|
+
/** @ts-ignore For users with \@types/node */ /* prettier-ignore */
|
|
67
66
|
type UndiciTypesRequestInit = NotAny<import('../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit>;
|
|
68
|
-
/** @ts-ignore For users with undici */
|
|
67
|
+
/** @ts-ignore For users with undici */ /* prettier-ignore */
|
|
69
68
|
type UndiciRequestInit = NotAny<import('../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici/index.d.ts').RequestInit>;
|
|
70
|
-
/** @ts-ignore For users with \@types/bun */
|
|
69
|
+
/** @ts-ignore For users with \@types/bun */ /* prettier-ignore */
|
|
71
70
|
type BunRequestInit = globalThis.FetchRequestInit;
|
|
72
|
-
/** @ts-ignore For users with node-fetch@2 */
|
|
71
|
+
/** @ts-ignore For users with node-fetch@2 */ /* prettier-ignore */
|
|
73
72
|
type NodeFetch2RequestInit = NotAny<import('../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit>;
|
|
74
|
-
/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */
|
|
73
|
+
/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */ /* prettier-ignore */
|
|
75
74
|
type NodeFetch3RequestInit = NotAny<import('../node_modules/node-fetch').RequestInit> | NotAny<import('../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/node-fetch').RequestInit>;
|
|
76
|
-
/** @ts-ignore For users who use Deno */
|
|
75
|
+
/** @ts-ignore For users who use Deno */ /* prettier-ignore */
|
|
77
76
|
type FetchRequestInit = NonNullable<OverloadedParameters<typeof fetch>[1]>;
|
|
78
|
-
/* eslint-enable */
|
|
79
77
|
|
|
80
78
|
type RequestInits =
|
|
81
79
|
| NotAny<UndiciTypesRequestInit>
|
|
@@ -107,6 +107,8 @@ export const formatRequestDetails = (details: {
|
|
|
107
107
|
name,
|
|
108
108
|
(
|
|
109
109
|
name.toLowerCase() === 'authorization' ||
|
|
110
|
+
name.toLowerCase() === 'api-key' ||
|
|
111
|
+
name.toLowerCase() === 'x-api-key' ||
|
|
110
112
|
name.toLowerCase() === 'cookie' ||
|
|
111
113
|
name.toLowerCase() === 'set-cookie'
|
|
112
114
|
) ?
|