Defines OAuth route contracts for GitHub Copilot, OpenAI Codex, and Xai Grok authentication flows.
// Source: https://github.com/ThinkInAIXYZ/deepchat | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { z } from 'zod'
import { EntityIdSchema, defineRouteContract } from '../common'
import type { OpenAICodexAuthStatus } from '../../types/openai-codex'
import type { XaiGrokAuthStatus } from '../../types/xai-grok'
export type { OpenAICodexAuthStatus } from '../../types/openai-codex'
export type { XaiGrokAuthStatus } from '../../types/xai-grok'
const OAuthProviderIdSchema = EntityIdSchema
const OAuthLoginResultSchema = z.object({
success: z.boolean()
})
export const OpenAICodexAuthStatusSchema: z.ZodType<OpenAICodexAuthStatus> = z.object({
state: z.enum(['disabled', 'si
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key