@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
package/src/resources/hooks.ts
DELETED
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
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
|
-
|
|
10
|
-
export class Hooks extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Get a hook subscription by id.
|
|
13
|
-
*/
|
|
14
|
-
retrieve(hookID: string, options?: RequestOptions): APIPromise<HookRetrieveResponse> {
|
|
15
|
-
return this._client.get(path`/hooks/${hookID}`, options);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Edit a hook subscription (events or state).
|
|
20
|
-
*
|
|
21
|
-
* Allows updating the events filter and/or the state of a hook.
|
|
22
|
-
*/
|
|
23
|
-
update(hookID: string, body: HookUpdateParams, options?: RequestOptions): APIPromise<HookUpdateResponse> {
|
|
24
|
-
return this._client.post(path`/hooks/${hookID}/edit`, { body, ...options });
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* List hooks belonging to the requesting user (paginated).
|
|
29
|
-
*/
|
|
30
|
-
list(
|
|
31
|
-
query: HookListParams | null | undefined = {},
|
|
32
|
-
options?: RequestOptions,
|
|
33
|
-
): APIPromise<HookListResponse> {
|
|
34
|
-
return this._client.get('/hooks', { query, ...options });
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Get sample hook data for Zapier Perform List (testing/field mapping).
|
|
39
|
-
*/
|
|
40
|
-
getSampleData(options?: RequestOptions): APIPromise<HookGetSampleDataResponse> {
|
|
41
|
-
return this._client.get('/hooks/sample', options);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Zapier Perform endpoint - processes webhook payloads.
|
|
46
|
-
*/
|
|
47
|
-
perform(params: HookPerformParams, options?: RequestOptions): APIPromise<HookPerformResponse> {
|
|
48
|
-
const { body } = params;
|
|
49
|
-
return this._client.post('/hooks/perform', { body: body, ...options });
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Subscribe the current user to a webhook URL. Returns subscription id.
|
|
54
|
-
*/
|
|
55
|
-
subscribe(body: HookSubscribeParams, options?: RequestOptions): APIPromise<HookSubscribeResponse> {
|
|
56
|
-
return this._client.post('/hooks/subscribe', { body, ...options });
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Send a test event to a webhook endpoint.
|
|
61
|
-
*
|
|
62
|
-
* Delivers a sample payload to the hook's URL with a single attempt (no retries)
|
|
63
|
-
* for fast feedback.
|
|
64
|
-
*/
|
|
65
|
-
test(hookID: string, body: HookTestParams, options?: RequestOptions): APIPromise<HookTestResponse> {
|
|
66
|
-
return this._client.post(path`/hooks/${hookID}/test`, { body, ...options });
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Unsubscribe a previously created subscription by id.
|
|
71
|
-
*
|
|
72
|
-
* Permanently deletes the subscription if it belongs to the user.
|
|
73
|
-
*/
|
|
74
|
-
unsubscribe(hookID: string, options?: RequestOptions): APIPromise<HookUnsubscribeResponse> {
|
|
75
|
-
return this._client.post(path`/hooks/${hookID}/unsubscribe`, options);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export interface HookRetrieveResponse {
|
|
80
|
-
service: 'zapier' | 'n8n' | 'make' | 'internal' | 'other';
|
|
81
|
-
|
|
82
|
-
url: string;
|
|
83
|
-
|
|
84
|
-
userId: string;
|
|
85
|
-
|
|
86
|
-
id?: string;
|
|
87
|
-
|
|
88
|
-
createdAt?: string;
|
|
89
|
-
|
|
90
|
-
events?: Array<TasksAPI.TaskStatus>;
|
|
91
|
-
|
|
92
|
-
state?: 'active' | 'disabled' | 'deleted';
|
|
93
|
-
|
|
94
|
-
updatedAt?: string;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Response model after successfully editing a hook.
|
|
99
|
-
*/
|
|
100
|
-
export interface HookUpdateResponse {
|
|
101
|
-
/**
|
|
102
|
-
* The subscription ID
|
|
103
|
-
*/
|
|
104
|
-
id: string;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* The hook state
|
|
108
|
-
*/
|
|
109
|
-
state: string;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Whether the hook was updated
|
|
113
|
-
*/
|
|
114
|
-
updated: boolean;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* The webhook URL
|
|
118
|
-
*/
|
|
119
|
-
url: string;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* List of subscribed events
|
|
123
|
-
*/
|
|
124
|
-
events?: Array<string> | null;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export interface HookListResponse {
|
|
128
|
-
/**
|
|
129
|
-
* The paginated items
|
|
130
|
-
*/
|
|
131
|
-
items: Array<HookListResponse.Item>;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Pagination metadata
|
|
135
|
-
*/
|
|
136
|
-
pagination: Shared.PaginationMeta;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export namespace HookListResponse {
|
|
140
|
-
export interface Item {
|
|
141
|
-
service: 'zapier' | 'n8n' | 'make' | 'internal' | 'other';
|
|
142
|
-
|
|
143
|
-
url: string;
|
|
144
|
-
|
|
145
|
-
userId: string;
|
|
146
|
-
|
|
147
|
-
id?: string;
|
|
148
|
-
|
|
149
|
-
createdAt?: string;
|
|
150
|
-
|
|
151
|
-
events?: Array<TasksAPI.TaskStatus>;
|
|
152
|
-
|
|
153
|
-
state?: 'active' | 'disabled' | 'deleted';
|
|
154
|
-
|
|
155
|
-
updatedAt?: string;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export type HookGetSampleDataResponse = Array<HookGetSampleDataResponse.HookGetSampleDataResponseItem>;
|
|
160
|
-
|
|
161
|
-
export namespace HookGetSampleDataResponse {
|
|
162
|
-
/**
|
|
163
|
-
* Sample webhook event data for testing/mapping in Zapier.
|
|
164
|
-
*/
|
|
165
|
-
export interface HookGetSampleDataResponseItem {
|
|
166
|
-
/**
|
|
167
|
-
* The subscription ID
|
|
168
|
-
*/
|
|
169
|
-
id: string;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* ISO timestamp of when the subscription was created
|
|
173
|
-
*/
|
|
174
|
-
createdAt: string;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* List of subscribed events
|
|
178
|
-
*/
|
|
179
|
-
events: Array<string>;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* The hook state
|
|
183
|
-
*/
|
|
184
|
-
state: string;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* The webhook URL
|
|
188
|
-
*/
|
|
189
|
-
url: string;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* ISO timestamp of the last update
|
|
193
|
-
*/
|
|
194
|
-
updatedAt?: string | null;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export type HookPerformResponse = Array<{ [key: string]: unknown }>;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Response model after successful subscription.
|
|
202
|
-
*/
|
|
203
|
-
export interface HookSubscribeResponse {
|
|
204
|
-
/**
|
|
205
|
-
* The subscription ID
|
|
206
|
-
*/
|
|
207
|
-
id: string;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Whether subscription was successful
|
|
211
|
-
*/
|
|
212
|
-
subscribed: boolean;
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* The webhook URL
|
|
216
|
-
*/
|
|
217
|
-
url: string;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* List of subscribed events
|
|
221
|
-
*/
|
|
222
|
-
events?: Array<string> | null;
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Service that receives the webhook
|
|
226
|
-
*/
|
|
227
|
-
service?: string | null;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Response after attempting test delivery.
|
|
232
|
-
*/
|
|
233
|
-
export interface HookTestResponse {
|
|
234
|
-
/**
|
|
235
|
-
* The hook ID
|
|
236
|
-
*/
|
|
237
|
-
id: string;
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* Whether delivery succeeded (2xx)
|
|
241
|
-
*/
|
|
242
|
-
success: boolean;
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Error message if delivery failed
|
|
246
|
-
*/
|
|
247
|
-
error?: string | null;
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* HTTP status from target
|
|
251
|
-
*/
|
|
252
|
-
statusCode?: number | null;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* Response model after successful unsubscription.
|
|
257
|
-
*/
|
|
258
|
-
export interface HookUnsubscribeResponse {
|
|
259
|
-
/**
|
|
260
|
-
* The subscription ID
|
|
261
|
-
*/
|
|
262
|
-
id: string;
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* Whether unsubscription was successful
|
|
266
|
-
*/
|
|
267
|
-
unsubscribed: boolean;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
export interface HookUpdateParams {
|
|
271
|
-
/**
|
|
272
|
-
* Updated list of events to subscribe to
|
|
273
|
-
*/
|
|
274
|
-
events?: Array<string> | null;
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Updated hook state (active, disabled, deleted)
|
|
278
|
-
*/
|
|
279
|
-
state?: string | null;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
export interface HookListParams {
|
|
283
|
-
orderBy?: string | null;
|
|
284
|
-
|
|
285
|
-
orderByDirection?: 'asc' | 'desc';
|
|
286
|
-
|
|
287
|
-
page?: number;
|
|
288
|
-
|
|
289
|
-
pageSize?: number;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
export interface HookPerformParams {
|
|
293
|
-
body: { [key: string]: unknown };
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
export interface HookSubscribeParams {
|
|
297
|
-
/**
|
|
298
|
-
* The webhook URL to send notifications to
|
|
299
|
-
*/
|
|
300
|
-
targetUrl: string;
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* List of task events to subscribe to (created, running, completed, failed,
|
|
304
|
-
* cancelled, paused)
|
|
305
|
-
*/
|
|
306
|
-
events?: Array<string> | null;
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* Service that receives the webhook
|
|
310
|
-
*/
|
|
311
|
-
service?: string | null;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
export interface HookTestParams {
|
|
315
|
-
/**
|
|
316
|
-
* Event type to simulate (default: completed)
|
|
317
|
-
*/
|
|
318
|
-
event?: string | null;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
export declare namespace Hooks {
|
|
322
|
-
export {
|
|
323
|
-
type HookRetrieveResponse as HookRetrieveResponse,
|
|
324
|
-
type HookUpdateResponse as HookUpdateResponse,
|
|
325
|
-
type HookListResponse as HookListResponse,
|
|
326
|
-
type HookGetSampleDataResponse as HookGetSampleDataResponse,
|
|
327
|
-
type HookPerformResponse as HookPerformResponse,
|
|
328
|
-
type HookSubscribeResponse as HookSubscribeResponse,
|
|
329
|
-
type HookTestResponse as HookTestResponse,
|
|
330
|
-
type HookUnsubscribeResponse as HookUnsubscribeResponse,
|
|
331
|
-
type HookUpdateParams as HookUpdateParams,
|
|
332
|
-
type HookListParams as HookListParams,
|
|
333
|
-
type HookPerformParams as HookPerformParams,
|
|
334
|
-
type HookSubscribeParams as HookSubscribeParams,
|
|
335
|
-
type HookTestParams as HookTestParams,
|
|
336
|
-
};
|
|
337
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as Shared from '../../shared';
|
|
5
|
-
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
-
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
-
|
|
8
|
-
export class Catalog extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* List event catalog
|
|
11
|
-
*/
|
|
12
|
-
list(
|
|
13
|
-
query: CatalogListParams | null | undefined = {},
|
|
14
|
-
options?: RequestOptions,
|
|
15
|
-
): APIPromise<CatalogListResponse> {
|
|
16
|
-
return this._client.get('/events/catalog', { query, ...options });
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Register event types in the catalog
|
|
21
|
-
*/
|
|
22
|
-
register(body: CatalogRegisterParams, options?: RequestOptions): APIPromise<CatalogRegisterResponse> {
|
|
23
|
-
return this._client.post('/events/catalog/register', { body, ...options });
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface CatalogListResponse {
|
|
28
|
-
items: Array<CatalogListResponse.Item>;
|
|
29
|
-
|
|
30
|
-
pagination: Shared.Pagination;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export namespace CatalogListResponse {
|
|
34
|
-
export interface Item {
|
|
35
|
-
createdAt: string | null;
|
|
36
|
-
|
|
37
|
-
description: string | null;
|
|
38
|
-
|
|
39
|
-
eventType: string;
|
|
40
|
-
|
|
41
|
-
label: string;
|
|
42
|
-
|
|
43
|
-
source: string | null;
|
|
44
|
-
|
|
45
|
-
updatedAt: string | null;
|
|
46
|
-
|
|
47
|
-
payloadSchema?: unknown;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface CatalogRegisterResponse {
|
|
52
|
-
message: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface CatalogListParams {
|
|
56
|
-
page?: number;
|
|
57
|
-
|
|
58
|
-
pageSize?: number;
|
|
59
|
-
|
|
60
|
-
source?: 'device' | 'system' | 'webhook';
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface CatalogRegisterParams {
|
|
64
|
-
events: Array<CatalogRegisterParams.Event>;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export namespace CatalogRegisterParams {
|
|
68
|
-
export interface Event {
|
|
69
|
-
eventType: string;
|
|
70
|
-
|
|
71
|
-
label: string;
|
|
72
|
-
|
|
73
|
-
description?: string;
|
|
74
|
-
|
|
75
|
-
payloadSchema?: { [key: string]: unknown };
|
|
76
|
-
|
|
77
|
-
source?: 'device' | 'system' | 'webhook';
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export declare namespace Catalog {
|
|
82
|
-
export {
|
|
83
|
-
type CatalogListResponse as CatalogListResponse,
|
|
84
|
-
type CatalogRegisterResponse as CatalogRegisterResponse,
|
|
85
|
-
type CatalogListParams as CatalogListParams,
|
|
86
|
-
type CatalogRegisterParams as CatalogRegisterParams,
|
|
87
|
-
};
|
|
88
|
-
}
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as WorkflowsAPI from '../workflows';
|
|
5
|
-
import * as CatalogAPI from './catalog';
|
|
6
|
-
import {
|
|
7
|
-
Catalog,
|
|
8
|
-
CatalogListParams,
|
|
9
|
-
CatalogListResponse,
|
|
10
|
-
CatalogRegisterParams,
|
|
11
|
-
CatalogRegisterResponse,
|
|
12
|
-
} from './catalog';
|
|
13
|
-
import { APIPromise } from '../../../core/api-promise';
|
|
14
|
-
import { RequestOptions } from '../../../internal/request-options';
|
|
15
|
-
|
|
16
|
-
export class Events extends APIResource {
|
|
17
|
-
catalog: CatalogAPI.Catalog = new CatalogAPI.Catalog(this._client);
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Simulate an event against all configured flows. Returns which flows would match
|
|
21
|
-
* and what actions would run, without storing the event or enqueuing jobs.
|
|
22
|
-
*/
|
|
23
|
-
dryRun(body: EventDryRunParams, options?: RequestOptions): APIPromise<EventDryRunResponse> {
|
|
24
|
-
return this._client.post('/events/dry-run', { body, ...options });
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Ingest an event for trigger evaluation. Returns immediately with 202 Accepted.
|
|
29
|
-
*/
|
|
30
|
-
ingest(body: EventIngestParams, options?: RequestOptions): APIPromise<EventIngestResponse> {
|
|
31
|
-
return this._client.post('/events/ingest', { body, ...options });
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface EventDryRunResponse {
|
|
36
|
-
data: EventDryRunResponse.Data;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export namespace EventDryRunResponse {
|
|
40
|
-
export interface Data {
|
|
41
|
-
matchedFlows: Array<Data.MatchedFlow>;
|
|
42
|
-
|
|
43
|
-
validation: Data.Validation;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export namespace Data {
|
|
47
|
-
export interface MatchedFlow {
|
|
48
|
-
actions: Array<MatchedFlow.Action>;
|
|
49
|
-
|
|
50
|
-
flow: WorkflowsAPI.Flow;
|
|
51
|
-
|
|
52
|
-
gates: MatchedFlow.Gates;
|
|
53
|
-
|
|
54
|
-
trigger: MatchedFlow.Trigger;
|
|
55
|
-
|
|
56
|
-
wouldFire: boolean;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export namespace MatchedFlow {
|
|
60
|
-
export interface Action {
|
|
61
|
-
continueOnError: boolean;
|
|
62
|
-
|
|
63
|
-
method: string;
|
|
64
|
-
|
|
65
|
-
name: string;
|
|
66
|
-
|
|
67
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Nested child actions (loop/branch bodies), each the same shape as a
|
|
71
|
-
* ResolvedAction.
|
|
72
|
-
*/
|
|
73
|
-
children?: Array<unknown>;
|
|
74
|
-
|
|
75
|
-
params?: { [key: string]: unknown };
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface Gates {
|
|
79
|
-
blocked: boolean;
|
|
80
|
-
|
|
81
|
-
cooldownActive: boolean | null;
|
|
82
|
-
|
|
83
|
-
deviceAttached: boolean;
|
|
84
|
-
|
|
85
|
-
deviceIds: Array<string>;
|
|
86
|
-
|
|
87
|
-
enabled: boolean;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export interface Trigger {
|
|
91
|
-
id: string;
|
|
92
|
-
|
|
93
|
-
activation: 'event' | 'schedule' | 'custom';
|
|
94
|
-
|
|
95
|
-
createdAt: string | null;
|
|
96
|
-
|
|
97
|
-
customPayloadSchema: { [key: string]: unknown } | null;
|
|
98
|
-
|
|
99
|
-
description: string | null;
|
|
100
|
-
|
|
101
|
-
eventType: string | null;
|
|
102
|
-
|
|
103
|
-
name: string;
|
|
104
|
-
|
|
105
|
-
scheduleRule: Trigger.ScheduleRule | null;
|
|
106
|
-
|
|
107
|
-
timezone: string | null;
|
|
108
|
-
|
|
109
|
-
updatedAt: string | null;
|
|
110
|
-
|
|
111
|
-
userId: string;
|
|
112
|
-
|
|
113
|
-
conditions?: unknown;
|
|
114
|
-
|
|
115
|
-
nextFireTime?: string | null;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export namespace Trigger {
|
|
119
|
-
export interface ScheduleRule {
|
|
120
|
-
type: 'once' | 'cron' | 'recurring';
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* ISO 8601 datetime (for type=once)
|
|
124
|
-
*/
|
|
125
|
-
dateTime?: string;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Cron expression (for type=cron)
|
|
129
|
-
*/
|
|
130
|
-
expression?: string;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* RRULE string (for type=recurring)
|
|
134
|
-
*/
|
|
135
|
-
rrule?: string;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export interface Validation {
|
|
141
|
-
valid: boolean;
|
|
142
|
-
|
|
143
|
-
errors?: Array<Validation.Error>;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export namespace Validation {
|
|
147
|
-
export interface Error {
|
|
148
|
-
field: string;
|
|
149
|
-
|
|
150
|
-
message: string;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export interface EventIngestResponse {
|
|
157
|
-
eventId: string;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export interface EventDryRunParams {
|
|
161
|
-
eventType: string;
|
|
162
|
-
|
|
163
|
-
payload?: { [key: string]: unknown };
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export interface EventIngestParams {
|
|
167
|
-
eventType: string;
|
|
168
|
-
|
|
169
|
-
payload?: { [key: string]: unknown };
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
Events.Catalog = Catalog;
|
|
173
|
-
|
|
174
|
-
export declare namespace Events {
|
|
175
|
-
export {
|
|
176
|
-
type EventDryRunResponse as EventDryRunResponse,
|
|
177
|
-
type EventIngestResponse as EventIngestResponse,
|
|
178
|
-
type EventDryRunParams as EventDryRunParams,
|
|
179
|
-
type EventIngestParams as EventIngestParams,
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
export {
|
|
183
|
-
Catalog as Catalog,
|
|
184
|
-
type CatalogListResponse as CatalogListResponse,
|
|
185
|
-
type CatalogRegisterResponse as CatalogRegisterResponse,
|
|
186
|
-
type CatalogListParams as CatalogListParams,
|
|
187
|
-
type CatalogRegisterParams as CatalogRegisterParams,
|
|
188
|
-
};
|
|
189
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
Catalog,
|
|
5
|
-
type CatalogListResponse,
|
|
6
|
-
type CatalogRegisterResponse,
|
|
7
|
-
type CatalogListParams,
|
|
8
|
-
type CatalogRegisterParams,
|
|
9
|
-
} from './catalog';
|
|
10
|
-
export {
|
|
11
|
-
Events,
|
|
12
|
-
type EventDryRunResponse,
|
|
13
|
-
type EventIngestResponse,
|
|
14
|
-
type EventDryRunParams,
|
|
15
|
-
type EventIngestParams,
|
|
16
|
-
} from './events';
|