mirror of
https://github.com/EZ-Api/ez-api.git
synced 2026-01-13 17:47:51 +00:00
Add support for OAuth-based authentication with access/refresh tokens and expiration tracking for API keys. Extend provider groups with static headers configuration and headers profile options. Changes include: - Add AccessToken, RefreshToken, ExpiresAt, AccountID, ProjectID to APIKey model - Add StaticHeaders and HeadersProfile to ProviderGroup model - Add TokenRefresh configuration for background token management - Support new provider types: ClaudeCode, Codex, GeminiCLI, Antigravity - Update sync service to include new fields in provider snapshots
15 lines
567 B
Go
15 lines
567 B
Go
package dto
|
|
|
|
// ProviderGroupDTO defines inbound payload for provider group creation/update.
|
|
type ProviderGroupDTO struct {
|
|
Name string `json:"name"`
|
|
Type string `json:"type"`
|
|
BaseURL string `json:"base_url"`
|
|
GoogleProject string `json:"google_project,omitempty"`
|
|
GoogleLocation string `json:"google_location,omitempty"`
|
|
StaticHeaders string `json:"static_headers,omitempty"`
|
|
HeadersProfile string `json:"headers_profile,omitempty"`
|
|
Models []string `json:"models"`
|
|
Status string `json:"status"`
|
|
}
|