@mobilerun/sdk 6.0.1 → 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +307 -0
- package/resources/agents/agents.d.mts.map +1 -0
- package/resources/agents/agents.d.ts +307 -0
- package/resources/agents/agents.d.ts.map +1 -0
- package/resources/agents/agents.js +56 -0
- package/resources/agents/agents.js.map +1 -0
- package/resources/agents/agents.mjs +51 -0
- package/resources/agents/agents.mjs.map +1 -0
- package/resources/agents/conversations.d.mts +110 -0
- package/resources/agents/conversations.d.mts.map +1 -0
- package/resources/agents/conversations.d.ts +110 -0
- package/resources/agents/conversations.d.ts.map +1 -0
- package/resources/agents/conversations.js +24 -0
- package/resources/agents/conversations.js.map +1 -0
- package/resources/agents/conversations.mjs +20 -0
- package/resources/agents/conversations.mjs.map +1 -0
- package/resources/agents/files.d.mts +64 -0
- package/resources/agents/files.d.mts.map +1 -0
- package/resources/agents/files.d.ts +64 -0
- package/resources/agents/files.d.ts.map +1 -0
- package/resources/agents/files.js +16 -0
- package/resources/agents/files.js.map +1 -0
- package/resources/agents/files.mjs +12 -0
- package/resources/agents/files.mjs.map +1 -0
- package/resources/agents/index.d.mts +7 -0
- package/resources/agents/index.d.mts.map +1 -0
- package/resources/agents/index.d.ts +7 -0
- package/resources/agents/index.d.ts.map +1 -0
- package/resources/agents/index.js +17 -0
- package/resources/agents/index.js.map +1 -0
- package/resources/agents/index.mjs +8 -0
- package/resources/agents/index.mjs.map +1 -0
- package/resources/agents/profile.d.mts +156 -0
- package/resources/agents/profile.d.mts.map +1 -0
- package/resources/agents/profile.d.ts +156 -0
- package/resources/agents/profile.d.ts.map +1 -0
- package/resources/agents/profile.js +19 -0
- package/resources/agents/profile.js.map +1 -0
- package/resources/agents/profile.mjs +15 -0
- package/resources/agents/profile.mjs.map +1 -0
- package/resources/agents/requests.d.mts +295 -0
- package/resources/agents/requests.d.mts.map +1 -0
- package/resources/agents/requests.d.ts +295 -0
- package/resources/agents/requests.d.ts.map +1 -0
- package/resources/agents/requests.js +42 -0
- package/resources/agents/requests.js.map +1 -0
- package/resources/agents/requests.mjs +38 -0
- package/resources/agents/requests.mjs.map +1 -0
- package/resources/agents/routines.d.mts +95 -0
- package/resources/agents/routines.d.mts.map +1 -0
- package/resources/agents/routines.d.ts +95 -0
- package/resources/agents/routines.d.ts.map +1 -0
- package/resources/agents/routines.js +26 -0
- package/resources/agents/routines.js.map +1 -0
- package/resources/agents/routines.mjs +22 -0
- package/resources/agents/routines.mjs.map +1 -0
- package/resources/agents.d.mts +2 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +2 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +6 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +3 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/assistant/conversations.d.mts +115 -38
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +115 -38
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +20 -19
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +20 -19
- 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 +22 -1
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +22 -1
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +8 -0
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +8 -0
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/credentials/credentials.d.mts +20 -0
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +20 -0
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +4 -0
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +4 -0
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/index.d.mts +1 -0
- package/resources/credentials/index.d.mts.map +1 -1
- package/resources/credentials/index.d.ts +1 -0
- package/resources/credentials/index.d.ts.map +1 -1
- package/resources/credentials/index.js +5 -3
- package/resources/credentials/index.js.map +1 -1
- package/resources/credentials/index.mjs +1 -0
- package/resources/credentials/index.mjs.map +1 -1
- package/resources/credentials/onepassword/index.d.mts +3 -0
- package/resources/credentials/onepassword/index.d.mts.map +1 -0
- package/resources/credentials/onepassword/index.d.ts +3 -0
- package/resources/credentials/onepassword/index.d.ts.map +1 -0
- package/resources/credentials/onepassword/index.js +9 -0
- package/resources/credentials/onepassword/index.js.map +1 -0
- package/resources/credentials/onepassword/index.mjs +4 -0
- package/resources/credentials/onepassword/index.mjs.map +1 -0
- package/resources/credentials/onepassword/onepassword.d.mts +65 -0
- package/resources/credentials/onepassword/onepassword.d.mts.map +1 -0
- package/resources/credentials/onepassword/onepassword.d.ts +65 -0
- package/resources/credentials/onepassword/onepassword.d.ts.map +1 -0
- package/resources/credentials/onepassword/onepassword.js +35 -0
- package/resources/credentials/onepassword/onepassword.js.map +1 -0
- package/resources/credentials/onepassword/onepassword.mjs +30 -0
- package/resources/credentials/onepassword/onepassword.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/index.d.mts +3 -0
- package/resources/credentials/onepassword/vaults/index.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/index.d.ts +3 -0
- package/resources/credentials/onepassword/vaults/index.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/index.js +9 -0
- package/resources/credentials/onepassword/vaults/index.js.map +1 -0
- package/resources/credentials/onepassword/vaults/index.mjs +4 -0
- package/resources/credentials/onepassword/vaults/index.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.mts +27 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.ts +27 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.js +17 -0
- package/resources/credentials/onepassword/vaults/items/fields.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.mjs +13 -0
- package/resources/credentials/onepassword/vaults/items/fields.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.d.mts +3 -0
- package/resources/credentials/onepassword/vaults/items/index.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.d.ts +3 -0
- package/resources/credentials/onepassword/vaults/items/index.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.js +9 -0
- package/resources/credentials/onepassword/vaults/items/index.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.mjs +4 -0
- package/resources/credentials/onepassword/vaults/items/index.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.d.mts +34 -0
- package/resources/credentials/onepassword/vaults/items/items.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.d.ts +34 -0
- package/resources/credentials/onepassword/vaults/items/items.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.js +24 -0
- package/resources/credentials/onepassword/vaults/items/items.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.mjs +19 -0
- package/resources/credentials/onepassword/vaults/items/items.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items.d.mts +2 -0
- package/resources/credentials/onepassword/vaults/items.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items.d.ts +2 -0
- package/resources/credentials/onepassword/vaults/items.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items.js +6 -0
- package/resources/credentials/onepassword/vaults/items.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items.mjs +3 -0
- package/resources/credentials/onepassword/vaults/items.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.d.mts +10 -0
- package/resources/credentials/onepassword/vaults/vaults.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.d.ts +10 -0
- package/resources/credentials/onepassword/vaults/vaults.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.js +17 -0
- package/resources/credentials/onepassword/vaults/vaults.js.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.mjs +12 -0
- package/resources/credentials/onepassword/vaults/vaults.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults.d.mts +2 -0
- package/resources/credentials/onepassword/vaults.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults.d.ts +2 -0
- package/resources/credentials/onepassword/vaults.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults.js +6 -0
- package/resources/credentials/onepassword/vaults.js.map +1 -0
- package/resources/credentials/onepassword/vaults.mjs +3 -0
- package/resources/credentials/onepassword/vaults.mjs.map +1 -0
- package/resources/credentials/onepassword.d.mts +2 -0
- package/resources/credentials/onepassword.d.mts.map +1 -0
- package/resources/credentials/onepassword.d.ts +2 -0
- package/resources/credentials/onepassword.d.ts.map +1 -0
- package/resources/credentials/onepassword.js +6 -0
- package/resources/credentials/onepassword.js.map +1 -0
- package/resources/credentials/onepassword.mjs +3 -0
- package/resources/credentials/onepassword.mjs.map +1 -0
- package/resources/credentials/packages/credentials/credentials.d.mts +32 -32
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +32 -32
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +0 -8
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +0 -8
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +48 -0
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +48 -0
- package/resources/credentials/packages/credentials/fields.d.ts.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 -1
- package/resources/credentials/packages/index.d.mts.map +1 -1
- package/resources/credentials/packages/index.d.ts +2 -1
- package/resources/credentials/packages/index.d.ts.map +1 -1
- package/resources/credentials/packages/index.js +3 -1
- package/resources/credentials/packages/index.js.map +1 -1
- package/resources/credentials/packages/index.mjs +1 -0
- package/resources/credentials/packages/index.mjs.map +1 -1
- package/resources/credentials/packages/links.d.mts +65 -0
- package/resources/credentials/packages/links.d.mts.map +1 -0
- package/resources/credentials/packages/links.d.ts +65 -0
- package/resources/credentials/packages/links.d.ts.map +1 -0
- package/resources/credentials/packages/links.js +16 -0
- package/resources/credentials/packages/links.js.map +1 -0
- package/resources/credentials/packages/links.mjs +12 -0
- package/resources/credentials/packages/links.mjs.map +1 -0
- package/resources/credentials/packages/packages.d.mts +22 -2
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +22 -2
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +4 -0
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +4 -0
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/devices/actions.d.mts +3 -4
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +3 -4
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +3 -4
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +3 -4
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +2 -2
- package/resources/devices/apps.d.ts +2 -2
- package/resources/devices/devices.d.mts +52 -28
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +52 -28
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +31 -19
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +31 -19
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +2 -0
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +2 -0
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +5 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +2 -0
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +1 -1
- package/resources/devices/keyboard.d.ts +1 -1
- package/resources/devices/language.d.mts +6 -4
- package/resources/devices/language.d.mts.map +1 -1
- package/resources/devices/language.d.ts +6 -4
- package/resources/devices/language.d.ts.map +1 -1
- package/resources/devices/language.js +3 -2
- package/resources/devices/language.js.map +1 -1
- package/resources/devices/language.mjs +3 -2
- package/resources/devices/language.mjs.map +1 -1
- package/resources/devices/number-bindings.d.mts +40 -0
- package/resources/devices/number-bindings.d.mts.map +1 -0
- package/resources/devices/number-bindings.d.ts +40 -0
- package/resources/devices/number-bindings.d.ts.map +1 -0
- package/resources/devices/number-bindings.js +15 -0
- package/resources/devices/number-bindings.js.map +1 -0
- package/resources/devices/number-bindings.mjs +11 -0
- package/resources/devices/number-bindings.mjs.map +1 -0
- package/resources/devices/number.d.mts +141 -0
- package/resources/devices/number.d.mts.map +1 -0
- package/resources/devices/number.d.ts +141 -0
- package/resources/devices/number.d.ts.map +1 -0
- package/resources/devices/number.js +68 -0
- package/resources/devices/number.js.map +1 -0
- package/resources/devices/number.mjs +64 -0
- package/resources/devices/number.mjs.map +1 -0
- package/resources/devices/state.d.mts +1 -0
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +1 -0
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/files.d.mts +13 -7
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +13 -7
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +9 -7
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +9 -7
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/messages.d.mts +13 -0
- package/resources/mailboxes/messages.d.mts.map +1 -1
- package/resources/mailboxes/messages.d.ts +13 -0
- package/resources/mailboxes/messages.d.ts.map +1 -1
- package/resources/mailboxes/messages.js +2 -2
- package/resources/mailboxes/messages.js.map +1 -1
- package/resources/mailboxes/messages.mjs +2 -2
- package/resources/mailboxes/messages.mjs.map +1 -1
- package/resources/messages/conversations.d.mts +6 -0
- package/resources/messages/conversations.d.mts.map +1 -1
- package/resources/messages/conversations.d.ts +6 -0
- package/resources/messages/conversations.d.ts.map +1 -1
- package/resources/messages/messages.d.mts +16 -0
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +16 -0
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +17 -2
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +17 -2
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +2 -1
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +2 -1
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +48 -0
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +48 -0
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +28 -7
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +28 -7
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +56 -8
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +56 -8
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/action-catalog.js +7 -5
- package/resources/workflows/action-catalog.js.map +1 -1
- package/resources/workflows/action-catalog.mjs +7 -5
- package/resources/workflows/action-catalog.mjs.map +1 -1
- package/resources/workflows/actions/actions.d.mts +22 -10
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +22 -10
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +7 -5
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +7 -5
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/actions/index.d.mts +1 -1
- package/resources/workflows/actions/index.d.mts.map +1 -1
- package/resources/workflows/actions/index.d.ts +1 -1
- package/resources/workflows/actions/index.d.ts.map +1 -1
- package/resources/workflows/actions/index.js.map +1 -1
- package/resources/workflows/actions/index.mjs.map +1 -1
- package/resources/workflows/actions/services.d.mts +1 -1
- package/resources/workflows/actions/services.d.mts.map +1 -1
- package/resources/workflows/actions/services.d.ts +1 -1
- package/resources/workflows/actions/services.d.ts.map +1 -1
- package/resources/workflows/events.d.mts +25 -3
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +25 -3
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +16 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -1
- package/resources/workflows/executions/executions.d.ts +16 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -1
- package/resources/workflows/executions/executions.js.map +1 -1
- package/resources/workflows/executions/executions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +547 -102
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +547 -102
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +15 -2
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +15 -2
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +2 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +2 -1
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js +3 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs +1 -0
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/flows/state.d.mts +65 -0
- package/resources/workflows/flows/state.d.mts.map +1 -0
- package/resources/workflows/flows/state.d.ts +65 -0
- package/resources/workflows/flows/state.d.ts.map +1 -0
- package/resources/workflows/flows/state.js +33 -0
- package/resources/workflows/flows/state.js.map +1 -0
- package/resources/workflows/flows/state.mjs +29 -0
- package/resources/workflows/flows/state.mjs.map +1 -0
- package/resources/workflows/index.d.mts +3 -3
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +3 -3
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +40 -5
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +40 -5
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +12 -3
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +12 -3
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +6 -6
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +6 -6
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +17 -0
- package/src/resources/agents/agents.ts +475 -0
- package/src/resources/agents/conversations.ts +205 -0
- package/src/resources/agents/files.ts +105 -0
- package/src/resources/agents/index.ts +34 -0
- package/src/resources/agents/profile.ts +225 -0
- package/src/resources/agents/requests.ts +495 -0
- package/src/resources/agents/routines.ts +156 -0
- package/src/resources/agents.ts +3 -0
- package/src/resources/assistant/conversations.ts +148 -39
- package/src/resources/connect/connect.ts +2 -0
- package/src/resources/connect/index.ts +1 -0
- package/src/resources/connect/proxies.ts +27 -0
- package/src/resources/credentials/credentials.ts +51 -0
- package/src/resources/credentials/index.ts +7 -0
- package/src/resources/credentials/onepassword/index.ts +10 -0
- package/src/resources/credentials/onepassword/onepassword.ts +101 -0
- package/src/resources/credentials/onepassword/vaults/index.ts +4 -0
- package/src/resources/credentials/onepassword/vaults/items/fields.ts +40 -0
- package/src/resources/credentials/onepassword/vaults/items/index.ts +4 -0
- package/src/resources/credentials/onepassword/vaults/items/items.ts +55 -0
- package/src/resources/credentials/onepassword/vaults/items.ts +3 -0
- package/src/resources/credentials/onepassword/vaults/vaults.ts +15 -0
- package/src/resources/credentials/onepassword/vaults.ts +3 -0
- package/src/resources/credentials/onepassword.ts +3 -0
- package/src/resources/credentials/packages/credentials/credentials.ts +58 -55
- package/src/resources/credentials/packages/credentials/fields.ts +99 -0
- package/src/resources/credentials/packages/credentials/index.ts +0 -2
- package/src/resources/credentials/packages/index.ts +1 -2
- package/src/resources/credentials/packages/links.ts +122 -0
- package/src/resources/credentials/packages/packages.ts +43 -4
- package/src/resources/devices/actions.ts +3 -4
- package/src/resources/devices/apps.ts +2 -2
- package/src/resources/devices/devices.ts +86 -37
- package/src/resources/devices/index.ts +14 -0
- package/src/resources/devices/keyboard.ts +1 -1
- package/src/resources/devices/language.ts +6 -4
- package/src/resources/devices/number-bindings.ts +62 -0
- package/src/resources/devices/number.ts +261 -0
- package/src/resources/devices/state.ts +2 -0
- package/src/resources/files.ts +17 -7
- package/src/resources/index.ts +7 -0
- package/src/resources/mailboxes/messages.ts +17 -2
- package/src/resources/messages/conversations.ts +6 -0
- package/src/resources/messages/messages.ts +16 -0
- package/src/resources/numbers/messages.ts +17 -2
- package/src/resources/numbers/numbers.ts +64 -0
- package/src/resources/tasks/tasks.ts +30 -7
- package/src/resources/workflows/action-catalog.ts +69 -8
- package/src/resources/workflows/actions/actions.ts +29 -10
- package/src/resources/workflows/actions/index.ts +1 -0
- package/src/resources/workflows/actions/services.ts +1 -1
- package/src/resources/workflows/events.ts +32 -2
- package/src/resources/workflows/executions/executions.ts +26 -0
- package/src/resources/workflows/flows/flows.ts +707 -97
- package/src/resources/workflows/flows/index.ts +10 -0
- package/src/resources/workflows/flows/state.ts +103 -0
- package/src/resources/workflows/index.ts +4 -0
- package/src/resources/workflows/triggers.ts +34 -5
- package/src/resources/workflows/workflows.ts +8 -0
- 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
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
export class Routines extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Forwards the scheduler CreateFlowBody unchanged and assigns the Agent selected
|
|
7
|
+
* in the path. Requires Idempotency-Key; reuse it after a transient failure.
|
|
8
|
+
*/
|
|
9
|
+
create(agentID, body, options) {
|
|
10
|
+
return this._client.post(path `/agents/${agentID}/routines`, { body, ...options });
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The source must belong to the authenticated owner and be assigned to the same
|
|
14
|
+
* Agent or unassigned. The target is the Agent in the path. Requires
|
|
15
|
+
* Idempotency-Key.
|
|
16
|
+
*/
|
|
17
|
+
clone(routineID, params, options) {
|
|
18
|
+
const { agentId, ...body } = params;
|
|
19
|
+
return this._client.post(path `/agents/${agentId}/routines/${routineID}/clone`, { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=routines.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routines.mjs","sourceRoot":"","sources":["../../src/resources/agents/routines.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,MAAM,CACJ,OAAe,EACf,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,WAAW,OAAO,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;OAIG;IACH,KAAK,CACH,SAAiB,EACjB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,WAAW,OAAO,aAAa,SAAS,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.d.mts","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":"AAEA,mCAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":"AAEA,kCAA+B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./agents/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=agents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,mCAA+B"}
|
|
@@ -13,11 +13,8 @@ export declare class Conversations extends APIResource {
|
|
|
13
13
|
create(body: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse>;
|
|
14
14
|
/**
|
|
15
15
|
* Rename, change status, and/or pin. Title updates apply best-effort. Archiving
|
|
16
|
-
* always clears the pinned flag.
|
|
17
|
-
*
|
|
18
|
-
* workflow — a bound chat's title is managed by the workflow. Other fields
|
|
19
|
-
* (description, status, pinned) remain updateable; archiving a bound chat stays
|
|
20
|
-
* allowed.
|
|
16
|
+
* always clears the pinned flag. Archiving a session with an in-flight turn is
|
|
17
|
+
* rejected with 409.
|
|
21
18
|
*/
|
|
22
19
|
update(id: string, body: ConversationUpdateParams, options?: RequestOptions): APIPromise<ConversationUpdateResponse>;
|
|
23
20
|
/**
|
|
@@ -37,10 +34,11 @@ export declare class Conversations extends APIResource {
|
|
|
37
34
|
/**
|
|
38
35
|
* Deliver a HITL approval/rejection for an in-flight turn. Interactive HITL
|
|
39
36
|
* clients must start the turn with `Accept: text/event-stream`, wait for a
|
|
40
|
-
* `tool-
|
|
41
|
-
* `/assistant/chat/permission`. Do not
|
|
42
|
-
*
|
|
43
|
-
*
|
|
37
|
+
* `tool-input-available` event with `toolName: "hitl-approval"`, and send its
|
|
38
|
+
* `toolCallId` as `permissionId` here at `/assistant/chat/permission`. Do not
|
|
39
|
+
* submit approval as free-form user text or as `confirmed: true`. For
|
|
40
|
+
* `devices.reset`, only `once` and `reject` are allowed; the generic `always`
|
|
41
|
+
* response is rejected with HTTP 400.
|
|
44
42
|
*/
|
|
45
43
|
answerPermission(body: ConversationAnswerPermissionParams, options?: RequestOptions): APIPromise<ConversationAnswerPermissionResponse>;
|
|
46
44
|
/**
|
|
@@ -49,10 +47,10 @@ export declare class Conversations extends APIResource {
|
|
|
49
47
|
*/
|
|
50
48
|
answerQuestion(body: ConversationAnswerQuestionParams, options?: RequestOptions): APIPromise<ConversationAnswerQuestionResponse>;
|
|
51
49
|
/**
|
|
52
|
-
* Return the user's chat history for the given session.
|
|
53
|
-
*
|
|
50
|
+
* Return the user's chat history for the given session. Inactive chat sessions
|
|
51
|
+
* return 404; workflow transcripts remain readable after completion.
|
|
54
52
|
*/
|
|
55
|
-
history(
|
|
53
|
+
history(id: string, query?: ConversationHistoryParams | null | undefined, options?: RequestOptions): APIPromise<ConversationHistoryResponse>;
|
|
56
54
|
/**
|
|
57
55
|
* Dismiss the agent's pending question. Already-resolved questions return 200
|
|
58
56
|
* (no-op) so multi-tab dismiss stays idempotent.
|
|
@@ -61,12 +59,15 @@ export declare class Conversations extends APIResource {
|
|
|
61
59
|
/**
|
|
62
60
|
* Send a single user message. The response format follows the Accept header:
|
|
63
61
|
* `text/event-stream` for SSE, `application/json` for a buffered assistant reply.
|
|
64
|
-
* Interactive HITL requires `Accept: text/event-stream
|
|
65
|
-
* `tool-
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
62
|
+
* Interactive HITL requires `Accept: text/event-stream`. An approval request
|
|
63
|
+
* arrives as a `tool-input-available` event with `toolName: "hitl-approval"`. Its
|
|
64
|
+
* `toolCallId` (equal to `input.permissionID`) is the permission id; deliver the
|
|
65
|
+
* decision to `/assistant/chat/permission`. In the message history, the same
|
|
66
|
+
* request appears as a `tool-hitl-approval` part. Buffered JSON responses do not
|
|
67
|
+
* provide an interactive HITL continuation contract. `sessionId` targets a
|
|
68
|
+
* concrete active chat. The resolved chat session ID is returned as
|
|
69
|
+
* `chatSessionId` in the JSON body and as the `X-Chat-Session-Id` response header
|
|
70
|
+
* on the SSE response.
|
|
70
71
|
*/
|
|
71
72
|
send(body: ConversationSendParams, options?: RequestOptions): APIPromise<ConversationSendResponse>;
|
|
72
73
|
/**
|
|
@@ -85,6 +86,7 @@ export declare namespace ConversationCreateResponse {
|
|
|
85
86
|
interface Session {
|
|
86
87
|
id: string;
|
|
87
88
|
agent: string | null;
|
|
89
|
+
agentId: string | null;
|
|
88
90
|
basePromptTokens: number | null;
|
|
89
91
|
contextExhaustedAt: string | null;
|
|
90
92
|
costCents: number;
|
|
@@ -110,6 +112,7 @@ export declare namespace ConversationUpdateResponse {
|
|
|
110
112
|
interface Session {
|
|
111
113
|
id: string;
|
|
112
114
|
agent: string | null;
|
|
115
|
+
agentId: string | null;
|
|
113
116
|
basePromptTokens: number | null;
|
|
114
117
|
contextExhaustedAt: string | null;
|
|
115
118
|
costCents: number;
|
|
@@ -135,6 +138,7 @@ export declare namespace ConversationListResponse {
|
|
|
135
138
|
interface UnionMember0 {
|
|
136
139
|
id: string;
|
|
137
140
|
agent: string | null;
|
|
141
|
+
agentId: string | null;
|
|
138
142
|
basePromptTokens: number | null;
|
|
139
143
|
contextExhaustedAt: string | null;
|
|
140
144
|
costCents: number;
|
|
@@ -159,6 +163,7 @@ export declare namespace ConversationListResponse {
|
|
|
159
163
|
interface UnionMember1 {
|
|
160
164
|
id: string;
|
|
161
165
|
agent: string | null;
|
|
166
|
+
agentId: string | null;
|
|
162
167
|
basePromptTokens: number | null;
|
|
163
168
|
contextExhaustedAt: string | null;
|
|
164
169
|
costCents: number;
|
|
@@ -191,21 +196,67 @@ export interface ConversationAnswerQuestionResponse {
|
|
|
191
196
|
ok: true;
|
|
192
197
|
}
|
|
193
198
|
export interface ConversationHistoryResponse {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
+
/**
|
|
200
|
+
* Session Agent identity, present on every page; null only when the session has no
|
|
201
|
+
* Agent.
|
|
202
|
+
*/
|
|
203
|
+
agent: ConversationHistoryResponse.Agent | null;
|
|
204
|
+
data: Array<ConversationHistoryResponse.Data>;
|
|
205
|
+
/**
|
|
206
|
+
* Oldest real row in the page; pass as before to load older turns.
|
|
207
|
+
*/
|
|
208
|
+
firstId: string | null;
|
|
209
|
+
/**
|
|
210
|
+
* Older whole turns exist.
|
|
211
|
+
*/
|
|
212
|
+
hasMore: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* Newest real row in the page, before continuation collapse or synthetic rows.
|
|
215
|
+
*/
|
|
216
|
+
lastId: string | null;
|
|
217
|
+
/**
|
|
218
|
+
* Newest-page turn snapshot; null when before is supplied.
|
|
219
|
+
*/
|
|
220
|
+
turn: ConversationHistoryResponse.Turn | null;
|
|
199
221
|
}
|
|
200
222
|
export declare namespace ConversationHistoryResponse {
|
|
201
|
-
|
|
223
|
+
/**
|
|
224
|
+
* Session Agent identity, present on every page; null only when the session has no
|
|
225
|
+
* Agent.
|
|
226
|
+
*/
|
|
227
|
+
interface Agent {
|
|
202
228
|
id: string;
|
|
203
|
-
|
|
229
|
+
profile: Agent.Profile;
|
|
230
|
+
}
|
|
231
|
+
namespace Agent {
|
|
232
|
+
interface Profile {
|
|
233
|
+
/**
|
|
234
|
+
* Configuration of a `blob` avatar: its seed and optional user-chosen palette
|
|
235
|
+
* color. A color-only config retains the default seed fallback.
|
|
236
|
+
*/
|
|
237
|
+
avatarConfig: Profile.AvatarConfig | null;
|
|
238
|
+
avatarKind: 'blob' | null;
|
|
239
|
+
displayName: string | null;
|
|
240
|
+
}
|
|
241
|
+
namespace Profile {
|
|
242
|
+
/**
|
|
243
|
+
* Configuration of a `blob` avatar: its seed and optional user-chosen palette
|
|
244
|
+
* color. A color-only config retains the default seed fallback.
|
|
245
|
+
*/
|
|
246
|
+
interface AvatarConfig {
|
|
247
|
+
color?: 'slate' | 'red' | 'orange' | 'amber' | 'lime' | 'green' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'violet' | 'pink';
|
|
248
|
+
seed?: string | number;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
interface Data {
|
|
253
|
+
id: string;
|
|
254
|
+
parts: Array<Data.Part>;
|
|
204
255
|
role: 'user' | 'assistant' | 'system';
|
|
205
256
|
createdAt?: string;
|
|
206
257
|
createdBy?: string | null;
|
|
207
258
|
feedback?: boolean | null;
|
|
208
|
-
metadata?:
|
|
259
|
+
metadata?: Data.Metadata;
|
|
209
260
|
source?: 'cloud' | 'telegram' | 'api' | 'workflow' | 'notification';
|
|
210
261
|
synthetic?: boolean;
|
|
211
262
|
turnId?: string | null;
|
|
@@ -214,7 +265,7 @@ export declare namespace ConversationHistoryResponse {
|
|
|
214
265
|
*/
|
|
215
266
|
userId?: string | null;
|
|
216
267
|
}
|
|
217
|
-
namespace
|
|
268
|
+
namespace Data {
|
|
218
269
|
interface Part {
|
|
219
270
|
type: string;
|
|
220
271
|
[k: string]: unknown;
|
|
@@ -223,6 +274,10 @@ export declare namespace ConversationHistoryResponse {
|
|
|
223
274
|
agent?: string;
|
|
224
275
|
agentMessageId?: string;
|
|
225
276
|
agentSessionId?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Backend notice classification on synthetic turn notes; user_stop is reserved.
|
|
279
|
+
*/
|
|
280
|
+
notice?: 'user_stop' | 'interrupted' | 'no_progress' | 'tool_error' | 'error' | 'empty_answer';
|
|
226
281
|
/**
|
|
227
282
|
* Steer user rows appear directly above the collapsed assistant group of their
|
|
228
283
|
* turn, matching live cloud ordering.
|
|
@@ -244,16 +299,31 @@ export declare namespace ConversationHistoryResponse {
|
|
|
244
299
|
}
|
|
245
300
|
}
|
|
246
301
|
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
302
|
+
/**
|
|
303
|
+
* Newest-page turn snapshot; null when before is supplied.
|
|
304
|
+
*/
|
|
305
|
+
interface Turn {
|
|
306
|
+
/**
|
|
307
|
+
* Whether this session owns an in-flight turn.
|
|
308
|
+
*/
|
|
309
|
+
turnActive: boolean;
|
|
310
|
+
turnState: Turn.TurnState | null;
|
|
311
|
+
}
|
|
312
|
+
namespace Turn {
|
|
313
|
+
interface TurnState {
|
|
314
|
+
id: string;
|
|
315
|
+
abortRequested: boolean;
|
|
316
|
+
attachable: boolean;
|
|
317
|
+
claimHeld: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* Outcome of the latest turn, or null while it is still open.
|
|
320
|
+
*/
|
|
321
|
+
outcome: string | null;
|
|
322
|
+
phase: 'created' | 'running' | 'closed' | 'delivered' | 'failed';
|
|
323
|
+
reaping: boolean;
|
|
324
|
+
revision: number;
|
|
325
|
+
startedAt: string;
|
|
326
|
+
}
|
|
257
327
|
}
|
|
258
328
|
}
|
|
259
329
|
export interface ConversationRejectQuestionResponse {
|
|
@@ -288,10 +358,12 @@ export interface ConversationAbortParams {
|
|
|
288
358
|
export interface ConversationAnswerPermissionParams {
|
|
289
359
|
permissionId: string;
|
|
290
360
|
response: 'once' | 'always' | 'reject';
|
|
361
|
+
sessionId?: string;
|
|
291
362
|
}
|
|
292
363
|
export interface ConversationAnswerQuestionParams {
|
|
293
364
|
answers: Array<Array<ConversationAnswerQuestionParams.Label | ConversationAnswerQuestionParams.Custom | ConversationAnswerQuestionParams.UnionMember2>>;
|
|
294
365
|
questionId: string;
|
|
366
|
+
sessionId?: string;
|
|
295
367
|
}
|
|
296
368
|
export declare namespace ConversationAnswerQuestionParams {
|
|
297
369
|
interface Label {
|
|
@@ -306,16 +378,21 @@ export declare namespace ConversationAnswerQuestionParams {
|
|
|
306
378
|
}
|
|
307
379
|
}
|
|
308
380
|
export interface ConversationHistoryParams {
|
|
309
|
-
|
|
381
|
+
/**
|
|
382
|
+
* Any real row in this session; its containing turn is excluded.
|
|
383
|
+
*/
|
|
384
|
+
before?: string;
|
|
310
385
|
limit?: number;
|
|
311
386
|
}
|
|
312
387
|
export interface ConversationRejectQuestionParams {
|
|
313
388
|
questionId: string;
|
|
389
|
+
sessionId?: string;
|
|
314
390
|
}
|
|
315
391
|
export interface ConversationSendParams {
|
|
316
392
|
message: string;
|
|
317
393
|
sessionId: string;
|
|
318
394
|
agent?: string;
|
|
395
|
+
model?: string;
|
|
319
396
|
}
|
|
320
397
|
export interface ConversationStreamParams {
|
|
321
398
|
sessionId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.d.mts","sourceRoot":"","sources":["../../src/resources/assistant/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,iCAA6B;AAE9C,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE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extends APIResource {
|
|
|
13
13
|
create(body: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse>;
|
|
14
14
|
/**
|
|
15
15
|
* Rename, change status, and/or pin. Title updates apply best-effort. Archiving
|
|
16
|
-
* always clears the pinned flag.
|
|
17
|
-
*
|
|
18
|
-
* workflow — a bound chat's title is managed by the workflow. Other fields
|
|
19
|
-
* (description, status, pinned) remain updateable; archiving a bound chat stays
|
|
20
|
-
* allowed.
|
|
16
|
+
* always clears the pinned flag. Archiving a session with an in-flight turn is
|
|
17
|
+
* rejected with 409.
|
|
21
18
|
*/
|
|
22
19
|
update(id: string, body: ConversationUpdateParams, options?: RequestOptions): APIPromise<ConversationUpdateResponse>;
|
|
23
20
|
/**
|
|
@@ -37,10 +34,11 @@ export declare class Conversations extends APIResource {
|
|
|
37
34
|
/**
|
|
38
35
|
* Deliver a HITL approval/rejection for an in-flight turn. Interactive HITL
|
|
39
36
|
* clients must start the turn with `Accept: text/event-stream`, wait for a
|
|
40
|
-
* `tool-
|
|
41
|
-
* `/assistant/chat/permission`. Do not
|
|
42
|
-
*
|
|
43
|
-
*
|
|
37
|
+
* `tool-input-available` event with `toolName: "hitl-approval"`, and send its
|
|
38
|
+
* `toolCallId` as `permissionId` here at `/assistant/chat/permission`. Do not
|
|
39
|
+
* submit approval as free-form user text or as `confirmed: true`. For
|
|
40
|
+
* `devices.reset`, only `once` and `reject` are allowed; the generic `always`
|
|
41
|
+
* response is rejected with HTTP 400.
|
|
44
42
|
*/
|
|
45
43
|
answerPermission(body: ConversationAnswerPermissionParams, options?: RequestOptions): APIPromise<ConversationAnswerPermissionResponse>;
|
|
46
44
|
/**
|
|
@@ -49,10 +47,10 @@ export declare class Conversations extends APIResource {
|
|
|
49
47
|
*/
|
|
50
48
|
answerQuestion(body: ConversationAnswerQuestionParams, options?: RequestOptions): APIPromise<ConversationAnswerQuestionResponse>;
|
|
51
49
|
/**
|
|
52
|
-
* Return the user's chat history for the given session.
|
|
53
|
-
*
|
|
50
|
+
* Return the user's chat history for the given session. Inactive chat sessions
|
|
51
|
+
* return 404; workflow transcripts remain readable after completion.
|
|
54
52
|
*/
|
|
55
|
-
history(
|
|
53
|
+
history(id: string, query?: ConversationHistoryParams | null | undefined, options?: RequestOptions): APIPromise<ConversationHistoryResponse>;
|
|
56
54
|
/**
|
|
57
55
|
* Dismiss the agent's pending question. Already-resolved questions return 200
|
|
58
56
|
* (no-op) so multi-tab dismiss stays idempotent.
|
|
@@ -61,12 +59,15 @@ export declare class Conversations extends APIResource {
|
|
|
61
59
|
/**
|
|
62
60
|
* Send a single user message. The response format follows the Accept header:
|
|
63
61
|
* `text/event-stream` for SSE, `application/json` for a buffered assistant reply.
|
|
64
|
-
* Interactive HITL requires `Accept: text/event-stream
|
|
65
|
-
* `tool-
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
62
|
+
* Interactive HITL requires `Accept: text/event-stream`. An approval request
|
|
63
|
+
* arrives as a `tool-input-available` event with `toolName: "hitl-approval"`. Its
|
|
64
|
+
* `toolCallId` (equal to `input.permissionID`) is the permission id; deliver the
|
|
65
|
+
* decision to `/assistant/chat/permission`. In the message history, the same
|
|
66
|
+
* request appears as a `tool-hitl-approval` part. Buffered JSON responses do not
|
|
67
|
+
* provide an interactive HITL continuation contract. `sessionId` targets a
|
|
68
|
+
* concrete active chat. The resolved chat session ID is returned as
|
|
69
|
+
* `chatSessionId` in the JSON body and as the `X-Chat-Session-Id` response header
|
|
70
|
+
* on the SSE response.
|
|
70
71
|
*/
|
|
71
72
|
send(body: ConversationSendParams, options?: RequestOptions): APIPromise<ConversationSendResponse>;
|
|
72
73
|
/**
|
|
@@ -85,6 +86,7 @@ export declare namespace ConversationCreateResponse {
|
|
|
85
86
|
interface Session {
|
|
86
87
|
id: string;
|
|
87
88
|
agent: string | null;
|
|
89
|
+
agentId: string | null;
|
|
88
90
|
basePromptTokens: number | null;
|
|
89
91
|
contextExhaustedAt: string | null;
|
|
90
92
|
costCents: number;
|
|
@@ -110,6 +112,7 @@ export declare namespace ConversationUpdateResponse {
|
|
|
110
112
|
interface Session {
|
|
111
113
|
id: string;
|
|
112
114
|
agent: string | null;
|
|
115
|
+
agentId: string | null;
|
|
113
116
|
basePromptTokens: number | null;
|
|
114
117
|
contextExhaustedAt: string | null;
|
|
115
118
|
costCents: number;
|
|
@@ -135,6 +138,7 @@ export declare namespace ConversationListResponse {
|
|
|
135
138
|
interface UnionMember0 {
|
|
136
139
|
id: string;
|
|
137
140
|
agent: string | null;
|
|
141
|
+
agentId: string | null;
|
|
138
142
|
basePromptTokens: number | null;
|
|
139
143
|
contextExhaustedAt: string | null;
|
|
140
144
|
costCents: number;
|
|
@@ -159,6 +163,7 @@ export declare namespace ConversationListResponse {
|
|
|
159
163
|
interface UnionMember1 {
|
|
160
164
|
id: string;
|
|
161
165
|
agent: string | null;
|
|
166
|
+
agentId: string | null;
|
|
162
167
|
basePromptTokens: number | null;
|
|
163
168
|
contextExhaustedAt: string | null;
|
|
164
169
|
costCents: number;
|
|
@@ -191,21 +196,67 @@ export interface ConversationAnswerQuestionResponse {
|
|
|
191
196
|
ok: true;
|
|
192
197
|
}
|
|
193
198
|
export interface ConversationHistoryResponse {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
+
/**
|
|
200
|
+
* Session Agent identity, present on every page; null only when the session has no
|
|
201
|
+
* Agent.
|
|
202
|
+
*/
|
|
203
|
+
agent: ConversationHistoryResponse.Agent | null;
|
|
204
|
+
data: Array<ConversationHistoryResponse.Data>;
|
|
205
|
+
/**
|
|
206
|
+
* Oldest real row in the page; pass as before to load older turns.
|
|
207
|
+
*/
|
|
208
|
+
firstId: string | null;
|
|
209
|
+
/**
|
|
210
|
+
* Older whole turns exist.
|
|
211
|
+
*/
|
|
212
|
+
hasMore: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* Newest real row in the page, before continuation collapse or synthetic rows.
|
|
215
|
+
*/
|
|
216
|
+
lastId: string | null;
|
|
217
|
+
/**
|
|
218
|
+
* Newest-page turn snapshot; null when before is supplied.
|
|
219
|
+
*/
|
|
220
|
+
turn: ConversationHistoryResponse.Turn | null;
|
|
199
221
|
}
|
|
200
222
|
export declare namespace ConversationHistoryResponse {
|
|
201
|
-
|
|
223
|
+
/**
|
|
224
|
+
* Session Agent identity, present on every page; null only when the session has no
|
|
225
|
+
* Agent.
|
|
226
|
+
*/
|
|
227
|
+
interface Agent {
|
|
202
228
|
id: string;
|
|
203
|
-
|
|
229
|
+
profile: Agent.Profile;
|
|
230
|
+
}
|
|
231
|
+
namespace Agent {
|
|
232
|
+
interface Profile {
|
|
233
|
+
/**
|
|
234
|
+
* Configuration of a `blob` avatar: its seed and optional user-chosen palette
|
|
235
|
+
* color. A color-only config retains the default seed fallback.
|
|
236
|
+
*/
|
|
237
|
+
avatarConfig: Profile.AvatarConfig | null;
|
|
238
|
+
avatarKind: 'blob' | null;
|
|
239
|
+
displayName: string | null;
|
|
240
|
+
}
|
|
241
|
+
namespace Profile {
|
|
242
|
+
/**
|
|
243
|
+
* Configuration of a `blob` avatar: its seed and optional user-chosen palette
|
|
244
|
+
* color. A color-only config retains the default seed fallback.
|
|
245
|
+
*/
|
|
246
|
+
interface AvatarConfig {
|
|
247
|
+
color?: 'slate' | 'red' | 'orange' | 'amber' | 'lime' | 'green' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'violet' | 'pink';
|
|
248
|
+
seed?: string | number;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
interface Data {
|
|
253
|
+
id: string;
|
|
254
|
+
parts: Array<Data.Part>;
|
|
204
255
|
role: 'user' | 'assistant' | 'system';
|
|
205
256
|
createdAt?: string;
|
|
206
257
|
createdBy?: string | null;
|
|
207
258
|
feedback?: boolean | null;
|
|
208
|
-
metadata?:
|
|
259
|
+
metadata?: Data.Metadata;
|
|
209
260
|
source?: 'cloud' | 'telegram' | 'api' | 'workflow' | 'notification';
|
|
210
261
|
synthetic?: boolean;
|
|
211
262
|
turnId?: string | null;
|
|
@@ -214,7 +265,7 @@ export declare namespace ConversationHistoryResponse {
|
|
|
214
265
|
*/
|
|
215
266
|
userId?: string | null;
|
|
216
267
|
}
|
|
217
|
-
namespace
|
|
268
|
+
namespace Data {
|
|
218
269
|
interface Part {
|
|
219
270
|
type: string;
|
|
220
271
|
[k: string]: unknown;
|
|
@@ -223,6 +274,10 @@ export declare namespace ConversationHistoryResponse {
|
|
|
223
274
|
agent?: string;
|
|
224
275
|
agentMessageId?: string;
|
|
225
276
|
agentSessionId?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Backend notice classification on synthetic turn notes; user_stop is reserved.
|
|
279
|
+
*/
|
|
280
|
+
notice?: 'user_stop' | 'interrupted' | 'no_progress' | 'tool_error' | 'error' | 'empty_answer';
|
|
226
281
|
/**
|
|
227
282
|
* Steer user rows appear directly above the collapsed assistant group of their
|
|
228
283
|
* turn, matching live cloud ordering.
|
|
@@ -244,16 +299,31 @@ export declare namespace ConversationHistoryResponse {
|
|
|
244
299
|
}
|
|
245
300
|
}
|
|
246
301
|
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
302
|
+
/**
|
|
303
|
+
* Newest-page turn snapshot; null when before is supplied.
|
|
304
|
+
*/
|
|
305
|
+
interface Turn {
|
|
306
|
+
/**
|
|
307
|
+
* Whether this session owns an in-flight turn.
|
|
308
|
+
*/
|
|
309
|
+
turnActive: boolean;
|
|
310
|
+
turnState: Turn.TurnState | null;
|
|
311
|
+
}
|
|
312
|
+
namespace Turn {
|
|
313
|
+
interface TurnState {
|
|
314
|
+
id: string;
|
|
315
|
+
abortRequested: boolean;
|
|
316
|
+
attachable: boolean;
|
|
317
|
+
claimHeld: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* Outcome of the latest turn, or null while it is still open.
|
|
320
|
+
*/
|
|
321
|
+
outcome: string | null;
|
|
322
|
+
phase: 'created' | 'running' | 'closed' | 'delivered' | 'failed';
|
|
323
|
+
reaping: boolean;
|
|
324
|
+
revision: number;
|
|
325
|
+
startedAt: string;
|
|
326
|
+
}
|
|
257
327
|
}
|
|
258
328
|
}
|
|
259
329
|
export interface ConversationRejectQuestionResponse {
|
|
@@ -288,10 +358,12 @@ export interface ConversationAbortParams {
|
|
|
288
358
|
export interface ConversationAnswerPermissionParams {
|
|
289
359
|
permissionId: string;
|
|
290
360
|
response: 'once' | 'always' | 'reject';
|
|
361
|
+
sessionId?: string;
|
|
291
362
|
}
|
|
292
363
|
export interface ConversationAnswerQuestionParams {
|
|
293
364
|
answers: Array<Array<ConversationAnswerQuestionParams.Label | ConversationAnswerQuestionParams.Custom | ConversationAnswerQuestionParams.UnionMember2>>;
|
|
294
365
|
questionId: string;
|
|
366
|
+
sessionId?: string;
|
|
295
367
|
}
|
|
296
368
|
export declare namespace ConversationAnswerQuestionParams {
|
|
297
369
|
interface Label {
|
|
@@ -306,16 +378,21 @@ export declare namespace ConversationAnswerQuestionParams {
|
|
|
306
378
|
}
|
|
307
379
|
}
|
|
308
380
|
export interface ConversationHistoryParams {
|
|
309
|
-
|
|
381
|
+
/**
|
|
382
|
+
* Any real row in this session; its containing turn is excluded.
|
|
383
|
+
*/
|
|
384
|
+
before?: string;
|
|
310
385
|
limit?: number;
|
|
311
386
|
}
|
|
312
387
|
export interface ConversationRejectQuestionParams {
|
|
313
388
|
questionId: string;
|
|
389
|
+
sessionId?: string;
|
|
314
390
|
}
|
|
315
391
|
export interface ConversationSendParams {
|
|
316
392
|
message: string;
|
|
317
393
|
sessionId: string;
|
|
318
394
|
agent?: string;
|
|
395
|
+
model?: string;
|
|
319
396
|
}
|
|
320
397
|
export interface ConversationStreamParams {
|
|
321
398
|
sessionId: string;
|