import { apiRequest } from '@/lib/api-client' export async function codexOAuthStart(headers?: Record): Promise<{ session_id: string; auth_url: string }> { return apiRequest('/admin/codex/oauth/start', { method: 'POST', body: {}, headers, requireAuth: true, }) } export async function codexOAuthExchange( input: { session_id: string callback_url: string }, headers?: Record ): Promise<{ credentials: string }> { return apiRequest('/admin/codex/oauth/exchange', { method: 'POST', body: input, headers, requireAuth: true, }) }