mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-18 10:40:50 +08:00
feat: initialize new React application structure with TypeScript, ESLint, and Prettier configurations, while removing legacy files and adding new components and pages for enhanced functionality
This commit is contained in:
36
src/types/oauth.ts
Normal file
36
src/types/oauth.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* OAuth 相关类型
|
||||
* 基于原项目 src/modules/oauth.js
|
||||
*/
|
||||
|
||||
// OAuth 提供商类型
|
||||
export type OAuthProvider =
|
||||
| 'codex'
|
||||
| 'anthropic'
|
||||
| 'antigravity'
|
||||
| 'gemini-cli'
|
||||
| 'qwen'
|
||||
| 'iflow';
|
||||
|
||||
// OAuth 流程状态
|
||||
export interface OAuthFlow {
|
||||
provider: OAuthProvider;
|
||||
deviceCode: string;
|
||||
userCode: string;
|
||||
verificationUrl: string;
|
||||
expiresAt: Date;
|
||||
interval: number;
|
||||
status: 'pending' | 'authorized' | 'expired' | 'error';
|
||||
}
|
||||
|
||||
// OAuth 配置
|
||||
export interface OAuthConfig {
|
||||
clientId?: string;
|
||||
clientSecret?: string;
|
||||
redirectUri?: string;
|
||||
}
|
||||
|
||||
// OAuth 排除模型列表
|
||||
export interface OAuthExcludedModels {
|
||||
models: string[];
|
||||
}
|
||||
Reference in New Issue
Block a user