Basic GitHub integration flow
This commit is contained in:
@@ -64,6 +64,16 @@ export type ProviderSetting = z.infer<typeof ProviderSettingSchema>;
|
||||
export const RuntimeModeSchema = z.enum(["web-sandbox", "local-node", "unset"]);
|
||||
export type RuntimeMode = z.infer<typeof RuntimeModeSchema>;
|
||||
|
||||
export const GitHubSecretsSchema = z.object({
|
||||
accessToken: z.string().nullable(),
|
||||
});
|
||||
export type GitHubSecrets = z.infer<typeof GitHubSecretsSchema>;
|
||||
|
||||
export const GitHubSettingsSchema = z.object({
|
||||
secrets: GitHubSecretsSchema.nullable(),
|
||||
});
|
||||
export type GitHubSettings = z.infer<typeof GitHubSettingsSchema>;
|
||||
|
||||
/**
|
||||
* Zod schema for user settings
|
||||
*/
|
||||
@@ -71,6 +81,7 @@ export const UserSettingsSchema = z.object({
|
||||
selectedModel: LargeLanguageModelSchema,
|
||||
providerSettings: z.record(z.string(), ProviderSettingSchema),
|
||||
runtimeMode: RuntimeModeSchema,
|
||||
githubSettings: GitHubSettingsSchema,
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user