types/oauth.ts

deepchat · src/shared/types/oauth.ts · typescript · Apache-2.0
auth, tag:embed-classified

Type definitions for OAuth configuration and service port interfaces used across the app.

// 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 type { OpenAICodexAuthStatus } from './openai-codex'
import type { XaiGrokAuthStatus } from './xai-grok'

export interface OAuthConfig {
  authUrl: string
  redirectUri: string
  clientId: string
  clientSecret?: string
  scope: string
  responseType: string
}

export interface OAuthServicePort {
  startOAuthLogin(providerId: string, config: OAuthConfig): Promise<boolean>
  startGitHubCopilotLogin(providerId: string): Promise<boolean>
  startGitHubCopilotDeviceFlowLogin(providerId: string): Promise<boolean>
  getOpenAICodexStatus(): Promise<OpenAICodexAuthStatus>
  startOpenA

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key