feat(#413): add AuthProviderConfig and AuthConfigResponse types to @mosaic/shared
All checks were successful
ci/woodpecker/push/orchestrator Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
ci/woodpecker/push/api Pipeline was successful

Refs #413

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jason Woltje
2026-02-16 11:10:50 -06:00
parent f6eadff5bf
commit a9090aca7f

View File

@@ -94,3 +94,20 @@ export interface OAuthCallbackParams {
error?: string;
error_description?: string;
}
/**
* Auth provider type advertised by the backend via GET /auth/config
*/
export interface AuthProviderConfig {
id: string;
name: string;
type: "oauth" | "credentials";
}
/**
* Response shape for GET /auth/config
* Backend advertises available auth methods for the frontend to render dynamically.
*/
export interface AuthConfigResponse {
providers: AuthProviderConfig[];
}