Basic Supabase OAuth integration & project-app binding
This commit is contained in:
@@ -80,6 +80,13 @@ export const GithubUserSchema = z.object({
|
||||
});
|
||||
export type GithubUser = z.infer<typeof GithubUserSchema>;
|
||||
|
||||
export const SupabaseSchema = z.object({
|
||||
accessToken: SecretSchema.optional(),
|
||||
refreshToken: SecretSchema.optional(),
|
||||
expiresIn: z.number().optional(),
|
||||
});
|
||||
export type Supabase = z.infer<typeof SupabaseSchema>;
|
||||
|
||||
/**
|
||||
* Zod schema for user settings
|
||||
*/
|
||||
@@ -88,6 +95,7 @@ export const UserSettingsSchema = z.object({
|
||||
providerSettings: z.record(z.string(), ProviderSettingSchema),
|
||||
githubUser: GithubUserSchema.optional(),
|
||||
githubAccessToken: SecretSchema.optional(),
|
||||
supabase: SupabaseSchema.optional(),
|
||||
autoApproveChanges: z.boolean().optional(),
|
||||
telemetryConsent: z.enum(["opted_in", "opted_out", "unset"]).optional(),
|
||||
telemetryUserId: z.string().optional(),
|
||||
|
||||
Reference in New Issue
Block a user