@mobilerun/sdk 5.2.0 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/README.md +15 -12
- package/client.d.mts +36 -15
- package/client.d.mts.map +1 -1
- package/client.d.ts +36 -15
- package/client.d.ts.map +1 -1
- package/client.js +24 -3
- package/client.js.map +1 -1
- package/client.mjs +24 -3
- package/client.mjs.map +1 -1
- package/core/streaming.d.mts +33 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +33 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +263 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +258 -0
- package/core/streaming.mjs.map +1 -0
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +113 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +108 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +10 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +10 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +2 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +2 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/tslib.js +18 -18
- package/package.json +12 -2
- 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 +34 -3
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +34 -3
- 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/assistant/assistant.d.mts +10 -0
- package/resources/assistant/assistant.d.mts.map +1 -0
- package/resources/assistant/assistant.d.ts +10 -0
- package/resources/assistant/assistant.d.ts.map +1 -0
- package/resources/assistant/assistant.js +17 -0
- package/resources/assistant/assistant.js.map +1 -0
- package/resources/assistant/assistant.mjs +12 -0
- package/resources/assistant/assistant.mjs.map +1 -0
- package/resources/assistant/conversations.d.mts +295 -0
- package/resources/assistant/conversations.d.mts.map +1 -0
- package/resources/assistant/conversations.d.ts +295 -0
- package/resources/assistant/conversations.d.ts.map +1 -0
- package/resources/assistant/conversations.js +109 -0
- package/resources/assistant/conversations.js.map +1 -0
- package/resources/assistant/conversations.mjs +105 -0
- package/resources/assistant/conversations.mjs.map +1 -0
- package/resources/assistant/index.d.mts +3 -0
- package/resources/assistant/index.d.mts.map +1 -0
- package/resources/assistant/index.d.ts +3 -0
- package/resources/assistant/index.d.ts.map +1 -0
- package/resources/assistant/index.js +9 -0
- package/resources/assistant/index.js.map +1 -0
- package/resources/assistant/index.mjs +4 -0
- package/resources/assistant/index.mjs.map +1 -0
- package/resources/assistant.d.mts +2 -0
- package/resources/assistant.d.mts.map +1 -0
- package/resources/assistant.d.ts +2 -0
- package/resources/assistant.d.ts.map +1 -0
- package/resources/assistant.js +6 -0
- package/resources/assistant.js.map +1 -0
- package/resources/assistant.mjs +3 -0
- package/resources/assistant.mjs.map +1 -0
- 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/clipboard.d.mts +40 -0
- package/resources/devices/clipboard.d.mts.map +1 -0
- package/resources/devices/clipboard.d.ts +40 -0
- package/resources/devices/clipboard.d.ts.map +1 -0
- package/resources/devices/clipboard.js +50 -0
- package/resources/devices/clipboard.js.map +1 -0
- package/resources/devices/clipboard.mjs +46 -0
- package/resources/devices/clipboard.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 +214 -19
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +214 -19
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +59 -2
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +59 -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 +12 -6
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +12 -6
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +15 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +8 -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 +106 -0
- package/resources/esims/messages.d.mts.map +1 -0
- package/resources/esims/messages.d.ts +106 -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/files.d.mts +126 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +126 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +68 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +64 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.mts +13 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +13 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +17 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +8 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/conversations.d.mts +82 -0
- package/resources/messages/conversations.d.mts.map +1 -0
- package/resources/messages/conversations.d.ts +82 -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 +51 -0
- package/resources/messages/messages.d.mts.map +1 -0
- package/resources/messages/messages.d.ts +51 -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/models.d.mts +20 -5
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +20 -5
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +1 -1
- package/resources/models.mjs +1 -1
- 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 +48 -0
- package/resources/numbers/messages.d.mts.map +1 -0
- package/resources/numbers/messages.d.ts +48 -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 +270 -0
- package/resources/numbers/numbers.d.mts.map +1 -0
- package/resources/numbers/numbers.d.ts +270 -0
- package/resources/numbers/numbers.d.ts.map +1 -0
- package/resources/numbers/numbers.js +134 -0
- package/resources/numbers/numbers.js.map +1 -0
- package/resources/numbers/numbers.mjs +129 -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 +145 -1
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +145 -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 +96 -26
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +96 -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 +381 -25
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +381 -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 +164 -21
- package/src/core/streaming.ts +315 -0
- package/src/internal/decoders/line.ts +135 -0
- package/src/internal/parse.ts +14 -0
- package/src/internal/request-options.ts +2 -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 +41 -2
- package/src/resources/assistant/assistant.ts +59 -0
- package/src/resources/assistant/conversations.ts +524 -0
- package/src/resources/assistant/index.ts +26 -0
- package/src/resources/assistant.ts +3 -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/clipboard.ts +87 -0
- package/src/resources/devices/deep-link.ts +70 -0
- package/src/resources/devices/devices.ts +427 -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 +51 -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 +1019 -0
- package/src/resources/esims/index.ts +28 -0
- package/src/resources/esims/messages.ts +187 -0
- package/src/resources/esims.ts +3 -0
- package/src/resources/files.ts +225 -0
- package/src/resources/index.ts +67 -8
- package/src/resources/messages/conversations.ts +132 -0
- package/src/resources/messages/index.ts +10 -0
- package/src/resources/messages/messages.ts +114 -0
- package/src/resources/messages.ts +3 -0
- package/src/resources/models.ts +22 -7
- package/src/resources/notifications.ts +118 -0
- package/src/resources/numbers/index.ts +16 -0
- package/src/resources/numbers/messages.ts +83 -0
- package/src/resources/numbers/numbers.ts +415 -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 +228 -1
- package/src/resources/workflows/executions.ts +139 -35
- package/src/resources/workflows/flows/actions.ts +129 -25
- package/src/resources/workflows/flows/flows.ts +638 -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/streaming.ts +2 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +3 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +3 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +6 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +3 -0
- package/streaming.mjs.map +1 -0
- 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
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as FlowsAPI from './flows';
|
|
5
4
|
import * as Shared from '../../shared';
|
|
6
|
-
import * as WorkflowsAPI from '../workflows';
|
|
7
5
|
import * as ActionsAPI from './actions';
|
|
8
6
|
import {
|
|
9
7
|
ActionAddParams,
|
|
@@ -14,7 +12,6 @@ import {
|
|
|
14
12
|
ActionReplaceParams,
|
|
15
13
|
ActionReplaceResponse,
|
|
16
14
|
Actions,
|
|
17
|
-
FlowAction,
|
|
18
15
|
} from './actions';
|
|
19
16
|
import { APIPromise } from '../../../core/api-promise';
|
|
20
17
|
import { RequestOptions } from '../../../internal/request-options';
|
|
@@ -88,6 +85,37 @@ export class Flows extends APIResource {
|
|
|
88
85
|
return this._client.post(path`/flows/${flowID}/clone`, { body, ...options });
|
|
89
86
|
}
|
|
90
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Simulate this flow firing without storing events, enqueuing jobs, or consuming
|
|
90
|
+
* cooldown/rate-limit slots.
|
|
91
|
+
*
|
|
92
|
+
* Works for every trigger activation type:
|
|
93
|
+
*
|
|
94
|
+
* - `event`: validates the payload against the event catalog schema and evaluates
|
|
95
|
+
* the trigger conditions.
|
|
96
|
+
* - `custom`: validates the payload against the custom payload schema (conditions
|
|
97
|
+
* do not apply).
|
|
98
|
+
* - `schedule`: ignores the payload and reports the next fire time.
|
|
99
|
+
*
|
|
100
|
+
* The response reports `wouldFire` — whether the flow would actually run right now
|
|
101
|
+
* — alongside the gates that decide it (enabled, device attached, blocked,
|
|
102
|
+
* cooldown). `rateLimited` is informational and is not folded into `wouldFire`.
|
|
103
|
+
*/
|
|
104
|
+
dryRun(
|
|
105
|
+
flowID: string,
|
|
106
|
+
body: FlowDryRunParams | null | undefined = {},
|
|
107
|
+
options?: RequestOptions,
|
|
108
|
+
): APIPromise<FlowDryRunResponse> {
|
|
109
|
+
return this._client.post(path`/flows/${flowID}/dry-run`, { body, ...options });
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* List self-healing repair episodes
|
|
114
|
+
*/
|
|
115
|
+
listRepairs(flowID: string, options?: RequestOptions): APIPromise<FlowListRepairsResponse> {
|
|
116
|
+
return this._client.get(path`/flows/${flowID}/repairs`, options);
|
|
117
|
+
}
|
|
118
|
+
|
|
91
119
|
/**
|
|
92
120
|
* Clear a flow's blocked status after fixing the underlying issue. Idempotent —
|
|
93
121
|
* safe to call on already-healthy flows.
|
|
@@ -97,50 +125,604 @@ export class Flows extends APIResource {
|
|
|
97
125
|
}
|
|
98
126
|
}
|
|
99
127
|
|
|
100
|
-
export interface
|
|
101
|
-
|
|
128
|
+
export interface FlowCreateResponse {
|
|
129
|
+
data: FlowCreateResponse.Data;
|
|
102
130
|
}
|
|
103
131
|
|
|
104
|
-
export
|
|
105
|
-
|
|
132
|
+
export namespace FlowCreateResponse {
|
|
133
|
+
export interface Data {
|
|
134
|
+
id: string;
|
|
106
135
|
|
|
107
|
-
|
|
136
|
+
blockedAt: string | null;
|
|
108
137
|
|
|
109
|
-
|
|
138
|
+
consecutiveFailures: number;
|
|
110
139
|
|
|
111
|
-
|
|
140
|
+
cooldownScope: 'flow' | 'device';
|
|
112
141
|
|
|
113
|
-
|
|
114
|
-
}
|
|
142
|
+
cooldownSeconds: number | null;
|
|
115
143
|
|
|
116
|
-
|
|
117
|
-
|
|
144
|
+
createdAt: string | null;
|
|
145
|
+
|
|
146
|
+
createdBy: string | null;
|
|
147
|
+
|
|
148
|
+
description: string | null;
|
|
149
|
+
|
|
150
|
+
deviceIds: Array<string>;
|
|
151
|
+
|
|
152
|
+
enabled: boolean;
|
|
153
|
+
|
|
154
|
+
healthMonitoringEnabled: boolean;
|
|
155
|
+
|
|
156
|
+
lastFailureAt: string | null;
|
|
157
|
+
|
|
158
|
+
lastFailureCode:
|
|
159
|
+
| 'device_not_found'
|
|
160
|
+
| 'permission_denied'
|
|
161
|
+
| 'client_error'
|
|
162
|
+
| 'transient'
|
|
163
|
+
| 'logic'
|
|
164
|
+
| 'invalid_config'
|
|
165
|
+
| null;
|
|
166
|
+
|
|
167
|
+
lastTriggeredAt: string | null;
|
|
168
|
+
|
|
169
|
+
name: string;
|
|
170
|
+
|
|
171
|
+
notifyOnFailure: boolean;
|
|
172
|
+
|
|
173
|
+
notifyOnSuccess: boolean;
|
|
174
|
+
|
|
175
|
+
notifyWebhookId: string | null;
|
|
176
|
+
|
|
177
|
+
ownerId: string;
|
|
178
|
+
|
|
179
|
+
recordingEnabled: boolean;
|
|
180
|
+
|
|
181
|
+
selfHealingEnabled: boolean;
|
|
182
|
+
|
|
183
|
+
selfHealingMaxAttempts: number;
|
|
184
|
+
|
|
185
|
+
status: 'healthy' | 'failing' | 'blocked';
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
|
|
189
|
+
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
190
|
+
* a whole-token null stays JSON null). Existing flows stay 1; new flows default
|
|
191
|
+
* to 2.
|
|
192
|
+
*/
|
|
193
|
+
templateResolutionVersion: number;
|
|
194
|
+
|
|
195
|
+
triggerId: string;
|
|
196
|
+
|
|
197
|
+
updatedAt: string | null;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
201
|
+
*/
|
|
202
|
+
userId: string;
|
|
203
|
+
}
|
|
118
204
|
}
|
|
119
205
|
|
|
120
206
|
export interface FlowRetrieveResponse {
|
|
121
|
-
data:
|
|
207
|
+
data: FlowRetrieveResponse.Data;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export namespace FlowRetrieveResponse {
|
|
211
|
+
export interface Data {
|
|
212
|
+
id: string;
|
|
213
|
+
|
|
214
|
+
blockedAt: string | null;
|
|
215
|
+
|
|
216
|
+
consecutiveFailures: number;
|
|
217
|
+
|
|
218
|
+
cooldownScope: 'flow' | 'device';
|
|
219
|
+
|
|
220
|
+
cooldownSeconds: number | null;
|
|
221
|
+
|
|
222
|
+
createdAt: string | null;
|
|
223
|
+
|
|
224
|
+
createdBy: string | null;
|
|
225
|
+
|
|
226
|
+
description: string | null;
|
|
227
|
+
|
|
228
|
+
deviceIds: Array<string>;
|
|
229
|
+
|
|
230
|
+
enabled: boolean;
|
|
231
|
+
|
|
232
|
+
healthMonitoringEnabled: boolean;
|
|
233
|
+
|
|
234
|
+
lastFailureAt: string | null;
|
|
235
|
+
|
|
236
|
+
lastFailureCode:
|
|
237
|
+
| 'device_not_found'
|
|
238
|
+
| 'permission_denied'
|
|
239
|
+
| 'client_error'
|
|
240
|
+
| 'transient'
|
|
241
|
+
| 'logic'
|
|
242
|
+
| 'invalid_config'
|
|
243
|
+
| null;
|
|
244
|
+
|
|
245
|
+
lastTriggeredAt: string | null;
|
|
246
|
+
|
|
247
|
+
name: string;
|
|
248
|
+
|
|
249
|
+
notifyOnFailure: boolean;
|
|
250
|
+
|
|
251
|
+
notifyOnSuccess: boolean;
|
|
252
|
+
|
|
253
|
+
notifyWebhookId: string | null;
|
|
254
|
+
|
|
255
|
+
ownerId: string;
|
|
256
|
+
|
|
257
|
+
recordingEnabled: boolean;
|
|
258
|
+
|
|
259
|
+
selfHealingEnabled: boolean;
|
|
260
|
+
|
|
261
|
+
selfHealingMaxAttempts: number;
|
|
262
|
+
|
|
263
|
+
status: 'healthy' | 'failing' | 'blocked';
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
|
|
267
|
+
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
268
|
+
* a whole-token null stays JSON null). Existing flows stay 1; new flows default
|
|
269
|
+
* to 2.
|
|
270
|
+
*/
|
|
271
|
+
templateResolutionVersion: number;
|
|
272
|
+
|
|
273
|
+
triggerId: string;
|
|
274
|
+
|
|
275
|
+
updatedAt: string | null;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
279
|
+
*/
|
|
280
|
+
userId: string;
|
|
281
|
+
}
|
|
122
282
|
}
|
|
123
283
|
|
|
124
284
|
export interface FlowUpdateResponse {
|
|
125
|
-
data:
|
|
285
|
+
data: FlowUpdateResponse.Data;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export namespace FlowUpdateResponse {
|
|
289
|
+
export interface Data {
|
|
290
|
+
id: string;
|
|
291
|
+
|
|
292
|
+
blockedAt: string | null;
|
|
293
|
+
|
|
294
|
+
consecutiveFailures: number;
|
|
295
|
+
|
|
296
|
+
cooldownScope: 'flow' | 'device';
|
|
297
|
+
|
|
298
|
+
cooldownSeconds: number | null;
|
|
299
|
+
|
|
300
|
+
createdAt: string | null;
|
|
301
|
+
|
|
302
|
+
createdBy: string | null;
|
|
303
|
+
|
|
304
|
+
description: string | null;
|
|
305
|
+
|
|
306
|
+
deviceIds: Array<string>;
|
|
307
|
+
|
|
308
|
+
enabled: boolean;
|
|
309
|
+
|
|
310
|
+
healthMonitoringEnabled: boolean;
|
|
311
|
+
|
|
312
|
+
lastFailureAt: string | null;
|
|
313
|
+
|
|
314
|
+
lastFailureCode:
|
|
315
|
+
| 'device_not_found'
|
|
316
|
+
| 'permission_denied'
|
|
317
|
+
| 'client_error'
|
|
318
|
+
| 'transient'
|
|
319
|
+
| 'logic'
|
|
320
|
+
| 'invalid_config'
|
|
321
|
+
| null;
|
|
322
|
+
|
|
323
|
+
lastTriggeredAt: string | null;
|
|
324
|
+
|
|
325
|
+
name: string;
|
|
326
|
+
|
|
327
|
+
notifyOnFailure: boolean;
|
|
328
|
+
|
|
329
|
+
notifyOnSuccess: boolean;
|
|
330
|
+
|
|
331
|
+
notifyWebhookId: string | null;
|
|
332
|
+
|
|
333
|
+
ownerId: string;
|
|
334
|
+
|
|
335
|
+
recordingEnabled: boolean;
|
|
336
|
+
|
|
337
|
+
selfHealingEnabled: boolean;
|
|
338
|
+
|
|
339
|
+
selfHealingMaxAttempts: number;
|
|
340
|
+
|
|
341
|
+
status: 'healthy' | 'failing' | 'blocked';
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
|
|
345
|
+
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
346
|
+
* a whole-token null stays JSON null). Existing flows stay 1; new flows default
|
|
347
|
+
* to 2.
|
|
348
|
+
*/
|
|
349
|
+
templateResolutionVersion: number;
|
|
350
|
+
|
|
351
|
+
triggerId: string;
|
|
352
|
+
|
|
353
|
+
updatedAt: string | null;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
357
|
+
*/
|
|
358
|
+
userId: string;
|
|
359
|
+
}
|
|
126
360
|
}
|
|
127
361
|
|
|
128
362
|
export interface FlowListResponse {
|
|
129
|
-
items: Array<
|
|
363
|
+
items: Array<FlowListResponse.Item>;
|
|
130
364
|
|
|
131
365
|
pagination: Shared.Pagination;
|
|
132
366
|
}
|
|
133
367
|
|
|
368
|
+
export namespace FlowListResponse {
|
|
369
|
+
export interface Item {
|
|
370
|
+
id: string;
|
|
371
|
+
|
|
372
|
+
blockedAt: string | null;
|
|
373
|
+
|
|
374
|
+
consecutiveFailures: number;
|
|
375
|
+
|
|
376
|
+
cooldownScope: 'flow' | 'device';
|
|
377
|
+
|
|
378
|
+
cooldownSeconds: number | null;
|
|
379
|
+
|
|
380
|
+
createdAt: string | null;
|
|
381
|
+
|
|
382
|
+
createdBy: string | null;
|
|
383
|
+
|
|
384
|
+
description: string | null;
|
|
385
|
+
|
|
386
|
+
deviceIds: Array<string>;
|
|
387
|
+
|
|
388
|
+
enabled: boolean;
|
|
389
|
+
|
|
390
|
+
healthMonitoringEnabled: boolean;
|
|
391
|
+
|
|
392
|
+
lastFailureAt: string | null;
|
|
393
|
+
|
|
394
|
+
lastFailureCode:
|
|
395
|
+
| 'device_not_found'
|
|
396
|
+
| 'permission_denied'
|
|
397
|
+
| 'client_error'
|
|
398
|
+
| 'transient'
|
|
399
|
+
| 'logic'
|
|
400
|
+
| 'invalid_config'
|
|
401
|
+
| null;
|
|
402
|
+
|
|
403
|
+
lastTriggeredAt: string | null;
|
|
404
|
+
|
|
405
|
+
name: string;
|
|
406
|
+
|
|
407
|
+
notifyOnFailure: boolean;
|
|
408
|
+
|
|
409
|
+
notifyOnSuccess: boolean;
|
|
410
|
+
|
|
411
|
+
notifyWebhookId: string | null;
|
|
412
|
+
|
|
413
|
+
ownerId: string;
|
|
414
|
+
|
|
415
|
+
recordingEnabled: boolean;
|
|
416
|
+
|
|
417
|
+
selfHealingEnabled: boolean;
|
|
418
|
+
|
|
419
|
+
selfHealingMaxAttempts: number;
|
|
420
|
+
|
|
421
|
+
status: 'healthy' | 'failing' | 'blocked';
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
|
|
425
|
+
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
426
|
+
* a whole-token null stays JSON null). Existing flows stay 1; new flows default
|
|
427
|
+
* to 2.
|
|
428
|
+
*/
|
|
429
|
+
templateResolutionVersion: number;
|
|
430
|
+
|
|
431
|
+
triggerId: string;
|
|
432
|
+
|
|
433
|
+
updatedAt: string | null;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
437
|
+
*/
|
|
438
|
+
userId: string;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
134
442
|
export interface FlowDeleteResponse {
|
|
135
443
|
message: string;
|
|
136
444
|
}
|
|
137
445
|
|
|
138
446
|
export interface FlowCloneResponse {
|
|
139
|
-
data:
|
|
447
|
+
data: FlowCloneResponse.Data;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
export namespace FlowCloneResponse {
|
|
451
|
+
export interface Data {
|
|
452
|
+
id: string;
|
|
453
|
+
|
|
454
|
+
blockedAt: string | null;
|
|
455
|
+
|
|
456
|
+
consecutiveFailures: number;
|
|
457
|
+
|
|
458
|
+
cooldownScope: 'flow' | 'device';
|
|
459
|
+
|
|
460
|
+
cooldownSeconds: number | null;
|
|
461
|
+
|
|
462
|
+
createdAt: string | null;
|
|
463
|
+
|
|
464
|
+
createdBy: string | null;
|
|
465
|
+
|
|
466
|
+
description: string | null;
|
|
467
|
+
|
|
468
|
+
deviceIds: Array<string>;
|
|
469
|
+
|
|
470
|
+
enabled: boolean;
|
|
471
|
+
|
|
472
|
+
healthMonitoringEnabled: boolean;
|
|
473
|
+
|
|
474
|
+
lastFailureAt: string | null;
|
|
475
|
+
|
|
476
|
+
lastFailureCode:
|
|
477
|
+
| 'device_not_found'
|
|
478
|
+
| 'permission_denied'
|
|
479
|
+
| 'client_error'
|
|
480
|
+
| 'transient'
|
|
481
|
+
| 'logic'
|
|
482
|
+
| 'invalid_config'
|
|
483
|
+
| null;
|
|
484
|
+
|
|
485
|
+
lastTriggeredAt: string | null;
|
|
486
|
+
|
|
487
|
+
name: string;
|
|
488
|
+
|
|
489
|
+
notifyOnFailure: boolean;
|
|
490
|
+
|
|
491
|
+
notifyOnSuccess: boolean;
|
|
492
|
+
|
|
493
|
+
notifyWebhookId: string | null;
|
|
494
|
+
|
|
495
|
+
ownerId: string;
|
|
496
|
+
|
|
497
|
+
recordingEnabled: boolean;
|
|
498
|
+
|
|
499
|
+
selfHealingEnabled: boolean;
|
|
500
|
+
|
|
501
|
+
selfHealingMaxAttempts: number;
|
|
502
|
+
|
|
503
|
+
status: 'healthy' | 'failing' | 'blocked';
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
|
|
507
|
+
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
508
|
+
* a whole-token null stays JSON null). Existing flows stay 1; new flows default
|
|
509
|
+
* to 2.
|
|
510
|
+
*/
|
|
511
|
+
templateResolutionVersion: number;
|
|
512
|
+
|
|
513
|
+
triggerId: string;
|
|
514
|
+
|
|
515
|
+
updatedAt: string | null;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
519
|
+
*/
|
|
520
|
+
userId: string;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
export interface FlowDryRunResponse {
|
|
525
|
+
data: FlowDryRunResponse.Data;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
export namespace FlowDryRunResponse {
|
|
529
|
+
export interface Data {
|
|
530
|
+
actions: Array<Data.Action>;
|
|
531
|
+
|
|
532
|
+
activation: 'event' | 'schedule' | 'custom';
|
|
533
|
+
|
|
534
|
+
conditionsPassed: boolean | null;
|
|
535
|
+
|
|
536
|
+
gates: Data.Gates;
|
|
537
|
+
|
|
538
|
+
nextFireTime: string | null;
|
|
539
|
+
|
|
540
|
+
rateLimited: boolean;
|
|
541
|
+
|
|
542
|
+
validation: Data.Validation;
|
|
543
|
+
|
|
544
|
+
wouldFire: boolean;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
export namespace Data {
|
|
548
|
+
export interface Action {
|
|
549
|
+
continueOnError: boolean;
|
|
550
|
+
|
|
551
|
+
method: string;
|
|
552
|
+
|
|
553
|
+
name: string;
|
|
554
|
+
|
|
555
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Nested child actions (loop/branch bodies), each the same shape as a
|
|
559
|
+
* ResolvedAction.
|
|
560
|
+
*/
|
|
561
|
+
children?: Array<unknown>;
|
|
562
|
+
|
|
563
|
+
params?: { [key: string]: unknown };
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
export interface Gates {
|
|
567
|
+
blocked: boolean;
|
|
568
|
+
|
|
569
|
+
cooldownActive: boolean | null;
|
|
570
|
+
|
|
571
|
+
deviceAttached: boolean;
|
|
572
|
+
|
|
573
|
+
deviceIds: Array<string>;
|
|
574
|
+
|
|
575
|
+
enabled: boolean;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
export interface Validation {
|
|
579
|
+
valid: boolean;
|
|
580
|
+
|
|
581
|
+
errors?: Array<Validation.Error>;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
export namespace Validation {
|
|
585
|
+
export interface Error {
|
|
586
|
+
field: string;
|
|
587
|
+
|
|
588
|
+
message: string;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export interface FlowListRepairsResponse {
|
|
595
|
+
data: Array<FlowListRepairsResponse.Data>;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
export namespace FlowListRepairsResponse {
|
|
599
|
+
export interface Data {
|
|
600
|
+
id: string;
|
|
601
|
+
|
|
602
|
+
agentRunId: string | null;
|
|
603
|
+
|
|
604
|
+
attempt: number;
|
|
605
|
+
|
|
606
|
+
candidateSlug: string;
|
|
607
|
+
|
|
608
|
+
chatSessionId: string | null;
|
|
609
|
+
|
|
610
|
+
createdAt: string | null;
|
|
611
|
+
|
|
612
|
+
deviceId: string | null;
|
|
613
|
+
|
|
614
|
+
episode: number;
|
|
615
|
+
|
|
616
|
+
error: string | null;
|
|
617
|
+
|
|
618
|
+
failedStepIndex: number;
|
|
619
|
+
|
|
620
|
+
finishedAt: string | null;
|
|
621
|
+
|
|
622
|
+
flowId: string;
|
|
623
|
+
|
|
624
|
+
maxAttempts: number;
|
|
625
|
+
|
|
626
|
+
originalSlug: string;
|
|
627
|
+
|
|
628
|
+
sourceExecutionId: string;
|
|
629
|
+
|
|
630
|
+
startedAt: string | null;
|
|
631
|
+
|
|
632
|
+
status: 'pending' | 'running' | 'canary' | 'promoting' | 'repaired' | 'failed' | 'escalated';
|
|
633
|
+
|
|
634
|
+
updatedAt: string | null;
|
|
635
|
+
|
|
636
|
+
verdict: Data.Verdict | null;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
export namespace Data {
|
|
640
|
+
export interface Verdict {
|
|
641
|
+
outcome: 'ok' | 'flaky' | 'broken';
|
|
642
|
+
|
|
643
|
+
summary: string;
|
|
644
|
+
|
|
645
|
+
reason?: string;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
140
648
|
}
|
|
141
649
|
|
|
142
650
|
export interface FlowUnblockResponse {
|
|
143
|
-
data:
|
|
651
|
+
data: FlowUnblockResponse.Data;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
export namespace FlowUnblockResponse {
|
|
655
|
+
export interface Data {
|
|
656
|
+
id: string;
|
|
657
|
+
|
|
658
|
+
blockedAt: string | null;
|
|
659
|
+
|
|
660
|
+
consecutiveFailures: number;
|
|
661
|
+
|
|
662
|
+
cooldownScope: 'flow' | 'device';
|
|
663
|
+
|
|
664
|
+
cooldownSeconds: number | null;
|
|
665
|
+
|
|
666
|
+
createdAt: string | null;
|
|
667
|
+
|
|
668
|
+
createdBy: string | null;
|
|
669
|
+
|
|
670
|
+
description: string | null;
|
|
671
|
+
|
|
672
|
+
deviceIds: Array<string>;
|
|
673
|
+
|
|
674
|
+
enabled: boolean;
|
|
675
|
+
|
|
676
|
+
healthMonitoringEnabled: boolean;
|
|
677
|
+
|
|
678
|
+
lastFailureAt: string | null;
|
|
679
|
+
|
|
680
|
+
lastFailureCode:
|
|
681
|
+
| 'device_not_found'
|
|
682
|
+
| 'permission_denied'
|
|
683
|
+
| 'client_error'
|
|
684
|
+
| 'transient'
|
|
685
|
+
| 'logic'
|
|
686
|
+
| 'invalid_config'
|
|
687
|
+
| null;
|
|
688
|
+
|
|
689
|
+
lastTriggeredAt: string | null;
|
|
690
|
+
|
|
691
|
+
name: string;
|
|
692
|
+
|
|
693
|
+
notifyOnFailure: boolean;
|
|
694
|
+
|
|
695
|
+
notifyOnSuccess: boolean;
|
|
696
|
+
|
|
697
|
+
notifyWebhookId: string | null;
|
|
698
|
+
|
|
699
|
+
ownerId: string;
|
|
700
|
+
|
|
701
|
+
recordingEnabled: boolean;
|
|
702
|
+
|
|
703
|
+
selfHealingEnabled: boolean;
|
|
704
|
+
|
|
705
|
+
selfHealingMaxAttempts: number;
|
|
706
|
+
|
|
707
|
+
status: 'healthy' | 'failing' | 'blocked';
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
|
|
711
|
+
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
712
|
+
* a whole-token null stays JSON null). Existing flows stay 1; new flows default
|
|
713
|
+
* to 2.
|
|
714
|
+
*/
|
|
715
|
+
templateResolutionVersion: number;
|
|
716
|
+
|
|
717
|
+
triggerId: string;
|
|
718
|
+
|
|
719
|
+
updatedAt: string | null;
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
723
|
+
*/
|
|
724
|
+
userId: string;
|
|
725
|
+
}
|
|
144
726
|
}
|
|
145
727
|
|
|
146
728
|
export interface FlowCreateParams {
|
|
@@ -168,6 +750,8 @@ export interface FlowCreateParams {
|
|
|
168
750
|
|
|
169
751
|
notifyWebhookId?: string | null;
|
|
170
752
|
|
|
753
|
+
recordingEnabled?: boolean;
|
|
754
|
+
|
|
171
755
|
selfHealingEnabled?: boolean;
|
|
172
756
|
|
|
173
757
|
selfHealingMaxAttempts?: number;
|
|
@@ -179,13 +763,37 @@ export namespace FlowCreateParams {
|
|
|
179
763
|
|
|
180
764
|
position: number;
|
|
181
765
|
|
|
182
|
-
children?: Array<
|
|
766
|
+
children?: Array<Action.Child>;
|
|
183
767
|
|
|
184
768
|
continueOnError?: boolean;
|
|
185
769
|
|
|
186
770
|
nameOverride?: string;
|
|
187
771
|
|
|
188
|
-
overrides?:
|
|
772
|
+
overrides?: Action.Overrides | null;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
export namespace Action {
|
|
776
|
+
export interface Child {
|
|
777
|
+
actionId: string;
|
|
778
|
+
|
|
779
|
+
position: number;
|
|
780
|
+
|
|
781
|
+
continueOnError?: boolean;
|
|
782
|
+
|
|
783
|
+
nameOverride?: string;
|
|
784
|
+
|
|
785
|
+
overrides?: Child.Overrides | null;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
export namespace Child {
|
|
789
|
+
export interface Overrides {
|
|
790
|
+
params?: { [key: string]: unknown };
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
export interface Overrides {
|
|
795
|
+
params?: { [key: string]: unknown };
|
|
796
|
+
}
|
|
189
797
|
}
|
|
190
798
|
}
|
|
191
799
|
|
|
@@ -210,6 +818,8 @@ export interface FlowUpdateParams {
|
|
|
210
818
|
|
|
211
819
|
notifyWebhookId?: string | null;
|
|
212
820
|
|
|
821
|
+
recordingEnabled?: boolean;
|
|
822
|
+
|
|
213
823
|
selfHealingEnabled?: boolean;
|
|
214
824
|
|
|
215
825
|
selfHealingMaxAttempts?: number;
|
|
@@ -251,28 +861,32 @@ export interface FlowCloneParams {
|
|
|
251
861
|
name?: string;
|
|
252
862
|
}
|
|
253
863
|
|
|
864
|
+
export interface FlowDryRunParams {
|
|
865
|
+
payload?: { [key: string]: unknown };
|
|
866
|
+
}
|
|
867
|
+
|
|
254
868
|
Flows.Actions = Actions;
|
|
255
869
|
|
|
256
870
|
export declare namespace Flows {
|
|
257
871
|
export {
|
|
258
|
-
type FlowActionOverrides as FlowActionOverrides,
|
|
259
|
-
type FlowChildActionInput as FlowChildActionInput,
|
|
260
872
|
type FlowCreateResponse as FlowCreateResponse,
|
|
261
873
|
type FlowRetrieveResponse as FlowRetrieveResponse,
|
|
262
874
|
type FlowUpdateResponse as FlowUpdateResponse,
|
|
263
875
|
type FlowListResponse as FlowListResponse,
|
|
264
876
|
type FlowDeleteResponse as FlowDeleteResponse,
|
|
265
877
|
type FlowCloneResponse as FlowCloneResponse,
|
|
878
|
+
type FlowDryRunResponse as FlowDryRunResponse,
|
|
879
|
+
type FlowListRepairsResponse as FlowListRepairsResponse,
|
|
266
880
|
type FlowUnblockResponse as FlowUnblockResponse,
|
|
267
881
|
type FlowCreateParams as FlowCreateParams,
|
|
268
882
|
type FlowUpdateParams as FlowUpdateParams,
|
|
269
883
|
type FlowListParams as FlowListParams,
|
|
270
884
|
type FlowCloneParams as FlowCloneParams,
|
|
885
|
+
type FlowDryRunParams as FlowDryRunParams,
|
|
271
886
|
};
|
|
272
887
|
|
|
273
888
|
export {
|
|
274
889
|
Actions as Actions,
|
|
275
|
-
type FlowAction as FlowAction,
|
|
276
890
|
type ActionListResponse as ActionListResponse,
|
|
277
891
|
type ActionAddResponse as ActionAddResponse,
|
|
278
892
|
type ActionRemoveResponse as ActionRemoveResponse,
|