List available LLM providers, retrieve supported authentication methods, and complete OAuth authorization flows for connecting providers to a workspace.
Get a list of all available AI providers, including both available and connected ones. Returns the full provider catalog, the default model mapping, and which providers are currently connected in the workspace.
Retrieve the available authentication methods for all AI providers. Returns a map keyed by provider ID, where each value is an array of supported auth methods (OAuth, API key, etc.).
Initiate OAuth authorization for a specific AI provider. Returns the authorization URL the user should be redirected to, the method used (auto or code), and any user-facing instructions.
Handle the OAuth callback from a provider after the user completes authorization. Exchanges the authorization code for an access token and connects the provider to the workspace.