@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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as Shared from '../shared';
|
|
4
5
|
import { APIPromise } from '../../core/api-promise';
|
|
5
6
|
import { buildHeaders } from '../../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -14,7 +15,7 @@ export class Location extends APIResource {
|
|
|
14
15
|
deviceID: string,
|
|
15
16
|
params: LocationGetParams | null | undefined = {},
|
|
16
17
|
options?: RequestOptions,
|
|
17
|
-
): APIPromise<
|
|
18
|
+
): APIPromise<Shared.Location> {
|
|
18
19
|
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
19
20
|
return this._client.get(path`/devices/${deviceID}/location`, {
|
|
20
21
|
...options,
|
|
@@ -50,17 +51,6 @@ export class Location extends APIResource {
|
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
export interface LocationGetResponse {
|
|
54
|
-
latitude: number;
|
|
55
|
-
|
|
56
|
-
longitude: number;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* A URL to the JSON Schema for this object.
|
|
60
|
-
*/
|
|
61
|
-
$schema?: string;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
54
|
export interface LocationGetParams {
|
|
65
55
|
'X-Device-Display-ID'?: number;
|
|
66
56
|
}
|
|
@@ -83,9 +73,5 @@ export interface LocationSetParams {
|
|
|
83
73
|
}
|
|
84
74
|
|
|
85
75
|
export declare namespace Location {
|
|
86
|
-
export {
|
|
87
|
-
type LocationGetResponse as LocationGetResponse,
|
|
88
|
-
type LocationGetParams as LocationGetParams,
|
|
89
|
-
type LocationSetParams as LocationSetParams,
|
|
90
|
-
};
|
|
76
|
+
export { type LocationGetParams as LocationGetParams, type LocationSetParams as LocationSetParams };
|
|
91
77
|
}
|
|
@@ -82,7 +82,7 @@ export interface ProxyStatusResponse {
|
|
|
82
82
|
name: string | null;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
|
-
* Active proxy protocol (socks5
|
|
85
|
+
* Active proxy protocol (socks5).
|
|
86
86
|
*/
|
|
87
87
|
protocol: string | null;
|
|
88
88
|
|
|
@@ -99,7 +99,7 @@ export interface ProxyConnectParams {
|
|
|
99
99
|
host?: string;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
|
-
* Body param: Proxy name
|
|
102
|
+
* Body param: Proxy name
|
|
103
103
|
*/
|
|
104
104
|
name?: string;
|
|
105
105
|
|
|
@@ -128,12 +128,6 @@ export interface ProxyConnectParams {
|
|
|
128
128
|
*/
|
|
129
129
|
user?: string;
|
|
130
130
|
|
|
131
|
-
/**
|
|
132
|
-
* Body param: WireGuard tunnel configuration file content (required for
|
|
133
|
-
* wireguard).
|
|
134
|
-
*/
|
|
135
|
-
wireguard?: string;
|
|
136
|
-
|
|
137
131
|
/**
|
|
138
132
|
* Header param
|
|
139
133
|
*/
|
|
@@ -31,6 +31,28 @@ export class State extends APIResource {
|
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Device time
|
|
36
|
+
*/
|
|
37
|
+
time(
|
|
38
|
+
deviceID: string,
|
|
39
|
+
params: StateTimeParams | null | undefined = {},
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): APIPromise<string> {
|
|
42
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
43
|
+
return this._client.get(path`/devices/${deviceID}/time`, {
|
|
44
|
+
...options,
|
|
45
|
+
headers: buildHeaders([
|
|
46
|
+
{
|
|
47
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
48
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
49
|
+
: undefined),
|
|
50
|
+
},
|
|
51
|
+
options?.headers,
|
|
52
|
+
]),
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
34
56
|
/**
|
|
35
57
|
* UI state
|
|
36
58
|
*/
|
|
@@ -55,6 +77,54 @@ export class State extends APIResource {
|
|
|
55
77
|
}
|
|
56
78
|
}
|
|
57
79
|
|
|
80
|
+
export interface A11YNode {
|
|
81
|
+
boundsInScreen: A11YNode.BoundsInScreen;
|
|
82
|
+
|
|
83
|
+
children: Array<A11YNode> | null;
|
|
84
|
+
|
|
85
|
+
className: string;
|
|
86
|
+
|
|
87
|
+
contentDescription: string;
|
|
88
|
+
|
|
89
|
+
isCheckable: boolean;
|
|
90
|
+
|
|
91
|
+
isChecked: boolean;
|
|
92
|
+
|
|
93
|
+
isClickable: boolean;
|
|
94
|
+
|
|
95
|
+
isEnabled: boolean;
|
|
96
|
+
|
|
97
|
+
isFocusable: boolean;
|
|
98
|
+
|
|
99
|
+
isFocused: boolean;
|
|
100
|
+
|
|
101
|
+
isLongClickable: boolean;
|
|
102
|
+
|
|
103
|
+
isPassword: boolean;
|
|
104
|
+
|
|
105
|
+
isScrollable: boolean;
|
|
106
|
+
|
|
107
|
+
isSelected: boolean;
|
|
108
|
+
|
|
109
|
+
packageName: string;
|
|
110
|
+
|
|
111
|
+
resourceId: string;
|
|
112
|
+
|
|
113
|
+
text: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export namespace A11YNode {
|
|
117
|
+
export interface BoundsInScreen {
|
|
118
|
+
bottom: number;
|
|
119
|
+
|
|
120
|
+
left: number;
|
|
121
|
+
|
|
122
|
+
right: number;
|
|
123
|
+
|
|
124
|
+
top: number;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
58
128
|
export interface Rect {
|
|
59
129
|
height: number;
|
|
60
130
|
|
|
@@ -63,11 +133,15 @@ export interface Rect {
|
|
|
63
133
|
|
|
64
134
|
export type StateScreenshotResponse = string;
|
|
65
135
|
|
|
136
|
+
export type StateTimeResponse = string;
|
|
137
|
+
|
|
66
138
|
export interface StateUiResponse {
|
|
67
|
-
a11y_tree:
|
|
139
|
+
a11y_tree: A11YNode;
|
|
68
140
|
|
|
69
141
|
device_context: StateUiResponse.DeviceContext;
|
|
70
142
|
|
|
143
|
+
ime_tree: A11YNode;
|
|
144
|
+
|
|
71
145
|
phone_state: StateUiResponse.PhoneState;
|
|
72
146
|
|
|
73
147
|
/**
|
|
@@ -83,8 +157,6 @@ export namespace StateUiResponse {
|
|
|
83
157
|
filtering_params: DeviceContext.FilteringParams;
|
|
84
158
|
|
|
85
159
|
screen_bounds: StateAPI.Rect;
|
|
86
|
-
|
|
87
|
-
screenSize: StateAPI.Rect;
|
|
88
160
|
}
|
|
89
161
|
|
|
90
162
|
export namespace DeviceContext {
|
|
@@ -144,6 +216,10 @@ export interface StateScreenshotParams {
|
|
|
144
216
|
'X-Device-Display-ID'?: number;
|
|
145
217
|
}
|
|
146
218
|
|
|
219
|
+
export interface StateTimeParams {
|
|
220
|
+
'X-Device-Display-ID'?: number;
|
|
221
|
+
}
|
|
222
|
+
|
|
147
223
|
export interface StateUiParams {
|
|
148
224
|
/**
|
|
149
225
|
* Query param
|
|
@@ -158,10 +234,13 @@ export interface StateUiParams {
|
|
|
158
234
|
|
|
159
235
|
export declare namespace State {
|
|
160
236
|
export {
|
|
237
|
+
type A11YNode as A11YNode,
|
|
161
238
|
type Rect as Rect,
|
|
162
239
|
type StateScreenshotResponse as StateScreenshotResponse,
|
|
240
|
+
type StateTimeResponse as StateTimeResponse,
|
|
163
241
|
type StateUiResponse as StateUiResponse,
|
|
164
242
|
type StateScreenshotParams as StateScreenshotParams,
|
|
243
|
+
type StateTimeParams as StateTimeParams,
|
|
165
244
|
type StateUiParams as StateUiParams,
|
|
166
245
|
};
|
|
167
246
|
}
|
|
@@ -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
|
+
* Device Management
|
|
11
|
+
*/
|
|
9
12
|
export class Tasks extends APIResource {
|
|
10
13
|
/**
|
|
11
14
|
* List tasks for a device
|
|
@@ -6,37 +6,17 @@ import { buildHeaders } from '../../internal/headers';
|
|
|
6
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
7
|
import { path } from '../../internal/utils/path';
|
|
8
8
|
|
|
9
|
-
export class
|
|
9
|
+
export class Timezone extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
setTimezone(deviceID: string, params: TimeSetTimezoneParams, options?: RequestOptions): APIPromise<void> {
|
|
14
|
-
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
15
|
-
return this._client.post(path`/devices/${deviceID}/timezone`, {
|
|
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
|
-
/**
|
|
31
|
-
* Device time
|
|
11
|
+
* Get device timezone
|
|
32
12
|
*/
|
|
33
|
-
|
|
13
|
+
get(
|
|
34
14
|
deviceID: string,
|
|
35
|
-
params:
|
|
15
|
+
params: TimezoneGetParams | null | undefined = {},
|
|
36
16
|
options?: RequestOptions,
|
|
37
|
-
): APIPromise<
|
|
17
|
+
): APIPromise<TimezoneGetResponse> {
|
|
38
18
|
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
39
|
-
return this._client.get(path`/devices/${deviceID}/
|
|
19
|
+
return this._client.get(path`/devices/${deviceID}/timezone`, {
|
|
40
20
|
...options,
|
|
41
21
|
headers: buildHeaders([
|
|
42
22
|
{
|
|
@@ -50,18 +30,16 @@ export class Time extends APIResource {
|
|
|
50
30
|
}
|
|
51
31
|
|
|
52
32
|
/**
|
|
53
|
-
*
|
|
33
|
+
* Set device timezone
|
|
54
34
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
): APIPromise<TimeTimezoneResponse> {
|
|
60
|
-
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
61
|
-
return this._client.get(path`/devices/${deviceID}/timezone`, {
|
|
35
|
+
set(deviceID: string, params: TimezoneSetParams, options?: RequestOptions): APIPromise<void> {
|
|
36
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
37
|
+
return this._client.post(path`/devices/${deviceID}/timezone`, {
|
|
38
|
+
body,
|
|
62
39
|
...options,
|
|
63
40
|
headers: buildHeaders([
|
|
64
41
|
{
|
|
42
|
+
Accept: '*/*',
|
|
65
43
|
...(xDeviceDisplayID?.toString() != null ?
|
|
66
44
|
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
67
45
|
: undefined),
|
|
@@ -72,9 +50,7 @@ export class Time extends APIResource {
|
|
|
72
50
|
}
|
|
73
51
|
}
|
|
74
52
|
|
|
75
|
-
export
|
|
76
|
-
|
|
77
|
-
export interface TimeTimezoneResponse {
|
|
53
|
+
export interface TimezoneGetResponse {
|
|
78
54
|
timezone: string | null;
|
|
79
55
|
|
|
80
56
|
/**
|
|
@@ -83,7 +59,11 @@ export interface TimeTimezoneResponse {
|
|
|
83
59
|
$schema?: string;
|
|
84
60
|
}
|
|
85
61
|
|
|
86
|
-
export interface
|
|
62
|
+
export interface TimezoneGetParams {
|
|
63
|
+
'X-Device-Display-ID'?: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface TimezoneSetParams {
|
|
87
67
|
/**
|
|
88
68
|
* Body param
|
|
89
69
|
*/
|
|
@@ -95,20 +75,10 @@ export interface TimeSetTimezoneParams {
|
|
|
95
75
|
'X-Device-Display-ID'?: number;
|
|
96
76
|
}
|
|
97
77
|
|
|
98
|
-
export
|
|
99
|
-
'X-Device-Display-ID'?: number;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export interface TimeTimezoneParams {
|
|
103
|
-
'X-Device-Display-ID'?: number;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export declare namespace Time {
|
|
78
|
+
export declare namespace Timezone {
|
|
107
79
|
export {
|
|
108
|
-
type
|
|
109
|
-
type
|
|
110
|
-
type
|
|
111
|
-
type TimeTimeParams as TimeTimeParams,
|
|
112
|
-
type TimeTimezoneParams as TimeTimezoneParams,
|
|
80
|
+
type TimezoneGetResponse as TimezoneGetResponse,
|
|
81
|
+
type TimezoneGetParams as TimezoneGetParams,
|
|
82
|
+
type TimezoneSetParams as TimezoneSetParams,
|
|
113
83
|
};
|
|
114
84
|
}
|
package/src/resources/hooks.ts
CHANGED
|
@@ -7,9 +7,6 @@ import { APIPromise } from '../core/api-promise';
|
|
|
7
7
|
import { RequestOptions } from '../internal/request-options';
|
|
8
8
|
import { path } from '../internal/utils/path';
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* Webhooks API
|
|
12
|
-
*/
|
|
13
10
|
export class Hooks extends APIResource {
|
|
14
11
|
/**
|
|
15
12
|
* Get a hook subscription by id.
|
|
@@ -59,6 +56,16 @@ export class Hooks extends APIResource {
|
|
|
59
56
|
return this._client.post('/hooks/subscribe', { body, ...options });
|
|
60
57
|
}
|
|
61
58
|
|
|
59
|
+
/**
|
|
60
|
+
* Send a test event to a webhook endpoint.
|
|
61
|
+
*
|
|
62
|
+
* Delivers a sample payload to the hook's URL with a single attempt (no retries)
|
|
63
|
+
* for fast feedback.
|
|
64
|
+
*/
|
|
65
|
+
test(hookID: string, body: HookTestParams, options?: RequestOptions): APIPromise<HookTestResponse> {
|
|
66
|
+
return this._client.post(path`/hooks/${hookID}/test`, { body, ...options });
|
|
67
|
+
}
|
|
68
|
+
|
|
62
69
|
/**
|
|
63
70
|
* Unsubscribe a previously created subscription by id.
|
|
64
71
|
*
|
|
@@ -220,6 +227,31 @@ export interface HookSubscribeResponse {
|
|
|
220
227
|
service?: string | null;
|
|
221
228
|
}
|
|
222
229
|
|
|
230
|
+
/**
|
|
231
|
+
* Response after attempting test delivery.
|
|
232
|
+
*/
|
|
233
|
+
export interface HookTestResponse {
|
|
234
|
+
/**
|
|
235
|
+
* The hook ID
|
|
236
|
+
*/
|
|
237
|
+
id: string;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Whether delivery succeeded (2xx)
|
|
241
|
+
*/
|
|
242
|
+
success: boolean;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Error message if delivery failed
|
|
246
|
+
*/
|
|
247
|
+
error?: string | null;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* HTTP status from target
|
|
251
|
+
*/
|
|
252
|
+
statusCode?: number | null;
|
|
253
|
+
}
|
|
254
|
+
|
|
223
255
|
/**
|
|
224
256
|
* Response model after successful unsubscription.
|
|
225
257
|
*/
|
|
@@ -279,6 +311,13 @@ export interface HookSubscribeParams {
|
|
|
279
311
|
service?: string | null;
|
|
280
312
|
}
|
|
281
313
|
|
|
314
|
+
export interface HookTestParams {
|
|
315
|
+
/**
|
|
316
|
+
* Event type to simulate (default: completed)
|
|
317
|
+
*/
|
|
318
|
+
event?: string | null;
|
|
319
|
+
}
|
|
320
|
+
|
|
282
321
|
export declare namespace Hooks {
|
|
283
322
|
export {
|
|
284
323
|
type HookRetrieveResponse as HookRetrieveResponse,
|
|
@@ -287,10 +326,12 @@ export declare namespace Hooks {
|
|
|
287
326
|
type HookGetSampleDataResponse as HookGetSampleDataResponse,
|
|
288
327
|
type HookPerformResponse as HookPerformResponse,
|
|
289
328
|
type HookSubscribeResponse as HookSubscribeResponse,
|
|
329
|
+
type HookTestResponse as HookTestResponse,
|
|
290
330
|
type HookUnsubscribeResponse as HookUnsubscribeResponse,
|
|
291
331
|
type HookUpdateParams as HookUpdateParams,
|
|
292
332
|
type HookListParams as HookListParams,
|
|
293
333
|
type HookPerformParams as HookPerformParams,
|
|
294
334
|
type HookSubscribeParams as HookSubscribeParams,
|
|
335
|
+
type HookTestParams as HookTestParams,
|
|
295
336
|
};
|
|
296
337
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export * from './shared';
|
|
4
|
-
export {
|
|
5
|
-
|
|
4
|
+
export {
|
|
5
|
+
Apps,
|
|
6
|
+
type AppRetrieveResponse,
|
|
7
|
+
type AppListResponse,
|
|
8
|
+
type AppDeleteResponse,
|
|
9
|
+
type AppConfirmUploadResponse,
|
|
10
|
+
type AppCreateSignedUploadURLResponse,
|
|
11
|
+
type AppListVersionsResponse,
|
|
12
|
+
type AppMarkFailedResponse,
|
|
13
|
+
type AppListParams,
|
|
14
|
+
type AppCreateSignedUploadURLParams,
|
|
15
|
+
} from './apps';
|
|
6
16
|
export {
|
|
7
17
|
Carriers,
|
|
8
|
-
type
|
|
18
|
+
type CarrierCreateResponse,
|
|
19
|
+
type CarrierRetrieveResponse,
|
|
20
|
+
type CarrierUpdateResponse,
|
|
9
21
|
type CarrierListResponse,
|
|
10
22
|
type CarrierDeleteResponse,
|
|
23
|
+
type CarrierLookupResponse,
|
|
11
24
|
type CarrierCreateParams,
|
|
12
25
|
type CarrierUpdateParams,
|
|
13
26
|
type CarrierListParams,
|
|
14
27
|
type CarrierLookupParams,
|
|
15
28
|
} from './carriers';
|
|
29
|
+
export { Connect } from './connect/connect';
|
|
16
30
|
export {
|
|
17
31
|
Credentials,
|
|
18
32
|
type CredentialListResponse,
|
|
@@ -23,8 +37,10 @@ export {
|
|
|
23
37
|
type Device,
|
|
24
38
|
type DeviceListResponse,
|
|
25
39
|
type DeviceCountResponse,
|
|
40
|
+
type DeviceFingerprintResponse,
|
|
26
41
|
type DeviceCreateParams,
|
|
27
42
|
type DeviceListParams,
|
|
43
|
+
type DeviceFingerprintParams,
|
|
28
44
|
type DeviceSetNameParams,
|
|
29
45
|
type DeviceTerminateParams,
|
|
30
46
|
} from './devices/devices';
|
|
@@ -36,11 +52,13 @@ export {
|
|
|
36
52
|
type HookGetSampleDataResponse,
|
|
37
53
|
type HookPerformResponse,
|
|
38
54
|
type HookSubscribeResponse,
|
|
55
|
+
type HookTestResponse,
|
|
39
56
|
type HookUnsubscribeResponse,
|
|
40
57
|
type HookUpdateParams,
|
|
41
58
|
type HookListParams,
|
|
42
59
|
type HookPerformParams,
|
|
43
60
|
type HookSubscribeParams,
|
|
61
|
+
type HookTestParams,
|
|
44
62
|
} from './hooks';
|
|
45
63
|
export { Models, type ModelListResponse } from './models';
|
|
46
64
|
export {
|
|
@@ -60,9 +78,11 @@ export {
|
|
|
60
78
|
type ProxyUpdateResponse,
|
|
61
79
|
type ProxyListResponse,
|
|
62
80
|
type ProxyDeleteResponse,
|
|
81
|
+
type ProxyLookupResponse,
|
|
63
82
|
type ProxyCreateParams,
|
|
64
83
|
type ProxyUpdateParams,
|
|
65
84
|
type ProxyListParams,
|
|
85
|
+
type ProxyLookupParams,
|
|
66
86
|
} from './proxies';
|
|
67
87
|
export {
|
|
68
88
|
Tasks,
|
|
@@ -83,3 +103,17 @@ export {
|
|
|
83
103
|
type TaskRunStreamedParams,
|
|
84
104
|
type TaskSendMessageParams,
|
|
85
105
|
} from './tasks/tasks';
|
|
106
|
+
export {
|
|
107
|
+
Webhooks,
|
|
108
|
+
type WebhookCreateResponse,
|
|
109
|
+
type WebhookRetrieveResponse,
|
|
110
|
+
type WebhookUpdateResponse,
|
|
111
|
+
type WebhookListResponse,
|
|
112
|
+
type WebhookEventTypesResponse,
|
|
113
|
+
type WebhookRotateSecretResponse,
|
|
114
|
+
type WebhookTestDeliveryResponse,
|
|
115
|
+
type WebhookCreateParams,
|
|
116
|
+
type WebhookUpdateParams,
|
|
117
|
+
type WebhookListParams,
|
|
118
|
+
} from './webhooks/webhooks';
|
|
119
|
+
export { Workflows, type Flow } from './workflows/workflows';
|
package/src/resources/models.ts
CHANGED
|
@@ -4,6 +4,9 @@ import { APIResource } from '../core/resource';
|
|
|
4
4
|
import { APIPromise } from '../core/api-promise';
|
|
5
5
|
import { RequestOptions } from '../internal/request-options';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* LLM Models
|
|
9
|
+
*/
|
|
7
10
|
export class Models extends APIResource {
|
|
8
11
|
/**
|
|
9
12
|
* Get all LLM models
|
package/src/resources/proxies.ts
CHANGED
|
@@ -5,6 +5,9 @@ import { APIPromise } from '../core/api-promise';
|
|
|
5
5
|
import { RequestOptions } from '../internal/request-options';
|
|
6
6
|
import { path } from '../internal/utils/path';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Network Proxies
|
|
10
|
+
*/
|
|
8
11
|
export class Proxies extends APIResource {
|
|
9
12
|
/**
|
|
10
13
|
* Create a new proxy config
|
|
@@ -47,6 +50,13 @@ export class Proxies extends APIResource {
|
|
|
47
50
|
delete(proxyID: string, options?: RequestOptions): APIPromise<ProxyDeleteResponse> {
|
|
48
51
|
return this._client.delete(path`/proxies/${proxyID}`, options);
|
|
49
52
|
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Lookup proxy location
|
|
56
|
+
*/
|
|
57
|
+
lookup(body: ProxyLookupParams, options?: RequestOptions): APIPromise<ProxyLookupResponse> {
|
|
58
|
+
return this._client.post('/proxies/lookup', { body, ...options });
|
|
59
|
+
}
|
|
50
60
|
}
|
|
51
61
|
|
|
52
62
|
export type ProxyConfig = ProxyConfig.Socks5ProxyConfig | ProxyConfig.WireguardProxyConfig;
|
|
@@ -111,6 +121,85 @@ export interface ProxyDeleteResponse {
|
|
|
111
121
|
success: true;
|
|
112
122
|
}
|
|
113
123
|
|
|
124
|
+
export interface ProxyLookupResponse {
|
|
125
|
+
/**
|
|
126
|
+
* IP address of the proxy.
|
|
127
|
+
*/
|
|
128
|
+
ip: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Whether the IP is a mobile connection.
|
|
132
|
+
*/
|
|
133
|
+
isMobile: boolean;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Latitude of the proxy.
|
|
137
|
+
*/
|
|
138
|
+
latitude: number;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Longitude of the proxy.
|
|
142
|
+
*/
|
|
143
|
+
longitude: number;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* A URL to the JSON Schema for this object.
|
|
147
|
+
*/
|
|
148
|
+
$schema?: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Mobile carrier information.
|
|
152
|
+
*/
|
|
153
|
+
carrier?: ProxyLookupResponse.Carrier;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* City of the proxy.
|
|
157
|
+
*/
|
|
158
|
+
city?: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Country of the proxy.
|
|
162
|
+
*/
|
|
163
|
+
country?: string;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* ISO country code.
|
|
167
|
+
*/
|
|
168
|
+
countryCode?: string;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Region of the proxy.
|
|
172
|
+
*/
|
|
173
|
+
region?: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Timezone of the proxy.
|
|
177
|
+
*/
|
|
178
|
+
timezone?: string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export namespace ProxyLookupResponse {
|
|
182
|
+
/**
|
|
183
|
+
* Mobile carrier information.
|
|
184
|
+
*/
|
|
185
|
+
export interface Carrier {
|
|
186
|
+
/**
|
|
187
|
+
* Mobile Country Code.
|
|
188
|
+
*/
|
|
189
|
+
mcc?: string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Mobile Network Code.
|
|
193
|
+
*/
|
|
194
|
+
mnc?: string;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Carrier name.
|
|
198
|
+
*/
|
|
199
|
+
name?: string;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
114
203
|
export type ProxyCreateParams = ProxyCreateParams.CreateSocks5Proxy | ProxyCreateParams.CreateWireguardProxy;
|
|
115
204
|
|
|
116
205
|
export declare namespace ProxyCreateParams {
|
|
@@ -167,6 +256,28 @@ export interface ProxyListParams {
|
|
|
167
256
|
protocol?: 'socks5' | 'wireguard';
|
|
168
257
|
}
|
|
169
258
|
|
|
259
|
+
export interface ProxyLookupParams {
|
|
260
|
+
/**
|
|
261
|
+
* SOCKS5 proxy configuration.
|
|
262
|
+
*/
|
|
263
|
+
socks5: ProxyLookupParams.Socks5;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export namespace ProxyLookupParams {
|
|
267
|
+
/**
|
|
268
|
+
* SOCKS5 proxy configuration.
|
|
269
|
+
*/
|
|
270
|
+
export interface Socks5 {
|
|
271
|
+
host: string;
|
|
272
|
+
|
|
273
|
+
port: number;
|
|
274
|
+
|
|
275
|
+
password?: string;
|
|
276
|
+
|
|
277
|
+
user?: string;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
170
281
|
export declare namespace Proxies {
|
|
171
282
|
export {
|
|
172
283
|
type ProxyConfig as ProxyConfig,
|
|
@@ -175,8 +286,10 @@ export declare namespace Proxies {
|
|
|
175
286
|
type ProxyUpdateResponse as ProxyUpdateResponse,
|
|
176
287
|
type ProxyListResponse as ProxyListResponse,
|
|
177
288
|
type ProxyDeleteResponse as ProxyDeleteResponse,
|
|
289
|
+
type ProxyLookupResponse as ProxyLookupResponse,
|
|
178
290
|
type ProxyCreateParams as ProxyCreateParams,
|
|
179
291
|
type ProxyUpdateParams as ProxyUpdateParams,
|
|
180
292
|
type ProxyListParams as ProxyListParams,
|
|
293
|
+
type ProxyLookupParams as ProxyLookupParams,
|
|
181
294
|
};
|
|
182
295
|
}
|