mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
14 lines
350 B
TypeScript
14 lines
350 B
TypeScript
import { z } from 'zod';
|
|
|
|
export const ZGetApiTokenByIdQuerySchema = z.object({
|
|
id: z.number().min(1),
|
|
});
|
|
|
|
export const ZCreateTokenMutationSchema = z.object({
|
|
tokenName: z.string().min(3, { message: 'The token name should be 3 characters or longer' }),
|
|
});
|
|
|
|
export const ZDeleteTokenByIdMutationSchema = z.object({
|
|
id: z.number().min(1),
|
|
});
|