feat: api token page in the settings

This commit is contained in:
Catalin Pit
2023-11-24 13:59:33 +02:00
parent 2ccede72ea
commit 80fe7ccdf5
6 changed files with 131 additions and 4 deletions

View File

@ -0,0 +1,13 @@
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),
});