Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2026 v0.1.0 Jun 22, 2026 Changes in this version + type APIProvider string + const APIProviderAnthropic + const APIProviderAzure + const APIProviderGemini + const APIProviderGoogle + const APIProviderMiniMax + const APIProviderOllama + const APIProviderOpenAI + const APIProviderZAI + type AuthMethod string + const AuthMethodAPIKey + const AuthMethodOAuth + type Config struct + DefaultAuth string + Providers map[string]ProviderConfig + type Credentials struct + APIKey string + AuthMethod AuthMethod + CreatedAt time.Time + OAuth *OAuthCredentials + Provider string + Token *Token + TokenRef string + UpdatedAt time.Time + type OAuthCredentials struct + AuthURL string + BaseURL string + ClientID string + ClientSecret string + DeviceAuthURL string + DeviceTokenURL string + Scopes []string + TokenURL string + type ProviderConfig struct + APIKey string + AuthMethod AuthMethod + OAuth *OAuthCredentials + type Token struct + AccessToken string + AccountID string + ExpiresAt time.Time + IDToken string + RefreshToken string + Scope string + TokenType TokenType + WorkspaceID string + func (t *Token) IsExpired(within time.Duration) bool + func (t *Token) NeedsRefresh() bool + type TokenType string + const TokenTypeAccess + const TokenTypeID + const TokenTypeRefresh