@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
|
@@ -21,11 +21,8 @@ export class Conversations extends APIResource {
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Rename, change status, and/or pin. Title updates apply best-effort. Archiving
|
|
24
|
-
* always clears the pinned flag.
|
|
25
|
-
*
|
|
26
|
-
* workflow — a bound chat's title is managed by the workflow. Other fields
|
|
27
|
-
* (description, status, pinned) remain updateable; archiving a bound chat stays
|
|
28
|
-
* allowed.
|
|
24
|
+
* always clears the pinned flag. Archiving a session with an in-flight turn is
|
|
25
|
+
* rejected with 409.
|
|
29
26
|
*/
|
|
30
27
|
update(
|
|
31
28
|
id: string,
|
|
@@ -61,10 +58,11 @@ export class Conversations extends APIResource {
|
|
|
61
58
|
/**
|
|
62
59
|
* Deliver a HITL approval/rejection for an in-flight turn. Interactive HITL
|
|
63
60
|
* clients must start the turn with `Accept: text/event-stream`, wait for a
|
|
64
|
-
* `tool-
|
|
65
|
-
* `/assistant/chat/permission`. Do not
|
|
66
|
-
*
|
|
67
|
-
*
|
|
61
|
+
* `tool-input-available` event with `toolName: "hitl-approval"`, and send its
|
|
62
|
+
* `toolCallId` as `permissionId` here at `/assistant/chat/permission`. Do not
|
|
63
|
+
* submit approval as free-form user text or as `confirmed: true`. For
|
|
64
|
+
* `devices.reset`, only `once` and `reject` are allowed; the generic `always`
|
|
65
|
+
* response is rejected with HTTP 400.
|
|
68
66
|
*/
|
|
69
67
|
answerPermission(
|
|
70
68
|
body: ConversationAnswerPermissionParams,
|
|
@@ -85,14 +83,15 @@ export class Conversations extends APIResource {
|
|
|
85
83
|
}
|
|
86
84
|
|
|
87
85
|
/**
|
|
88
|
-
* Return the user's chat history for the given session.
|
|
89
|
-
*
|
|
86
|
+
* Return the user's chat history for the given session. Inactive chat sessions
|
|
87
|
+
* return 404; workflow transcripts remain readable after completion.
|
|
90
88
|
*/
|
|
91
89
|
history(
|
|
92
|
-
|
|
90
|
+
id: string,
|
|
91
|
+
query: ConversationHistoryParams | null | undefined = {},
|
|
93
92
|
options?: RequestOptions,
|
|
94
93
|
): APIPromise<ConversationHistoryResponse> {
|
|
95
|
-
return this._client.get(
|
|
94
|
+
return this._client.get(path`/assistant/chat/sessions/${id}/messages`, { query, ...options });
|
|
96
95
|
}
|
|
97
96
|
|
|
98
97
|
/**
|
|
@@ -109,12 +108,15 @@ export class Conversations extends APIResource {
|
|
|
109
108
|
/**
|
|
110
109
|
* Send a single user message. The response format follows the Accept header:
|
|
111
110
|
* `text/event-stream` for SSE, `application/json` for a buffered assistant reply.
|
|
112
|
-
* Interactive HITL requires `Accept: text/event-stream
|
|
113
|
-
* `tool-
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
111
|
+
* Interactive HITL requires `Accept: text/event-stream`. An approval request
|
|
112
|
+
* arrives as a `tool-input-available` event with `toolName: "hitl-approval"`. Its
|
|
113
|
+
* `toolCallId` (equal to `input.permissionID`) is the permission id; deliver the
|
|
114
|
+
* decision to `/assistant/chat/permission`. In the message history, the same
|
|
115
|
+
* request appears as a `tool-hitl-approval` part. Buffered JSON responses do not
|
|
116
|
+
* provide an interactive HITL continuation contract. `sessionId` targets a
|
|
117
|
+
* concrete active chat. The resolved chat session ID is returned as
|
|
118
|
+
* `chatSessionId` in the JSON body and as the `X-Chat-Session-Id` response header
|
|
119
|
+
* on the SSE response.
|
|
118
120
|
*/
|
|
119
121
|
send(body: ConversationSendParams, options?: RequestOptions): APIPromise<ConversationSendResponse> {
|
|
120
122
|
return this._client.post('/assistant/chat/message', { body, ...options });
|
|
@@ -150,6 +152,8 @@ export namespace ConversationCreateResponse {
|
|
|
150
152
|
|
|
151
153
|
agent: string | null;
|
|
152
154
|
|
|
155
|
+
agentId: string | null;
|
|
156
|
+
|
|
153
157
|
basePromptTokens: number | null;
|
|
154
158
|
|
|
155
159
|
contextExhaustedAt: string | null;
|
|
@@ -194,6 +198,8 @@ export namespace ConversationUpdateResponse {
|
|
|
194
198
|
|
|
195
199
|
agent: string | null;
|
|
196
200
|
|
|
201
|
+
agentId: string | null;
|
|
202
|
+
|
|
197
203
|
basePromptTokens: number | null;
|
|
198
204
|
|
|
199
205
|
contextExhaustedAt: string | null;
|
|
@@ -238,6 +244,8 @@ export namespace ConversationListResponse {
|
|
|
238
244
|
|
|
239
245
|
agent: string | null;
|
|
240
246
|
|
|
247
|
+
agentId: string | null;
|
|
248
|
+
|
|
241
249
|
basePromptTokens: number | null;
|
|
242
250
|
|
|
243
251
|
contextExhaustedAt: string | null;
|
|
@@ -284,6 +292,8 @@ export namespace ConversationListResponse {
|
|
|
284
292
|
|
|
285
293
|
agent: string | null;
|
|
286
294
|
|
|
295
|
+
agentId: string | null;
|
|
296
|
+
|
|
287
297
|
basePromptTokens: number | null;
|
|
288
298
|
|
|
289
299
|
contextExhaustedAt: string | null;
|
|
@@ -339,22 +349,88 @@ export interface ConversationAnswerQuestionResponse {
|
|
|
339
349
|
}
|
|
340
350
|
|
|
341
351
|
export interface ConversationHistoryResponse {
|
|
342
|
-
|
|
352
|
+
/**
|
|
353
|
+
* Session Agent identity, present on every page; null only when the session has no
|
|
354
|
+
* Agent.
|
|
355
|
+
*/
|
|
356
|
+
agent: ConversationHistoryResponse.Agent | null;
|
|
343
357
|
|
|
344
|
-
|
|
358
|
+
data: Array<ConversationHistoryResponse.Data>;
|
|
345
359
|
|
|
346
|
-
|
|
360
|
+
/**
|
|
361
|
+
* Oldest real row in the page; pass as before to load older turns.
|
|
362
|
+
*/
|
|
363
|
+
firstId: string | null;
|
|
347
364
|
|
|
348
|
-
|
|
365
|
+
/**
|
|
366
|
+
* Older whole turns exist.
|
|
367
|
+
*/
|
|
368
|
+
hasMore: boolean;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Newest real row in the page, before continuation collapse or synthetic rows.
|
|
372
|
+
*/
|
|
373
|
+
lastId: string | null;
|
|
349
374
|
|
|
350
|
-
|
|
375
|
+
/**
|
|
376
|
+
* Newest-page turn snapshot; null when before is supplied.
|
|
377
|
+
*/
|
|
378
|
+
turn: ConversationHistoryResponse.Turn | null;
|
|
351
379
|
}
|
|
352
380
|
|
|
353
381
|
export namespace ConversationHistoryResponse {
|
|
354
|
-
|
|
382
|
+
/**
|
|
383
|
+
* Session Agent identity, present on every page; null only when the session has no
|
|
384
|
+
* Agent.
|
|
385
|
+
*/
|
|
386
|
+
export interface Agent {
|
|
387
|
+
id: string;
|
|
388
|
+
|
|
389
|
+
profile: Agent.Profile;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export namespace Agent {
|
|
393
|
+
export interface Profile {
|
|
394
|
+
/**
|
|
395
|
+
* Configuration of a `blob` avatar: its seed and optional user-chosen palette
|
|
396
|
+
* color. A color-only config retains the default seed fallback.
|
|
397
|
+
*/
|
|
398
|
+
avatarConfig: Profile.AvatarConfig | null;
|
|
399
|
+
|
|
400
|
+
avatarKind: 'blob' | null;
|
|
401
|
+
|
|
402
|
+
displayName: string | null;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export namespace Profile {
|
|
406
|
+
/**
|
|
407
|
+
* Configuration of a `blob` avatar: its seed and optional user-chosen palette
|
|
408
|
+
* color. A color-only config retains the default seed fallback.
|
|
409
|
+
*/
|
|
410
|
+
export interface AvatarConfig {
|
|
411
|
+
color?:
|
|
412
|
+
| 'slate'
|
|
413
|
+
| 'red'
|
|
414
|
+
| 'orange'
|
|
415
|
+
| 'amber'
|
|
416
|
+
| 'lime'
|
|
417
|
+
| 'green'
|
|
418
|
+
| 'teal'
|
|
419
|
+
| 'cyan'
|
|
420
|
+
| 'blue'
|
|
421
|
+
| 'indigo'
|
|
422
|
+
| 'violet'
|
|
423
|
+
| 'pink';
|
|
424
|
+
|
|
425
|
+
seed?: string | number;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export interface Data {
|
|
355
431
|
id: string;
|
|
356
432
|
|
|
357
|
-
parts: Array<
|
|
433
|
+
parts: Array<Data.Part>;
|
|
358
434
|
|
|
359
435
|
role: 'user' | 'assistant' | 'system';
|
|
360
436
|
|
|
@@ -364,7 +440,7 @@ export namespace ConversationHistoryResponse {
|
|
|
364
440
|
|
|
365
441
|
feedback?: boolean | null;
|
|
366
442
|
|
|
367
|
-
metadata?:
|
|
443
|
+
metadata?: Data.Metadata;
|
|
368
444
|
|
|
369
445
|
source?: 'cloud' | 'telegram' | 'api' | 'workflow' | 'notification';
|
|
370
446
|
|
|
@@ -378,7 +454,7 @@ export namespace ConversationHistoryResponse {
|
|
|
378
454
|
userId?: string | null;
|
|
379
455
|
}
|
|
380
456
|
|
|
381
|
-
export namespace
|
|
457
|
+
export namespace Data {
|
|
382
458
|
export interface Part {
|
|
383
459
|
type: string;
|
|
384
460
|
|
|
@@ -392,6 +468,11 @@ export namespace ConversationHistoryResponse {
|
|
|
392
468
|
|
|
393
469
|
agentSessionId?: string;
|
|
394
470
|
|
|
471
|
+
/**
|
|
472
|
+
* Backend notice classification on synthetic turn notes; user_stop is reserved.
|
|
473
|
+
*/
|
|
474
|
+
notice?: 'user_stop' | 'interrupted' | 'no_progress' | 'tool_error' | 'error' | 'empty_answer';
|
|
475
|
+
|
|
395
476
|
/**
|
|
396
477
|
* Steer user rows appear directly above the collapsed assistant group of their
|
|
397
478
|
* turn, matching live cloud ordering.
|
|
@@ -420,24 +501,41 @@ export namespace ConversationHistoryResponse {
|
|
|
420
501
|
}
|
|
421
502
|
}
|
|
422
503
|
|
|
423
|
-
|
|
424
|
-
|
|
504
|
+
/**
|
|
505
|
+
* Newest-page turn snapshot; null when before is supplied.
|
|
506
|
+
*/
|
|
507
|
+
export interface Turn {
|
|
508
|
+
/**
|
|
509
|
+
* Whether this session owns an in-flight turn.
|
|
510
|
+
*/
|
|
511
|
+
turnActive: boolean;
|
|
425
512
|
|
|
426
|
-
|
|
513
|
+
turnState: Turn.TurnState | null;
|
|
514
|
+
}
|
|
427
515
|
|
|
428
|
-
|
|
516
|
+
export namespace Turn {
|
|
517
|
+
export interface TurnState {
|
|
518
|
+
id: string;
|
|
429
519
|
|
|
430
|
-
|
|
520
|
+
abortRequested: boolean;
|
|
431
521
|
|
|
432
|
-
|
|
522
|
+
attachable: boolean;
|
|
433
523
|
|
|
434
|
-
|
|
524
|
+
claimHeld: boolean;
|
|
435
525
|
|
|
436
|
-
|
|
526
|
+
/**
|
|
527
|
+
* Outcome of the latest turn, or null while it is still open.
|
|
528
|
+
*/
|
|
529
|
+
outcome: string | null;
|
|
437
530
|
|
|
438
|
-
|
|
531
|
+
phase: 'created' | 'running' | 'closed' | 'delivered' | 'failed';
|
|
439
532
|
|
|
440
|
-
|
|
533
|
+
reaping: boolean;
|
|
534
|
+
|
|
535
|
+
revision: number;
|
|
536
|
+
|
|
537
|
+
startedAt: string;
|
|
538
|
+
}
|
|
441
539
|
}
|
|
442
540
|
}
|
|
443
541
|
|
|
@@ -491,6 +589,8 @@ export interface ConversationAnswerPermissionParams {
|
|
|
491
589
|
permissionId: string;
|
|
492
590
|
|
|
493
591
|
response: 'once' | 'always' | 'reject';
|
|
592
|
+
|
|
593
|
+
sessionId?: string;
|
|
494
594
|
}
|
|
495
595
|
|
|
496
596
|
export interface ConversationAnswerQuestionParams {
|
|
@@ -503,6 +603,8 @@ export interface ConversationAnswerQuestionParams {
|
|
|
503
603
|
>;
|
|
504
604
|
|
|
505
605
|
questionId: string;
|
|
606
|
+
|
|
607
|
+
sessionId?: string;
|
|
506
608
|
}
|
|
507
609
|
|
|
508
610
|
export namespace ConversationAnswerQuestionParams {
|
|
@@ -522,13 +624,18 @@ export namespace ConversationAnswerQuestionParams {
|
|
|
522
624
|
}
|
|
523
625
|
|
|
524
626
|
export interface ConversationHistoryParams {
|
|
525
|
-
|
|
627
|
+
/**
|
|
628
|
+
* Any real row in this session; its containing turn is excluded.
|
|
629
|
+
*/
|
|
630
|
+
before?: string;
|
|
526
631
|
|
|
527
632
|
limit?: number;
|
|
528
633
|
}
|
|
529
634
|
|
|
530
635
|
export interface ConversationRejectQuestionParams {
|
|
531
636
|
questionId: string;
|
|
637
|
+
|
|
638
|
+
sessionId?: string;
|
|
532
639
|
}
|
|
533
640
|
|
|
534
641
|
export interface ConversationSendParams {
|
|
@@ -537,6 +644,8 @@ export interface ConversationSendParams {
|
|
|
537
644
|
sessionId: string;
|
|
538
645
|
|
|
539
646
|
agent?: string;
|
|
647
|
+
|
|
648
|
+
model?: string;
|
|
540
649
|
}
|
|
541
650
|
|
|
542
651
|
export interface ConversationStreamParams {
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
Proxies,
|
|
9
9
|
ProxyBuyParams,
|
|
10
10
|
ProxyBuyResponse,
|
|
11
|
+
ProxyCheckoutResponse,
|
|
11
12
|
ProxyEnsureHealthyResponse,
|
|
12
13
|
ProxyListConnectionsParams,
|
|
13
14
|
ProxyListConnectionsResponse,
|
|
@@ -55,6 +56,7 @@ export declare namespace Connect {
|
|
|
55
56
|
type ProxyUpdateResponse as ProxyUpdateResponse,
|
|
56
57
|
type ProxyListResponse as ProxyListResponse,
|
|
57
58
|
type ProxyBuyResponse as ProxyBuyResponse,
|
|
59
|
+
type ProxyCheckoutResponse as ProxyCheckoutResponse,
|
|
58
60
|
type ProxyEnsureHealthyResponse as ProxyEnsureHealthyResponse,
|
|
59
61
|
type ProxyListConnectionsResponse as ProxyListConnectionsResponse,
|
|
60
62
|
type ProxyPingResponse as ProxyPingResponse,
|
|
@@ -53,6 +53,15 @@ export class Proxies extends APIResource {
|
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
/**
|
|
57
|
+
* Refreshes a pending dedicated proxy's checkout on explicit payment intent.
|
|
58
|
+
* Already-paid proxies (provisioning, active, or cancelling) return their current
|
|
59
|
+
* status without a payment URL. An expired checkout requires a new purchase.
|
|
60
|
+
*/
|
|
61
|
+
checkout(id: string, options?: RequestOptions): APIPromise<ProxyCheckoutResponse> {
|
|
62
|
+
return this._client.post(path`/connect/proxies/${id}/checkout`, options);
|
|
63
|
+
}
|
|
64
|
+
|
|
56
65
|
/**
|
|
57
66
|
* Checks right now that the proxy's upstream accepts a connection through its
|
|
58
67
|
* current session. If the upstream refuses the session and the proxy is a rotating
|
|
@@ -321,6 +330,23 @@ export interface ProxyBuyResponse {
|
|
|
321
330
|
paymentUrl?: string | null;
|
|
322
331
|
}
|
|
323
332
|
|
|
333
|
+
export interface ProxyCheckoutResponse {
|
|
334
|
+
/**
|
|
335
|
+
* Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
|
|
336
|
+
* identity is being resolved — clients should poll until a `paymentUrl` or a later
|
|
337
|
+
* status appears — then `provisioning` — or `pending_payment` until the customer
|
|
338
|
+
* completes checkout — and becomes `active` once its upstream is assigned.
|
|
339
|
+
* `cancelling` retains full access through the paid period; when the subscription
|
|
340
|
+
* expires the proxy is `ended`. `error` marks a failed provisioning attempt.
|
|
341
|
+
*/
|
|
342
|
+
status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Payable checkout URL; omitted after payment.
|
|
346
|
+
*/
|
|
347
|
+
paymentUrl?: string | null;
|
|
348
|
+
}
|
|
349
|
+
|
|
324
350
|
/**
|
|
325
351
|
* The outcome of an ensure-healthy check.
|
|
326
352
|
*/
|
|
@@ -717,6 +743,7 @@ export declare namespace Proxies {
|
|
|
717
743
|
type ProxyUpdateResponse as ProxyUpdateResponse,
|
|
718
744
|
type ProxyListResponse as ProxyListResponse,
|
|
719
745
|
type ProxyBuyResponse as ProxyBuyResponse,
|
|
746
|
+
type ProxyCheckoutResponse as ProxyCheckoutResponse,
|
|
720
747
|
type ProxyEnsureHealthyResponse as ProxyEnsureHealthyResponse,
|
|
721
748
|
type ProxyListConnectionsResponse as ProxyListConnectionsResponse,
|
|
722
749
|
type ProxyPingResponse as ProxyPingResponse,
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as Shared from '../shared';
|
|
5
|
+
import * as OnepasswordAPI from './onepassword/onepassword';
|
|
6
|
+
import {
|
|
7
|
+
Onepassword,
|
|
8
|
+
OnepasswordConnectParams,
|
|
9
|
+
OnepasswordConnectResponse,
|
|
10
|
+
OnepasswordDisconnectResponse,
|
|
11
|
+
OnepasswordRetrieveResponse,
|
|
12
|
+
} from './onepassword/onepassword';
|
|
5
13
|
import * as PackagesAPI from './packages/packages';
|
|
6
14
|
import {
|
|
7
15
|
PackageCreateParams,
|
|
@@ -15,6 +23,7 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
15
23
|
|
|
16
24
|
export class Credentials extends APIResource {
|
|
17
25
|
packages: PackagesAPI.Packages = new PackagesAPI.Packages(this._client);
|
|
26
|
+
onepassword: OnepasswordAPI.Onepassword = new OnepasswordAPI.Onepassword(this._client);
|
|
18
27
|
|
|
19
28
|
/**
|
|
20
29
|
* Returns a paginated list of all credentials belonging to the authenticated user
|
|
@@ -54,6 +63,10 @@ export namespace CredentialListResponse {
|
|
|
54
63
|
* for credentials created before rollout.
|
|
55
64
|
*/
|
|
56
65
|
userId: string | null;
|
|
66
|
+
|
|
67
|
+
link?: Item.Link;
|
|
68
|
+
|
|
69
|
+
source?: 'mobilerun' | 'onepassword';
|
|
57
70
|
}
|
|
58
71
|
|
|
59
72
|
export namespace Item {
|
|
@@ -69,6 +82,35 @@ export namespace CredentialListResponse {
|
|
|
69
82
|
|
|
70
83
|
value: string;
|
|
71
84
|
}
|
|
85
|
+
|
|
86
|
+
export interface Link {
|
|
87
|
+
fieldMap: Array<Link.FieldMap>;
|
|
88
|
+
|
|
89
|
+
itemId: string;
|
|
90
|
+
|
|
91
|
+
itemTitle: string;
|
|
92
|
+
|
|
93
|
+
provider: 'onepassword';
|
|
94
|
+
|
|
95
|
+
vaultId: string;
|
|
96
|
+
|
|
97
|
+
vaultName: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export namespace Link {
|
|
101
|
+
export interface FieldMap {
|
|
102
|
+
fieldId: string;
|
|
103
|
+
|
|
104
|
+
fieldType:
|
|
105
|
+
| 'email'
|
|
106
|
+
| 'username'
|
|
107
|
+
| 'password'
|
|
108
|
+
| 'api_token'
|
|
109
|
+
| 'phone_number'
|
|
110
|
+
| 'two_factor_secret'
|
|
111
|
+
| 'backup_codes';
|
|
112
|
+
}
|
|
113
|
+
}
|
|
72
114
|
}
|
|
73
115
|
}
|
|
74
116
|
|
|
@@ -79,6 +121,7 @@ export interface CredentialListParams {
|
|
|
79
121
|
}
|
|
80
122
|
|
|
81
123
|
Credentials.Packages = Packages;
|
|
124
|
+
Credentials.Onepassword = Onepassword;
|
|
82
125
|
|
|
83
126
|
export declare namespace Credentials {
|
|
84
127
|
export {
|
|
@@ -93,4 +136,12 @@ export declare namespace Credentials {
|
|
|
93
136
|
type PackageListAllResponse as PackageListAllResponse,
|
|
94
137
|
type PackageCreateParams as PackageCreateParams,
|
|
95
138
|
};
|
|
139
|
+
|
|
140
|
+
export {
|
|
141
|
+
Onepassword as Onepassword,
|
|
142
|
+
type OnepasswordRetrieveResponse as OnepasswordRetrieveResponse,
|
|
143
|
+
type OnepasswordConnectResponse as OnepasswordConnectResponse,
|
|
144
|
+
type OnepasswordDisconnectResponse as OnepasswordDisconnectResponse,
|
|
145
|
+
type OnepasswordConnectParams as OnepasswordConnectParams,
|
|
146
|
+
};
|
|
96
147
|
}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Credentials, type CredentialListResponse, type CredentialListParams } from './credentials';
|
|
4
|
+
export {
|
|
5
|
+
Onepassword,
|
|
6
|
+
type OnepasswordRetrieveResponse,
|
|
7
|
+
type OnepasswordConnectResponse,
|
|
8
|
+
type OnepasswordDisconnectResponse,
|
|
9
|
+
type OnepasswordConnectParams,
|
|
10
|
+
} from './onepassword/index';
|
|
4
11
|
export {
|
|
5
12
|
Packages,
|
|
6
13
|
type PackageCreateResponse,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Onepassword,
|
|
5
|
+
type OnepasswordRetrieveResponse,
|
|
6
|
+
type OnepasswordConnectResponse,
|
|
7
|
+
type OnepasswordDisconnectResponse,
|
|
8
|
+
type OnepasswordConnectParams,
|
|
9
|
+
} from './onepassword';
|
|
10
|
+
export { Vaults } from './vaults/index';
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as VaultsAPI from './vaults/vaults';
|
|
5
|
+
import { Vaults } from './vaults/vaults';
|
|
6
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
7
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
8
|
+
|
|
9
|
+
export class Onepassword extends APIResource {
|
|
10
|
+
vaults: VaultsAPI.Vaults = new VaultsAPI.Vaults(this._client);
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Get 1Password connection
|
|
14
|
+
*/
|
|
15
|
+
retrieve(options?: RequestOptions): APIPromise<OnepasswordRetrieveResponse> {
|
|
16
|
+
return this._client.get('/credentials/onepassword', options);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Connect a 1Password service account
|
|
21
|
+
*/
|
|
22
|
+
connect(body: OnepasswordConnectParams, options?: RequestOptions): APIPromise<OnepasswordConnectResponse> {
|
|
23
|
+
return this._client.put('/credentials/onepassword', { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Disconnect 1Password
|
|
28
|
+
*/
|
|
29
|
+
disconnect(options?: RequestOptions): APIPromise<OnepasswordDisconnectResponse> {
|
|
30
|
+
return this._client.delete('/credentials/onepassword', options);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface OnepasswordRetrieveResponse {
|
|
35
|
+
data: OnepasswordRetrieveResponse.Data;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export namespace OnepasswordRetrieveResponse {
|
|
39
|
+
export interface Data {
|
|
40
|
+
connected: boolean;
|
|
41
|
+
|
|
42
|
+
connectedAt?: string;
|
|
43
|
+
|
|
44
|
+
connectedBy?: string;
|
|
45
|
+
|
|
46
|
+
vaults?: Array<Data.Vault>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export namespace Data {
|
|
50
|
+
export interface Vault {
|
|
51
|
+
id: string;
|
|
52
|
+
|
|
53
|
+
title: string;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface OnepasswordConnectResponse {
|
|
59
|
+
data: OnepasswordConnectResponse.Data;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export namespace OnepasswordConnectResponse {
|
|
63
|
+
export interface Data {
|
|
64
|
+
connected: boolean;
|
|
65
|
+
|
|
66
|
+
connectedAt?: string;
|
|
67
|
+
|
|
68
|
+
connectedBy?: string;
|
|
69
|
+
|
|
70
|
+
vaults?: Array<Data.Vault>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export namespace Data {
|
|
74
|
+
export interface Vault {
|
|
75
|
+
id: string;
|
|
76
|
+
|
|
77
|
+
title: string;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface OnepasswordDisconnectResponse {
|
|
83
|
+
message: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface OnepasswordConnectParams {
|
|
87
|
+
serviceAccountToken: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
Onepassword.Vaults = Vaults;
|
|
91
|
+
|
|
92
|
+
export declare namespace Onepassword {
|
|
93
|
+
export {
|
|
94
|
+
type OnepasswordRetrieveResponse as OnepasswordRetrieveResponse,
|
|
95
|
+
type OnepasswordConnectResponse as OnepasswordConnectResponse,
|
|
96
|
+
type OnepasswordDisconnectResponse as OnepasswordDisconnectResponse,
|
|
97
|
+
type OnepasswordConnectParams as OnepasswordConnectParams,
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export { Vaults as Vaults };
|
|
101
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Fields extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List 1Password field metadata
|
|
11
|
+
*/
|
|
12
|
+
list(itemID: string, params: FieldListParams, options?: RequestOptions): APIPromise<FieldListResponse> {
|
|
13
|
+
const { vaultId } = params;
|
|
14
|
+
return this._client.get(path`/credentials/onepassword/vaults/${vaultId}/items/${itemID}/fields`, options);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface FieldListResponse {
|
|
19
|
+
data: Array<FieldListResponse.Data>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export namespace FieldListResponse {
|
|
23
|
+
export interface Data {
|
|
24
|
+
id: string;
|
|
25
|
+
|
|
26
|
+
fieldType: string;
|
|
27
|
+
|
|
28
|
+
title: string;
|
|
29
|
+
|
|
30
|
+
sectionId?: string;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface FieldListParams {
|
|
35
|
+
vaultId: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export declare namespace Fields {
|
|
39
|
+
export { type FieldListResponse as FieldListResponse, type FieldListParams as FieldListParams };
|
|
40
|
+
}
|