import { z } from 'zod'; export const ZGetApiTokenByIdQuerySchema = z.object({ id: z.number().min(1), }); export type TGetApiTokenByIdQuerySchema = z.infer; export const ZCreateTokenMutationSchema = z.object({ teamId: z.number().optional(), tokenName: z.string().min(3, { message: 'The token name should be 3 characters or longer' }), expirationDate: z.string().nullable(), }); export type TCreateTokenMutationSchema = z.infer; export const ZDeleteTokenByIdMutationSchema = z.object({ id: z.number().min(1), teamId: z.number().optional(), }); export type TDeleteTokenByIdMutationSchema = z.infer;