@mobilerun/sdk 5.1.0 → 5.2.1
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 +58 -0
- package/README.md +15 -12
- package/client.d.mts +35 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +35 -29
- package/client.d.ts.map +1 -1
- package/client.js +21 -15
- package/client.js.map +1 -1
- package/client.mjs +21 -15
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/agents.d.mts +27 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +27 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +15 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +11 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/app-events/app-events.d.mts +81 -0
- package/resources/app-events/app-events.d.mts.map +1 -0
- package/resources/app-events/app-events.d.ts +81 -0
- package/resources/app-events/app-events.d.ts.map +1 -0
- package/resources/app-events/app-events.js +33 -0
- package/resources/app-events/app-events.js.map +1 -0
- package/resources/app-events/app-events.mjs +28 -0
- package/resources/app-events/app-events.mjs.map +1 -0
- package/resources/app-events/catalog.d.mts +64 -0
- package/resources/app-events/catalog.d.mts.map +1 -0
- package/resources/app-events/catalog.d.ts +64 -0
- package/resources/app-events/catalog.d.ts.map +1 -0
- package/resources/app-events/catalog.js +25 -0
- package/resources/app-events/catalog.js.map +1 -0
- package/resources/app-events/catalog.mjs +21 -0
- package/resources/app-events/catalog.mjs.map +1 -0
- package/resources/app-events/index.d.mts +3 -0
- package/resources/app-events/index.d.mts.map +1 -0
- package/resources/app-events/index.d.ts +3 -0
- package/resources/app-events/index.d.ts.map +1 -0
- package/resources/{workflows/events → app-events}/index.js +3 -3
- package/resources/app-events/index.js.map +1 -0
- package/resources/app-events/index.mjs +4 -0
- package/resources/app-events/index.mjs.map +1 -0
- package/resources/app-events.d.mts +2 -0
- package/resources/app-events.d.mts.map +1 -0
- package/resources/app-events.d.ts +2 -0
- package/resources/app-events.d.ts.map +1 -0
- package/resources/app-events.js +6 -0
- package/resources/app-events.js.map +1 -0
- package/resources/app-events.mjs +3 -0
- package/resources/app-events.mjs.map +1 -0
- package/resources/apps.d.mts +44 -8
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +44 -8
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +12 -4
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +12 -4
- package/resources/apps.mjs.map +1 -1
- package/resources/carriers.d.mts +0 -3
- package/resources/carriers.d.mts.map +1 -1
- package/resources/carriers.d.ts +0 -3
- package/resources/carriers.d.ts.map +1 -1
- package/resources/carriers.js +0 -3
- package/resources/carriers.js.map +1 -1
- package/resources/carriers.mjs +0 -3
- package/resources/carriers.mjs.map +1 -1
- package/resources/connect/countries.d.mts +8 -3
- package/resources/connect/countries.d.mts.map +1 -1
- package/resources/connect/countries.d.ts +8 -3
- package/resources/connect/countries.d.ts.map +1 -1
- package/resources/connect/countries.js +6 -1
- package/resources/connect/countries.js.map +1 -1
- package/resources/connect/countries.mjs +6 -1
- package/resources/connect/countries.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +11 -9
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +11 -9
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +7 -5
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +7 -5
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/connect/users.d.mts +7 -2
- package/resources/connect/users.d.mts.map +1 -1
- package/resources/connect/users.d.ts +7 -2
- package/resources/connect/users.d.ts.map +1 -1
- package/resources/connect/users.js +7 -2
- package/resources/connect/users.js.map +1 -1
- package/resources/connect/users.mjs +7 -2
- package/resources/connect/users.mjs.map +1 -1
- package/resources/credentials/credentials.d.mts +27 -8
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +27 -8
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +3 -4
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +3 -4
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/index.d.mts +1 -1
- package/resources/credentials/index.d.mts.map +1 -1
- package/resources/credentials/index.d.ts +1 -1
- package/resources/credentials/index.d.ts.map +1 -1
- package/resources/credentials/index.js.map +1 -1
- package/resources/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.mts +74 -23
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +74 -23
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +7 -6
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +7 -6
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +74 -10
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +74 -10
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/fields.js +8 -6
- package/resources/credentials/packages/credentials/fields.js.map +1 -1
- package/resources/credentials/packages/credentials/fields.mjs +8 -6
- package/resources/credentials/packages/credentials/fields.mjs.map +1 -1
- package/resources/credentials/packages/credentials/index.d.mts +1 -1
- package/resources/credentials/packages/credentials/index.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/index.d.ts +1 -1
- package/resources/credentials/packages/credentials/index.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/index.js.map +1 -1
- package/resources/credentials/packages/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/index.d.mts +2 -2
- package/resources/credentials/packages/index.d.mts.map +1 -1
- package/resources/credentials/packages/index.d.ts +2 -2
- package/resources/credentials/packages/index.d.ts.map +1 -1
- package/resources/credentials/packages/index.js.map +1 -1
- package/resources/credentials/packages/index.mjs.map +1 -1
- package/resources/credentials/packages/packages.d.mts +44 -9
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +44 -9
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +13 -5
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +13 -5
- package/resources/credentials/packages/packages.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 +119 -6
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +119 -6
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +80 -5
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +80 -5
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/browser.d.mts +41 -0
- package/resources/devices/browser.d.mts.map +1 -0
- package/resources/devices/browser.d.ts +41 -0
- package/resources/devices/browser.d.ts.map +1 -0
- package/resources/devices/browser.js +31 -0
- package/resources/devices/browser.js.map +1 -0
- package/resources/devices/browser.mjs +27 -0
- package/resources/devices/browser.mjs.map +1 -0
- package/resources/devices/deep-link.d.mts +41 -0
- package/resources/devices/deep-link.d.mts.map +1 -0
- package/resources/devices/deep-link.d.ts +41 -0
- package/resources/devices/deep-link.d.ts.map +1 -0
- package/resources/devices/deep-link.js +33 -0
- package/resources/devices/deep-link.js.map +1 -0
- package/resources/devices/deep-link.mjs +29 -0
- package/resources/devices/deep-link.mjs.map +1 -0
- package/resources/devices/devices.d.mts +285 -33
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +285 -33
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +83 -14
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +83 -14
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/esim/apn.d.mts +95 -0
- package/resources/devices/esim/apn.d.mts.map +1 -0
- package/resources/devices/esim/apn.d.ts +95 -0
- package/resources/devices/esim/apn.d.ts.map +1 -0
- package/resources/devices/esim/apn.js +70 -0
- package/resources/devices/esim/apn.js.map +1 -0
- package/resources/devices/esim/apn.mjs +66 -0
- package/resources/devices/esim/apn.mjs.map +1 -0
- package/resources/devices/esim/esim.d.mts +144 -0
- package/resources/devices/esim/esim.d.mts.map +1 -0
- package/resources/devices/esim/esim.d.ts +144 -0
- package/resources/devices/esim/esim.d.ts.map +1 -0
- package/resources/devices/esim/esim.js +131 -0
- package/resources/devices/esim/esim.js.map +1 -0
- package/resources/devices/esim/esim.mjs +126 -0
- package/resources/devices/esim/esim.mjs.map +1 -0
- package/resources/devices/esim/index.d.mts +3 -0
- package/resources/devices/esim/index.d.mts.map +1 -0
- package/resources/devices/esim/index.d.ts +3 -0
- package/resources/devices/esim/index.d.ts.map +1 -0
- package/resources/devices/esim/index.js +9 -0
- package/resources/devices/esim/index.js.map +1 -0
- package/resources/devices/esim/index.mjs +4 -0
- package/resources/devices/esim/index.mjs.map +1 -0
- package/resources/devices/esim.d.mts +1 -100
- package/resources/devices/esim.d.mts.map +1 -1
- package/resources/devices/esim.d.ts +1 -100
- package/resources/devices/esim.d.ts.map +1 -1
- package/resources/devices/esim.js +2 -80
- package/resources/devices/esim.js.map +1 -1
- package/resources/devices/esim.mjs +1 -78
- package/resources/devices/esim.mjs.map +1 -1
- package/resources/devices/files.d.mts +38 -33
- package/resources/devices/files.d.mts.map +1 -1
- package/resources/devices/files.d.ts +38 -33
- 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 +11 -6
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +11 -6
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +13 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +7 -2
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +5 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +5 -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/kiosk.d.mts +32 -0
- package/resources/devices/kiosk.d.mts.map +1 -0
- package/resources/devices/kiosk.d.ts +32 -0
- package/resources/devices/kiosk.d.ts.map +1 -0
- package/resources/devices/kiosk.js +50 -0
- package/resources/devices/kiosk.js.map +1 -0
- package/resources/devices/kiosk.mjs +46 -0
- package/resources/devices/kiosk.mjs.map +1 -0
- package/resources/devices/language.d.mts +4 -2
- package/resources/devices/language.d.mts.map +1 -1
- package/resources/devices/language.d.ts +4 -2
- package/resources/devices/language.d.ts.map +1 -1
- package/resources/devices/language.js +4 -2
- package/resources/devices/language.js.map +1 -1
- package/resources/devices/language.mjs +4 -2
- package/resources/devices/language.mjs.map +1 -1
- package/resources/devices/location.d.mts +13 -3
- package/resources/devices/location.d.mts.map +1 -1
- package/resources/devices/location.d.ts +13 -3
- package/resources/devices/location.d.ts.map +1 -1
- package/resources/devices/location.js +23 -2
- package/resources/devices/location.js.map +1 -1
- package/resources/devices/location.mjs +23 -2
- package/resources/devices/location.mjs.map +1 -1
- package/resources/devices/media-sessions.d.mts +96 -0
- package/resources/devices/media-sessions.d.mts.map +1 -0
- package/resources/devices/media-sessions.d.ts +96 -0
- package/resources/devices/media-sessions.d.ts.map +1 -0
- package/resources/devices/media-sessions.js +50 -0
- package/resources/devices/media-sessions.js.map +1 -0
- package/resources/devices/media-sessions.mjs +46 -0
- package/resources/devices/media-sessions.mjs.map +1 -0
- 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/proxy.d.mts +29 -3
- package/resources/devices/proxy.d.mts.map +1 -1
- package/resources/devices/proxy.d.ts +29 -3
- 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/recordings.d.mts +192 -0
- package/resources/devices/recordings.d.mts.map +1 -0
- package/resources/devices/recordings.d.ts +192 -0
- package/resources/devices/recordings.d.ts.map +1 -0
- package/resources/devices/recordings.js +67 -0
- package/resources/devices/recordings.js.map +1 -0
- package/resources/devices/recordings.mjs +63 -0
- package/resources/devices/recordings.mjs.map +1 -0
- package/resources/devices/state.d.mts +13 -10
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +13 -10
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +6 -3
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +6 -3
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/tasks.d.mts +2 -4
- package/resources/devices/tasks.d.mts.map +1 -1
- package/resources/devices/tasks.d.ts +2 -4
- package/resources/devices/tasks.d.ts.map +1 -1
- package/resources/devices/tasks.js +2 -4
- package/resources/devices/tasks.js.map +1 -1
- package/resources/devices/tasks.mjs +2 -4
- package/resources/devices/tasks.mjs.map +1 -1
- package/resources/devices/timezone.d.mts +4 -2
- package/resources/devices/timezone.d.mts.map +1 -1
- package/resources/devices/timezone.d.ts +4 -2
- package/resources/devices/timezone.d.ts.map +1 -1
- package/resources/devices/timezone.js +4 -2
- package/resources/devices/timezone.js.map +1 -1
- package/resources/devices/timezone.mjs +4 -2
- package/resources/devices/timezone.mjs.map +1 -1
- package/resources/esims/esims.d.mts +566 -0
- package/resources/esims/esims.d.mts.map +1 -0
- package/resources/esims/esims.d.ts +566 -0
- package/resources/esims/esims.d.ts.map +1 -0
- package/resources/esims/esims.js +205 -0
- package/resources/esims/esims.js.map +1 -0
- package/resources/esims/esims.mjs +200 -0
- package/resources/esims/esims.mjs.map +1 -0
- package/resources/esims/index.d.mts +3 -0
- package/resources/esims/index.d.mts.map +1 -0
- package/resources/esims/index.d.ts +3 -0
- package/resources/esims/index.d.ts.map +1 -0
- package/resources/esims/index.js +9 -0
- package/resources/esims/index.js.map +1 -0
- package/resources/esims/index.mjs +4 -0
- package/resources/esims/index.mjs.map +1 -0
- package/resources/esims/messages.d.mts +111 -0
- package/resources/esims/messages.d.mts.map +1 -0
- package/resources/esims/messages.d.ts +111 -0
- package/resources/esims/messages.d.ts.map +1 -0
- package/resources/esims/messages.js +37 -0
- package/resources/esims/messages.js.map +1 -0
- package/resources/esims/messages.mjs +33 -0
- package/resources/esims/messages.mjs.map +1 -0
- package/resources/esims.d.mts +2 -0
- package/resources/esims.d.mts.map +1 -0
- package/resources/esims.d.ts +2 -0
- package/resources/esims.d.ts.map +1 -0
- package/resources/esims.js +6 -0
- package/resources/esims.js.map +1 -0
- package/resources/esims.mjs +3 -0
- package/resources/esims.mjs.map +1 -0
- package/resources/index.d.mts +13 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +13 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/conversations.d.mts +87 -0
- package/resources/messages/conversations.d.mts.map +1 -0
- package/resources/messages/conversations.d.ts +87 -0
- package/resources/messages/conversations.d.ts.map +1 -0
- package/resources/messages/conversations.js +34 -0
- package/resources/messages/conversations.js.map +1 -0
- package/resources/messages/conversations.mjs +30 -0
- package/resources/messages/conversations.mjs.map +1 -0
- package/resources/messages/index.d.mts +3 -0
- package/resources/messages/index.d.mts.map +1 -0
- package/resources/messages/index.d.ts +3 -0
- package/resources/messages/index.d.ts.map +1 -0
- package/resources/messages/index.js +9 -0
- package/resources/messages/index.js.map +1 -0
- package/resources/messages/index.mjs +4 -0
- package/resources/messages/index.mjs.map +1 -0
- package/resources/messages/messages.d.mts +56 -0
- package/resources/messages/messages.d.mts.map +1 -0
- package/resources/messages/messages.d.ts +56 -0
- package/resources/messages/messages.d.ts.map +1 -0
- package/resources/messages/messages.js +26 -0
- package/resources/messages/messages.js.map +1 -0
- package/resources/messages/messages.mjs +21 -0
- package/resources/messages/messages.mjs.map +1 -0
- package/resources/messages.d.mts +2 -0
- package/resources/messages.d.mts.map +1 -0
- package/resources/messages.d.ts +2 -0
- package/resources/messages.d.ts.map +1 -0
- package/resources/messages.js +6 -0
- package/resources/messages.js.map +1 -0
- package/resources/messages.mjs +3 -0
- package/resources/messages.mjs.map +1 -0
- package/resources/notifications.d.mts +86 -0
- package/resources/notifications.d.mts.map +1 -0
- package/resources/notifications.d.ts +86 -0
- package/resources/notifications.d.ts.map +1 -0
- package/resources/notifications.js +55 -0
- package/resources/notifications.js.map +1 -0
- package/resources/notifications.mjs +51 -0
- package/resources/notifications.mjs.map +1 -0
- package/resources/numbers/index.d.mts +3 -0
- package/resources/numbers/index.d.mts.map +1 -0
- package/resources/numbers/index.d.ts +3 -0
- package/resources/numbers/index.d.ts.map +1 -0
- package/resources/numbers/index.js +9 -0
- package/resources/numbers/index.js.map +1 -0
- package/resources/numbers/index.mjs +4 -0
- package/resources/numbers/index.mjs.map +1 -0
- package/resources/numbers/messages.d.mts +60 -0
- package/resources/numbers/messages.d.mts.map +1 -0
- package/resources/numbers/messages.d.ts +60 -0
- package/resources/numbers/messages.d.ts.map +1 -0
- package/resources/numbers/messages.js +25 -0
- package/resources/numbers/messages.js.map +1 -0
- package/resources/numbers/messages.mjs +21 -0
- package/resources/numbers/messages.mjs.map +1 -0
- package/resources/numbers/numbers.d.mts +222 -0
- package/resources/numbers/numbers.d.mts.map +1 -0
- package/resources/numbers/numbers.d.ts +222 -0
- package/resources/numbers/numbers.d.ts.map +1 -0
- package/resources/numbers/numbers.js +117 -0
- package/resources/numbers/numbers.js.map +1 -0
- package/resources/numbers/numbers.mjs +112 -0
- package/resources/numbers/numbers.mjs.map +1 -0
- package/resources/numbers.d.mts +2 -0
- package/resources/numbers.d.mts.map +1 -0
- package/resources/numbers.d.ts +2 -0
- package/resources/numbers.d.ts.map +1 -0
- package/resources/numbers.js +6 -0
- package/resources/numbers.js.map +1 -0
- package/resources/numbers.mjs +3 -0
- package/resources/numbers.mjs.map +1 -0
- 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 +57 -28
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +57 -28
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +14 -8
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +14 -8
- package/resources/proxies.mjs.map +1 -1
- package/resources/shared.d.mts +25 -3
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +25 -3
- package/resources/shared.d.ts.map +1 -1
- package/resources/store/apps.d.mts +119 -0
- package/resources/store/apps.d.mts.map +1 -0
- package/resources/store/apps.d.ts +119 -0
- package/resources/store/apps.d.ts.map +1 -0
- package/resources/store/apps.js +31 -0
- package/resources/store/apps.js.map +1 -0
- package/resources/store/apps.mjs +27 -0
- package/resources/store/apps.mjs.map +1 -0
- package/resources/store/index.d.mts +3 -0
- package/resources/store/index.d.mts.map +1 -0
- package/resources/store/index.d.ts +3 -0
- package/resources/store/index.d.ts.map +1 -0
- package/resources/store/index.js +9 -0
- package/resources/store/index.js.map +1 -0
- package/resources/store/index.mjs +4 -0
- package/resources/store/index.mjs.map +1 -0
- package/resources/store/store.d.mts +20 -0
- package/resources/store/store.d.mts.map +1 -0
- package/resources/store/store.d.ts +20 -0
- package/resources/store/store.d.ts.map +1 -0
- package/resources/store/store.js +23 -0
- package/resources/store/store.js.map +1 -0
- package/resources/store/store.mjs +18 -0
- package/resources/store/store.mjs.map +1 -0
- package/resources/store.d.mts +2 -0
- package/resources/store.d.mts.map +1 -0
- package/resources/store.d.ts +2 -0
- package/resources/store.d.ts.map +1 -0
- package/resources/store.js +6 -0
- package/resources/store.js.map +1 -0
- package/resources/store.mjs +3 -0
- package/resources/store.mjs.map +1 -0
- package/resources/tasks/index.d.mts +3 -3
- package/resources/tasks/index.d.mts.map +1 -1
- package/resources/tasks/index.d.ts +3 -3
- package/resources/tasks/index.d.ts.map +1 -1
- package/resources/tasks/index.js.map +1 -1
- package/resources/tasks/index.mjs +1 -1
- package/resources/tasks/index.mjs.map +1 -1
- package/resources/tasks/screenshots.d.mts +3 -3
- package/resources/tasks/screenshots.d.mts.map +1 -1
- package/resources/tasks/screenshots.d.ts +3 -3
- package/resources/tasks/screenshots.d.ts.map +1 -1
- package/resources/tasks/tasks.d.mts +216 -90
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +216 -90
- 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 +11 -3
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/tasks/ui-states.d.mts +8 -3
- package/resources/tasks/ui-states.d.mts.map +1 -1
- package/resources/tasks/ui-states.d.ts +8 -3
- package/resources/tasks/ui-states.d.ts.map +1 -1
- package/resources/tasks/ui-states.js.map +1 -1
- package/resources/tasks/ui-states.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +38 -4
- package/resources/webhooks/deliveries.d.mts.map +1 -1
- package/resources/webhooks/deliveries.d.ts +38 -4
- package/resources/webhooks/deliveries.d.ts.map +1 -1
- package/resources/webhooks/deliveries.js +15 -4
- package/resources/webhooks/deliveries.js.map +1 -1
- package/resources/webhooks/deliveries.mjs +15 -4
- package/resources/webhooks/deliveries.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +67 -9
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +67 -9
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +26 -8
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +26 -8
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +32 -15
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +32 -15
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/action-catalog.js +5 -2
- package/resources/workflows/action-catalog.js.map +1 -1
- package/resources/workflows/action-catalog.mjs +5 -2
- package/resources/workflows/action-catalog.mjs.map +1 -1
- package/resources/workflows/actions/actions.d.mts +95 -23
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +95 -23
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +10 -5
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +10 -5
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/actions/index.d.mts +1 -1
- package/resources/workflows/actions/index.d.mts.map +1 -1
- package/resources/workflows/actions/index.d.ts +1 -1
- package/resources/workflows/actions/index.d.ts.map +1 -1
- package/resources/workflows/actions/index.js.map +1 -1
- package/resources/workflows/actions/index.mjs.map +1 -1
- package/resources/workflows/actions/services.d.mts +5 -2
- package/resources/workflows/actions/services.d.mts.map +1 -1
- package/resources/workflows/actions/services.d.ts +5 -2
- package/resources/workflows/actions/services.d.ts.map +1 -1
- package/resources/workflows/actions/services.js +5 -2
- package/resources/workflows/actions/services.js.map +1 -1
- package/resources/workflows/actions/services.mjs +5 -2
- package/resources/workflows/actions/services.mjs.map +1 -1
- package/resources/workflows/events.d.mts +144 -1
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +144 -1
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/events.js +18 -2
- package/resources/workflows/events.js.map +1 -1
- package/resources/workflows/events.mjs +16 -1
- package/resources/workflows/events.mjs.map +1 -1
- package/resources/workflows/executions.d.mts +107 -20
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +107 -20
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +15 -3
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +15 -3
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +121 -30
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +121 -30
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js +12 -4
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs +12 -4
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +406 -32
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +406 -32
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +43 -6
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +43 -6
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +2 -2
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +2 -2
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/index.d.mts +6 -6
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +6 -6
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js +4 -4
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +76 -61
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +76 -61
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +12 -5
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +12 -5
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +10 -33
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +10 -33
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js +2 -2
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs +2 -2
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +137 -65
- package/src/resources/agents.ts +42 -0
- package/src/resources/app-events/app-events.ts +133 -0
- package/src/resources/app-events/catalog.ts +100 -0
- package/src/resources/app-events/index.ts +9 -0
- package/src/resources/app-events.ts +3 -0
- package/src/resources/apps.ts +55 -8
- package/src/resources/carriers.ts +0 -3
- package/src/resources/connect/countries.ts +8 -3
- package/src/resources/connect/proxies.ts +11 -9
- package/src/resources/connect/users.ts +7 -2
- package/src/resources/credentials/credentials.ts +43 -6
- package/src/resources/credentials/index.ts +1 -0
- package/src/resources/credentials/packages/credentials/credentials.ts +117 -33
- package/src/resources/credentials/packages/credentials/fields.ts +122 -10
- package/src/resources/credentials/packages/credentials/index.ts +0 -1
- package/src/resources/credentials/packages/index.ts +1 -1
- package/src/resources/credentials/packages/packages.ts +63 -8
- package/src/resources/devices/actions.ts +10 -5
- package/src/resources/devices/apps.ts +196 -5
- package/src/resources/devices/browser.ts +71 -0
- package/src/resources/devices/deep-link.ts +70 -0
- package/src/resources/devices/devices.ts +511 -38
- package/src/resources/devices/esim/apn.ts +178 -0
- package/src/resources/devices/esim/esim.ts +312 -0
- package/src/resources/devices/esim/index.ts +21 -0
- package/src/resources/devices/esim.ts +1 -206
- package/src/resources/devices/files.ts +43 -39
- package/src/resources/devices/index.ts +45 -5
- package/src/resources/devices/keyboard.ts +5 -3
- package/src/resources/devices/kiosk.ts +74 -0
- package/src/resources/devices/language.ts +4 -2
- package/src/resources/devices/location.ts +37 -3
- package/src/resources/devices/media-sessions.ts +168 -0
- package/src/resources/devices/packages.ts +2 -1
- package/src/resources/devices/proxy.ts +32 -3
- package/src/resources/devices/recordings.ts +358 -0
- package/src/resources/devices/state.ts +15 -12
- package/src/resources/devices/tasks.ts +2 -4
- package/src/resources/devices/timezone.ts +4 -2
- package/src/resources/esims/esims.ts +1013 -0
- package/src/resources/esims/index.ts +27 -0
- package/src/resources/esims/messages.ts +193 -0
- package/src/resources/esims.ts +3 -0
- package/src/resources/index.ts +54 -23
- package/src/resources/messages/conversations.ts +138 -0
- package/src/resources/messages/index.ts +10 -0
- package/src/resources/messages/messages.ts +120 -0
- package/src/resources/messages.ts +3 -0
- package/src/resources/notifications.ts +118 -0
- package/src/resources/numbers/index.ts +14 -0
- package/src/resources/numbers/messages.ts +102 -0
- package/src/resources/numbers/numbers.ts +339 -0
- package/src/resources/numbers.ts +3 -0
- package/src/resources/profiles.ts +105 -6
- package/src/resources/proxies.ts +66 -30
- package/src/resources/shared.ts +35 -4
- package/src/resources/store/apps.ts +704 -0
- package/src/resources/store/index.ts +10 -0
- package/src/resources/store/store.ts +36 -0
- package/src/resources/store.ts +3 -0
- package/src/resources/tasks/index.ts +7 -6
- package/src/resources/tasks/screenshots.ts +3 -3
- package/src/resources/tasks/tasks.ts +259 -103
- package/src/resources/tasks/ui-states.ts +9 -2
- package/src/resources/webhooks/deliveries.ts +43 -4
- package/src/resources/webhooks/webhooks.ts +79 -9
- package/src/resources/workflows/action-catalog.ts +40 -16
- package/src/resources/workflows/actions/actions.ts +136 -24
- package/src/resources/workflows/actions/index.ts +0 -1
- package/src/resources/workflows/actions/services.ts +5 -2
- package/src/resources/workflows/events.ts +226 -1
- package/src/resources/workflows/executions.ts +143 -21
- package/src/resources/workflows/flows/actions.ts +141 -29
- package/src/resources/workflows/flows/flows.ts +663 -31
- package/src/resources/workflows/flows/index.ts +3 -3
- package/src/resources/workflows/index.ts +6 -7
- package/src/resources/workflows/triggers.ts +93 -73
- package/src/resources/workflows/workflows.ts +16 -69
- package/src/version.ts +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/hooks.d.mts +0 -243
- package/resources/hooks.d.mts.map +0 -1
- package/resources/hooks.d.ts +0 -243
- package/resources/hooks.d.ts.map +0 -1
- package/resources/hooks.js +0 -66
- package/resources/hooks.js.map +0 -1
- package/resources/hooks.mjs +0 -62
- package/resources/hooks.mjs.map +0 -1
- package/resources/workflows/events/catalog.d.mts +0 -55
- package/resources/workflows/events/catalog.d.mts.map +0 -1
- package/resources/workflows/events/catalog.d.ts +0 -55
- package/resources/workflows/events/catalog.d.ts.map +0 -1
- package/resources/workflows/events/catalog.js +0 -21
- package/resources/workflows/events/catalog.js.map +0 -1
- package/resources/workflows/events/catalog.mjs +0 -17
- package/resources/workflows/events/catalog.mjs.map +0 -1
- package/resources/workflows/events/events.d.mts +0 -123
- package/resources/workflows/events/events.d.mts.map +0 -1
- package/resources/workflows/events/events.d.ts +0 -123
- package/resources/workflows/events/events.d.ts.map +0 -1
- package/resources/workflows/events/events.js +0 -30
- package/resources/workflows/events/events.js.map +0 -1
- package/resources/workflows/events/events.mjs +0 -25
- package/resources/workflows/events/events.mjs.map +0 -1
- package/resources/workflows/events/index.d.mts +0 -3
- package/resources/workflows/events/index.d.mts.map +0 -1
- package/resources/workflows/events/index.d.ts +0 -3
- package/resources/workflows/events/index.d.ts.map +0 -1
- package/resources/workflows/events/index.js.map +0 -1
- package/resources/workflows/events/index.mjs +0 -4
- package/resources/workflows/events/index.mjs.map +0 -1
- package/src/resources/hooks.ts +0 -337
- package/src/resources/workflows/events/catalog.ts +0 -88
- package/src/resources/workflows/events/events.ts +0 -189
- package/src/resources/workflows/events/index.ts +0 -16
|
@@ -1,7 +1,6 @@
|
|
|
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 ScreenshotsAPI from './screenshots';
|
|
5
4
|
import { APIPromise } from '../../core/api-promise';
|
|
6
5
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
6
|
import { path } from '../../internal/utils/path';
|
|
@@ -17,7 +16,7 @@ export class UiStates extends APIResource {
|
|
|
17
16
|
index: number,
|
|
18
17
|
params: UiStateRetrieveParams,
|
|
19
18
|
options?: RequestOptions,
|
|
20
|
-
): APIPromise<
|
|
19
|
+
): APIPromise<UiStateRetrieveResponse> {
|
|
21
20
|
const { task_id } = params;
|
|
22
21
|
return this._client.get(path`/tasks/${task_id}/ui_states/${index}`, options);
|
|
23
22
|
}
|
|
@@ -30,6 +29,13 @@ export class UiStates extends APIResource {
|
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
|
|
32
|
+
export interface UiStateRetrieveResponse {
|
|
33
|
+
/**
|
|
34
|
+
* The URL of the media
|
|
35
|
+
*/
|
|
36
|
+
url: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
33
39
|
export interface UiStateListResponse {
|
|
34
40
|
/**
|
|
35
41
|
* The list of media URLs
|
|
@@ -43,6 +49,7 @@ export interface UiStateRetrieveParams {
|
|
|
43
49
|
|
|
44
50
|
export declare namespace UiStates {
|
|
45
51
|
export {
|
|
52
|
+
type UiStateRetrieveResponse as UiStateRetrieveResponse,
|
|
46
53
|
type UiStateListResponse as UiStateListResponse,
|
|
47
54
|
type UiStateRetrieveParams as UiStateRetrieveParams,
|
|
48
55
|
};
|
|
@@ -8,7 +8,10 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Deliveries extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Returns a paginated feed of webhook deliveries across all of your subscriptions,
|
|
12
|
+
* with the originating endpoint URL included on each record. Results can be
|
|
13
|
+
* filtered by delivery status (pending, success, skipped, or dead), by a `since`
|
|
14
|
+
* timestamp, and by `eventId` (exact match against the originating event id).
|
|
12
15
|
*
|
|
13
16
|
* @example
|
|
14
17
|
* ```ts
|
|
@@ -23,7 +26,10 @@ export class Deliveries extends APIResource {
|
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
/**
|
|
26
|
-
*
|
|
29
|
+
* Returns a paginated list of deliveries for a single webhook subscription,
|
|
30
|
+
* identified by its id. Each record reports the event, delivery status, attempt
|
|
31
|
+
* count, and the last response code or error. Results can be filtered by `eventId`
|
|
32
|
+
* (exact match against the originating event id).
|
|
27
33
|
*
|
|
28
34
|
* @example
|
|
29
35
|
* ```ts
|
|
@@ -42,7 +48,9 @@ export class Deliveries extends APIResource {
|
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
/**
|
|
45
|
-
*
|
|
51
|
+
* Returns a single delivery for a webhook subscription along with the full list of
|
|
52
|
+
* captured attempt records. Each attempt includes the request URL, method, headers
|
|
53
|
+
* and body, whether it was signed, and the response status, headers, and snippet.
|
|
46
54
|
*
|
|
47
55
|
* @example
|
|
48
56
|
* ```ts
|
|
@@ -63,7 +71,10 @@ export class Deliveries extends APIResource {
|
|
|
63
71
|
}
|
|
64
72
|
|
|
65
73
|
/**
|
|
66
|
-
*
|
|
74
|
+
* Returns aggregate delivery statistics across all of your webhooks, including the
|
|
75
|
+
* total count, a breakdown by status (pending, success, skipped, dead), and the
|
|
76
|
+
* overall success rate. An optional `since` timestamp narrows the reporting
|
|
77
|
+
* window.
|
|
67
78
|
*
|
|
68
79
|
* @example
|
|
69
80
|
* ```ts
|
|
@@ -94,6 +105,12 @@ export namespace DeliveryListResponse {
|
|
|
94
105
|
|
|
95
106
|
createdAt: string;
|
|
96
107
|
|
|
108
|
+
/**
|
|
109
|
+
* Id of the parent endpoint's creator. Null when the endpoint row is gone or its
|
|
110
|
+
* creator was never recorded.
|
|
111
|
+
*/
|
|
112
|
+
createdBy: string | null;
|
|
113
|
+
|
|
97
114
|
durationMs: number | null;
|
|
98
115
|
|
|
99
116
|
endpointId: string;
|
|
@@ -134,6 +151,12 @@ export namespace DeliveryListForWebhookResponse {
|
|
|
134
151
|
|
|
135
152
|
createdAt: string;
|
|
136
153
|
|
|
154
|
+
/**
|
|
155
|
+
* Id of the parent endpoint's creator. Null when the endpoint row is gone or its
|
|
156
|
+
* creator was never recorded.
|
|
157
|
+
*/
|
|
158
|
+
createdBy: string | null;
|
|
159
|
+
|
|
137
160
|
durationMs: number | null;
|
|
138
161
|
|
|
139
162
|
endpointId: string;
|
|
@@ -170,6 +193,12 @@ export namespace DeliveryRetrieveAttemptsResponse {
|
|
|
170
193
|
|
|
171
194
|
createdAt: string;
|
|
172
195
|
|
|
196
|
+
/**
|
|
197
|
+
* Id of the parent endpoint's creator. Null when the endpoint row is gone or its
|
|
198
|
+
* creator was never recorded.
|
|
199
|
+
*/
|
|
200
|
+
createdBy: string | null;
|
|
201
|
+
|
|
173
202
|
durationMs: number | null;
|
|
174
203
|
|
|
175
204
|
endpointId: string;
|
|
@@ -247,6 +276,11 @@ export namespace DeliveryStatsResponse {
|
|
|
247
276
|
}
|
|
248
277
|
|
|
249
278
|
export interface DeliveryListParams {
|
|
279
|
+
/**
|
|
280
|
+
* Exact text match against the originating event id.
|
|
281
|
+
*/
|
|
282
|
+
eventId?: string;
|
|
283
|
+
|
|
250
284
|
page?: number;
|
|
251
285
|
|
|
252
286
|
pageSize?: number;
|
|
@@ -257,6 +291,11 @@ export interface DeliveryListParams {
|
|
|
257
291
|
}
|
|
258
292
|
|
|
259
293
|
export interface DeliveryListForWebhookParams {
|
|
294
|
+
/**
|
|
295
|
+
* Exact text match against the originating event id.
|
|
296
|
+
*/
|
|
297
|
+
eventId?: string;
|
|
298
|
+
|
|
260
299
|
page?: number;
|
|
261
300
|
|
|
262
301
|
pageSize?: number;
|
|
@@ -23,7 +23,10 @@ export class Webhooks extends APIResource {
|
|
|
23
23
|
deliveries: DeliveriesAPI.Deliveries = new DeliveriesAPI.Deliveries(this._client);
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Creates a webhook subscription with a delivery URL and an optional list of event
|
|
27
|
+
* types to subscribe to (defaults to all when omitted). The response includes the
|
|
28
|
+
* generated signing secret, which is returned only once at creation time and
|
|
29
|
+
* cannot be retrieved later.
|
|
27
30
|
*
|
|
28
31
|
* @example
|
|
29
32
|
* ```ts
|
|
@@ -37,7 +40,9 @@ export class Webhooks extends APIResource {
|
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
/**
|
|
40
|
-
*
|
|
43
|
+
* Returns a single webhook subscription by id, including its URL, subscribed event
|
|
44
|
+
* types, state, and system-observed delivery health. The signing secret is never
|
|
45
|
+
* included.
|
|
41
46
|
*
|
|
42
47
|
* @example
|
|
43
48
|
* ```ts
|
|
@@ -51,7 +56,10 @@ export class Webhooks extends APIResource {
|
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
/**
|
|
54
|
-
*
|
|
59
|
+
* Updates a webhook subscription. Any combination of the subscribed event types,
|
|
60
|
+
* state (ACTIVE or DISABLED), and description may be changed, and at least one
|
|
61
|
+
* field must be supplied. Setting state to ACTIVE re-enables a subscription that
|
|
62
|
+
* was auto-blocked after sustained delivery failures.
|
|
55
63
|
*
|
|
56
64
|
* @example
|
|
57
65
|
* ```ts
|
|
@@ -69,7 +77,10 @@ export class Webhooks extends APIResource {
|
|
|
69
77
|
}
|
|
70
78
|
|
|
71
79
|
/**
|
|
72
|
-
*
|
|
80
|
+
* Returns a paginated list of your webhook subscriptions, optionally filtered by
|
|
81
|
+
* status (active, failing, blocked, or disabled) and/or by `search` (a
|
|
82
|
+
* case-insensitive substring match against the URL or description). The response
|
|
83
|
+
* also includes per-status counts across all of your subscriptions.
|
|
73
84
|
*
|
|
74
85
|
* @example
|
|
75
86
|
* ```ts
|
|
@@ -84,7 +95,8 @@ export class Webhooks extends APIResource {
|
|
|
84
95
|
}
|
|
85
96
|
|
|
86
97
|
/**
|
|
87
|
-
*
|
|
98
|
+
* Deletes a webhook subscription so it stops receiving deliveries. Returns 204 No
|
|
99
|
+
* Content on success.
|
|
88
100
|
*
|
|
89
101
|
* @example
|
|
90
102
|
* ```ts
|
|
@@ -101,7 +113,9 @@ export class Webhooks extends APIResource {
|
|
|
101
113
|
}
|
|
102
114
|
|
|
103
115
|
/**
|
|
104
|
-
*
|
|
116
|
+
* Returns the catalog of event types that webhook subscriptions can subscribe to,
|
|
117
|
+
* grouped by source. Use the returned type identifiers as the `eventTypes` values
|
|
118
|
+
* when creating or updating a webhook.
|
|
105
119
|
*
|
|
106
120
|
* @example
|
|
107
121
|
* ```ts
|
|
@@ -113,7 +127,9 @@ export class Webhooks extends APIResource {
|
|
|
113
127
|
}
|
|
114
128
|
|
|
115
129
|
/**
|
|
116
|
-
*
|
|
130
|
+
* Generates a new signing secret for the webhook subscription and returns it once
|
|
131
|
+
* in the response. The previous secret is replaced immediately, so any signature
|
|
132
|
+
* verification on your endpoint must be updated to use the new value.
|
|
117
133
|
*
|
|
118
134
|
* @example
|
|
119
135
|
* ```ts
|
|
@@ -127,7 +143,9 @@ export class Webhooks extends APIResource {
|
|
|
127
143
|
}
|
|
128
144
|
|
|
129
145
|
/**
|
|
130
|
-
*
|
|
146
|
+
* Sends a single test payload to the webhook subscription URL to verify
|
|
147
|
+
* connectivity. The response reports whether the attempt succeeded along with the
|
|
148
|
+
* returned HTTP status code or error, if any.
|
|
131
149
|
*
|
|
132
150
|
* @example
|
|
133
151
|
* ```ts
|
|
@@ -155,6 +173,11 @@ export namespace WebhookCreateResponse {
|
|
|
155
173
|
|
|
156
174
|
createdAt: string;
|
|
157
175
|
|
|
176
|
+
/**
|
|
177
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
178
|
+
*/
|
|
179
|
+
createdBy: string | null;
|
|
180
|
+
|
|
158
181
|
description: string | null;
|
|
159
182
|
|
|
160
183
|
eventTypes: Array<string>;
|
|
@@ -194,6 +217,11 @@ export namespace WebhookRetrieveResponse {
|
|
|
194
217
|
|
|
195
218
|
createdAt: string;
|
|
196
219
|
|
|
220
|
+
/**
|
|
221
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
222
|
+
*/
|
|
223
|
+
createdBy: string | null;
|
|
224
|
+
|
|
197
225
|
description: string | null;
|
|
198
226
|
|
|
199
227
|
eventTypes: Array<string>;
|
|
@@ -228,6 +256,11 @@ export namespace WebhookUpdateResponse {
|
|
|
228
256
|
|
|
229
257
|
createdAt: string;
|
|
230
258
|
|
|
259
|
+
/**
|
|
260
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
261
|
+
*/
|
|
262
|
+
createdBy: string | null;
|
|
263
|
+
|
|
231
264
|
description: string | null;
|
|
232
265
|
|
|
233
266
|
eventTypes: Array<string>;
|
|
@@ -278,6 +311,11 @@ export namespace WebhookListResponse {
|
|
|
278
311
|
|
|
279
312
|
createdAt: string;
|
|
280
313
|
|
|
314
|
+
/**
|
|
315
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
316
|
+
*/
|
|
317
|
+
createdBy: string | null;
|
|
318
|
+
|
|
281
319
|
description: string | null;
|
|
282
320
|
|
|
283
321
|
eventTypes: Array<string>;
|
|
@@ -304,7 +342,7 @@ export interface WebhookEventTypesResponse {
|
|
|
304
342
|
|
|
305
343
|
export namespace WebhookEventTypesResponse {
|
|
306
344
|
export interface Data {
|
|
307
|
-
schemaVersion:
|
|
345
|
+
schemaVersion: 1;
|
|
308
346
|
|
|
309
347
|
sources: Array<Data.Source>;
|
|
310
348
|
}
|
|
@@ -320,8 +358,20 @@ export namespace WebhookEventTypesResponse {
|
|
|
320
358
|
export interface Event {
|
|
321
359
|
description: string;
|
|
322
360
|
|
|
361
|
+
surfaces: Event.Surfaces;
|
|
362
|
+
|
|
323
363
|
type: string;
|
|
324
364
|
}
|
|
365
|
+
|
|
366
|
+
export namespace Event {
|
|
367
|
+
export interface Surfaces {
|
|
368
|
+
feed: boolean;
|
|
369
|
+
|
|
370
|
+
toast: boolean;
|
|
371
|
+
|
|
372
|
+
webhook: boolean;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
325
375
|
}
|
|
326
376
|
}
|
|
327
377
|
}
|
|
@@ -340,6 +390,11 @@ export namespace WebhookRotateSecretResponse {
|
|
|
340
390
|
|
|
341
391
|
createdAt: string;
|
|
342
392
|
|
|
393
|
+
/**
|
|
394
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
395
|
+
*/
|
|
396
|
+
createdBy: string | null;
|
|
397
|
+
|
|
343
398
|
description: string | null;
|
|
344
399
|
|
|
345
400
|
eventTypes: Array<string>;
|
|
@@ -396,10 +451,25 @@ export interface WebhookUpdateParams {
|
|
|
396
451
|
}
|
|
397
452
|
|
|
398
453
|
export interface WebhookListParams {
|
|
454
|
+
/**
|
|
455
|
+
* Only include webhooks created by this actor id. Mutually exclusive with `mine`.
|
|
456
|
+
*/
|
|
457
|
+
createdBy?: string;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* When true, only include webhooks created by you (not just owned by your org).
|
|
461
|
+
*/
|
|
462
|
+
mine?: 'true' | 'false';
|
|
463
|
+
|
|
399
464
|
page?: number;
|
|
400
465
|
|
|
401
466
|
pageSize?: number;
|
|
402
467
|
|
|
468
|
+
/**
|
|
469
|
+
* Case-insensitive substring match against the URL or description.
|
|
470
|
+
*/
|
|
471
|
+
search?: string;
|
|
472
|
+
|
|
403
473
|
status?: 'active' | 'failing' | 'blocked' | 'disabled';
|
|
404
474
|
}
|
|
405
475
|
|
|
@@ -8,14 +8,17 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class ActionCatalog extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Fetch a single action catalog entry by its ID, including its service, method,
|
|
12
|
+
* and parameter schema. Returns 404 if no entry matches.
|
|
12
13
|
*/
|
|
13
14
|
retrieve(catalogEntryID: string, options?: RequestOptions): APIPromise<ActionCatalogRetrieveResponse> {
|
|
14
15
|
return this._client.get(path`/action-catalog/${catalogEntryID}`, options);
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
+
* Return a paginated list of catalog entries — the service/method templates that
|
|
20
|
+
* actions are created from, each carrying its parameter schema. Supports filtering
|
|
21
|
+
* by `service`.
|
|
19
22
|
*/
|
|
20
23
|
list(
|
|
21
24
|
query: ActionCatalogListParams | null | undefined = {},
|
|
@@ -25,34 +28,56 @@ export class ActionCatalog extends APIResource {
|
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
30
|
|
|
28
|
-
export interface
|
|
29
|
-
|
|
31
|
+
export interface ActionCatalogRetrieveResponse {
|
|
32
|
+
data: ActionCatalogRetrieveResponse.Data;
|
|
33
|
+
}
|
|
30
34
|
|
|
31
|
-
|
|
35
|
+
export namespace ActionCatalogRetrieveResponse {
|
|
36
|
+
export interface Data {
|
|
37
|
+
id: string;
|
|
32
38
|
|
|
33
|
-
|
|
39
|
+
createdAt: string | null;
|
|
34
40
|
|
|
35
|
-
|
|
41
|
+
description: string | null;
|
|
36
42
|
|
|
37
|
-
|
|
43
|
+
method: string;
|
|
38
44
|
|
|
39
|
-
|
|
45
|
+
name: string;
|
|
40
46
|
|
|
41
|
-
|
|
47
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
42
48
|
|
|
43
|
-
|
|
44
|
-
}
|
|
49
|
+
updatedAt: string | null;
|
|
45
50
|
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
paramsSchema?: unknown;
|
|
52
|
+
}
|
|
48
53
|
}
|
|
49
54
|
|
|
50
55
|
export interface ActionCatalogListResponse {
|
|
51
|
-
items: Array<
|
|
56
|
+
items: Array<ActionCatalogListResponse.Item>;
|
|
52
57
|
|
|
53
58
|
pagination: Shared.Pagination;
|
|
54
59
|
}
|
|
55
60
|
|
|
61
|
+
export namespace ActionCatalogListResponse {
|
|
62
|
+
export interface Item {
|
|
63
|
+
id: string;
|
|
64
|
+
|
|
65
|
+
createdAt: string | null;
|
|
66
|
+
|
|
67
|
+
description: string | null;
|
|
68
|
+
|
|
69
|
+
method: string;
|
|
70
|
+
|
|
71
|
+
name: string;
|
|
72
|
+
|
|
73
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
74
|
+
|
|
75
|
+
updatedAt: string | null;
|
|
76
|
+
|
|
77
|
+
paramsSchema?: unknown;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
56
81
|
export interface ActionCatalogListParams {
|
|
57
82
|
page?: number;
|
|
58
83
|
|
|
@@ -63,7 +88,6 @@ export interface ActionCatalogListParams {
|
|
|
63
88
|
|
|
64
89
|
export declare namespace ActionCatalog {
|
|
65
90
|
export {
|
|
66
|
-
type ActionCatalogEntry as ActionCatalogEntry,
|
|
67
91
|
type ActionCatalogRetrieveResponse as ActionCatalogRetrieveResponse,
|
|
68
92
|
type ActionCatalogListResponse as ActionCatalogListResponse,
|
|
69
93
|
type ActionCatalogListParams as ActionCatalogListParams,
|
|
@@ -12,21 +12,25 @@ export class Actions extends APIResource {
|
|
|
12
12
|
services: ServicesAPI.Services = new ServicesAPI.Services(this._client);
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* Create
|
|
15
|
+
* Create a reusable action from a catalog entry (`catalogEntryId`), with an
|
|
16
|
+
* optional `params` object supplying the values for that entry's service method.
|
|
17
|
+
* Returns 400 if the params are invalid for the chosen catalog entry.
|
|
16
18
|
*/
|
|
17
19
|
create(body: ActionCreateParams, options?: RequestOptions): APIPromise<ActionCreateResponse> {
|
|
18
20
|
return this._client.post('/actions', { body, ...options });
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
/**
|
|
22
|
-
*
|
|
24
|
+
* Fetch a single action by its ID, including its configured service, method, and
|
|
25
|
+
* params. Returns 404 if no action matches.
|
|
23
26
|
*/
|
|
24
27
|
retrieve(actionID: string, options?: RequestOptions): APIPromise<ActionRetrieveResponse> {
|
|
25
28
|
return this._client.get(path`/actions/${actionID}`, options);
|
|
26
29
|
}
|
|
27
30
|
|
|
28
31
|
/**
|
|
29
|
-
*
|
|
32
|
+
* Partially update an action's name, description, or params; all fields are
|
|
33
|
+
* optional. Returns 404 if the action does not exist.
|
|
30
34
|
*/
|
|
31
35
|
update(
|
|
32
36
|
actionID: string,
|
|
@@ -37,7 +41,8 @@ export class Actions extends APIResource {
|
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
/**
|
|
40
|
-
*
|
|
44
|
+
* Return a paginated list of actions. Supports filtering by `service`, free-text
|
|
45
|
+
* `search`, and ordering by name, createdAt, or updatedAt.
|
|
41
46
|
*/
|
|
42
47
|
list(
|
|
43
48
|
query: ActionListParams | null | undefined = {},
|
|
@@ -47,55 +52,163 @@ export class Actions extends APIResource {
|
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
/**
|
|
50
|
-
* Delete an action
|
|
55
|
+
* Delete an action by its ID. Returns 404 if no action matches.
|
|
51
56
|
*/
|
|
52
57
|
delete(actionID: string, options?: RequestOptions): APIPromise<ActionDeleteResponse> {
|
|
53
58
|
return this._client.delete(path`/actions/${actionID}`, options);
|
|
54
59
|
}
|
|
55
60
|
}
|
|
56
61
|
|
|
57
|
-
export interface
|
|
58
|
-
|
|
62
|
+
export interface ActionCreateResponse {
|
|
63
|
+
data: ActionCreateResponse.Data;
|
|
64
|
+
}
|
|
59
65
|
|
|
60
|
-
|
|
66
|
+
export namespace ActionCreateResponse {
|
|
67
|
+
export interface Data {
|
|
68
|
+
id: string;
|
|
61
69
|
|
|
62
|
-
|
|
70
|
+
catalogEntryId: string;
|
|
63
71
|
|
|
64
|
-
|
|
72
|
+
createdAt: string | null;
|
|
65
73
|
|
|
66
|
-
|
|
74
|
+
createdBy: string | null;
|
|
67
75
|
|
|
68
|
-
|
|
76
|
+
description: string | null;
|
|
69
77
|
|
|
70
|
-
|
|
78
|
+
method: string;
|
|
71
79
|
|
|
72
|
-
|
|
80
|
+
name: string;
|
|
73
81
|
|
|
74
|
-
|
|
82
|
+
ownerId: string;
|
|
75
83
|
|
|
76
|
-
|
|
84
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
77
85
|
|
|
78
|
-
|
|
79
|
-
}
|
|
86
|
+
updatedAt: string | null;
|
|
80
87
|
|
|
81
|
-
|
|
82
|
-
|
|
88
|
+
/**
|
|
89
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
90
|
+
*/
|
|
91
|
+
userId: string;
|
|
92
|
+
|
|
93
|
+
params?: unknown;
|
|
94
|
+
|
|
95
|
+
paramsSchema?: unknown;
|
|
96
|
+
}
|
|
83
97
|
}
|
|
84
98
|
|
|
85
99
|
export interface ActionRetrieveResponse {
|
|
86
|
-
data:
|
|
100
|
+
data: ActionRetrieveResponse.Data;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export namespace ActionRetrieveResponse {
|
|
104
|
+
export interface Data {
|
|
105
|
+
id: string;
|
|
106
|
+
|
|
107
|
+
catalogEntryId: string;
|
|
108
|
+
|
|
109
|
+
createdAt: string | null;
|
|
110
|
+
|
|
111
|
+
createdBy: string | null;
|
|
112
|
+
|
|
113
|
+
description: string | null;
|
|
114
|
+
|
|
115
|
+
method: string;
|
|
116
|
+
|
|
117
|
+
name: string;
|
|
118
|
+
|
|
119
|
+
ownerId: string;
|
|
120
|
+
|
|
121
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
122
|
+
|
|
123
|
+
updatedAt: string | null;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
127
|
+
*/
|
|
128
|
+
userId: string;
|
|
129
|
+
|
|
130
|
+
params?: unknown;
|
|
131
|
+
|
|
132
|
+
paramsSchema?: unknown;
|
|
133
|
+
}
|
|
87
134
|
}
|
|
88
135
|
|
|
89
136
|
export interface ActionUpdateResponse {
|
|
90
|
-
data:
|
|
137
|
+
data: ActionUpdateResponse.Data;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export namespace ActionUpdateResponse {
|
|
141
|
+
export interface Data {
|
|
142
|
+
id: string;
|
|
143
|
+
|
|
144
|
+
catalogEntryId: string;
|
|
145
|
+
|
|
146
|
+
createdAt: string | null;
|
|
147
|
+
|
|
148
|
+
createdBy: string | null;
|
|
149
|
+
|
|
150
|
+
description: string | null;
|
|
151
|
+
|
|
152
|
+
method: string;
|
|
153
|
+
|
|
154
|
+
name: string;
|
|
155
|
+
|
|
156
|
+
ownerId: string;
|
|
157
|
+
|
|
158
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
159
|
+
|
|
160
|
+
updatedAt: string | null;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
164
|
+
*/
|
|
165
|
+
userId: string;
|
|
166
|
+
|
|
167
|
+
params?: unknown;
|
|
168
|
+
|
|
169
|
+
paramsSchema?: unknown;
|
|
170
|
+
}
|
|
91
171
|
}
|
|
92
172
|
|
|
93
173
|
export interface ActionListResponse {
|
|
94
|
-
items: Array<
|
|
174
|
+
items: Array<ActionListResponse.Item>;
|
|
95
175
|
|
|
96
176
|
pagination: Shared.Pagination;
|
|
97
177
|
}
|
|
98
178
|
|
|
179
|
+
export namespace ActionListResponse {
|
|
180
|
+
export interface Item {
|
|
181
|
+
id: string;
|
|
182
|
+
|
|
183
|
+
catalogEntryId: string;
|
|
184
|
+
|
|
185
|
+
createdAt: string | null;
|
|
186
|
+
|
|
187
|
+
createdBy: string | null;
|
|
188
|
+
|
|
189
|
+
description: string | null;
|
|
190
|
+
|
|
191
|
+
method: string;
|
|
192
|
+
|
|
193
|
+
name: string;
|
|
194
|
+
|
|
195
|
+
ownerId: string;
|
|
196
|
+
|
|
197
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
198
|
+
|
|
199
|
+
updatedAt: string | null;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
203
|
+
*/
|
|
204
|
+
userId: string;
|
|
205
|
+
|
|
206
|
+
params?: unknown;
|
|
207
|
+
|
|
208
|
+
paramsSchema?: unknown;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
99
212
|
export interface ActionDeleteResponse {
|
|
100
213
|
message: string;
|
|
101
214
|
}
|
|
@@ -136,7 +249,6 @@ Actions.Services = Services;
|
|
|
136
249
|
|
|
137
250
|
export declare namespace Actions {
|
|
138
251
|
export {
|
|
139
|
-
type Action as Action,
|
|
140
252
|
type ActionCreateResponse as ActionCreateResponse,
|
|
141
253
|
type ActionRetrieveResponse as ActionRetrieveResponse,
|
|
142
254
|
type ActionUpdateResponse as ActionUpdateResponse,
|
|
@@ -7,14 +7,17 @@ import { path } from '../../../internal/utils/path';
|
|
|
7
7
|
|
|
8
8
|
export class Services extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Return the names of the services that actions can be built against. Use these
|
|
11
|
+
* values to look up each service's allowed methods.
|
|
11
12
|
*/
|
|
12
13
|
list(options?: RequestOptions): APIPromise<ServiceListResponse> {
|
|
13
14
|
return this._client.get('/actions/services', options);
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
|
-
*
|
|
18
|
+
* Return the methods allowed for the given service, each with its parameter
|
|
19
|
+
* definitions (name, type, whether required, description, and optional
|
|
20
|
+
* default/example). Returns 404 if the service is unknown.
|
|
18
21
|
*/
|
|
19
22
|
listMethods(service: string, options?: RequestOptions): APIPromise<ServiceListMethodsResponse> {
|
|
20
23
|
return this._client.get(path`/actions/services/${service}/methods`, options);
|