mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
19 lines
460 B
TypeScript
19 lines
460 B
TypeScript
import { z } from 'zod'
|
|
|
|
export const passwordPolicy = {
|
|
minLength: 8,
|
|
minNumbers: 1,
|
|
minLowercase: 1,
|
|
minUppercase: 1,
|
|
minSymbols: 0,
|
|
}
|
|
|
|
export const getSessionsRequestSchema = z.object({
|
|
questId: z.string().optional(),
|
|
status: z.enum(['active', 'inactive', 'finished']).optional(),
|
|
limit: z.coerce.number().optional(),
|
|
order: z.enum(['asc', 'desc']).optional(),
|
|
})
|
|
|
|
export type GetSessionsRequest = z.infer<typeof getSessionsRequestSchema>
|