cal.pub0.org/packages/trpc/server/routers/viewer/apiKeys/create.schema.ts

12 lines
347 B
TypeScript

import { z } from "zod";
export const ZCreateInputSchema = z.object({
note: z.string().optional().nullish(),
expiresAt: z.date().optional().nullable(),
neverExpires: z.boolean().optional(),
appId: z.string().optional().nullable(),
teamId: z.number().optional(),
});
export type TCreateInputSchema = z.infer<typeof ZCreateInputSchema>;