@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
|
@@ -6,37 +6,18 @@ 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
|
-
*
|
|
11
|
+
* Returns the device's current timezone identifier. Devices that do not support
|
|
12
|
+
* timezone control return an unsupported-feature error.
|
|
12
13
|
*/
|
|
13
|
-
|
|
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
|
|
32
|
-
*/
|
|
33
|
-
time(
|
|
14
|
+
get(
|
|
34
15
|
deviceID: string,
|
|
35
|
-
params:
|
|
16
|
+
params: TimezoneGetParams | null | undefined = {},
|
|
36
17
|
options?: RequestOptions,
|
|
37
|
-
): APIPromise<
|
|
18
|
+
): APIPromise<TimezoneGetResponse> {
|
|
38
19
|
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
39
|
-
return this._client.get(path`/devices/${deviceID}/
|
|
20
|
+
return this._client.get(path`/devices/${deviceID}/timezone`, {
|
|
40
21
|
...options,
|
|
41
22
|
headers: buildHeaders([
|
|
42
23
|
{
|
|
@@ -50,18 +31,17 @@ export class Time extends APIResource {
|
|
|
50
31
|
}
|
|
51
32
|
|
|
52
33
|
/**
|
|
53
|
-
*
|
|
34
|
+
* Sets the device timezone to the identifier in the request body. Devices that do
|
|
35
|
+
* not support timezone control return an unsupported-feature error.
|
|
54
36
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
): APIPromise<TimeTimezoneResponse> {
|
|
60
|
-
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
61
|
-
return this._client.get(path`/devices/${deviceID}/timezone`, {
|
|
37
|
+
set(deviceID: string, params: TimezoneSetParams, options?: RequestOptions): APIPromise<void> {
|
|
38
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
39
|
+
return this._client.post(path`/devices/${deviceID}/timezone`, {
|
|
40
|
+
body,
|
|
62
41
|
...options,
|
|
63
42
|
headers: buildHeaders([
|
|
64
43
|
{
|
|
44
|
+
Accept: '*/*',
|
|
65
45
|
...(xDeviceDisplayID?.toString() != null ?
|
|
66
46
|
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
67
47
|
: undefined),
|
|
@@ -72,9 +52,7 @@ export class Time extends APIResource {
|
|
|
72
52
|
}
|
|
73
53
|
}
|
|
74
54
|
|
|
75
|
-
export
|
|
76
|
-
|
|
77
|
-
export interface TimeTimezoneResponse {
|
|
55
|
+
export interface TimezoneGetResponse {
|
|
78
56
|
timezone: string | null;
|
|
79
57
|
|
|
80
58
|
/**
|
|
@@ -83,7 +61,11 @@ export interface TimeTimezoneResponse {
|
|
|
83
61
|
$schema?: string;
|
|
84
62
|
}
|
|
85
63
|
|
|
86
|
-
export interface
|
|
64
|
+
export interface TimezoneGetParams {
|
|
65
|
+
'X-Device-Display-ID'?: number;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface TimezoneSetParams {
|
|
87
69
|
/**
|
|
88
70
|
* Body param
|
|
89
71
|
*/
|
|
@@ -95,20 +77,10 @@ export interface TimeSetTimezoneParams {
|
|
|
95
77
|
'X-Device-Display-ID'?: number;
|
|
96
78
|
}
|
|
97
79
|
|
|
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 {
|
|
80
|
+
export declare namespace Timezone {
|
|
107
81
|
export {
|
|
108
|
-
type
|
|
109
|
-
type
|
|
110
|
-
type
|
|
111
|
-
type TimeTimeParams as TimeTimeParams,
|
|
112
|
-
type TimeTimezoneParams as TimeTimezoneParams,
|
|
82
|
+
type TimezoneGetResponse as TimezoneGetResponse,
|
|
83
|
+
type TimezoneGetParams as TimezoneGetParams,
|
|
84
|
+
type TimezoneSetParams as TimezoneSetParams,
|
|
113
85
|
};
|
|
114
86
|
}
|
package/src/resources/hooks.ts
CHANGED
|
@@ -1,296 +1,5 @@
|
|
|
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';
|
|
5
|
-
import * as TasksAPI from './tasks/tasks';
|
|
6
|
-
import { APIPromise } from '../core/api-promise';
|
|
7
|
-
import { RequestOptions } from '../internal/request-options';
|
|
8
|
-
import { path } from '../internal/utils/path';
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
* Webhooks API
|
|
12
|
-
*/
|
|
13
|
-
export class Hooks extends APIResource {
|
|
14
|
-
/**
|
|
15
|
-
* Get a hook subscription by id.
|
|
16
|
-
*/
|
|
17
|
-
retrieve(hookID: string, options?: RequestOptions): APIPromise<HookRetrieveResponse> {
|
|
18
|
-
return this._client.get(path`/hooks/${hookID}`, options);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Edit a hook subscription (events or state).
|
|
23
|
-
*
|
|
24
|
-
* Allows updating the events filter and/or the state of a hook.
|
|
25
|
-
*/
|
|
26
|
-
update(hookID: string, body: HookUpdateParams, options?: RequestOptions): APIPromise<HookUpdateResponse> {
|
|
27
|
-
return this._client.post(path`/hooks/${hookID}/edit`, { body, ...options });
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* List hooks belonging to the requesting user (paginated).
|
|
32
|
-
*/
|
|
33
|
-
list(
|
|
34
|
-
query: HookListParams | null | undefined = {},
|
|
35
|
-
options?: RequestOptions,
|
|
36
|
-
): APIPromise<HookListResponse> {
|
|
37
|
-
return this._client.get('/hooks', { query, ...options });
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Get sample hook data for Zapier Perform List (testing/field mapping).
|
|
42
|
-
*/
|
|
43
|
-
getSampleData(options?: RequestOptions): APIPromise<HookGetSampleDataResponse> {
|
|
44
|
-
return this._client.get('/hooks/sample', options);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Zapier Perform endpoint - processes webhook payloads.
|
|
49
|
-
*/
|
|
50
|
-
perform(params: HookPerformParams, options?: RequestOptions): APIPromise<HookPerformResponse> {
|
|
51
|
-
const { body } = params;
|
|
52
|
-
return this._client.post('/hooks/perform', { body: body, ...options });
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Subscribe the current user to a webhook URL. Returns subscription id.
|
|
57
|
-
*/
|
|
58
|
-
subscribe(body: HookSubscribeParams, options?: RequestOptions): APIPromise<HookSubscribeResponse> {
|
|
59
|
-
return this._client.post('/hooks/subscribe', { body, ...options });
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Unsubscribe a previously created subscription by id.
|
|
64
|
-
*
|
|
65
|
-
* Permanently deletes the subscription if it belongs to the user.
|
|
66
|
-
*/
|
|
67
|
-
unsubscribe(hookID: string, options?: RequestOptions): APIPromise<HookUnsubscribeResponse> {
|
|
68
|
-
return this._client.post(path`/hooks/${hookID}/unsubscribe`, options);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface HookRetrieveResponse {
|
|
73
|
-
service: 'zapier' | 'n8n' | 'make' | 'internal' | 'other';
|
|
74
|
-
|
|
75
|
-
url: string;
|
|
76
|
-
|
|
77
|
-
userId: string;
|
|
78
|
-
|
|
79
|
-
id?: string;
|
|
80
|
-
|
|
81
|
-
createdAt?: string;
|
|
82
|
-
|
|
83
|
-
events?: Array<TasksAPI.TaskStatus>;
|
|
84
|
-
|
|
85
|
-
state?: 'active' | 'disabled' | 'deleted';
|
|
86
|
-
|
|
87
|
-
updatedAt?: string;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Response model after successfully editing a hook.
|
|
92
|
-
*/
|
|
93
|
-
export interface HookUpdateResponse {
|
|
94
|
-
/**
|
|
95
|
-
* The subscription ID
|
|
96
|
-
*/
|
|
97
|
-
id: string;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* The hook state
|
|
101
|
-
*/
|
|
102
|
-
state: string;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Whether the hook was updated
|
|
106
|
-
*/
|
|
107
|
-
updated: boolean;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* The webhook URL
|
|
111
|
-
*/
|
|
112
|
-
url: string;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* List of subscribed events
|
|
116
|
-
*/
|
|
117
|
-
events?: Array<string> | null;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export interface HookListResponse {
|
|
121
|
-
/**
|
|
122
|
-
* The paginated items
|
|
123
|
-
*/
|
|
124
|
-
items: Array<HookListResponse.Item>;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Pagination metadata
|
|
128
|
-
*/
|
|
129
|
-
pagination: Shared.PaginationMeta;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export namespace HookListResponse {
|
|
133
|
-
export interface Item {
|
|
134
|
-
service: 'zapier' | 'n8n' | 'make' | 'internal' | 'other';
|
|
135
|
-
|
|
136
|
-
url: string;
|
|
137
|
-
|
|
138
|
-
userId: string;
|
|
139
|
-
|
|
140
|
-
id?: string;
|
|
141
|
-
|
|
142
|
-
createdAt?: string;
|
|
143
|
-
|
|
144
|
-
events?: Array<TasksAPI.TaskStatus>;
|
|
145
|
-
|
|
146
|
-
state?: 'active' | 'disabled' | 'deleted';
|
|
147
|
-
|
|
148
|
-
updatedAt?: string;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export type HookGetSampleDataResponse = Array<HookGetSampleDataResponse.HookGetSampleDataResponseItem>;
|
|
153
|
-
|
|
154
|
-
export namespace HookGetSampleDataResponse {
|
|
155
|
-
/**
|
|
156
|
-
* Sample webhook event data for testing/mapping in Zapier.
|
|
157
|
-
*/
|
|
158
|
-
export interface HookGetSampleDataResponseItem {
|
|
159
|
-
/**
|
|
160
|
-
* The subscription ID
|
|
161
|
-
*/
|
|
162
|
-
id: string;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* ISO timestamp of when the subscription was created
|
|
166
|
-
*/
|
|
167
|
-
createdAt: string;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* List of subscribed events
|
|
171
|
-
*/
|
|
172
|
-
events: Array<string>;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* The hook state
|
|
176
|
-
*/
|
|
177
|
-
state: string;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* The webhook URL
|
|
181
|
-
*/
|
|
182
|
-
url: string;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* ISO timestamp of the last update
|
|
186
|
-
*/
|
|
187
|
-
updatedAt?: string | null;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
export type HookPerformResponse = Array<{ [key: string]: unknown }>;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Response model after successful subscription.
|
|
195
|
-
*/
|
|
196
|
-
export interface HookSubscribeResponse {
|
|
197
|
-
/**
|
|
198
|
-
* The subscription ID
|
|
199
|
-
*/
|
|
200
|
-
id: string;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* Whether subscription was successful
|
|
204
|
-
*/
|
|
205
|
-
subscribed: boolean;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* The webhook URL
|
|
209
|
-
*/
|
|
210
|
-
url: string;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* List of subscribed events
|
|
214
|
-
*/
|
|
215
|
-
events?: Array<string> | null;
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Service that receives the webhook
|
|
219
|
-
*/
|
|
220
|
-
service?: string | null;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* Response model after successful unsubscription.
|
|
225
|
-
*/
|
|
226
|
-
export interface HookUnsubscribeResponse {
|
|
227
|
-
/**
|
|
228
|
-
* The subscription ID
|
|
229
|
-
*/
|
|
230
|
-
id: string;
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Whether unsubscription was successful
|
|
234
|
-
*/
|
|
235
|
-
unsubscribed: boolean;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export interface HookUpdateParams {
|
|
239
|
-
/**
|
|
240
|
-
* Updated list of events to subscribe to
|
|
241
|
-
*/
|
|
242
|
-
events?: Array<string> | null;
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Updated hook state (active, disabled, deleted)
|
|
246
|
-
*/
|
|
247
|
-
state?: string | null;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
export interface HookListParams {
|
|
251
|
-
orderBy?: string | null;
|
|
252
|
-
|
|
253
|
-
orderByDirection?: 'asc' | 'desc';
|
|
254
|
-
|
|
255
|
-
page?: number;
|
|
256
|
-
|
|
257
|
-
pageSize?: number;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export interface HookPerformParams {
|
|
261
|
-
body: { [key: string]: unknown };
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
export interface HookSubscribeParams {
|
|
265
|
-
/**
|
|
266
|
-
* The webhook URL to send notifications to
|
|
267
|
-
*/
|
|
268
|
-
targetUrl: string;
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* List of task events to subscribe to (created, running, completed, failed,
|
|
272
|
-
* cancelled, paused)
|
|
273
|
-
*/
|
|
274
|
-
events?: Array<string> | null;
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Service that receives the webhook
|
|
278
|
-
*/
|
|
279
|
-
service?: string | null;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
export declare namespace Hooks {
|
|
283
|
-
export {
|
|
284
|
-
type HookRetrieveResponse as HookRetrieveResponse,
|
|
285
|
-
type HookUpdateResponse as HookUpdateResponse,
|
|
286
|
-
type HookListResponse as HookListResponse,
|
|
287
|
-
type HookGetSampleDataResponse as HookGetSampleDataResponse,
|
|
288
|
-
type HookPerformResponse as HookPerformResponse,
|
|
289
|
-
type HookSubscribeResponse as HookSubscribeResponse,
|
|
290
|
-
type HookUnsubscribeResponse as HookUnsubscribeResponse,
|
|
291
|
-
type HookUpdateParams as HookUpdateParams,
|
|
292
|
-
type HookListParams as HookListParams,
|
|
293
|
-
type HookPerformParams as HookPerformParams,
|
|
294
|
-
type HookSubscribeParams as HookSubscribeParams,
|
|
295
|
-
};
|
|
296
|
-
}
|
|
5
|
+
export class Hooks extends APIResource {}
|
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,29 +37,20 @@ 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';
|
|
31
|
-
export {
|
|
32
|
-
Hooks,
|
|
33
|
-
type HookRetrieveResponse,
|
|
34
|
-
type HookUpdateResponse,
|
|
35
|
-
type HookListResponse,
|
|
36
|
-
type HookGetSampleDataResponse,
|
|
37
|
-
type HookPerformResponse,
|
|
38
|
-
type HookSubscribeResponse,
|
|
39
|
-
type HookUnsubscribeResponse,
|
|
40
|
-
type HookUpdateParams,
|
|
41
|
-
type HookListParams,
|
|
42
|
-
type HookPerformParams,
|
|
43
|
-
type HookSubscribeParams,
|
|
44
|
-
} from './hooks';
|
|
47
|
+
export { Hooks } from './hooks';
|
|
45
48
|
export { Models, type ModelListResponse } from './models';
|
|
46
49
|
export {
|
|
47
50
|
Profiles,
|
|
48
|
-
type
|
|
51
|
+
type ProfileCreateResponse,
|
|
52
|
+
type ProfileRetrieveResponse,
|
|
53
|
+
type ProfileUpdateResponse,
|
|
49
54
|
type ProfileListResponse,
|
|
50
55
|
type ProfileDeleteResponse,
|
|
51
56
|
type ProfileCreateParams,
|
|
@@ -60,9 +65,11 @@ export {
|
|
|
60
65
|
type ProxyUpdateResponse,
|
|
61
66
|
type ProxyListResponse,
|
|
62
67
|
type ProxyDeleteResponse,
|
|
68
|
+
type ProxyLookupResponse,
|
|
63
69
|
type ProxyCreateParams,
|
|
64
70
|
type ProxyUpdateParams,
|
|
65
71
|
type ProxyListParams,
|
|
72
|
+
type ProxyLookupParams,
|
|
66
73
|
} from './proxies';
|
|
67
74
|
export {
|
|
68
75
|
Tasks,
|
|
@@ -83,3 +90,17 @@ export {
|
|
|
83
90
|
type TaskRunStreamedParams,
|
|
84
91
|
type TaskSendMessageParams,
|
|
85
92
|
} from './tasks/tasks';
|
|
93
|
+
export {
|
|
94
|
+
Webhooks,
|
|
95
|
+
type WebhookCreateResponse,
|
|
96
|
+
type WebhookRetrieveResponse,
|
|
97
|
+
type WebhookUpdateResponse,
|
|
98
|
+
type WebhookListResponse,
|
|
99
|
+
type WebhookEventTypesResponse,
|
|
100
|
+
type WebhookRotateSecretResponse,
|
|
101
|
+
type WebhookTestDeliveryResponse,
|
|
102
|
+
type WebhookCreateParams,
|
|
103
|
+
type WebhookUpdateParams,
|
|
104
|
+
type WebhookListParams,
|
|
105
|
+
} from './webhooks/webhooks';
|
|
106
|
+
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
|
|
@@ -10,21 +10,25 @@ export class Profiles extends APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* Create a new device profile
|
|
12
12
|
*/
|
|
13
|
-
create(body: ProfileCreateParams, options?: RequestOptions): APIPromise<
|
|
13
|
+
create(body: ProfileCreateParams, options?: RequestOptions): APIPromise<ProfileCreateResponse> {
|
|
14
14
|
return this._client.post('/profiles', { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Get device profile by ID
|
|
19
19
|
*/
|
|
20
|
-
retrieve(profileID: string, options?: RequestOptions): APIPromise<
|
|
20
|
+
retrieve(profileID: string, options?: RequestOptions): APIPromise<ProfileRetrieveResponse> {
|
|
21
21
|
return this._client.get(path`/profiles/${profileID}`, options);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Update a device profile
|
|
26
26
|
*/
|
|
27
|
-
update(
|
|
27
|
+
update(
|
|
28
|
+
profileID: string,
|
|
29
|
+
body: ProfileUpdateParams,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): APIPromise<ProfileUpdateResponse> {
|
|
28
32
|
return this._client.put(path`/profiles/${profileID}`, { body, ...options });
|
|
29
33
|
}
|
|
30
34
|
|
|
@@ -46,27 +50,86 @@ export class Profiles extends APIResource {
|
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
|
|
49
|
-
export interface
|
|
53
|
+
export interface ProfileCreateResponse {
|
|
54
|
+
id: string;
|
|
55
|
+
|
|
56
|
+
createdAt: string;
|
|
57
|
+
|
|
58
|
+
name: string;
|
|
59
|
+
|
|
60
|
+
ownerId: string;
|
|
61
|
+
|
|
62
|
+
spec: Shared.DeviceSpec;
|
|
63
|
+
|
|
64
|
+
updatedAt: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated Deprecated: use ownerId/createdBy.
|
|
68
|
+
*/
|
|
69
|
+
userId: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* A URL to the JSON Schema for this object.
|
|
73
|
+
*/
|
|
74
|
+
$schema?: string;
|
|
75
|
+
|
|
76
|
+
createdBy?: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface ProfileRetrieveResponse {
|
|
50
80
|
id: string;
|
|
51
81
|
|
|
52
82
|
createdAt: string;
|
|
53
83
|
|
|
54
84
|
name: string;
|
|
55
85
|
|
|
86
|
+
ownerId: string;
|
|
87
|
+
|
|
56
88
|
spec: Shared.DeviceSpec;
|
|
57
89
|
|
|
58
90
|
updatedAt: string;
|
|
59
91
|
|
|
92
|
+
/**
|
|
93
|
+
* @deprecated Deprecated: use ownerId/createdBy.
|
|
94
|
+
*/
|
|
60
95
|
userId: string;
|
|
61
96
|
|
|
62
97
|
/**
|
|
63
98
|
* A URL to the JSON Schema for this object.
|
|
64
99
|
*/
|
|
65
100
|
$schema?: string;
|
|
101
|
+
|
|
102
|
+
createdBy?: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface ProfileUpdateResponse {
|
|
106
|
+
id: string;
|
|
107
|
+
|
|
108
|
+
createdAt: string;
|
|
109
|
+
|
|
110
|
+
name: string;
|
|
111
|
+
|
|
112
|
+
ownerId: string;
|
|
113
|
+
|
|
114
|
+
spec: Shared.DeviceSpec;
|
|
115
|
+
|
|
116
|
+
updatedAt: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @deprecated Deprecated: use ownerId/createdBy.
|
|
120
|
+
*/
|
|
121
|
+
userId: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* A URL to the JSON Schema for this object.
|
|
125
|
+
*/
|
|
126
|
+
$schema?: string;
|
|
127
|
+
|
|
128
|
+
createdBy?: string;
|
|
66
129
|
}
|
|
67
130
|
|
|
68
131
|
export interface ProfileListResponse {
|
|
69
|
-
items: Array<
|
|
132
|
+
items: Array<ProfileListResponse.Item> | null;
|
|
70
133
|
|
|
71
134
|
pagination: Shared.Meta;
|
|
72
135
|
|
|
@@ -76,6 +139,34 @@ export interface ProfileListResponse {
|
|
|
76
139
|
$schema?: string;
|
|
77
140
|
}
|
|
78
141
|
|
|
142
|
+
export namespace ProfileListResponse {
|
|
143
|
+
export interface Item {
|
|
144
|
+
id: string;
|
|
145
|
+
|
|
146
|
+
createdAt: string;
|
|
147
|
+
|
|
148
|
+
name: string;
|
|
149
|
+
|
|
150
|
+
ownerId: string;
|
|
151
|
+
|
|
152
|
+
spec: Shared.DeviceSpec;
|
|
153
|
+
|
|
154
|
+
updatedAt: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @deprecated Deprecated: use ownerId/createdBy.
|
|
158
|
+
*/
|
|
159
|
+
userId: string;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* A URL to the JSON Schema for this object.
|
|
163
|
+
*/
|
|
164
|
+
$schema?: string;
|
|
165
|
+
|
|
166
|
+
createdBy?: string;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
79
170
|
export interface ProfileDeleteResponse {
|
|
80
171
|
message: string;
|
|
81
172
|
|
|
@@ -110,6 +201,12 @@ export interface ProfileUpdateParams {
|
|
|
110
201
|
}
|
|
111
202
|
|
|
112
203
|
export interface ProfileListParams {
|
|
204
|
+
/**
|
|
205
|
+
* When true, only return profiles created by the calling user (resolved from
|
|
206
|
+
* X-User-ID, never a client-supplied id).
|
|
207
|
+
*/
|
|
208
|
+
mine?: boolean;
|
|
209
|
+
|
|
113
210
|
name?: string;
|
|
114
211
|
|
|
115
212
|
orderBy?: 'name' | 'created_at' | 'updated_at';
|
|
@@ -123,7 +220,9 @@ export interface ProfileListParams {
|
|
|
123
220
|
|
|
124
221
|
export declare namespace Profiles {
|
|
125
222
|
export {
|
|
126
|
-
type
|
|
223
|
+
type ProfileCreateResponse as ProfileCreateResponse,
|
|
224
|
+
type ProfileRetrieveResponse as ProfileRetrieveResponse,
|
|
225
|
+
type ProfileUpdateResponse as ProfileUpdateResponse,
|
|
127
226
|
type ProfileListResponse as ProfileListResponse,
|
|
128
227
|
type ProfileDeleteResponse as ProfileDeleteResponse,
|
|
129
228
|
type ProfileCreateParams as ProfileCreateParams,
|