chore: remove unused kiro social schema (#5384)

Integrated into release/v3.8.42
This commit is contained in:
Jan Leon
2026-06-30 00:14:57 +02:00
committed by GitHub
parent 5f7aecdaaf
commit 52f2575fac
2 changed files with 9 additions and 7 deletions

View File

@@ -133,7 +133,10 @@ export const oauthPollSchema = z.object({
/** Import a raw API token (e.g. WINDSURF_API_KEY) without going through the browser OAuth flow. */
export const oauthImportTokenSchema = z.object({
token: z.union([z.string().trim().min(1, "Token is required"), z.record(z.string(), z.unknown())]),
token: z.union([
z.string().trim().min(1, "Token is required"),
z.record(z.string(), z.unknown()),
]),
connectionId: z.string().optional(),
});
@@ -192,12 +195,6 @@ export const kiroImportSchema = z.object({
profileArn: z.string().optional(),
});
export const kiroSocialExchangeSchema = z.object({
code: z.string().trim().min(1, "Code is required"),
codeVerifier: z.string().trim().min(1, "Code verifier is required"),
provider: z.enum(["google", "github"]),
});
export const zedImportSchema = z.object({
confirmedAccounts: z.array(confirmedAccountSchema),
});

View File

@@ -46,6 +46,11 @@ test("KIRO_CONFIG.socialClientId default matches the public CLI identifier 'kiro
}
});
test("auth schemas keep the supported Kiro import schema exported", async () => {
const { kiroImportSchema } = await import("../../src/shared/validation/schemas/auth.ts");
assert.equal(typeof kiroImportSchema.safeParse, "function");
});
test("Kiro social-flow routes do not duplicate the AWS auth URL or 'kiro-cli' literal", () => {
// Catches future refactors that copy a hard-coded URL/identifier back into
// either route. The string "kiro-cli" may still appear as an env-var name