export interface User { id: string; email: string; display_name: string | null; /** The Profile (backend #5035): job role and company, null until set. */ title?: string | null; company?: string | null; /** A code-verified mobile number (E.164) and its country, null until verified in the console. */ phone?: string | null; phone_country?: string | null; phone_verified_at?: string | null; email_verified: boolean; create_organization: boolean; invite_credits: number; created_at: string; updated_at: string; } export interface Organization { /** * The organization's public id. `Organization` uses `pid` as its primary key on the * backend and the table has no `id` column, so the API never serializes one - reading * `id` here silently yields undefined. `id` stays declared, optional, only so an older * or differently-shaped payload still type-checks. */ pid: string; id?: string; name: string; description: string | null; is_creator: boolean; members_count: number; payment_channel_state?: string | null; } export interface CloudCredential { id: string; name: string; description: string | null; cloud_provider: string; auth_method: string; status: string; is_default: boolean; is_platform_managed: boolean; last_validated_at: string | null; validation_error: string | null; metadata: Record | null; data_directory: string | null; created_at: string; updated_at: string; created_by: { pid: string; email: string; display_name: string | null; } | null; updated_by: { pid: string; email: string; display_name: string | null; } | null; }