@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,3 +1,230 @@
|
|
|
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 { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class Events extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Simulate an event against all configured flows. Returns which flows would match
|
|
10
|
+
* and what actions would run, without storing the event or enqueuing jobs.
|
|
11
|
+
*/
|
|
12
|
+
dryRun(body: EventDryRunParams, options?: RequestOptions): APIPromise<EventDryRunResponse> {
|
|
13
|
+
return this._client.post('/events/dry-run', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Ingest an event for trigger evaluation. Returns immediately with 202 Accepted.
|
|
18
|
+
*/
|
|
19
|
+
ingest(body: EventIngestParams, options?: RequestOptions): APIPromise<EventIngestResponse> {
|
|
20
|
+
return this._client.post('/events/ingest', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface EventDryRunResponse {
|
|
25
|
+
data: EventDryRunResponse.Data;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export namespace EventDryRunResponse {
|
|
29
|
+
export interface Data {
|
|
30
|
+
matchedFlows: Array<Data.MatchedFlow>;
|
|
31
|
+
|
|
32
|
+
validation: Data.Validation;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export namespace Data {
|
|
36
|
+
export interface MatchedFlow {
|
|
37
|
+
actions: Array<MatchedFlow.Action>;
|
|
38
|
+
|
|
39
|
+
flow: MatchedFlow.Flow;
|
|
40
|
+
|
|
41
|
+
gates: MatchedFlow.Gates;
|
|
42
|
+
|
|
43
|
+
trigger: MatchedFlow.Trigger;
|
|
44
|
+
|
|
45
|
+
wouldFire: boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export namespace MatchedFlow {
|
|
49
|
+
export interface Action {
|
|
50
|
+
continueOnError: boolean;
|
|
51
|
+
|
|
52
|
+
method: string;
|
|
53
|
+
|
|
54
|
+
name: string;
|
|
55
|
+
|
|
56
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Nested child actions (loop/branch bodies), each the same shape as a
|
|
60
|
+
* ResolvedAction.
|
|
61
|
+
*/
|
|
62
|
+
children?: Array<unknown>;
|
|
63
|
+
|
|
64
|
+
params?: { [key: string]: unknown };
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface Flow {
|
|
68
|
+
id: string;
|
|
69
|
+
|
|
70
|
+
blockedAt: string | null;
|
|
71
|
+
|
|
72
|
+
consecutiveFailures: number;
|
|
73
|
+
|
|
74
|
+
cooldownScope: 'flow' | 'device';
|
|
75
|
+
|
|
76
|
+
cooldownSeconds: number | null;
|
|
77
|
+
|
|
78
|
+
createdAt: string | null;
|
|
79
|
+
|
|
80
|
+
createdBy: string | null;
|
|
81
|
+
|
|
82
|
+
description: string | null;
|
|
83
|
+
|
|
84
|
+
deviceIds: Array<string>;
|
|
85
|
+
|
|
86
|
+
enabled: boolean;
|
|
87
|
+
|
|
88
|
+
healthMonitoringEnabled: boolean;
|
|
89
|
+
|
|
90
|
+
lastFailureAt: string | null;
|
|
91
|
+
|
|
92
|
+
lastFailureCode:
|
|
93
|
+
| 'device_not_found'
|
|
94
|
+
| 'permission_denied'
|
|
95
|
+
| 'client_error'
|
|
96
|
+
| 'transient'
|
|
97
|
+
| 'logic'
|
|
98
|
+
| 'invalid_config'
|
|
99
|
+
| null;
|
|
100
|
+
|
|
101
|
+
lastTriggeredAt: string | null;
|
|
102
|
+
|
|
103
|
+
name: string;
|
|
104
|
+
|
|
105
|
+
notifyOnFailure: boolean;
|
|
106
|
+
|
|
107
|
+
notifyOnSuccess: boolean;
|
|
108
|
+
|
|
109
|
+
notifyWebhookId: string | null;
|
|
110
|
+
|
|
111
|
+
ownerId: string;
|
|
112
|
+
|
|
113
|
+
recordingEnabled: boolean;
|
|
114
|
+
|
|
115
|
+
selfHealingEnabled: boolean;
|
|
116
|
+
|
|
117
|
+
selfHealingMaxAttempts: number;
|
|
118
|
+
|
|
119
|
+
status: 'healthy' | 'failing' | 'blocked';
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
|
|
123
|
+
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
124
|
+
* a whole-token null stays JSON null). Existing flows stay 1; new flows default
|
|
125
|
+
* to 2.
|
|
126
|
+
*/
|
|
127
|
+
templateResolutionVersion: number;
|
|
128
|
+
|
|
129
|
+
triggerId: string;
|
|
130
|
+
|
|
131
|
+
updatedAt: string | null;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
135
|
+
*/
|
|
136
|
+
userId: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface Gates {
|
|
140
|
+
blocked: boolean;
|
|
141
|
+
|
|
142
|
+
cooldownActive: boolean | null;
|
|
143
|
+
|
|
144
|
+
deviceAttached: boolean;
|
|
145
|
+
|
|
146
|
+
deviceIds: Array<string>;
|
|
147
|
+
|
|
148
|
+
enabled: boolean;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface Trigger {
|
|
152
|
+
id: string;
|
|
153
|
+
|
|
154
|
+
activation: 'event' | 'schedule' | 'custom';
|
|
155
|
+
|
|
156
|
+
createdAt: string | null;
|
|
157
|
+
|
|
158
|
+
createdBy: string | null;
|
|
159
|
+
|
|
160
|
+
customPayloadSchema: { [key: string]: unknown } | null;
|
|
161
|
+
|
|
162
|
+
description: string | null;
|
|
163
|
+
|
|
164
|
+
eventType: string | null;
|
|
165
|
+
|
|
166
|
+
name: string;
|
|
167
|
+
|
|
168
|
+
ownerId: string;
|
|
169
|
+
|
|
170
|
+
scheduleRule: unknown;
|
|
171
|
+
|
|
172
|
+
timezone: string | null;
|
|
173
|
+
|
|
174
|
+
updatedAt: string | null;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
178
|
+
*/
|
|
179
|
+
userId: string;
|
|
180
|
+
|
|
181
|
+
conditions?: unknown;
|
|
182
|
+
|
|
183
|
+
nextFireTime?: string | null;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export interface Validation {
|
|
188
|
+
valid: boolean;
|
|
189
|
+
|
|
190
|
+
errors?: Array<Validation.Error>;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export namespace Validation {
|
|
194
|
+
export interface Error {
|
|
195
|
+
field: string;
|
|
196
|
+
|
|
197
|
+
message: string;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface EventIngestResponse {
|
|
204
|
+
eventId: string;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export interface EventDryRunParams {
|
|
208
|
+
eventType: string;
|
|
209
|
+
|
|
210
|
+
deviceId?: string;
|
|
211
|
+
|
|
212
|
+
payload?: { [key: string]: unknown };
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface EventIngestParams {
|
|
216
|
+
eventType: string;
|
|
217
|
+
|
|
218
|
+
deviceId?: string;
|
|
219
|
+
|
|
220
|
+
payload?: { [key: string]: unknown };
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export declare namespace Events {
|
|
224
|
+
export {
|
|
225
|
+
type EventDryRunResponse as EventDryRunResponse,
|
|
226
|
+
type EventIngestResponse as EventIngestResponse,
|
|
227
|
+
type EventDryRunParams as EventDryRunParams,
|
|
228
|
+
type EventIngestParams as EventIngestParams,
|
|
229
|
+
};
|
|
230
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as ExecutionsAPI from './executions';
|
|
5
4
|
import * as Shared from '../shared';
|
|
6
5
|
import { APIPromise } from '../../core/api-promise';
|
|
7
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -28,6 +27,14 @@ export class Executions extends APIResource {
|
|
|
28
27
|
return this._client.get('/executions', { query, ...options });
|
|
29
28
|
}
|
|
30
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Signals the worker to stop the execution between steps and marks it cancelled.
|
|
32
|
+
* Idempotent-ish: already-terminal executions return 409.
|
|
33
|
+
*/
|
|
34
|
+
abort(executionID: string, options?: RequestOptions): APIPromise<ExecutionAbortResponse> {
|
|
35
|
+
return this._client.post(path`/executions/${executionID}/abort`, options);
|
|
36
|
+
}
|
|
37
|
+
|
|
31
38
|
/**
|
|
32
39
|
* Return aggregate execution metrics — total count, counts by status, average
|
|
33
40
|
* duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
|
|
@@ -41,54 +48,61 @@ export class Executions extends APIResource {
|
|
|
41
48
|
}
|
|
42
49
|
}
|
|
43
50
|
|
|
44
|
-
export interface
|
|
45
|
-
|
|
51
|
+
export interface ExecutionRetrieveResponse {
|
|
52
|
+
data: ExecutionRetrieveResponse.Data;
|
|
53
|
+
}
|
|
46
54
|
|
|
47
|
-
|
|
55
|
+
export namespace ExecutionRetrieveResponse {
|
|
56
|
+
export interface Data {
|
|
57
|
+
id: string;
|
|
48
58
|
|
|
49
|
-
|
|
59
|
+
createdBy: string | null;
|
|
50
60
|
|
|
51
|
-
|
|
61
|
+
error: string | null;
|
|
52
62
|
|
|
53
|
-
|
|
63
|
+
eventId: string | null;
|
|
54
64
|
|
|
55
|
-
|
|
65
|
+
/**
|
|
66
|
+
* Files produced by files.upload steps, plus files an agent.run step reported on
|
|
67
|
+
* its terminal response (agent-created output or a workflow upload minted during
|
|
68
|
+
* the turn); derived server-side at read time.
|
|
69
|
+
*/
|
|
70
|
+
files: Array<Data.File>;
|
|
56
71
|
|
|
57
|
-
|
|
72
|
+
finishedAt: string | null;
|
|
58
73
|
|
|
59
|
-
|
|
74
|
+
flowId: string;
|
|
60
75
|
|
|
61
|
-
|
|
76
|
+
flowName: string | null;
|
|
62
77
|
|
|
63
|
-
|
|
78
|
+
kind: 'live' | 'dry_run';
|
|
64
79
|
|
|
65
|
-
|
|
80
|
+
recordingDeviceId: string | null;
|
|
66
81
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
* clients must not assume its presence.
|
|
74
|
-
*/
|
|
75
|
-
result?: unknown;
|
|
76
|
-
}
|
|
82
|
+
/**
|
|
83
|
+
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
84
|
+
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
85
|
+
* the recording failed to start.
|
|
86
|
+
*/
|
|
87
|
+
recordingId: string | null;
|
|
77
88
|
|
|
78
|
-
|
|
79
|
-
data: ExecutionRetrieveResponse.Data;
|
|
80
|
-
}
|
|
89
|
+
startedAt: string | null;
|
|
81
90
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
91
|
+
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
92
|
+
|
|
93
|
+
triggerId: string;
|
|
94
|
+
|
|
95
|
+
triggerName: string | null;
|
|
85
96
|
|
|
86
97
|
/**
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
98
|
+
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
99
|
+
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
100
|
+
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
101
|
+
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
102
|
+
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
103
|
+
* clients must not assume its presence.
|
|
90
104
|
*/
|
|
91
|
-
|
|
105
|
+
result?: unknown;
|
|
92
106
|
}
|
|
93
107
|
|
|
94
108
|
export namespace Data {
|
|
@@ -111,8 +125,98 @@ export interface ExecutionListResponse {
|
|
|
111
125
|
}
|
|
112
126
|
|
|
113
127
|
export namespace ExecutionListResponse {
|
|
114
|
-
export interface Item
|
|
128
|
+
export interface Item {
|
|
129
|
+
id: string;
|
|
130
|
+
|
|
115
131
|
createdBy: string | null;
|
|
132
|
+
|
|
133
|
+
error: string | null;
|
|
134
|
+
|
|
135
|
+
eventId: string | null;
|
|
136
|
+
|
|
137
|
+
finishedAt: string | null;
|
|
138
|
+
|
|
139
|
+
flowId: string;
|
|
140
|
+
|
|
141
|
+
flowName: string | null;
|
|
142
|
+
|
|
143
|
+
kind: 'live' | 'dry_run';
|
|
144
|
+
|
|
145
|
+
recordingDeviceId: string | null;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
149
|
+
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
150
|
+
* the recording failed to start.
|
|
151
|
+
*/
|
|
152
|
+
recordingId: string | null;
|
|
153
|
+
|
|
154
|
+
startedAt: string | null;
|
|
155
|
+
|
|
156
|
+
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
157
|
+
|
|
158
|
+
triggerId: string;
|
|
159
|
+
|
|
160
|
+
triggerName: string | null;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
164
|
+
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
165
|
+
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
166
|
+
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
167
|
+
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
168
|
+
* clients must not assume its presence.
|
|
169
|
+
*/
|
|
170
|
+
result?: unknown;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface ExecutionAbortResponse {
|
|
175
|
+
data: ExecutionAbortResponse.Data;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export namespace ExecutionAbortResponse {
|
|
179
|
+
export interface Data {
|
|
180
|
+
id: string;
|
|
181
|
+
|
|
182
|
+
error: string | null;
|
|
183
|
+
|
|
184
|
+
eventId: string | null;
|
|
185
|
+
|
|
186
|
+
finishedAt: string | null;
|
|
187
|
+
|
|
188
|
+
flowId: string;
|
|
189
|
+
|
|
190
|
+
flowName: string | null;
|
|
191
|
+
|
|
192
|
+
kind: 'live' | 'dry_run';
|
|
193
|
+
|
|
194
|
+
recordingDeviceId: string | null;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
198
|
+
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
199
|
+
* the recording failed to start.
|
|
200
|
+
*/
|
|
201
|
+
recordingId: string | null;
|
|
202
|
+
|
|
203
|
+
startedAt: string | null;
|
|
204
|
+
|
|
205
|
+
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
206
|
+
|
|
207
|
+
triggerId: string;
|
|
208
|
+
|
|
209
|
+
triggerName: string | null;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
213
|
+
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
214
|
+
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
215
|
+
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
216
|
+
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
217
|
+
* clients must not assume its presence.
|
|
218
|
+
*/
|
|
219
|
+
result?: unknown;
|
|
116
220
|
}
|
|
117
221
|
}
|
|
118
222
|
|
|
@@ -184,9 +288,9 @@ export interface ExecutionGetMetricsParams {
|
|
|
184
288
|
|
|
185
289
|
export declare namespace Executions {
|
|
186
290
|
export {
|
|
187
|
-
type FlowExecution as FlowExecution,
|
|
188
291
|
type ExecutionRetrieveResponse as ExecutionRetrieveResponse,
|
|
189
292
|
type ExecutionListResponse as ExecutionListResponse,
|
|
293
|
+
type ExecutionAbortResponse as ExecutionAbortResponse,
|
|
190
294
|
type ExecutionGetMetricsResponse as ExecutionGetMetricsResponse,
|
|
191
295
|
type ExecutionListParams as ExecutionListParams,
|
|
192
296
|
type ExecutionGetMetricsParams as ExecutionGetMetricsParams,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as FlowsAPI from './flows';
|
|
5
4
|
import { APIPromise } from '../../../core/api-promise';
|
|
6
5
|
import { RequestOptions } from '../../../internal/request-options';
|
|
7
6
|
import { path } from '../../../internal/utils/path';
|
|
@@ -53,38 +52,68 @@ export class Actions extends APIResource {
|
|
|
53
52
|
}
|
|
54
53
|
}
|
|
55
54
|
|
|
56
|
-
export interface
|
|
57
|
-
|
|
55
|
+
export interface ActionListResponse {
|
|
56
|
+
data: Array<ActionListResponse.Data>;
|
|
57
|
+
}
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
export namespace ActionListResponse {
|
|
60
|
+
export interface Data {
|
|
61
|
+
id: string;
|
|
60
62
|
|
|
61
|
-
|
|
63
|
+
actionId: string;
|
|
62
64
|
|
|
63
|
-
|
|
65
|
+
continueOnError: boolean;
|
|
64
66
|
|
|
65
|
-
|
|
67
|
+
createdAt: string | null;
|
|
66
68
|
|
|
67
|
-
|
|
69
|
+
flowId: string;
|
|
68
70
|
|
|
69
|
-
|
|
71
|
+
nameOverride: string | null;
|
|
70
72
|
|
|
71
|
-
|
|
73
|
+
overrides: Data.Overrides | null;
|
|
72
74
|
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
+
parentFlowActionId: string | null;
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
export interface Overrides {
|
|
78
|
-
params?: { [key: string]: unknown };
|
|
77
|
+
position: number;
|
|
79
78
|
}
|
|
80
|
-
}
|
|
81
79
|
|
|
82
|
-
export
|
|
83
|
-
|
|
80
|
+
export namespace Data {
|
|
81
|
+
export interface Overrides {
|
|
82
|
+
params?: { [key: string]: unknown };
|
|
83
|
+
}
|
|
84
|
+
}
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
export interface ActionAddResponse {
|
|
87
|
-
data:
|
|
88
|
+
data: ActionAddResponse.Data;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export namespace ActionAddResponse {
|
|
92
|
+
export interface Data {
|
|
93
|
+
id: string;
|
|
94
|
+
|
|
95
|
+
actionId: string;
|
|
96
|
+
|
|
97
|
+
continueOnError: boolean;
|
|
98
|
+
|
|
99
|
+
createdAt: string | null;
|
|
100
|
+
|
|
101
|
+
flowId: string;
|
|
102
|
+
|
|
103
|
+
nameOverride: string | null;
|
|
104
|
+
|
|
105
|
+
overrides: Data.Overrides | null;
|
|
106
|
+
|
|
107
|
+
parentFlowActionId: string | null;
|
|
108
|
+
|
|
109
|
+
position: number;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export namespace Data {
|
|
113
|
+
export interface Overrides {
|
|
114
|
+
params?: { [key: string]: unknown };
|
|
115
|
+
}
|
|
116
|
+
}
|
|
88
117
|
}
|
|
89
118
|
|
|
90
119
|
export interface ActionRemoveResponse {
|
|
@@ -92,7 +121,35 @@ export interface ActionRemoveResponse {
|
|
|
92
121
|
}
|
|
93
122
|
|
|
94
123
|
export interface ActionReplaceResponse {
|
|
95
|
-
data: Array<
|
|
124
|
+
data: Array<ActionReplaceResponse.Data>;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export namespace ActionReplaceResponse {
|
|
128
|
+
export interface Data {
|
|
129
|
+
id: string;
|
|
130
|
+
|
|
131
|
+
actionId: string;
|
|
132
|
+
|
|
133
|
+
continueOnError: boolean;
|
|
134
|
+
|
|
135
|
+
createdAt: string | null;
|
|
136
|
+
|
|
137
|
+
flowId: string;
|
|
138
|
+
|
|
139
|
+
nameOverride: string | null;
|
|
140
|
+
|
|
141
|
+
overrides: Data.Overrides | null;
|
|
142
|
+
|
|
143
|
+
parentFlowActionId: string | null;
|
|
144
|
+
|
|
145
|
+
position: number;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export namespace Data {
|
|
149
|
+
export interface Overrides {
|
|
150
|
+
params?: { [key: string]: unknown };
|
|
151
|
+
}
|
|
152
|
+
}
|
|
96
153
|
}
|
|
97
154
|
|
|
98
155
|
export interface ActionAddParams {
|
|
@@ -100,17 +157,41 @@ export interface ActionAddParams {
|
|
|
100
157
|
|
|
101
158
|
position: number;
|
|
102
159
|
|
|
103
|
-
children?: Array<
|
|
160
|
+
children?: Array<ActionAddParams.Child>;
|
|
104
161
|
|
|
105
162
|
continueOnError?: boolean;
|
|
106
163
|
|
|
107
164
|
nameOverride?: string;
|
|
108
165
|
|
|
109
|
-
overrides?:
|
|
166
|
+
overrides?: ActionAddParams.Overrides | null;
|
|
110
167
|
|
|
111
168
|
parentFlowActionId?: string | null;
|
|
112
169
|
}
|
|
113
170
|
|
|
171
|
+
export namespace ActionAddParams {
|
|
172
|
+
export interface Child {
|
|
173
|
+
actionId: string;
|
|
174
|
+
|
|
175
|
+
position: number;
|
|
176
|
+
|
|
177
|
+
continueOnError?: boolean;
|
|
178
|
+
|
|
179
|
+
nameOverride?: string;
|
|
180
|
+
|
|
181
|
+
overrides?: Child.Overrides | null;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export namespace Child {
|
|
185
|
+
export interface Overrides {
|
|
186
|
+
params?: { [key: string]: unknown };
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export interface Overrides {
|
|
191
|
+
params?: { [key: string]: unknown };
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
114
195
|
export interface ActionRemoveParams {
|
|
115
196
|
flowId: string;
|
|
116
197
|
}
|
|
@@ -125,19 +206,42 @@ export namespace ActionReplaceParams {
|
|
|
125
206
|
|
|
126
207
|
position: number;
|
|
127
208
|
|
|
128
|
-
children?: Array<
|
|
209
|
+
children?: Array<Action.Child>;
|
|
129
210
|
|
|
130
211
|
continueOnError?: boolean;
|
|
131
212
|
|
|
132
213
|
nameOverride?: string;
|
|
133
214
|
|
|
134
|
-
overrides?:
|
|
215
|
+
overrides?: Action.Overrides | null;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export namespace Action {
|
|
219
|
+
export interface Child {
|
|
220
|
+
actionId: string;
|
|
221
|
+
|
|
222
|
+
position: number;
|
|
223
|
+
|
|
224
|
+
continueOnError?: boolean;
|
|
225
|
+
|
|
226
|
+
nameOverride?: string;
|
|
227
|
+
|
|
228
|
+
overrides?: Child.Overrides | null;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export namespace Child {
|
|
232
|
+
export interface Overrides {
|
|
233
|
+
params?: { [key: string]: unknown };
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export interface Overrides {
|
|
238
|
+
params?: { [key: string]: unknown };
|
|
239
|
+
}
|
|
135
240
|
}
|
|
136
241
|
}
|
|
137
242
|
|
|
138
243
|
export declare namespace Actions {
|
|
139
244
|
export {
|
|
140
|
-
type FlowAction as FlowAction,
|
|
141
245
|
type ActionListResponse as ActionListResponse,
|
|
142
246
|
type ActionAddResponse as ActionAddResponse,
|
|
143
247
|
type ActionRemoveResponse as ActionRemoveResponse,
|