Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | import { Data } from 'effect'; |
| 2 | import { ExpectedFailure } from 'src/effects/expected-failure'; |
| 3 | import { requestError } from 'src/effects/request-error'; |
| 4 | |
| 5 | /** `--org` names no organization the user API key can see. */ |
| 6 | export class InvalidOrganizationError extends Data.TaggedError( |
| 7 | 'commands/InvalidOrganizationError' |
| 8 | )<{ |
| 9 | readonly message: string; |
| 10 | readonly requestedOrg: string; |
| 11 | }> { |
| 12 | get [ExpectedFailure]() { |
| 13 | return true; |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Looking up the CLI session behind `--key` failed for a reason other than the session not |
| 19 | * existing (a connection, server, or decoding failure). A defect, reported with its cause. |
| 20 | */ |
| 21 | export class LoginSessionRequestError extends requestError('commands/LoginSessionRequestError') {} |