/** * Type definitions for the status command */ /** * SSO identity details from aws sts get-caller-identity */ export interface SSOIdentity { /** AWS account ID */ account: string; /** User ARN (role assumed via SSO) */ userArn: string; /** User ID */ userId: string; /** AWS region from profile config */ region?: string; /** Role name parsed from ARN */ roleName?: string; /** Session name (typically email) parsed from ARN */ sessionName?: string; /** Account alias/name (derived from profile naming convention) */ accountAlias?: string; } /** * Status of a single service */ export interface ServiceStatus { /** Whether the service is currently authenticated */ authenticated: boolean; /** Error message if check failed */ error?: string; } /** * SSO service status with identity details */ export interface SSOStatus extends ServiceStatus { /** Identity details if authenticated */ identity?: SSOIdentity; } /** * CodeArtifact service status with token details */ export interface CodeArtifactStatus extends ServiceStatus { /** Registry URL if configured */ registry?: string; /** Token expiration time if available */ expiresAt?: Date; /** Location where config was found (project .npmrc or global ~/.npmrc) */ location?: 'project' | 'global'; } /** * ECR service status with registry details */ export interface ECRStatus extends ServiceStatus { /** Registry URL if configured */ registry?: string; } /** * GitLab or Atlassian OAuth token status */ export interface ProviderTokenStatus { /** Whether a valid, non-expired token is present */ authenticated: boolean; /** Token expiry as Unix timestamp in seconds */ expiresAt?: number; /** Human-readable expiry string, e.g. "1h 40m" or "52m" */ expiresIn?: string; /** Error message when the check itself failed */ error?: string; } /** * MCP background server status */ export interface McpServerStatus { /** Whether the daemon process is running and reachable */ running: boolean; /** Full MCP endpoint URL, e.g. "http://127.0.0.1:8919/mcp" */ url?: string; /** Daemon PID */ pid?: number; /** Health check result from the /health endpoint */ health?: 'ok' | 'degraded' | 'error'; /** Error message when the check itself failed */ error?: string; } /** * Complete status result for all services */ export interface StatusResult { /** SSO authentication status */ sso: SSOStatus; /** CodeArtifact authentication status (null if not configured) */ codeartifact: CodeArtifactStatus | null; /** ECR authentication status (null if not configured) */ ecr: ECRStatus | null; /** GitLab OAuth token status */ gitlab: ProviderTokenStatus; /** Atlassian OAuth token status */ atlassian: ProviderTokenStatus; /** MCP background server status */ mcpServer: McpServerStatus; } /** * Command-line options for `padua status` */ export interface StatusOptions { /** AWS SSO profile to check */ profile?: string; /** * Commander populates 'color' for the negatable `--no-color` flag (default * true, false when the flag is passed) - there is no `noColor` property. * See src/commands/seed/index.ts for the reference pattern this mirrors. */ color?: boolean; /** Only output if there are issues */ quiet?: boolean; } //# sourceMappingURL=types.d.ts.map