cal.pub0.org/packages/trpc/server/routers/viewer/oAuth/generateAuthCode.schema.ts

10 lines
265 B
TypeScript

import { z } from "zod";
export const ZGenerateAuthCodeInputSchema = z.object({
clientId: z.string(),
scopes: z.array(z.string()),
teamSlug: z.string().optional(),
});
export type TGenerateAuthCodeInputSchema = z.infer<typeof ZGenerateAuthCodeInputSchema>;