@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 @@
|
|
|
1
|
+
{"version":3,"file":"requests.d.mts","sourceRoot":"","sources":["../../src/resources/agents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AAE,MAAM,GAAG,IAAI,CAAC;SACvB;KACF;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Requests extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Owner-scoped. Returns the request with its payloads and event timeline; an
|
|
7
|
+
* unknown id or another owner's request is a 404.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(requestID: string, options?: RequestOptions): APIPromise<RequestRetrieveResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Owner-scoped. Returns newest requests first, ordered by creation time and id.
|
|
12
|
+
* Use nextCursor as before to read older pages. Invalid cursors return 400
|
|
13
|
+
* invalid_cursor. Use the single read for payloads and events.
|
|
14
|
+
*/
|
|
15
|
+
list(query?: RequestListParams | null | undefined, options?: RequestOptions): APIPromise<RequestListResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Owner-scoped. Returns newest requests where the Agent is source or target. Use
|
|
18
|
+
* nextCursor as before to read older pages. Invalid cursors return 400
|
|
19
|
+
* invalid_cursor.
|
|
20
|
+
*/
|
|
21
|
+
listForAgent(agentID: string, query?: RequestListForAgentParams | null | undefined, options?: RequestOptions): APIPromise<RequestListForAgentResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Owner-scoped. Returns the Agent-to-Agent request whose target session is
|
|
24
|
+
* {sessionId}, including its payloads and event timeline. Unknown sessions,
|
|
25
|
+
* source-only sessions, sessions without a request, and another owner's sessions
|
|
26
|
+
* return 404 agent_request_not_found.
|
|
27
|
+
*/
|
|
28
|
+
retrieveBySession(sessionID: string, options?: RequestOptions): APIPromise<RequestRetrieveBySessionResponse>;
|
|
29
|
+
}
|
|
30
|
+
export interface RequestRetrieveResponse {
|
|
31
|
+
id: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
deadlineAt: string;
|
|
34
|
+
depth: number;
|
|
35
|
+
dispatchAttempts: number;
|
|
36
|
+
dispatchedAt: string | null;
|
|
37
|
+
error: RequestRetrieveResponse.Error | null;
|
|
38
|
+
events: Array<RequestRetrieveResponse.Event>;
|
|
39
|
+
finishedAt: string | null;
|
|
40
|
+
request: RequestRetrieveResponse.Request;
|
|
41
|
+
result: RequestRetrieveResponse.Text | RequestRetrieveResponse.Question | null;
|
|
42
|
+
room: RequestRetrieveResponse.Room;
|
|
43
|
+
sourceAgentId: string;
|
|
44
|
+
sourceSessionId: string;
|
|
45
|
+
status: 'queued' | 'running' | 'answered' | 'failed' | 'timed_out' | 'cancelled' | 'late_answer' | 'needs_user_input';
|
|
46
|
+
targetAgentId: string;
|
|
47
|
+
targetSessionId: string;
|
|
48
|
+
updatedAt: string;
|
|
49
|
+
visited: Array<string>;
|
|
50
|
+
}
|
|
51
|
+
export declare namespace RequestRetrieveResponse {
|
|
52
|
+
interface Error {
|
|
53
|
+
/**
|
|
54
|
+
* Why the request did not produce an answer. An open set: new codes can appear.
|
|
55
|
+
* Codes written today: `agent_archived`, `agent_disabled`, `dispatch_failed`,
|
|
56
|
+
* `timed_out`, `cancelled`, `result_too_large`, `no_answer`, `target_turn_failed`,
|
|
57
|
+
* `target_error`, `target_aborted`, `target_crash_recovered`,
|
|
58
|
+
* `target_unknown_outcome`.
|
|
59
|
+
*/
|
|
60
|
+
code: string;
|
|
61
|
+
message: string;
|
|
62
|
+
preview?: string;
|
|
63
|
+
}
|
|
64
|
+
interface Event {
|
|
65
|
+
createdAt: string;
|
|
66
|
+
kind: string;
|
|
67
|
+
payload: {
|
|
68
|
+
[key: string]: unknown;
|
|
69
|
+
} | null;
|
|
70
|
+
seq: number;
|
|
71
|
+
}
|
|
72
|
+
interface Request {
|
|
73
|
+
message: string;
|
|
74
|
+
sourceDisplayName: string | null;
|
|
75
|
+
timeoutSeconds: number;
|
|
76
|
+
fileIds?: Array<string>;
|
|
77
|
+
}
|
|
78
|
+
interface Text {
|
|
79
|
+
text: string;
|
|
80
|
+
}
|
|
81
|
+
interface Question {
|
|
82
|
+
question: string;
|
|
83
|
+
}
|
|
84
|
+
interface Room {
|
|
85
|
+
id: string;
|
|
86
|
+
kind: 'direct' | 'group';
|
|
87
|
+
members: Array<Room.Member>;
|
|
88
|
+
}
|
|
89
|
+
namespace Room {
|
|
90
|
+
interface Member {
|
|
91
|
+
id: string;
|
|
92
|
+
agentId: string | null;
|
|
93
|
+
joinedAt: string;
|
|
94
|
+
leftAt: string | null;
|
|
95
|
+
participantType: 'agent' | 'user';
|
|
96
|
+
role: 'owner' | 'member';
|
|
97
|
+
userId: string | null;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
export interface RequestListResponse {
|
|
102
|
+
/**
|
|
103
|
+
* Cursor for the next page; null when there are no older requests.
|
|
104
|
+
*/
|
|
105
|
+
nextCursor: string | null;
|
|
106
|
+
requests: Array<RequestListResponse.Request>;
|
|
107
|
+
}
|
|
108
|
+
export declare namespace RequestListResponse {
|
|
109
|
+
interface Request {
|
|
110
|
+
id: string;
|
|
111
|
+
createdAt: string;
|
|
112
|
+
deadlineAt: string;
|
|
113
|
+
depth: number;
|
|
114
|
+
dispatchedAt: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* `error.code` of the full request, null when it has none. An open set: new codes
|
|
117
|
+
* can appear. Codes written today: `agent_archived`, `agent_disabled`,
|
|
118
|
+
* `dispatch_failed`, `timed_out`, `cancelled`, `result_too_large`, `no_answer`,
|
|
119
|
+
* `target_turn_failed`, `target_error`, `target_aborted`,
|
|
120
|
+
* `target_crash_recovered`, `target_unknown_outcome`.
|
|
121
|
+
*/
|
|
122
|
+
errorCode: string | null;
|
|
123
|
+
finishedAt: string | null;
|
|
124
|
+
room: Request.Room;
|
|
125
|
+
sourceAgentId: string;
|
|
126
|
+
sourceSessionId: string;
|
|
127
|
+
status: 'queued' | 'running' | 'answered' | 'failed' | 'timed_out' | 'cancelled' | 'late_answer' | 'needs_user_input';
|
|
128
|
+
targetAgentId: string;
|
|
129
|
+
targetSessionId: string;
|
|
130
|
+
updatedAt: string;
|
|
131
|
+
}
|
|
132
|
+
namespace Request {
|
|
133
|
+
interface Room {
|
|
134
|
+
id: string;
|
|
135
|
+
kind: 'direct' | 'group';
|
|
136
|
+
members: Array<Room.Member>;
|
|
137
|
+
}
|
|
138
|
+
namespace Room {
|
|
139
|
+
interface Member {
|
|
140
|
+
id: string;
|
|
141
|
+
agentId: string | null;
|
|
142
|
+
joinedAt: string;
|
|
143
|
+
leftAt: string | null;
|
|
144
|
+
participantType: 'agent' | 'user';
|
|
145
|
+
role: 'owner' | 'member';
|
|
146
|
+
userId: string | null;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
export interface RequestListForAgentResponse {
|
|
152
|
+
/**
|
|
153
|
+
* Cursor for the next page; null when there are no older requests.
|
|
154
|
+
*/
|
|
155
|
+
nextCursor: string | null;
|
|
156
|
+
requests: Array<RequestListForAgentResponse.Request>;
|
|
157
|
+
}
|
|
158
|
+
export declare namespace RequestListForAgentResponse {
|
|
159
|
+
interface Request {
|
|
160
|
+
id: string;
|
|
161
|
+
createdAt: string;
|
|
162
|
+
deadlineAt: string;
|
|
163
|
+
depth: number;
|
|
164
|
+
dispatchedAt: string | null;
|
|
165
|
+
/**
|
|
166
|
+
* `error.code` of the full request, null when it has none. An open set: new codes
|
|
167
|
+
* can appear. Codes written today: `agent_archived`, `agent_disabled`,
|
|
168
|
+
* `dispatch_failed`, `timed_out`, `cancelled`, `result_too_large`, `no_answer`,
|
|
169
|
+
* `target_turn_failed`, `target_error`, `target_aborted`,
|
|
170
|
+
* `target_crash_recovered`, `target_unknown_outcome`.
|
|
171
|
+
*/
|
|
172
|
+
errorCode: string | null;
|
|
173
|
+
finishedAt: string | null;
|
|
174
|
+
room: Request.Room;
|
|
175
|
+
sourceAgentId: string;
|
|
176
|
+
sourceSessionId: string;
|
|
177
|
+
status: 'queued' | 'running' | 'answered' | 'failed' | 'timed_out' | 'cancelled' | 'late_answer' | 'needs_user_input';
|
|
178
|
+
targetAgentId: string;
|
|
179
|
+
targetSessionId: string;
|
|
180
|
+
updatedAt: string;
|
|
181
|
+
}
|
|
182
|
+
namespace Request {
|
|
183
|
+
interface Room {
|
|
184
|
+
id: string;
|
|
185
|
+
kind: 'direct' | 'group';
|
|
186
|
+
members: Array<Room.Member>;
|
|
187
|
+
}
|
|
188
|
+
namespace Room {
|
|
189
|
+
interface Member {
|
|
190
|
+
id: string;
|
|
191
|
+
agentId: string | null;
|
|
192
|
+
joinedAt: string;
|
|
193
|
+
leftAt: string | null;
|
|
194
|
+
participantType: 'agent' | 'user';
|
|
195
|
+
role: 'owner' | 'member';
|
|
196
|
+
userId: string | null;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
export interface RequestRetrieveBySessionResponse {
|
|
202
|
+
id: string;
|
|
203
|
+
createdAt: string;
|
|
204
|
+
deadlineAt: string;
|
|
205
|
+
depth: number;
|
|
206
|
+
dispatchAttempts: number;
|
|
207
|
+
dispatchedAt: string | null;
|
|
208
|
+
error: RequestRetrieveBySessionResponse.Error | null;
|
|
209
|
+
events: Array<RequestRetrieveBySessionResponse.Event>;
|
|
210
|
+
finishedAt: string | null;
|
|
211
|
+
request: RequestRetrieveBySessionResponse.Request;
|
|
212
|
+
result: RequestRetrieveBySessionResponse.Text | RequestRetrieveBySessionResponse.Question | null;
|
|
213
|
+
room: RequestRetrieveBySessionResponse.Room;
|
|
214
|
+
sourceAgentId: string;
|
|
215
|
+
sourceSessionId: string;
|
|
216
|
+
status: 'queued' | 'running' | 'answered' | 'failed' | 'timed_out' | 'cancelled' | 'late_answer' | 'needs_user_input';
|
|
217
|
+
targetAgentId: string;
|
|
218
|
+
targetSessionId: string;
|
|
219
|
+
updatedAt: string;
|
|
220
|
+
visited: Array<string>;
|
|
221
|
+
}
|
|
222
|
+
export declare namespace RequestRetrieveBySessionResponse {
|
|
223
|
+
interface Error {
|
|
224
|
+
/**
|
|
225
|
+
* Why the request did not produce an answer. An open set: new codes can appear.
|
|
226
|
+
* Codes written today: `agent_archived`, `agent_disabled`, `dispatch_failed`,
|
|
227
|
+
* `timed_out`, `cancelled`, `result_too_large`, `no_answer`, `target_turn_failed`,
|
|
228
|
+
* `target_error`, `target_aborted`, `target_crash_recovered`,
|
|
229
|
+
* `target_unknown_outcome`.
|
|
230
|
+
*/
|
|
231
|
+
code: string;
|
|
232
|
+
message: string;
|
|
233
|
+
preview?: string;
|
|
234
|
+
}
|
|
235
|
+
interface Event {
|
|
236
|
+
createdAt: string;
|
|
237
|
+
kind: string;
|
|
238
|
+
payload: {
|
|
239
|
+
[key: string]: unknown;
|
|
240
|
+
} | null;
|
|
241
|
+
seq: number;
|
|
242
|
+
}
|
|
243
|
+
interface Request {
|
|
244
|
+
message: string;
|
|
245
|
+
sourceDisplayName: string | null;
|
|
246
|
+
timeoutSeconds: number;
|
|
247
|
+
fileIds?: Array<string>;
|
|
248
|
+
}
|
|
249
|
+
interface Text {
|
|
250
|
+
text: string;
|
|
251
|
+
}
|
|
252
|
+
interface Question {
|
|
253
|
+
question: string;
|
|
254
|
+
}
|
|
255
|
+
interface Room {
|
|
256
|
+
id: string;
|
|
257
|
+
kind: 'direct' | 'group';
|
|
258
|
+
members: Array<Room.Member>;
|
|
259
|
+
}
|
|
260
|
+
namespace Room {
|
|
261
|
+
interface Member {
|
|
262
|
+
id: string;
|
|
263
|
+
agentId: string | null;
|
|
264
|
+
joinedAt: string;
|
|
265
|
+
leftAt: string | null;
|
|
266
|
+
participantType: 'agent' | 'user';
|
|
267
|
+
role: 'owner' | 'member';
|
|
268
|
+
userId: string | null;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
export interface RequestListParams {
|
|
273
|
+
/**
|
|
274
|
+
* Opaque nextCursor from the previous page.
|
|
275
|
+
*/
|
|
276
|
+
before?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Maximum number of requests to return (1–100; default 50).
|
|
279
|
+
*/
|
|
280
|
+
limit?: number;
|
|
281
|
+
}
|
|
282
|
+
export interface RequestListForAgentParams {
|
|
283
|
+
/**
|
|
284
|
+
* Opaque nextCursor from the previous page.
|
|
285
|
+
*/
|
|
286
|
+
before?: string;
|
|
287
|
+
/**
|
|
288
|
+
* Maximum number of requests to return (1–100; default 50).
|
|
289
|
+
*/
|
|
290
|
+
limit?: number;
|
|
291
|
+
}
|
|
292
|
+
export declare namespace Requests {
|
|
293
|
+
export { type RequestRetrieveResponse as RequestRetrieveResponse, type RequestListResponse as RequestListResponse, type RequestListForAgentResponse as RequestListForAgentResponse, type RequestRetrieveBySessionResponse as RequestRetrieveBySessionResponse, type RequestListParams as RequestListParams, type RequestListForAgentParams as RequestListForAgentParams, };
|
|
294
|
+
}
|
|
295
|
+
//# sourceMappingURL=requests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../src/resources/agents/requests.ts"],"names":[],"mappings":"AAEA,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SACvB;KACF;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
exports.Requests = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Requests extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Owner-scoped. Returns the request with its payloads and event timeline; an
|
|
10
|
+
* unknown id or another owner's request is a 404.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(requestID, options) {
|
|
13
|
+
return this._client.get((0, path_1.path) `/agents/requests/${requestID}`, options);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Owner-scoped. Returns newest requests first, ordered by creation time and id.
|
|
17
|
+
* Use nextCursor as before to read older pages. Invalid cursors return 400
|
|
18
|
+
* invalid_cursor. Use the single read for payloads and events.
|
|
19
|
+
*/
|
|
20
|
+
list(query = {}, options) {
|
|
21
|
+
return this._client.get('/agents/requests', { query, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Owner-scoped. Returns newest requests where the Agent is source or target. Use
|
|
25
|
+
* nextCursor as before to read older pages. Invalid cursors return 400
|
|
26
|
+
* invalid_cursor.
|
|
27
|
+
*/
|
|
28
|
+
listForAgent(agentID, query = {}, options) {
|
|
29
|
+
return this._client.get((0, path_1.path) `/agents/${agentID}/requests`, { query, ...options });
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Owner-scoped. Returns the Agent-to-Agent request whose target session is
|
|
33
|
+
* {sessionId}, including its payloads and event timeline. Unknown sessions,
|
|
34
|
+
* source-only sessions, sessions without a request, and another owner's sessions
|
|
35
|
+
* return 404 agent_request_not_found.
|
|
36
|
+
*/
|
|
37
|
+
retrieveBySession(sessionID, options) {
|
|
38
|
+
return this._client.get((0, path_1.path) `/agents/sessions/${sessionID}/request`, options);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.Requests = Requests;
|
|
42
|
+
//# sourceMappingURL=requests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requests.js","sourceRoot":"","sources":["../../src/resources/agents/requests.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;OAGG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;OAIG;IACH,YAAY,CACV,OAAe,EACf,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;OAKG;IACH,iBAAiB,CACf,SAAiB,EACjB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,SAAS,UAAU,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF;AA9CD,4BA8CC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 Requests extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Owner-scoped. Returns the request with its payloads and event timeline; an
|
|
7
|
+
* unknown id or another owner's request is a 404.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(requestID, options) {
|
|
10
|
+
return this._client.get(path `/agents/requests/${requestID}`, options);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Owner-scoped. Returns newest requests first, ordered by creation time and id.
|
|
14
|
+
* Use nextCursor as before to read older pages. Invalid cursors return 400
|
|
15
|
+
* invalid_cursor. Use the single read for payloads and events.
|
|
16
|
+
*/
|
|
17
|
+
list(query = {}, options) {
|
|
18
|
+
return this._client.get('/agents/requests', { query, ...options });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Owner-scoped. Returns newest requests where the Agent is source or target. Use
|
|
22
|
+
* nextCursor as before to read older pages. Invalid cursors return 400
|
|
23
|
+
* invalid_cursor.
|
|
24
|
+
*/
|
|
25
|
+
listForAgent(agentID, query = {}, options) {
|
|
26
|
+
return this._client.get(path `/agents/${agentID}/requests`, { query, ...options });
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Owner-scoped. Returns the Agent-to-Agent request whose target session is
|
|
30
|
+
* {sessionId}, including its payloads and event timeline. Unknown sessions,
|
|
31
|
+
* source-only sessions, sessions without a request, and another owner's sessions
|
|
32
|
+
* return 404 agent_request_not_found.
|
|
33
|
+
*/
|
|
34
|
+
retrieveBySession(sessionID, options) {
|
|
35
|
+
return this._client.get(path `/agents/sessions/${sessionID}/request`, options);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=requests.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requests.mjs","sourceRoot":"","sources":["../../src/resources/agents/requests.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,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;OAIG;IACH,YAAY,CACV,OAAe,EACf,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;OAKG;IACH,iBAAiB,CACf,SAAiB,EACjB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,SAAS,UAAU,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class 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: string, body: RoutineCreateParams, options?: RequestOptions): APIPromise<RoutineCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* The source must belong to the authenticated owner and be assigned to the same
|
|
12
|
+
* Agent or unassigned. The target is the Agent in the path. Requires
|
|
13
|
+
* Idempotency-Key.
|
|
14
|
+
*/
|
|
15
|
+
clone(routineID: string, params: RoutineCloneParams, options?: RequestOptions): APIPromise<RoutineCloneResponse>;
|
|
16
|
+
}
|
|
17
|
+
export interface RoutineCreateResponse {
|
|
18
|
+
data: RoutineCreateResponse.Data;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace RoutineCreateResponse {
|
|
21
|
+
interface Data {
|
|
22
|
+
id: string;
|
|
23
|
+
agentId: string | null;
|
|
24
|
+
[k: string]: unknown;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export interface RoutineCloneResponse {
|
|
28
|
+
data: RoutineCloneResponse.Data;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace RoutineCloneResponse {
|
|
31
|
+
interface Data {
|
|
32
|
+
id: string;
|
|
33
|
+
agentId: string | null;
|
|
34
|
+
[k: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export interface RoutineCreateParams {
|
|
38
|
+
actions: Array<RoutineCreateParams.Action>;
|
|
39
|
+
name: string;
|
|
40
|
+
triggerId: string;
|
|
41
|
+
cooldownScope?: 'flow' | 'device';
|
|
42
|
+
cooldownSeconds?: number | null;
|
|
43
|
+
delivery?: RoutineCreateParams.Delivery;
|
|
44
|
+
description?: string;
|
|
45
|
+
deviceIds?: Array<string>;
|
|
46
|
+
enabled?: boolean;
|
|
47
|
+
healthMonitoringEnabled?: boolean;
|
|
48
|
+
notifyOnFailure?: boolean;
|
|
49
|
+
notifyOnSuccess?: boolean;
|
|
50
|
+
notifyWebhookId?: string | null;
|
|
51
|
+
recordingEnabled?: boolean;
|
|
52
|
+
recordingPolicy?: RoutineCreateParams.RecordingPolicy;
|
|
53
|
+
selfHealingEnabled?: boolean;
|
|
54
|
+
selfHealingMaxAttempts?: number;
|
|
55
|
+
[k: string]: unknown;
|
|
56
|
+
}
|
|
57
|
+
export declare namespace RoutineCreateParams {
|
|
58
|
+
interface Action {
|
|
59
|
+
actionId: string;
|
|
60
|
+
position: number;
|
|
61
|
+
[k: string]: unknown;
|
|
62
|
+
}
|
|
63
|
+
interface Delivery {
|
|
64
|
+
destination: 'one_drive' | 'google_drive' | 'mobilerun';
|
|
65
|
+
folder?: string;
|
|
66
|
+
recording?: Delivery.Recording;
|
|
67
|
+
screenshots?: unknown;
|
|
68
|
+
}
|
|
69
|
+
namespace Delivery {
|
|
70
|
+
interface Recording {
|
|
71
|
+
filename: string;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
interface RecordingPolicy {
|
|
75
|
+
mode: 'off' | 'flow' | 'selected_steps';
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export interface RoutineCloneParams {
|
|
79
|
+
/**
|
|
80
|
+
* Path param
|
|
81
|
+
*/
|
|
82
|
+
agentId: string;
|
|
83
|
+
/**
|
|
84
|
+
* Body param
|
|
85
|
+
*/
|
|
86
|
+
deviceIds?: Array<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Body param
|
|
89
|
+
*/
|
|
90
|
+
name?: string;
|
|
91
|
+
}
|
|
92
|
+
export declare namespace Routines {
|
|
93
|
+
export { type RoutineCreateResponse as RoutineCreateResponse, type RoutineCloneResponse as RoutineCloneResponse, type RoutineCreateParams as RoutineCreateParams, type RoutineCloneParams as RoutineCloneParams, };
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=routines.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routines.d.mts","sourceRoot":"","sources":["../../src/resources/agents/routines.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAIpC;;;;OAIG;IACH,KAAK,CACH,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;CAIpC;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,qBAAqB,CAAC,IAAI,CAAC;CAClC;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAEvB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC;CACjC;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAEvB,CAAC,CAAC,EAAE,MAA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Q,CAAC;QACxB,UAAiB,SAAS;YACxB,QAAQ,EAAE,MAAM,CAAC;SAClB;KACF;IAED,UAAiB,eAAe;QAC9B,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,gBAAgB,CAAC;KACzC;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class 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: string, body: RoutineCreateParams, options?: RequestOptions): APIPromise<RoutineCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* The source must belong to the authenticated owner and be assigned to the same
|
|
12
|
+
* Agent or unassigned. The target is the Agent in the path. Requires
|
|
13
|
+
* Idempotency-Key.
|
|
14
|
+
*/
|
|
15
|
+
clone(routineID: string, params: RoutineCloneParams, options?: RequestOptions): APIPromise<RoutineCloneResponse>;
|
|
16
|
+
}
|
|
17
|
+
export interface RoutineCreateResponse {
|
|
18
|
+
data: RoutineCreateResponse.Data;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace RoutineCreateResponse {
|
|
21
|
+
interface Data {
|
|
22
|
+
id: string;
|
|
23
|
+
agentId: string | null;
|
|
24
|
+
[k: string]: unknown;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export interface RoutineCloneResponse {
|
|
28
|
+
data: RoutineCloneResponse.Data;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace RoutineCloneResponse {
|
|
31
|
+
interface Data {
|
|
32
|
+
id: string;
|
|
33
|
+
agentId: string | null;
|
|
34
|
+
[k: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export interface RoutineCreateParams {
|
|
38
|
+
actions: Array<RoutineCreateParams.Action>;
|
|
39
|
+
name: string;
|
|
40
|
+
triggerId: string;
|
|
41
|
+
cooldownScope?: 'flow' | 'device';
|
|
42
|
+
cooldownSeconds?: number | null;
|
|
43
|
+
delivery?: RoutineCreateParams.Delivery;
|
|
44
|
+
description?: string;
|
|
45
|
+
deviceIds?: Array<string>;
|
|
46
|
+
enabled?: boolean;
|
|
47
|
+
healthMonitoringEnabled?: boolean;
|
|
48
|
+
notifyOnFailure?: boolean;
|
|
49
|
+
notifyOnSuccess?: boolean;
|
|
50
|
+
notifyWebhookId?: string | null;
|
|
51
|
+
recordingEnabled?: boolean;
|
|
52
|
+
recordingPolicy?: RoutineCreateParams.RecordingPolicy;
|
|
53
|
+
selfHealingEnabled?: boolean;
|
|
54
|
+
selfHealingMaxAttempts?: number;
|
|
55
|
+
[k: string]: unknown;
|
|
56
|
+
}
|
|
57
|
+
export declare namespace RoutineCreateParams {
|
|
58
|
+
interface Action {
|
|
59
|
+
actionId: string;
|
|
60
|
+
position: number;
|
|
61
|
+
[k: string]: unknown;
|
|
62
|
+
}
|
|
63
|
+
interface Delivery {
|
|
64
|
+
destination: 'one_drive' | 'google_drive' | 'mobilerun';
|
|
65
|
+
folder?: string;
|
|
66
|
+
recording?: Delivery.Recording;
|
|
67
|
+
screenshots?: unknown;
|
|
68
|
+
}
|
|
69
|
+
namespace Delivery {
|
|
70
|
+
interface Recording {
|
|
71
|
+
filename: string;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
interface RecordingPolicy {
|
|
75
|
+
mode: 'off' | 'flow' | 'selected_steps';
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export interface RoutineCloneParams {
|
|
79
|
+
/**
|
|
80
|
+
* Path param
|
|
81
|
+
*/
|
|
82
|
+
agentId: string;
|
|
83
|
+
/**
|
|
84
|
+
* Body param
|
|
85
|
+
*/
|
|
86
|
+
deviceIds?: Array<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Body param
|
|
89
|
+
*/
|
|
90
|
+
name?: string;
|
|
91
|
+
}
|
|
92
|
+
export declare namespace Routines {
|
|
93
|
+
export { type RoutineCreateResponse as RoutineCreateResponse, type RoutineCloneResponse as RoutineCloneResponse, type RoutineCreateParams as RoutineCreateParams, type RoutineCloneParams as RoutineCloneParams, };
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=routines.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routines.d.ts","sourceRoot":"","sources":["../../src/resources/agents/routines.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAIpC;;;;OAIG;IACH,KAAK,CACH,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;CAIpC;AAED,MAAM,WAAW,qBAAqB;IACpC,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,CAAC;IAEhC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,MAAM;QACrB,QAAQ,EAAE,MAAM,CAAC;QAEjB,QAAQ,EAAE,MAAM,CAAC;QAEjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB;IAED,UAAiB,QAAQ;QACvB,WAAW,EAAE,WAAW,GAAG,cAAc,GAAG,WAAW,CAAC;QAExD,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;QAE/B,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;IAED,UAAiB,QAAQ,CAAC;QACxB,UAAiB,SAAS;YACxB,QAAQ,EAAE,MAAM,CAAC;SAClB;KACF;IAED,UAAiB,eAAe;QAC9B,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,gBAAgB,CAAC;KACzC;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
exports.Routines = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Routines extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Forwards the scheduler CreateFlowBody unchanged and assigns the Agent selected
|
|
10
|
+
* in the path. Requires Idempotency-Key; reuse it after a transient failure.
|
|
11
|
+
*/
|
|
12
|
+
create(agentID, body, options) {
|
|
13
|
+
return this._client.post((0, path_1.path) `/agents/${agentID}/routines`, { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The source must belong to the authenticated owner and be assigned to the same
|
|
17
|
+
* Agent or unassigned. The target is the Agent in the path. Requires
|
|
18
|
+
* Idempotency-Key.
|
|
19
|
+
*/
|
|
20
|
+
clone(routineID, params, options) {
|
|
21
|
+
const { agentId, ...body } = params;
|
|
22
|
+
return this._client.post((0, path_1.path) `/agents/${agentId}/routines/${routineID}/clone`, { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.Routines = Routines;
|
|
26
|
+
//# sourceMappingURL=routines.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routines.js","sourceRoot":"","sources":["../../src/resources/agents/routines.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;OAGG;IACH,MAAM,CACJ,OAAe,EACf,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,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,IAAA,WAAI,EAAA,WAAW,OAAO,aAAa,SAAS,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AA1BD,4BA0BC"}
|