Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
ts 25 lines 974 Bytes
Raw
1 // --- stderr -----------------------------------------------------------------------------------
2
3 export const CONFIRM_PRINT_CREDENTIALS_MESSAGE =
4 'This will print your current CLI API key and scoped identifiers to stdout. Continue?';
5
6 // --- usage messages ---------------------------------------------------------------------------
7
8 export const ABORTED_MESSAGE = 'Aborted printing API credentials.';
9 export const NO_API_KEY_MESSAGE = 'No user API key found in the current CLI session.';
10
11 // --- stdout -----------------------------------------------------------------------------------
12
13 /** The credentials and identifiers `debug api-info` prints. */
14 export type DebugApiInfo = {
15 readonly apiKey: string;
16 readonly orgId: string | null;
17 readonly consumerUserId: string | null;
18 };
19
20 export const formatDebugApiInfo = (info: DebugApiInfo) =>
21 JSON.stringify(
22 { apiKey: info.apiKey, orgId: info.orgId, consumerUserId: info.consumerUserId },
23 null,
24 2
25 );