mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-04 14:22:09 +03:00
chore: remove unused kiro social schema (#5384)
Integrated into release/v3.8.42
This commit is contained in:
@@ -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),
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user