@mobilerun/sdk 5.2.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 +17 -0
- package/README.md +15 -12
- package/client.d.mts +33 -15
- package/client.d.mts.map +1 -1
- package/client.d.ts +33 -15
- package/client.d.ts.map +1 -1
- package/client.js +21 -3
- package/client.js.map +1 -1
- package/client.mjs +21 -3
- 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/{workflows/events → app-events}/index.mjs +1 -1
- 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 +32 -1
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +32 -1
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +12 -0
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +12 -0
- package/resources/apps.mjs.map +1 -1
- package/resources/credentials/credentials.d.mts +24 -4
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +24 -4
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js.map +1 -1
- 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 +67 -23
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +67 -23
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +66 -4
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +66 -4
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/fields.js.map +1 -1
- 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 +39 -4
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +39 -4
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +8 -0
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +8 -0
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/devices/apps.d.mts +81 -1
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +81 -1
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +59 -0
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +59 -0
- 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 +209 -19
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +209 -19
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +55 -2
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +55 -2
- 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 -102
- package/resources/devices/esim.d.mts.map +1 -1
- package/resources/devices/esim.d.ts +1 -102
- package/resources/devices/esim.d.ts.map +1 -1
- package/resources/devices/esim.js +2 -82
- package/resources/devices/esim.js.map +1 -1
- package/resources/devices/esim.mjs +1 -80
- package/resources/devices/esim.mjs.map +1 -1
- package/resources/devices/files.d.mts +31 -29
- package/resources/devices/files.d.mts.map +1 -1
- package/resources/devices/files.d.ts +31 -29
- package/resources/devices/files.d.ts.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/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/location.d.mts +9 -1
- package/resources/devices/location.d.mts.map +1 -1
- package/resources/devices/location.d.ts +9 -1
- package/resources/devices/location.d.ts.map +1 -1
- package/resources/devices/location.js +19 -0
- package/resources/devices/location.js.map +1 -1
- package/resources/devices/location.mjs +19 -0
- 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/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 +6 -7
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +6 -7
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/tasks.d.mts +8 -2
- package/resources/devices/tasks.d.mts.map +1 -1
- package/resources/devices/tasks.d.ts +8 -2
- package/resources/devices/tasks.d.ts.map +1 -1
- package/resources/devices/tasks.js.map +1 -1
- package/resources/devices/tasks.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 +12 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +12 -6
- 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/proxies.d.mts +43 -20
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +43 -20
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs.map +1 -1
- package/resources/shared.d.mts +11 -3
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +11 -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 +65 -34
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +65 -34
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +1 -1
- 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/workflows/action-catalog.d.mts +27 -13
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +27 -13
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/actions/actions.d.mts +85 -23
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +85 -23
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js.map +1 -1
- 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/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 +75 -26
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +75 -26
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +7 -0
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +7 -0
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +109 -26
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +109 -26
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +373 -25
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +373 -25
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +25 -0
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +25 -0
- 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 +6 -3
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +6 -3
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/workflows.d.mts +10 -48
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +10 -48
- 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 +131 -21
- 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 +39 -0
- package/src/resources/credentials/credentials.ts +40 -2
- package/src/resources/credentials/index.ts +1 -0
- package/src/resources/credentials/packages/credentials/credentials.ts +108 -33
- package/src/resources/credentials/packages/credentials/fields.ts +114 -4
- 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 +58 -3
- package/src/resources/devices/apps.ts +155 -0
- package/src/resources/devices/browser.ts +71 -0
- package/src/resources/devices/deep-link.ts +70 -0
- package/src/resources/devices/devices.ts +414 -23
- 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 -208
- package/src/resources/devices/files.ts +36 -35
- package/src/resources/devices/index.ts +45 -5
- package/src/resources/devices/kiosk.ts +74 -0
- package/src/resources/devices/location.ts +33 -1
- package/src/resources/devices/media-sessions.ts +168 -0
- package/src/resources/devices/recordings.ts +358 -0
- package/src/resources/devices/state.ts +7 -9
- package/src/resources/devices/tasks.ts +11 -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 +52 -8
- 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/proxies.ts +52 -22
- package/src/resources/shared.ts +18 -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 +89 -53
- package/src/resources/tasks/ui-states.ts +9 -2
- package/src/resources/workflows/action-catalog.ts +35 -14
- package/src/resources/workflows/actions/actions.ts +124 -24
- package/src/resources/workflows/actions/index.ts +0 -1
- package/src/resources/workflows/events.ts +226 -1
- package/src/resources/workflows/executions.ts +112 -35
- package/src/resources/workflows/flows/actions.ts +129 -25
- package/src/resources/workflows/flows/flows.ts +622 -24
- package/src/resources/workflows/flows/index.ts +3 -3
- package/src/resources/workflows/index.ts +6 -7
- package/src/resources/workflows/triggers.ts +6 -3
- package/src/resources/workflows/workflows.ts +16 -90
- 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 -4
- package/resources/hooks.d.mts.map +0 -1
- package/resources/hooks.d.ts +0 -4
- package/resources/hooks.d.ts.map +0 -1
- package/resources/hooks.js +0 -9
- package/resources/hooks.js.map +0 -1
- package/resources/hooks.mjs +0 -5
- package/resources/hooks.mjs.map +0 -1
- package/resources/workflows/events/catalog.d.mts +0 -4
- package/resources/workflows/events/catalog.d.mts.map +0 -1
- package/resources/workflows/events/catalog.d.ts +0 -4
- package/resources/workflows/events/catalog.d.ts.map +0 -1
- package/resources/workflows/events/catalog.js +0 -9
- package/resources/workflows/events/catalog.js.map +0 -1
- package/resources/workflows/events/catalog.mjs +0 -5
- package/resources/workflows/events/catalog.mjs.map +0 -1
- package/resources/workflows/events/events.d.mts +0 -113
- package/resources/workflows/events/events.d.mts.map +0 -1
- package/resources/workflows/events/events.d.ts +0 -113
- 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.map +0 -1
- package/src/resources/hooks.ts +0 -5
- package/src/resources/workflows/events/catalog.ts +0 -5
- package/src/resources/workflows/events/events.ts +0 -167
- package/src/resources/workflows/events/index.ts +0 -10
|
@@ -32,37 +32,99 @@ export declare class Actions extends APIResource {
|
|
|
32
32
|
*/
|
|
33
33
|
delete(actionID: string, options?: RequestOptions): APIPromise<ActionDeleteResponse>;
|
|
34
34
|
}
|
|
35
|
-
export interface Action {
|
|
36
|
-
id: string;
|
|
37
|
-
catalogEntryId: string;
|
|
38
|
-
createdAt: string | null;
|
|
39
|
-
createdBy: string | null;
|
|
40
|
-
description: string | null;
|
|
41
|
-
method: string;
|
|
42
|
-
name: string;
|
|
43
|
-
ownerId: string;
|
|
44
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
45
|
-
updatedAt: string | null;
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
48
|
-
*/
|
|
49
|
-
userId: string;
|
|
50
|
-
params?: unknown;
|
|
51
|
-
paramsSchema?: unknown;
|
|
52
|
-
}
|
|
53
35
|
export interface ActionCreateResponse {
|
|
54
|
-
data:
|
|
36
|
+
data: ActionCreateResponse.Data;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace ActionCreateResponse {
|
|
39
|
+
interface Data {
|
|
40
|
+
id: string;
|
|
41
|
+
catalogEntryId: string;
|
|
42
|
+
createdAt: string | null;
|
|
43
|
+
createdBy: string | null;
|
|
44
|
+
description: string | null;
|
|
45
|
+
method: string;
|
|
46
|
+
name: string;
|
|
47
|
+
ownerId: string;
|
|
48
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
49
|
+
updatedAt: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
52
|
+
*/
|
|
53
|
+
userId: string;
|
|
54
|
+
params?: unknown;
|
|
55
|
+
paramsSchema?: unknown;
|
|
56
|
+
}
|
|
55
57
|
}
|
|
56
58
|
export interface ActionRetrieveResponse {
|
|
57
|
-
data:
|
|
59
|
+
data: ActionRetrieveResponse.Data;
|
|
60
|
+
}
|
|
61
|
+
export declare namespace ActionRetrieveResponse {
|
|
62
|
+
interface Data {
|
|
63
|
+
id: string;
|
|
64
|
+
catalogEntryId: string;
|
|
65
|
+
createdAt: string | null;
|
|
66
|
+
createdBy: string | null;
|
|
67
|
+
description: string | null;
|
|
68
|
+
method: string;
|
|
69
|
+
name: string;
|
|
70
|
+
ownerId: string;
|
|
71
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
72
|
+
updatedAt: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
75
|
+
*/
|
|
76
|
+
userId: string;
|
|
77
|
+
params?: unknown;
|
|
78
|
+
paramsSchema?: unknown;
|
|
79
|
+
}
|
|
58
80
|
}
|
|
59
81
|
export interface ActionUpdateResponse {
|
|
60
|
-
data:
|
|
82
|
+
data: ActionUpdateResponse.Data;
|
|
83
|
+
}
|
|
84
|
+
export declare namespace ActionUpdateResponse {
|
|
85
|
+
interface Data {
|
|
86
|
+
id: string;
|
|
87
|
+
catalogEntryId: string;
|
|
88
|
+
createdAt: string | null;
|
|
89
|
+
createdBy: string | null;
|
|
90
|
+
description: string | null;
|
|
91
|
+
method: string;
|
|
92
|
+
name: string;
|
|
93
|
+
ownerId: string;
|
|
94
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
95
|
+
updatedAt: string | null;
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
98
|
+
*/
|
|
99
|
+
userId: string;
|
|
100
|
+
params?: unknown;
|
|
101
|
+
paramsSchema?: unknown;
|
|
102
|
+
}
|
|
61
103
|
}
|
|
62
104
|
export interface ActionListResponse {
|
|
63
|
-
items: Array<
|
|
105
|
+
items: Array<ActionListResponse.Item>;
|
|
64
106
|
pagination: Shared.Pagination;
|
|
65
107
|
}
|
|
108
|
+
export declare namespace ActionListResponse {
|
|
109
|
+
interface Item {
|
|
110
|
+
id: string;
|
|
111
|
+
catalogEntryId: string;
|
|
112
|
+
createdAt: string | null;
|
|
113
|
+
createdBy: string | null;
|
|
114
|
+
description: string | null;
|
|
115
|
+
method: string;
|
|
116
|
+
name: string;
|
|
117
|
+
ownerId: string;
|
|
118
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
119
|
+
updatedAt: string | null;
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
122
|
+
*/
|
|
123
|
+
userId: string;
|
|
124
|
+
params?: unknown;
|
|
125
|
+
paramsSchema?: unknown;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
66
128
|
export interface ActionDeleteResponse {
|
|
67
129
|
message: string;
|
|
68
130
|
}
|
|
@@ -90,7 +152,7 @@ export interface ActionListParams {
|
|
|
90
152
|
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
91
153
|
}
|
|
92
154
|
export declare namespace Actions {
|
|
93
|
-
export { type
|
|
155
|
+
export { type ActionCreateResponse as ActionCreateResponse, type ActionRetrieveResponse as ActionRetrieveResponse, type ActionUpdateResponse as ActionUpdateResponse, type ActionListResponse as ActionListResponse, type ActionDeleteResponse as ActionDeleteResponse, type ActionCreateParams as ActionCreateParams, type ActionUpdateParams as ActionUpdateParams, type ActionListParams as ActionListParams, };
|
|
94
156
|
export { Services as Services, type ServiceListResponse as ServiceListResponse, type ServiceListMethodsResponse as ServiceListMethodsResponse, };
|
|
95
157
|
}
|
|
96
158
|
//# sourceMappingURL=actions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,MAAM,yBAAqB;AACvC,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,QAAQ,EAAE,uBAAmB;AACvF,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC,QAAQ,EAAE,WAAW,C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,GAAG,WAAW,CAAC;IAE7C,gBAAgB,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAElC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,OAAO,CAAC,EAAE,WAAW,GAAG,aAAa,GAAG,YAAY,GAAG,UAAU,CAAC;CACnE;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -32,37 +32,99 @@ export declare class Actions extends APIResource {
|
|
|
32
32
|
*/
|
|
33
33
|
delete(actionID: string, options?: RequestOptions): APIPromise<ActionDeleteResponse>;
|
|
34
34
|
}
|
|
35
|
-
export interface Action {
|
|
36
|
-
id: string;
|
|
37
|
-
catalogEntryId: string;
|
|
38
|
-
createdAt: string | null;
|
|
39
|
-
createdBy: string | null;
|
|
40
|
-
description: string | null;
|
|
41
|
-
method: string;
|
|
42
|
-
name: string;
|
|
43
|
-
ownerId: string;
|
|
44
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
45
|
-
updatedAt: string | null;
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
48
|
-
*/
|
|
49
|
-
userId: string;
|
|
50
|
-
params?: unknown;
|
|
51
|
-
paramsSchema?: unknown;
|
|
52
|
-
}
|
|
53
35
|
export interface ActionCreateResponse {
|
|
54
|
-
data:
|
|
36
|
+
data: ActionCreateResponse.Data;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace ActionCreateResponse {
|
|
39
|
+
interface Data {
|
|
40
|
+
id: string;
|
|
41
|
+
catalogEntryId: string;
|
|
42
|
+
createdAt: string | null;
|
|
43
|
+
createdBy: string | null;
|
|
44
|
+
description: string | null;
|
|
45
|
+
method: string;
|
|
46
|
+
name: string;
|
|
47
|
+
ownerId: string;
|
|
48
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
49
|
+
updatedAt: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
52
|
+
*/
|
|
53
|
+
userId: string;
|
|
54
|
+
params?: unknown;
|
|
55
|
+
paramsSchema?: unknown;
|
|
56
|
+
}
|
|
55
57
|
}
|
|
56
58
|
export interface ActionRetrieveResponse {
|
|
57
|
-
data:
|
|
59
|
+
data: ActionRetrieveResponse.Data;
|
|
60
|
+
}
|
|
61
|
+
export declare namespace ActionRetrieveResponse {
|
|
62
|
+
interface Data {
|
|
63
|
+
id: string;
|
|
64
|
+
catalogEntryId: string;
|
|
65
|
+
createdAt: string | null;
|
|
66
|
+
createdBy: string | null;
|
|
67
|
+
description: string | null;
|
|
68
|
+
method: string;
|
|
69
|
+
name: string;
|
|
70
|
+
ownerId: string;
|
|
71
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
72
|
+
updatedAt: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
75
|
+
*/
|
|
76
|
+
userId: string;
|
|
77
|
+
params?: unknown;
|
|
78
|
+
paramsSchema?: unknown;
|
|
79
|
+
}
|
|
58
80
|
}
|
|
59
81
|
export interface ActionUpdateResponse {
|
|
60
|
-
data:
|
|
82
|
+
data: ActionUpdateResponse.Data;
|
|
83
|
+
}
|
|
84
|
+
export declare namespace ActionUpdateResponse {
|
|
85
|
+
interface Data {
|
|
86
|
+
id: string;
|
|
87
|
+
catalogEntryId: string;
|
|
88
|
+
createdAt: string | null;
|
|
89
|
+
createdBy: string | null;
|
|
90
|
+
description: string | null;
|
|
91
|
+
method: string;
|
|
92
|
+
name: string;
|
|
93
|
+
ownerId: string;
|
|
94
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
95
|
+
updatedAt: string | null;
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
98
|
+
*/
|
|
99
|
+
userId: string;
|
|
100
|
+
params?: unknown;
|
|
101
|
+
paramsSchema?: unknown;
|
|
102
|
+
}
|
|
61
103
|
}
|
|
62
104
|
export interface ActionListResponse {
|
|
63
|
-
items: Array<
|
|
105
|
+
items: Array<ActionListResponse.Item>;
|
|
64
106
|
pagination: Shared.Pagination;
|
|
65
107
|
}
|
|
108
|
+
export declare namespace ActionListResponse {
|
|
109
|
+
interface Item {
|
|
110
|
+
id: string;
|
|
111
|
+
catalogEntryId: string;
|
|
112
|
+
createdAt: string | null;
|
|
113
|
+
createdBy: string | null;
|
|
114
|
+
description: string | null;
|
|
115
|
+
method: string;
|
|
116
|
+
name: string;
|
|
117
|
+
ownerId: string;
|
|
118
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
119
|
+
updatedAt: string | null;
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
122
|
+
*/
|
|
123
|
+
userId: string;
|
|
124
|
+
params?: unknown;
|
|
125
|
+
paramsSchema?: unknown;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
66
128
|
export interface ActionDeleteResponse {
|
|
67
129
|
message: string;
|
|
68
130
|
}
|
|
@@ -90,7 +152,7 @@ export interface ActionListParams {
|
|
|
90
152
|
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
91
153
|
}
|
|
92
154
|
export declare namespace Actions {
|
|
93
|
-
export { type
|
|
155
|
+
export { type ActionCreateResponse as ActionCreateResponse, type ActionRetrieveResponse as ActionRetrieveResponse, type ActionUpdateResponse as ActionUpdateResponse, type ActionListResponse as ActionListResponse, type ActionDeleteResponse as ActionDeleteResponse, type ActionCreateParams as ActionCreateParams, type ActionUpdateParams as ActionUpdateParams, type ActionListParams as ActionListParams, };
|
|
94
156
|
export { Services as Services, type ServiceListResponse as ServiceListResponse, type ServiceListMethodsResponse as ServiceListMethodsResponse, };
|
|
95
157
|
}
|
|
96
158
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,QAAQ,EAAE,sBAAmB;AACvF,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIxF;;;OAGG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,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AAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,QAAgB,EAChB,OAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,YAAY,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;CACF;AA4LD,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Actions, type
|
|
1
|
+
export { Actions, type ActionCreateResponse, type ActionRetrieveResponse, type ActionUpdateResponse, type ActionListResponse, type ActionDeleteResponse, type ActionCreateParams, type ActionUpdateParams, type ActionListParams, } from "./actions.mjs";
|
|
2
2
|
export { Services, type ServiceListResponse, type ServiceListMethodsResponse } from "./services.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,sBAAkB;AACnB,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,0BAA0B,EAAE,uBAAmB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Actions, type
|
|
1
|
+
export { Actions, type ActionCreateResponse, type ActionRetrieveResponse, type ActionUpdateResponse, type ActionListResponse, type ActionDeleteResponse, type ActionCreateParams, type ActionUpdateParams, type ActionListParams, } from "./actions.js";
|
|
2
2
|
export { Services, type ServiceListResponse, type ServiceListMethodsResponse } from "./services.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,qBAAkB;AACnB,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,0BAA0B,EAAE,sBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/workflows/actions/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/workflows/actions/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAUmB;AATjB,kGAAA,OAAO,OAAA;AAUT,0CAAiG;AAAxF,oGAAA,QAAQ,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/workflows/actions/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/workflows/actions/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,OAAO,GASR,sBAAkB;AACnB,OAAO,EAAE,QAAQ,EAA6D,uBAAmB"}
|
|
@@ -1,2 +1,145 @@
|
|
|
1
|
-
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Events extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Simulate an event against all configured flows. Returns which flows would match
|
|
7
|
+
* and what actions would run, without storing the event or enqueuing jobs.
|
|
8
|
+
*/
|
|
9
|
+
dryRun(body: EventDryRunParams, options?: RequestOptions): APIPromise<EventDryRunResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Ingest an event for trigger evaluation. Returns immediately with 202 Accepted.
|
|
12
|
+
*/
|
|
13
|
+
ingest(body: EventIngestParams, options?: RequestOptions): APIPromise<EventIngestResponse>;
|
|
14
|
+
}
|
|
15
|
+
export interface EventDryRunResponse {
|
|
16
|
+
data: EventDryRunResponse.Data;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace EventDryRunResponse {
|
|
19
|
+
interface Data {
|
|
20
|
+
matchedFlows: Array<Data.MatchedFlow>;
|
|
21
|
+
validation: Data.Validation;
|
|
22
|
+
}
|
|
23
|
+
namespace Data {
|
|
24
|
+
interface MatchedFlow {
|
|
25
|
+
actions: Array<MatchedFlow.Action>;
|
|
26
|
+
flow: MatchedFlow.Flow;
|
|
27
|
+
gates: MatchedFlow.Gates;
|
|
28
|
+
trigger: MatchedFlow.Trigger;
|
|
29
|
+
wouldFire: boolean;
|
|
30
|
+
}
|
|
31
|
+
namespace MatchedFlow {
|
|
32
|
+
interface Action {
|
|
33
|
+
continueOnError: boolean;
|
|
34
|
+
method: string;
|
|
35
|
+
name: string;
|
|
36
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
37
|
+
/**
|
|
38
|
+
* Nested child actions (loop/branch bodies), each the same shape as a
|
|
39
|
+
* ResolvedAction.
|
|
40
|
+
*/
|
|
41
|
+
children?: Array<unknown>;
|
|
42
|
+
params?: {
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
interface Flow {
|
|
47
|
+
id: string;
|
|
48
|
+
blockedAt: string | null;
|
|
49
|
+
consecutiveFailures: number;
|
|
50
|
+
cooldownScope: 'flow' | 'device';
|
|
51
|
+
cooldownSeconds: number | null;
|
|
52
|
+
createdAt: string | null;
|
|
53
|
+
createdBy: string | null;
|
|
54
|
+
description: string | null;
|
|
55
|
+
deviceIds: Array<string>;
|
|
56
|
+
enabled: boolean;
|
|
57
|
+
healthMonitoringEnabled: boolean;
|
|
58
|
+
lastFailureAt: string | null;
|
|
59
|
+
lastFailureCode: 'device_not_found' | 'permission_denied' | 'client_error' | 'transient' | 'logic' | 'invalid_config' | null;
|
|
60
|
+
lastTriggeredAt: string | null;
|
|
61
|
+
name: string;
|
|
62
|
+
notifyOnFailure: boolean;
|
|
63
|
+
notifyOnSuccess: boolean;
|
|
64
|
+
notifyWebhookId: string | null;
|
|
65
|
+
ownerId: string;
|
|
66
|
+
selfHealingEnabled: boolean;
|
|
67
|
+
selfHealingMaxAttempts: number;
|
|
68
|
+
status: 'healthy' | 'failing' | 'blocked';
|
|
69
|
+
/**
|
|
70
|
+
* Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
|
|
71
|
+
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
72
|
+
* a whole-token null stays JSON null). Existing flows stay 1; new flows default
|
|
73
|
+
* to 2.
|
|
74
|
+
*/
|
|
75
|
+
templateResolutionVersion: number;
|
|
76
|
+
triggerId: string;
|
|
77
|
+
updatedAt: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
80
|
+
*/
|
|
81
|
+
userId: string;
|
|
82
|
+
}
|
|
83
|
+
interface Gates {
|
|
84
|
+
blocked: boolean;
|
|
85
|
+
cooldownActive: boolean | null;
|
|
86
|
+
deviceAttached: boolean;
|
|
87
|
+
deviceIds: Array<string>;
|
|
88
|
+
enabled: boolean;
|
|
89
|
+
}
|
|
90
|
+
interface Trigger {
|
|
91
|
+
id: string;
|
|
92
|
+
activation: 'event' | 'schedule' | 'custom';
|
|
93
|
+
createdAt: string | null;
|
|
94
|
+
createdBy: string | null;
|
|
95
|
+
customPayloadSchema: {
|
|
96
|
+
[key: string]: unknown;
|
|
97
|
+
} | null;
|
|
98
|
+
description: string | null;
|
|
99
|
+
eventType: string | null;
|
|
100
|
+
name: string;
|
|
101
|
+
ownerId: string;
|
|
102
|
+
scheduleRule: unknown;
|
|
103
|
+
timezone: string | null;
|
|
104
|
+
updatedAt: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
107
|
+
*/
|
|
108
|
+
userId: string;
|
|
109
|
+
conditions?: unknown;
|
|
110
|
+
nextFireTime?: string | null;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
interface Validation {
|
|
114
|
+
valid: boolean;
|
|
115
|
+
errors?: Array<Validation.Error>;
|
|
116
|
+
}
|
|
117
|
+
namespace Validation {
|
|
118
|
+
interface Error {
|
|
119
|
+
field: string;
|
|
120
|
+
message: string;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
export interface EventIngestResponse {
|
|
126
|
+
eventId: string;
|
|
127
|
+
}
|
|
128
|
+
export interface EventDryRunParams {
|
|
129
|
+
eventType: string;
|
|
130
|
+
deviceId?: string;
|
|
131
|
+
payload?: {
|
|
132
|
+
[key: string]: unknown;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
export interface EventIngestParams {
|
|
136
|
+
eventType: string;
|
|
137
|
+
deviceId?: string;
|
|
138
|
+
payload?: {
|
|
139
|
+
[key: string]: unknown;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
export declare namespace Events {
|
|
143
|
+
export { type EventDryRunResponse as EventDryRunResponse, type EventIngestResponse as EventIngestResponse, type EventDryRunParams as EventDryRunParams, type EventIngestParams as EventIngestParams, };
|
|
144
|
+
}
|
|
2
145
|
//# sourceMappingURL=events.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/events.ts"],"names":[],"mappings":"AAEA,mCAA+B"}
|
|
1
|
+
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG3F;AAED,MAAM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BAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1,2 +1,145 @@
|
|
|
1
|
-
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Events extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Simulate an event against all configured flows. Returns which flows would match
|
|
7
|
+
* and what actions would run, without storing the event or enqueuing jobs.
|
|
8
|
+
*/
|
|
9
|
+
dryRun(body: EventDryRunParams, options?: RequestOptions): APIPromise<EventDryRunResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Ingest an event for trigger evaluation. Returns immediately with 202 Accepted.
|
|
12
|
+
*/
|
|
13
|
+
ingest(body: EventIngestParams, options?: RequestOptions): APIPromise<EventIngestResponse>;
|
|
14
|
+
}
|
|
15
|
+
export interface EventDryRunResponse {
|
|
16
|
+
data: EventDryRunResponse.Data;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace EventDryRunResponse {
|
|
19
|
+
interface Data {
|
|
20
|
+
matchedFlows: Array<Data.MatchedFlow>;
|
|
21
|
+
validation: Data.Validation;
|
|
22
|
+
}
|
|
23
|
+
namespace Data {
|
|
24
|
+
interface MatchedFlow {
|
|
25
|
+
actions: Array<MatchedFlow.Action>;
|
|
26
|
+
flow: MatchedFlow.Flow;
|
|
27
|
+
gates: MatchedFlow.Gates;
|
|
28
|
+
trigger: MatchedFlow.Trigger;
|
|
29
|
+
wouldFire: boolean;
|
|
30
|
+
}
|
|
31
|
+
namespace MatchedFlow {
|
|
32
|
+
interface Action {
|
|
33
|
+
continueOnError: boolean;
|
|
34
|
+
method: string;
|
|
35
|
+
name: string;
|
|
36
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
37
|
+
/**
|
|
38
|
+
* Nested child actions (loop/branch bodies), each the same shape as a
|
|
39
|
+
* ResolvedAction.
|
|
40
|
+
*/
|
|
41
|
+
children?: Array<unknown>;
|
|
42
|
+
params?: {
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
interface Flow {
|
|
47
|
+
id: string;
|
|
48
|
+
blockedAt: string | null;
|
|
49
|
+
consecutiveFailures: number;
|
|
50
|
+
cooldownScope: 'flow' | 'device';
|
|
51
|
+
cooldownSeconds: number | null;
|
|
52
|
+
createdAt: string | null;
|
|
53
|
+
createdBy: string | null;
|
|
54
|
+
description: string | null;
|
|
55
|
+
deviceIds: Array<string>;
|
|
56
|
+
enabled: boolean;
|
|
57
|
+
healthMonitoringEnabled: boolean;
|
|
58
|
+
lastFailureAt: string | null;
|
|
59
|
+
lastFailureCode: 'device_not_found' | 'permission_denied' | 'client_error' | 'transient' | 'logic' | 'invalid_config' | null;
|
|
60
|
+
lastTriggeredAt: string | null;
|
|
61
|
+
name: string;
|
|
62
|
+
notifyOnFailure: boolean;
|
|
63
|
+
notifyOnSuccess: boolean;
|
|
64
|
+
notifyWebhookId: string | null;
|
|
65
|
+
ownerId: string;
|
|
66
|
+
selfHealingEnabled: boolean;
|
|
67
|
+
selfHealingMaxAttempts: number;
|
|
68
|
+
status: 'healthy' | 'failing' | 'blocked';
|
|
69
|
+
/**
|
|
70
|
+
* Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
|
|
71
|
+
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
72
|
+
* a whole-token null stays JSON null). Existing flows stay 1; new flows default
|
|
73
|
+
* to 2.
|
|
74
|
+
*/
|
|
75
|
+
templateResolutionVersion: number;
|
|
76
|
+
triggerId: string;
|
|
77
|
+
updatedAt: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
80
|
+
*/
|
|
81
|
+
userId: string;
|
|
82
|
+
}
|
|
83
|
+
interface Gates {
|
|
84
|
+
blocked: boolean;
|
|
85
|
+
cooldownActive: boolean | null;
|
|
86
|
+
deviceAttached: boolean;
|
|
87
|
+
deviceIds: Array<string>;
|
|
88
|
+
enabled: boolean;
|
|
89
|
+
}
|
|
90
|
+
interface Trigger {
|
|
91
|
+
id: string;
|
|
92
|
+
activation: 'event' | 'schedule' | 'custom';
|
|
93
|
+
createdAt: string | null;
|
|
94
|
+
createdBy: string | null;
|
|
95
|
+
customPayloadSchema: {
|
|
96
|
+
[key: string]: unknown;
|
|
97
|
+
} | null;
|
|
98
|
+
description: string | null;
|
|
99
|
+
eventType: string | null;
|
|
100
|
+
name: string;
|
|
101
|
+
ownerId: string;
|
|
102
|
+
scheduleRule: unknown;
|
|
103
|
+
timezone: string | null;
|
|
104
|
+
updatedAt: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
107
|
+
*/
|
|
108
|
+
userId: string;
|
|
109
|
+
conditions?: unknown;
|
|
110
|
+
nextFireTime?: string | null;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
interface Validation {
|
|
114
|
+
valid: boolean;
|
|
115
|
+
errors?: Array<Validation.Error>;
|
|
116
|
+
}
|
|
117
|
+
namespace Validation {
|
|
118
|
+
interface Error {
|
|
119
|
+
field: string;
|
|
120
|
+
message: string;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
export interface EventIngestResponse {
|
|
126
|
+
eventId: string;
|
|
127
|
+
}
|
|
128
|
+
export interface EventDryRunParams {
|
|
129
|
+
eventType: string;
|
|
130
|
+
deviceId?: string;
|
|
131
|
+
payload?: {
|
|
132
|
+
[key: string]: unknown;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
export interface EventIngestParams {
|
|
136
|
+
eventType: string;
|
|
137
|
+
deviceId?: string;
|
|
138
|
+
payload?: {
|
|
139
|
+
[key: string]: unknown;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
export declare namespace Events {
|
|
143
|
+
export { type EventDryRunResponse as EventDryRunResponse, type EventIngestResponse as EventIngestResponse, type EventDryRunParams as EventDryRunParams, type EventIngestParams as EventIngestParams, };
|
|
144
|
+
}
|
|
2
145
|
//# sourceMappingURL=events.d.ts.map
|