@mobilerun/sdk 5.4.0 → 5.6.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 +17 -0
- package/client.d.mts +10 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -13
- package/client.d.ts.map +1 -1
- package/client.js +1 -3
- package/client.js.map +1 -1
- package/client.mjs +2 -4
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +23 -12
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +23 -12
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +8 -3
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +8 -3
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +33 -21
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +33 -21
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +16 -15
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +16 -15
- package/resources/assistant/conversations.mjs.map +1 -1
- package/resources/connect/connect.d.mts +2 -2
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +2 -2
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +118 -19
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +118 -19
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +19 -0
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +19 -0
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/devices/apps.d.mts +37 -17
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +37 -17
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +15 -14
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +15 -14
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/browser.d.mts +9 -3
- package/resources/devices/browser.d.mts.map +1 -1
- package/resources/devices/browser.d.ts +9 -3
- package/resources/devices/browser.d.ts.map +1 -1
- package/resources/devices/browser.js +9 -3
- package/resources/devices/browser.js.map +1 -1
- package/resources/devices/browser.mjs +9 -3
- package/resources/devices/browser.mjs.map +1 -1
- package/resources/devices/devices.d.mts +81 -27
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +81 -27
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +24 -11
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +24 -11
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +2 -1
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +2 -1
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +3 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +1 -0
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +9 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +9 -3
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.js +3 -3
- package/resources/devices/keyboard.mjs +3 -3
- package/resources/devices/recordings.d.mts +13 -0
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +13 -0
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.d.mts +163 -0
- package/resources/devices/traffic-sessions.d.mts.map +1 -0
- package/resources/devices/traffic-sessions.d.ts +163 -0
- package/resources/devices/traffic-sessions.d.ts.map +1 -0
- package/resources/devices/traffic-sessions.js +37 -0
- package/resources/devices/traffic-sessions.js.map +1 -0
- package/resources/devices/traffic-sessions.mjs +33 -0
- package/resources/devices/traffic-sessions.mjs.map +1 -0
- package/resources/files.d.mts +77 -19
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +77 -19
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +2 -10
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -10
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +5 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -2
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +64 -0
- package/resources/mailboxes/connections.d.mts.map +1 -0
- package/resources/mailboxes/connections.d.ts +64 -0
- package/resources/mailboxes/connections.d.ts.map +1 -0
- package/resources/mailboxes/connections.js +42 -0
- package/resources/mailboxes/connections.js.map +1 -0
- package/resources/mailboxes/connections.mjs +38 -0
- package/resources/mailboxes/connections.mjs.map +1 -0
- package/resources/mailboxes/index.d.mts +2 -1
- package/resources/mailboxes/index.d.mts.map +1 -1
- package/resources/mailboxes/index.d.ts +2 -1
- package/resources/mailboxes/index.d.ts.map +1 -1
- package/resources/mailboxes/index.js +3 -1
- package/resources/mailboxes/index.js.map +1 -1
- package/resources/mailboxes/index.mjs +1 -0
- package/resources/mailboxes/index.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +107 -50
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +107 -50
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +34 -24
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +34 -24
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/mailboxes/messages.d.mts +2 -2
- package/resources/mailboxes/messages.d.ts +2 -2
- package/resources/mailboxes/messages.js +2 -2
- package/resources/mailboxes/messages.mjs +2 -2
- package/resources/messages/conversations.d.mts +4 -15
- package/resources/messages/conversations.d.mts.map +1 -1
- package/resources/messages/conversations.d.ts +4 -15
- package/resources/messages/conversations.d.ts.map +1 -1
- package/resources/messages/conversations.js +4 -15
- package/resources/messages/conversations.js.map +1 -1
- package/resources/messages/conversations.mjs +4 -15
- package/resources/messages/conversations.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +28 -5
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +28 -5
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +11 -4
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +11 -4
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/notifications.d.mts +27 -1
- package/resources/notifications.d.mts.map +1 -1
- package/resources/notifications.d.ts +27 -1
- package/resources/notifications.d.ts.map +1 -1
- package/resources/notifications.js +17 -0
- package/resources/notifications.js.map +1 -1
- package/resources/notifications.mjs +17 -0
- package/resources/notifications.mjs.map +1 -1
- package/resources/numbers/index.d.mts +2 -2
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +2 -2
- package/resources/numbers/index.d.ts.map +1 -1
- package/resources/numbers/index.js.map +1 -1
- package/resources/numbers/index.mjs +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +60 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +60 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +21 -0
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +21 -0
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +167 -46
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +167 -46
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +25 -40
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +26 -41
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/store/apps.d.mts +23 -2
- package/resources/store/apps.d.mts.map +1 -1
- package/resources/store/apps.d.ts +23 -2
- package/resources/store/apps.d.ts.map +1 -1
- package/resources/tasks/tasks.d.mts +84 -75
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +84 -75
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +2 -10
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +2 -10
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +22 -31
- package/resources/webhooks/deliveries.d.mts.map +1 -1
- package/resources/webhooks/deliveries.d.ts +22 -31
- package/resources/webhooks/deliveries.d.ts.map +1 -1
- package/resources/webhooks/deliveries.js +4 -30
- package/resources/webhooks/deliveries.js.map +1 -1
- package/resources/webhooks/deliveries.mjs +4 -30
- package/resources/webhooks/deliveries.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +1 -0
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -0
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js +3 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs +1 -0
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/integrations.d.mts +77 -0
- package/resources/webhooks/integrations.d.mts.map +1 -0
- package/resources/webhooks/integrations.d.ts +77 -0
- package/resources/webhooks/integrations.d.ts.map +1 -0
- package/resources/webhooks/integrations.js +26 -0
- package/resources/webhooks/integrations.js.map +1 -0
- package/resources/webhooks/integrations.mjs +22 -0
- package/resources/webhooks/integrations.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +280 -71
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +280 -71
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +27 -60
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +27 -60
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +7 -3
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +7 -3
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/actions/actions.d.mts +9 -5
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +9 -5
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +4 -0
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +4 -0
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/events.d.mts +66 -4
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +66 -4
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +334 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -0
- package/resources/workflows/executions/executions.d.ts +334 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -0
- package/resources/workflows/executions/executions.js +49 -0
- package/resources/workflows/executions/executions.js.map +1 -0
- package/resources/workflows/executions/executions.mjs +44 -0
- package/resources/workflows/executions/executions.mjs.map +1 -0
- package/resources/workflows/executions/index.d.mts +3 -0
- package/resources/workflows/executions/index.d.mts.map +1 -0
- package/resources/workflows/executions/index.d.ts +3 -0
- package/resources/workflows/executions/index.d.ts.map +1 -0
- package/resources/workflows/executions/index.js +9 -0
- package/resources/workflows/executions/index.js.map +1 -0
- package/resources/workflows/executions/index.mjs +4 -0
- package/resources/workflows/executions/index.mjs.map +1 -0
- package/resources/workflows/executions/screenshots.d.mts +18 -0
- package/resources/workflows/executions/screenshots.d.mts.map +1 -0
- package/resources/workflows/executions/screenshots.d.ts +18 -0
- package/resources/workflows/executions/screenshots.d.ts.map +1 -0
- package/resources/workflows/executions/screenshots.js +23 -0
- package/resources/workflows/executions/screenshots.js.map +1 -0
- package/resources/workflows/executions/screenshots.mjs +19 -0
- package/resources/workflows/executions/screenshots.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +1 -190
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +1 -190
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +2 -36
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +1 -34
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +58 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +58 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js +4 -0
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs +4 -0
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +666 -15
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +666 -15
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +86 -1
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +86 -1
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +1 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +1 -1
- 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 +2 -2
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +2 -2
- 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 +118 -6
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +118 -6
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +14 -0
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +14 -0
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +4 -4
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +4 -4
- 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 +22 -42
- package/src/resources/apps.ts +24 -12
- package/src/resources/assistant/conversations.ts +50 -31
- package/src/resources/connect/connect.ts +6 -0
- package/src/resources/connect/index.ts +3 -0
- package/src/resources/connect/proxies.ts +146 -18
- package/src/resources/devices/apps.ts +41 -17
- package/src/resources/devices/browser.ts +9 -3
- package/src/resources/devices/devices.ts +138 -34
- package/src/resources/devices/index.ts +13 -0
- package/src/resources/devices/keyboard.ts +10 -3
- package/src/resources/devices/recordings.ts +14 -0
- package/src/resources/devices/traffic-sessions.ts +282 -0
- package/src/resources/files.ts +122 -29
- package/src/resources/index.ts +13 -20
- package/src/resources/mailboxes/connections.ts +91 -0
- package/src/resources/mailboxes/index.ts +7 -0
- package/src/resources/mailboxes/mailboxes.ts +190 -49
- package/src/resources/mailboxes/messages.ts +2 -2
- package/src/resources/messages/conversations.ts +4 -15
- package/src/resources/messages/index.ts +6 -1
- package/src/resources/messages/messages.ts +57 -5
- package/src/resources/notifications.ts +37 -0
- package/src/resources/numbers/index.ts +9 -1
- package/src/resources/numbers/messages.ts +92 -1
- package/src/resources/numbers/numbers.ts +197 -55
- package/src/resources/store/apps.ts +291 -2
- package/src/resources/tasks/tasks.ts +126 -93
- package/src/resources/webhooks/deliveries.ts +26 -31
- package/src/resources/webhooks/index.ts +6 -0
- package/src/resources/webhooks/integrations.ts +107 -0
- package/src/resources/webhooks/webhooks.ts +328 -71
- package/src/resources/workflows/action-catalog.ts +11 -3
- package/src/resources/workflows/actions/actions.ts +9 -5
- package/src/resources/workflows/events.ts +86 -4
- package/src/resources/workflows/executions/executions.ts +514 -0
- package/src/resources/workflows/executions/index.ts +12 -0
- package/src/resources/workflows/executions/screenshots.ts +34 -0
- package/src/resources/workflows/executions.ts +1 -296
- package/src/resources/workflows/flows/actions.ts +72 -0
- package/src/resources/workflows/flows/flows.ts +1058 -129
- package/src/resources/workflows/flows/index.ts +12 -0
- package/src/resources/workflows/index.ts +13 -1
- package/src/resources/workflows/triggers.ts +140 -6
- package/src/resources/workflows/workflows.ts +34 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/esims/esims.d.mts +0 -566
- package/resources/esims/esims.d.mts.map +0 -1
- package/resources/esims/esims.d.ts +0 -566
- package/resources/esims/esims.d.ts.map +0 -1
- package/resources/esims/esims.js +0 -205
- package/resources/esims/esims.js.map +0 -1
- package/resources/esims/esims.mjs +0 -200
- package/resources/esims/esims.mjs.map +0 -1
- package/resources/esims/index.d.mts +0 -3
- package/resources/esims/index.d.mts.map +0 -1
- package/resources/esims/index.d.ts +0 -3
- package/resources/esims/index.d.ts.map +0 -1
- package/resources/esims/index.js +0 -9
- package/resources/esims/index.js.map +0 -1
- package/resources/esims/index.mjs +0 -4
- package/resources/esims/index.mjs.map +0 -1
- package/resources/esims/messages.d.mts +0 -106
- package/resources/esims/messages.d.mts.map +0 -1
- package/resources/esims/messages.d.ts +0 -106
- package/resources/esims/messages.d.ts.map +0 -1
- package/resources/esims/messages.js +0 -37
- package/resources/esims/messages.js.map +0 -1
- package/resources/esims/messages.mjs +0 -33
- package/resources/esims/messages.mjs.map +0 -1
- package/resources/esims.d.mts +0 -2
- package/resources/esims.d.mts.map +0 -1
- package/resources/esims.d.ts +0 -2
- package/resources/esims.d.ts.map +0 -1
- package/resources/esims.js +0 -6
- package/resources/esims.js.map +0 -1
- package/resources/esims.mjs +0 -3
- package/resources/esims.mjs.map +0 -1
- package/src/resources/esims/esims.ts +0 -1019
- package/src/resources/esims/index.ts +0 -28
- package/src/resources/esims/messages.ts +0 -187
- package/src/resources/esims.ts +0 -3
|
@@ -8,14 +8,14 @@ const ActionCatalogAPI = tslib_1.__importStar(require("./action-catalog.js"));
|
|
|
8
8
|
const action_catalog_1 = require("./action-catalog.js");
|
|
9
9
|
const EventsAPI = tslib_1.__importStar(require("./events.js"));
|
|
10
10
|
const events_1 = require("./events.js");
|
|
11
|
-
const ExecutionsAPI = tslib_1.__importStar(require("./executions.js"));
|
|
12
|
-
const executions_1 = require("./executions.js");
|
|
13
11
|
const TimezonesAPI = tslib_1.__importStar(require("./timezones.js"));
|
|
14
12
|
const timezones_1 = require("./timezones.js");
|
|
15
13
|
const TriggersAPI = tslib_1.__importStar(require("./triggers.js"));
|
|
16
14
|
const triggers_1 = require("./triggers.js");
|
|
17
15
|
const ActionsAPI = tslib_1.__importStar(require("./actions/actions.js"));
|
|
18
16
|
const actions_1 = require("./actions/actions.js");
|
|
17
|
+
const ExecutionsAPI = tslib_1.__importStar(require("./executions/executions.js"));
|
|
18
|
+
const executions_1 = require("./executions/executions.js");
|
|
19
19
|
const FlowsAPI = tslib_1.__importStar(require("./flows/flows.js"));
|
|
20
20
|
const flows_1 = require("./flows/flows.js");
|
|
21
21
|
class Workflows extends resource_1.APIResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../src/resources/workflows/workflows.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,8EAAqD;AACrD,wDAK0B;AAC1B,+DAAsC;AACtC,wCAMkB;AAClB,
|
|
1
|
+
{"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../src/resources/workflows/workflows.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,8EAAqD;AACrD,wDAK0B;AAC1B,+DAAsC;AACtC,wCAMkB;AAClB,qEAA4C;AAC5C,8CAA8D;AAC9D,mEAA0C;AAC1C,4CAYoB;AACpB,yEAAgD;AAChD,kDAU2B;AAC3B,kFAAyD;AACzD,2DAQiC;AACjC,mEAA0C;AAC1C,4CA4BuB;AAEvB,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AARD,8BAQC;AAED,SAAS,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC9B,SAAS,CAAC,aAAa,GAAG,8BAAa,CAAC;AACxC,SAAS,CAAC,OAAO,GAAG,iBAAO,CAAC;AAC5B,SAAS,CAAC,KAAK,GAAG,aAAK,CAAC;AACxB,SAAS,CAAC,MAAM,GAAG,eAAM,CAAC;AAC1B,SAAS,CAAC,UAAU,GAAG,uBAAU,CAAC;AAClC,SAAS,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|
|
@@ -4,14 +4,14 @@ import * as ActionCatalogAPI from "./action-catalog.mjs";
|
|
|
4
4
|
import { ActionCatalog, } from "./action-catalog.mjs";
|
|
5
5
|
import * as EventsAPI from "./events.mjs";
|
|
6
6
|
import { Events, } from "./events.mjs";
|
|
7
|
-
import * as ExecutionsAPI from "./executions.mjs";
|
|
8
|
-
import { Executions, } from "./executions.mjs";
|
|
9
7
|
import * as TimezonesAPI from "./timezones.mjs";
|
|
10
8
|
import { Timezones } from "./timezones.mjs";
|
|
11
9
|
import * as TriggersAPI from "./triggers.mjs";
|
|
12
10
|
import { Triggers, } from "./triggers.mjs";
|
|
13
11
|
import * as ActionsAPI from "./actions/actions.mjs";
|
|
14
12
|
import { Actions, } from "./actions/actions.mjs";
|
|
13
|
+
import * as ExecutionsAPI from "./executions/executions.mjs";
|
|
14
|
+
import { Executions, } from "./executions/executions.mjs";
|
|
15
15
|
import * as FlowsAPI from "./flows/flows.mjs";
|
|
16
16
|
import { Flows, } from "./flows/flows.mjs";
|
|
17
17
|
export class Workflows extends APIResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.mjs","sourceRoot":"","sources":["../../src/resources/workflows/workflows.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,EACL,aAAa,GAId,6BAAyB;AAC1B,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAKL,MAAM,GACP,qBAAiB;AAClB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"workflows.mjs","sourceRoot":"","sources":["../../src/resources/workflows/workflows.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,EACL,aAAa,GAId,6BAAyB;AAC1B,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAKL,MAAM,GACP,qBAAiB;AAClB,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAwB,SAAS,EAAE,wBAAoB;AAC9D,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAWL,QAAQ,GACT,uBAAmB;AACpB,OAAO,KAAK,UAAU,8BAA0B;AAChD,OAAO,EASL,OAAO,GACR,8BAA0B;AAC3B,OAAO,KAAK,aAAa,oCAAgC;AACzD,OAAO,EAOL,UAAU,GACX,oCAAgC;AACjC,OAAO,KAAK,QAAQ,0BAAsB;AAC1C,OAAO,EA2BL,KAAK,GACN,0BAAsB;AAEvB,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AAED,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC9B,SAAS,CAAC,aAAa,GAAG,aAAa,CAAC;AACxC,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;AAC5B,SAAS,CAAC,KAAK,GAAG,KAAK,CAAC;AACxB,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC;AAC1B,SAAS,CAAC,UAAU,GAAG,UAAU,CAAC;AAClC,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
package/src/client.ts
CHANGED
|
@@ -57,6 +57,8 @@ import {
|
|
|
57
57
|
} from './resources/files';
|
|
58
58
|
import { ModelListResponse, Models } from './resources/models';
|
|
59
59
|
import {
|
|
60
|
+
NotificationApplyPreferencesPresetParams,
|
|
61
|
+
NotificationApplyPreferencesPresetResponse,
|
|
60
62
|
NotificationCatalogResponse,
|
|
61
63
|
NotificationGetPreferencesResponse,
|
|
62
64
|
NotificationUpdatePreferencesParams,
|
|
@@ -112,34 +114,18 @@ import {
|
|
|
112
114
|
DeviceRetrieveResponse,
|
|
113
115
|
DeviceSetNameParams,
|
|
114
116
|
DeviceSetNameResponse,
|
|
117
|
+
DeviceSummaryParams,
|
|
118
|
+
DeviceSummaryResponse,
|
|
115
119
|
DeviceTerminateParams,
|
|
116
120
|
DeviceWaitReadyResponse,
|
|
117
121
|
Devices,
|
|
118
122
|
} from './resources/devices/devices';
|
|
119
|
-
import {
|
|
120
|
-
EsimCapacityResponse,
|
|
121
|
-
EsimConfirmPaymentResponse,
|
|
122
|
-
EsimCreateParams,
|
|
123
|
-
EsimCreateResponse,
|
|
124
|
-
EsimImportParams,
|
|
125
|
-
EsimImportResponse,
|
|
126
|
-
EsimInstallParams,
|
|
127
|
-
EsimInstallResponse,
|
|
128
|
-
EsimInstallStatusResponse,
|
|
129
|
-
EsimListParams,
|
|
130
|
-
EsimListResponse,
|
|
131
|
-
EsimRetrieveResponse,
|
|
132
|
-
EsimSelectorParams,
|
|
133
|
-
EsimSelectorResponse,
|
|
134
|
-
EsimUpdateParams,
|
|
135
|
-
EsimUpdateResponse,
|
|
136
|
-
Esims,
|
|
137
|
-
} from './resources/esims/esims';
|
|
138
123
|
import {
|
|
139
124
|
MailboxCapacityResponse,
|
|
140
125
|
MailboxCreateParams,
|
|
141
126
|
MailboxCreateResponse,
|
|
142
127
|
MailboxDeleteResponse,
|
|
128
|
+
MailboxDisconnectResponse,
|
|
143
129
|
MailboxListParams,
|
|
144
130
|
MailboxListResponse,
|
|
145
131
|
MailboxOtpParams,
|
|
@@ -152,8 +138,15 @@ import {
|
|
|
152
138
|
MailboxUpdateResponse,
|
|
153
139
|
Mailboxes,
|
|
154
140
|
} from './resources/mailboxes/mailboxes';
|
|
155
|
-
import { MessageListParams, MessageListResponse, Messages } from './resources/messages/messages';
|
|
156
141
|
import {
|
|
142
|
+
MessageListParams,
|
|
143
|
+
MessageListResponse,
|
|
144
|
+
MessageRetrieveResponse,
|
|
145
|
+
Messages,
|
|
146
|
+
} from './resources/messages/messages';
|
|
147
|
+
import {
|
|
148
|
+
NumberCapacityParams,
|
|
149
|
+
NumberCapacityResponse,
|
|
157
150
|
NumberCountriesResponse,
|
|
158
151
|
NumberCreateParams,
|
|
159
152
|
NumberCreateResponse,
|
|
@@ -353,6 +346,7 @@ export class Mobilerun {
|
|
|
353
346
|
}
|
|
354
347
|
|
|
355
348
|
this._options = options;
|
|
349
|
+
this.idempotencyHeader = 'Idempotency-Key';
|
|
356
350
|
|
|
357
351
|
this.apiKey = apiKey;
|
|
358
352
|
}
|
|
@@ -941,7 +935,6 @@ export class Mobilerun {
|
|
|
941
935
|
assistant: API.Assistant = new API.Assistant(this);
|
|
942
936
|
appEvents: API.AppEvents = new API.AppEvents(this);
|
|
943
937
|
notifications: API.Notifications = new API.Notifications(this);
|
|
944
|
-
esims: API.Esims = new API.Esims(this);
|
|
945
938
|
messages: API.Messages = new API.Messages(this);
|
|
946
939
|
numbers: API.Numbers = new API.Numbers(this);
|
|
947
940
|
store: API.Store = new API.Store(this);
|
|
@@ -963,7 +956,6 @@ Mobilerun.Files = Files;
|
|
|
963
956
|
Mobilerun.Assistant = Assistant;
|
|
964
957
|
Mobilerun.AppEvents = AppEvents;
|
|
965
958
|
Mobilerun.Notifications = Notifications;
|
|
966
|
-
Mobilerun.Esims = Esims;
|
|
967
959
|
Mobilerun.Messages = Messages;
|
|
968
960
|
Mobilerun.Numbers = Numbers;
|
|
969
961
|
Mobilerun.Store = Store;
|
|
@@ -1014,11 +1006,13 @@ export declare namespace Mobilerun {
|
|
|
1014
1006
|
type DeviceFingerprintResponse as DeviceFingerprintResponse,
|
|
1015
1007
|
type DeviceRetrieveCapabilitiesResponse as DeviceRetrieveCapabilitiesResponse,
|
|
1016
1008
|
type DeviceSetNameResponse as DeviceSetNameResponse,
|
|
1009
|
+
type DeviceSummaryResponse as DeviceSummaryResponse,
|
|
1017
1010
|
type DeviceWaitReadyResponse as DeviceWaitReadyResponse,
|
|
1018
1011
|
type DeviceCreateParams as DeviceCreateParams,
|
|
1019
1012
|
type DeviceListParams as DeviceListParams,
|
|
1020
1013
|
type DeviceFingerprintParams as DeviceFingerprintParams,
|
|
1021
1014
|
type DeviceSetNameParams as DeviceSetNameParams,
|
|
1015
|
+
type DeviceSummaryParams as DeviceSummaryParams,
|
|
1022
1016
|
type DeviceTerminateParams as DeviceTerminateParams,
|
|
1023
1017
|
};
|
|
1024
1018
|
|
|
@@ -1092,6 +1086,7 @@ export declare namespace Mobilerun {
|
|
|
1092
1086
|
type MailboxListResponse as MailboxListResponse,
|
|
1093
1087
|
type MailboxDeleteResponse as MailboxDeleteResponse,
|
|
1094
1088
|
type MailboxCapacityResponse as MailboxCapacityResponse,
|
|
1089
|
+
type MailboxDisconnectResponse as MailboxDisconnectResponse,
|
|
1095
1090
|
type MailboxOtpResponse as MailboxOtpResponse,
|
|
1096
1091
|
type MailboxRestartResponse as MailboxRestartResponse,
|
|
1097
1092
|
type MailboxUncancelResponse as MailboxUncancelResponse,
|
|
@@ -1126,34 +1121,17 @@ export declare namespace Mobilerun {
|
|
|
1126
1121
|
|
|
1127
1122
|
export {
|
|
1128
1123
|
Notifications as Notifications,
|
|
1124
|
+
type NotificationApplyPreferencesPresetResponse as NotificationApplyPreferencesPresetResponse,
|
|
1129
1125
|
type NotificationCatalogResponse as NotificationCatalogResponse,
|
|
1130
1126
|
type NotificationGetPreferencesResponse as NotificationGetPreferencesResponse,
|
|
1131
1127
|
type NotificationUpdatePreferencesResponse as NotificationUpdatePreferencesResponse,
|
|
1128
|
+
type NotificationApplyPreferencesPresetParams as NotificationApplyPreferencesPresetParams,
|
|
1132
1129
|
type NotificationUpdatePreferencesParams as NotificationUpdatePreferencesParams,
|
|
1133
1130
|
};
|
|
1134
1131
|
|
|
1135
|
-
export {
|
|
1136
|
-
Esims as Esims,
|
|
1137
|
-
type EsimCreateResponse as EsimCreateResponse,
|
|
1138
|
-
type EsimRetrieveResponse as EsimRetrieveResponse,
|
|
1139
|
-
type EsimUpdateResponse as EsimUpdateResponse,
|
|
1140
|
-
type EsimListResponse as EsimListResponse,
|
|
1141
|
-
type EsimCapacityResponse as EsimCapacityResponse,
|
|
1142
|
-
type EsimConfirmPaymentResponse as EsimConfirmPaymentResponse,
|
|
1143
|
-
type EsimImportResponse as EsimImportResponse,
|
|
1144
|
-
type EsimInstallResponse as EsimInstallResponse,
|
|
1145
|
-
type EsimInstallStatusResponse as EsimInstallStatusResponse,
|
|
1146
|
-
type EsimSelectorResponse as EsimSelectorResponse,
|
|
1147
|
-
type EsimCreateParams as EsimCreateParams,
|
|
1148
|
-
type EsimUpdateParams as EsimUpdateParams,
|
|
1149
|
-
type EsimListParams as EsimListParams,
|
|
1150
|
-
type EsimImportParams as EsimImportParams,
|
|
1151
|
-
type EsimInstallParams as EsimInstallParams,
|
|
1152
|
-
type EsimSelectorParams as EsimSelectorParams,
|
|
1153
|
-
};
|
|
1154
|
-
|
|
1155
1132
|
export {
|
|
1156
1133
|
Messages as Messages,
|
|
1134
|
+
type MessageRetrieveResponse as MessageRetrieveResponse,
|
|
1157
1135
|
type MessageListResponse as MessageListResponse,
|
|
1158
1136
|
type MessageListParams as MessageListParams,
|
|
1159
1137
|
};
|
|
@@ -1165,11 +1143,13 @@ export declare namespace Mobilerun {
|
|
|
1165
1143
|
type NumberUpdateResponse as NumberUpdateResponse,
|
|
1166
1144
|
type NumberListResponse as NumberListResponse,
|
|
1167
1145
|
type NumberDeleteResponse as NumberDeleteResponse,
|
|
1146
|
+
type NumberCapacityResponse as NumberCapacityResponse,
|
|
1168
1147
|
type NumberCountriesResponse as NumberCountriesResponse,
|
|
1169
1148
|
type NumberPurposesResponse as NumberPurposesResponse,
|
|
1170
1149
|
type NumberCreateParams as NumberCreateParams,
|
|
1171
1150
|
type NumberUpdateParams as NumberUpdateParams,
|
|
1172
1151
|
type NumberListParams as NumberListParams,
|
|
1152
|
+
type NumberCapacityParams as NumberCapacityParams,
|
|
1173
1153
|
};
|
|
1174
1154
|
|
|
1175
1155
|
export { Store as Store, type StoreCategoriesResponse as StoreCategoriesResponse };
|
package/src/resources/apps.ts
CHANGED
|
@@ -49,7 +49,9 @@ export class Apps extends APIResource {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Verifies the
|
|
52
|
+
* Verifies the uploaded files in R2 and sets the app version status to available.
|
|
53
|
+
* Idempotent: replaying confirmation for an already-available version returns the
|
|
54
|
+
* same successful response without re-verifying the files.
|
|
53
55
|
*
|
|
54
56
|
* @example
|
|
55
57
|
* ```ts
|
|
@@ -121,8 +123,11 @@ export class Apps extends APIResource {
|
|
|
121
123
|
}
|
|
122
124
|
|
|
123
125
|
/**
|
|
124
|
-
* Returns the user’s
|
|
125
|
-
*
|
|
126
|
+
* Returns the user’s storage allowance from Autumn storage_mb (decimal bytes):
|
|
127
|
+
* bytes used, bytes included in the plan, the hard maximum (included + max
|
|
128
|
+
* purchasable overage; null = unlimited) and whether usage above the included
|
|
129
|
+
* amount is billed as overage. With storage billing off there is no limit: only
|
|
130
|
+
* usedBytes is set.
|
|
126
131
|
*
|
|
127
132
|
* @example
|
|
128
133
|
* ```ts
|
|
@@ -471,7 +476,7 @@ export namespace AppListResponse {
|
|
|
471
476
|
|
|
472
477
|
sizeBytes: number | null;
|
|
473
478
|
|
|
474
|
-
source: 'user' | 'system' | 'portal' | 'store'
|
|
479
|
+
source: 'user' | 'system' | 'portal' | 'store';
|
|
475
480
|
|
|
476
481
|
status: 'queued' | 'available' | 'failed';
|
|
477
482
|
|
|
@@ -802,7 +807,7 @@ export namespace AppListVersionsResponse {
|
|
|
802
807
|
|
|
803
808
|
sizeBytes: number | null;
|
|
804
809
|
|
|
805
|
-
source: 'user' | 'system' | 'portal' | 'store'
|
|
810
|
+
source: 'user' | 'system' | 'portal' | 'store';
|
|
806
811
|
|
|
807
812
|
status: 'queued' | 'available' | 'failed';
|
|
808
813
|
|
|
@@ -834,19 +839,26 @@ export interface AppStorageUsageResponse {
|
|
|
834
839
|
export namespace AppStorageUsageResponse {
|
|
835
840
|
export interface Data {
|
|
836
841
|
/**
|
|
837
|
-
*
|
|
838
|
-
*
|
|
839
|
-
* may reduce actual headroom.
|
|
842
|
+
* Bytes included in the plan (Autumn granted). Null when unlimited, unknown, or
|
|
843
|
+
* storage billing is off.
|
|
840
844
|
*/
|
|
841
|
-
|
|
845
|
+
includedBytes: number | null;
|
|
842
846
|
|
|
843
847
|
/**
|
|
844
|
-
*
|
|
848
|
+
* Hard admission bound in bytes: included + max purchasable overage, or included
|
|
849
|
+
* when overage is not allowed. Null = unlimited, unknown, or storage billing is
|
|
850
|
+
* off.
|
|
845
851
|
*/
|
|
846
|
-
|
|
852
|
+
maxBytes: number | null;
|
|
847
853
|
|
|
848
854
|
/**
|
|
849
|
-
*
|
|
855
|
+
* True when usage above includedBytes is billed as overage instead of blocked
|
|
856
|
+
*/
|
|
857
|
+
overageAllowed: boolean;
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* Bytes currently used (decimal: Autumn storage_mb × 1,000,000; the local sum of
|
|
861
|
+
* the user’s app versions when storage billing is off)
|
|
850
862
|
*/
|
|
851
863
|
usedBytes: number;
|
|
852
864
|
}
|
|
@@ -12,18 +12,11 @@ export class Conversations extends APIResource {
|
|
|
12
12
|
* Creates a titled agent session. Setup may occur on the first prompt. Idempotent
|
|
13
13
|
* via the `Idempotency-Key` header — a duplicate submit by the same authenticated
|
|
14
14
|
* caller within the 24-hour idempotency window returns the already-created session
|
|
15
|
-
* instead of a second one.
|
|
15
|
+
* instead of a second one. Reusing the same key with a different request body is a
|
|
16
|
+
* 422 `idempotency_key_reused`.
|
|
16
17
|
*/
|
|
17
|
-
create(
|
|
18
|
-
|
|
19
|
-
return this._client.post('/assistant/chat/sessions', {
|
|
20
|
-
body,
|
|
21
|
-
...options,
|
|
22
|
-
headers: buildHeaders([
|
|
23
|
-
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
24
|
-
options?.headers,
|
|
25
|
-
]),
|
|
26
|
-
});
|
|
18
|
+
create(body: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse> {
|
|
19
|
+
return this._client.post('/assistant/chat/sessions', { body, ...options });
|
|
27
20
|
}
|
|
28
21
|
|
|
29
22
|
/**
|
|
@@ -66,7 +59,12 @@ export class Conversations extends APIResource {
|
|
|
66
59
|
}
|
|
67
60
|
|
|
68
61
|
/**
|
|
69
|
-
* Deliver a HITL approval/rejection for an in-flight turn.
|
|
62
|
+
* Deliver a HITL approval/rejection for an in-flight turn. Interactive HITL
|
|
63
|
+
* clients must start the turn with `Accept: text/event-stream`, wait for a
|
|
64
|
+
* `tool-hitl-approval` event, and send its `permissionId` here at
|
|
65
|
+
* `/assistant/chat/permission`. Do not submit approval as free-form user text or
|
|
66
|
+
* as `confirmed: true`. For `devices.reset`, only `once` and `reject` are allowed;
|
|
67
|
+
* the generic `always` response is rejected with HTTP 400.
|
|
70
68
|
*/
|
|
71
69
|
answerPermission(
|
|
72
70
|
body: ConversationAnswerPermissionParams,
|
|
@@ -111,9 +109,12 @@ export class Conversations extends APIResource {
|
|
|
111
109
|
/**
|
|
112
110
|
* Send a single user message. The response format follows the Accept header:
|
|
113
111
|
* `text/event-stream` for SSE, `application/json` for a buffered assistant reply.
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
112
|
+
* Interactive HITL requires `Accept: text/event-stream`: the stream can emit a
|
|
113
|
+
* `tool-hitl-approval` event, whose decision must be delivered to
|
|
114
|
+
* `/assistant/chat/permission`. Buffered JSON responses do not provide an
|
|
115
|
+
* interactive HITL continuation contract. `sessionId` targets a concrete active
|
|
116
|
+
* chat. The resolved chat session ID is returned as `chatSessionId` in the JSON
|
|
117
|
+
* body and as the `X-Chat-Session-Id` response header on the SSE response.
|
|
117
118
|
*/
|
|
118
119
|
send(body: ConversationSendParams, options?: RequestOptions): APIPromise<ConversationSendResponse> {
|
|
119
120
|
return this._client.post('/assistant/chat/message', { body, ...options });
|
|
@@ -159,6 +160,8 @@ export namespace ConversationCreateResponse {
|
|
|
159
160
|
|
|
160
161
|
createdAt: string;
|
|
161
162
|
|
|
163
|
+
creditsUsed: number | null;
|
|
164
|
+
|
|
162
165
|
description: string | null;
|
|
163
166
|
|
|
164
167
|
lastActiveAt: string;
|
|
@@ -201,6 +204,8 @@ export namespace ConversationUpdateResponse {
|
|
|
201
204
|
|
|
202
205
|
createdAt: string;
|
|
203
206
|
|
|
207
|
+
creditsUsed: number | null;
|
|
208
|
+
|
|
204
209
|
description: string | null;
|
|
205
210
|
|
|
206
211
|
lastActiveAt: string;
|
|
@@ -243,6 +248,8 @@ export namespace ConversationListResponse {
|
|
|
243
248
|
|
|
244
249
|
createdAt: string;
|
|
245
250
|
|
|
251
|
+
creditsUsed: number | null;
|
|
252
|
+
|
|
246
253
|
description: string | null;
|
|
247
254
|
|
|
248
255
|
episode: number;
|
|
@@ -287,6 +294,8 @@ export namespace ConversationListResponse {
|
|
|
287
294
|
|
|
288
295
|
createdAt: string;
|
|
289
296
|
|
|
297
|
+
creditsUsed: number | null;
|
|
298
|
+
|
|
290
299
|
description: string | null;
|
|
291
300
|
|
|
292
301
|
episode: number;
|
|
@@ -334,7 +343,11 @@ export interface ConversationHistoryResponse {
|
|
|
334
343
|
|
|
335
344
|
turnActive: boolean;
|
|
336
345
|
|
|
346
|
+
lastTurnOutcome?: string | null;
|
|
347
|
+
|
|
337
348
|
truncated?: boolean;
|
|
349
|
+
|
|
350
|
+
turnState?: ConversationHistoryResponse.TurnState | null;
|
|
338
351
|
}
|
|
339
352
|
|
|
340
353
|
export namespace ConversationHistoryResponse {
|
|
@@ -380,6 +393,26 @@ export namespace ConversationHistoryResponse {
|
|
|
380
393
|
turnAnchorMessageId?: string;
|
|
381
394
|
}
|
|
382
395
|
}
|
|
396
|
+
|
|
397
|
+
export interface TurnState {
|
|
398
|
+
id: string;
|
|
399
|
+
|
|
400
|
+
abortRequested: boolean;
|
|
401
|
+
|
|
402
|
+
attachable: boolean;
|
|
403
|
+
|
|
404
|
+
claimHeld: boolean;
|
|
405
|
+
|
|
406
|
+
outcome: string | null;
|
|
407
|
+
|
|
408
|
+
phase: 'created' | 'running' | 'closed' | 'delivered' | 'failed';
|
|
409
|
+
|
|
410
|
+
reaping: boolean;
|
|
411
|
+
|
|
412
|
+
revision: number;
|
|
413
|
+
|
|
414
|
+
startedAt: string;
|
|
415
|
+
}
|
|
383
416
|
}
|
|
384
417
|
|
|
385
418
|
export interface ConversationRejectQuestionResponse {
|
|
@@ -397,27 +430,11 @@ export interface ConversationSendResponse {
|
|
|
397
430
|
export type ConversationStreamResponse = string;
|
|
398
431
|
|
|
399
432
|
export interface ConversationCreateParams {
|
|
400
|
-
/**
|
|
401
|
-
* Body param
|
|
402
|
-
*/
|
|
403
433
|
title: string;
|
|
404
434
|
|
|
405
|
-
/**
|
|
406
|
-
* Body param
|
|
407
|
-
*/
|
|
408
435
|
agent?: string;
|
|
409
436
|
|
|
410
|
-
/**
|
|
411
|
-
* Body param
|
|
412
|
-
*/
|
|
413
437
|
description?: string;
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* Header param: Optional client key. Reusing the same key with the same request
|
|
417
|
-
* body by the same authenticated caller within 24 hours returns the
|
|
418
|
-
* already-created session instead of a second one.
|
|
419
|
-
*/
|
|
420
|
-
'Idempotency-Key'?: string;
|
|
421
438
|
}
|
|
422
439
|
|
|
423
440
|
export interface ConversationUpdateParams {
|
|
@@ -440,6 +457,8 @@ export interface ConversationListParams {
|
|
|
440
457
|
|
|
441
458
|
export interface ConversationAbortParams {
|
|
442
459
|
sessionId: string;
|
|
460
|
+
|
|
461
|
+
expectedTurnId?: string;
|
|
443
462
|
}
|
|
444
463
|
|
|
445
464
|
export interface ConversationAnswerPermissionParams {
|
|
@@ -8,12 +8,15 @@ import {
|
|
|
8
8
|
Proxies,
|
|
9
9
|
ProxyBuyParams,
|
|
10
10
|
ProxyBuyResponse,
|
|
11
|
+
ProxyEnsureHealthyResponse,
|
|
11
12
|
ProxyListConnectionsParams,
|
|
12
13
|
ProxyListConnectionsResponse,
|
|
13
14
|
ProxyListParams,
|
|
14
15
|
ProxyListResponse,
|
|
15
16
|
ProxyPingResponse,
|
|
16
17
|
ProxyRetrieveResponse,
|
|
18
|
+
ProxyUpdateParams,
|
|
19
|
+
ProxyUpdateResponse,
|
|
17
20
|
} from './proxies';
|
|
18
21
|
import * as UsersAPI from './users';
|
|
19
22
|
import {
|
|
@@ -49,10 +52,13 @@ export declare namespace Connect {
|
|
|
49
52
|
export {
|
|
50
53
|
Proxies as Proxies,
|
|
51
54
|
type ProxyRetrieveResponse as ProxyRetrieveResponse,
|
|
55
|
+
type ProxyUpdateResponse as ProxyUpdateResponse,
|
|
52
56
|
type ProxyListResponse as ProxyListResponse,
|
|
53
57
|
type ProxyBuyResponse as ProxyBuyResponse,
|
|
58
|
+
type ProxyEnsureHealthyResponse as ProxyEnsureHealthyResponse,
|
|
54
59
|
type ProxyListConnectionsResponse as ProxyListConnectionsResponse,
|
|
55
60
|
type ProxyPingResponse as ProxyPingResponse,
|
|
61
|
+
type ProxyUpdateParams as ProxyUpdateParams,
|
|
56
62
|
type ProxyListParams as ProxyListParams,
|
|
57
63
|
type ProxyBuyParams as ProxyBuyParams,
|
|
58
64
|
type ProxyListConnectionsParams as ProxyListConnectionsParams,
|
|
@@ -5,10 +5,13 @@ export { Countries, type CountryListResponse, type CountryListParams } from './c
|
|
|
5
5
|
export {
|
|
6
6
|
Proxies,
|
|
7
7
|
type ProxyRetrieveResponse,
|
|
8
|
+
type ProxyUpdateResponse,
|
|
8
9
|
type ProxyListResponse,
|
|
9
10
|
type ProxyBuyResponse,
|
|
11
|
+
type ProxyEnsureHealthyResponse,
|
|
10
12
|
type ProxyListConnectionsResponse,
|
|
11
13
|
type ProxyPingResponse,
|
|
14
|
+
type ProxyUpdateParams,
|
|
12
15
|
type ProxyListParams,
|
|
13
16
|
type ProxyBuyParams,
|
|
14
17
|
type ProxyListConnectionsParams,
|