"vscode:/vscode.git/clone" did not exist on "471b1c3eeb3a0efec261dffdfe48277aab5af2c3"
Commit 6648e650 authored by song's avatar song
Browse files

feat: 添加 Antigravity (Cloud AI Companion) OAuth 授权支持

parent 9bbe468c
...@@ -220,7 +220,7 @@ export interface PaginationConfig { ...@@ -220,7 +220,7 @@ export interface PaginationConfig {
// ==================== API Key & Group Types ==================== // ==================== API Key & Group Types ====================
export type GroupPlatform = 'anthropic' | 'openai' | 'gemini' export type GroupPlatform = 'anthropic' | 'openai' | 'gemini' | 'antigravity'
export type SubscriptionType = 'standard' | 'subscription' export type SubscriptionType = 'standard' | 'subscription'
...@@ -256,7 +256,7 @@ export interface ApiKey { ...@@ -256,7 +256,7 @@ export interface ApiKey {
export interface CreateApiKeyRequest { export interface CreateApiKeyRequest {
name: string name: string
group_id?: number | null group_id?: number | null
custom_key?: string // 可选的自定义API Key custom_key?: string // Optional custom API Key
} }
export interface UpdateApiKeyRequest { export interface UpdateApiKeyRequest {
...@@ -284,7 +284,7 @@ export interface UpdateGroupRequest { ...@@ -284,7 +284,7 @@ export interface UpdateGroupRequest {
// ==================== Account & Proxy Types ==================== // ==================== Account & Proxy Types ====================
export type AccountPlatform = 'anthropic' | 'openai' | 'gemini' export type AccountPlatform = 'anthropic' | 'openai' | 'gemini' | 'antigravity'
export type AccountType = 'oauth' | 'setup-token' | 'apikey' export type AccountType = 'oauth' | 'setup-token' | 'apikey'
export type OAuthAddMethod = 'oauth' | 'setup-token' export type OAuthAddMethod = 'oauth' | 'setup-token'
export type ProxyProtocol = 'http' | 'https' | 'socks5' export type ProxyProtocol = 'http' | 'https' | 'socks5'
......
...@@ -594,7 +594,8 @@ const platformOptions = computed(() => [ ...@@ -594,7 +594,8 @@ const platformOptions = computed(() => [
{ value: '', label: t('admin.accounts.allPlatforms') }, { value: '', label: t('admin.accounts.allPlatforms') },
{ value: 'anthropic', label: t('admin.accounts.platforms.anthropic') }, { value: 'anthropic', label: t('admin.accounts.platforms.anthropic') },
{ value: 'openai', label: t('admin.accounts.platforms.openai') }, { value: 'openai', label: t('admin.accounts.platforms.openai') },
{ value: 'gemini', label: t('admin.accounts.platforms.gemini') } { value: 'gemini', label: t('admin.accounts.platforms.gemini') },
{ value: 'antigravity', label: t('admin.accounts.platforms.antigravity') }
]) ])
const typeOptions = computed(() => [ const typeOptions = computed(() => [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment