Restrict company imports to GitHub and zip packages

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Dotta
2026-03-16 09:52:16 -05:00
parent 0b829ea20b
commit 4a5aba5bac
6 changed files with 163 additions and 94 deletions

View File

@@ -120,10 +120,6 @@ export type CompanyPortabilitySource =
rootPath?: string | null;
files: Record<string, string>;
}
| {
type: "url";
url: string;
}
| {
type: "github";
url: string;

View File

@@ -123,10 +123,6 @@ export const portabilitySourceSchema = z.discriminatedUnion("type", [
rootPath: z.string().min(1).optional().nullable(),
files: z.record(z.string()),
}),
z.object({
type: z.literal("url"),
url: z.string().url(),
}),
z.object({
type: z.literal("github"),
url: z.string().url(),