Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
6648e650
"vscode:/vscode.git/clone" did not exist on "471b1c3eeb3a0efec261dffdfe48277aab5af2c3"
Commit
6648e650
authored
Dec 28, 2025
by
song
Browse files
feat: 添加 Antigravity (Cloud AI Companion) OAuth 授权支持
parent
9bbe468c
Changes
22
Hide whitespace changes
Inline
Side-by-side
frontend/src/types/index.ts
View file @
6648e650
...
@@ -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
'
...
...
frontend/src/views/admin/AccountsView.vue
View file @
6648e650
...
@@ -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
(()
=>
[
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment