mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-05-06 13:14:35 +00:00
This commit introduces the ability to fetch and store Supabase API keys and URL credentials when a project is selected. This enables the application to dynamically configure the Supabase connection environment variables, improving the integration with Supabase services. The changes include updates to the Supabase connection logic, new API endpoints, and modifications to the chat and prompt components to utilize the new credentials.
32 lines
533 B
TypeScript
32 lines
533 B
TypeScript
export interface SupabaseUser {
|
|
id: string;
|
|
email: string;
|
|
role: string;
|
|
created_at: string;
|
|
last_sign_in_at: string;
|
|
}
|
|
|
|
export interface SupabaseProject {
|
|
id: string;
|
|
name: string;
|
|
organization_id: string;
|
|
region: string;
|
|
created_at: string;
|
|
status: string;
|
|
}
|
|
|
|
export interface SupabaseStats {
|
|
projects: SupabaseProject[];
|
|
totalProjects: number;
|
|
}
|
|
|
|
export interface SupabaseApiKey {
|
|
name: string;
|
|
api_key: string;
|
|
}
|
|
|
|
export interface SupabaseCredentials {
|
|
anonKey?: string;
|
|
supabaseUrl?: string;
|
|
}
|