import { z } from 'zod' import { TemplateSchema } from '../../models' export namespace CreateMessageChannelCommand { export const regexNegativeNumber = /^-\d+$/ export const RequestSchema = TemplateSchema.extend({ channelId: z.string() .max(250) .regex(regexNegativeNumber, { message: 'This is not a negative number' }) }) export type Request = z.infer; export const RequestSchemaParam = z.object({ botId: z.preprocess(val => Number(val), z.number().int().min(1).max(Number.MAX_SAFE_INTEGER)) }) export type RequestParam = z.infer; export const ResponseSchema = z.object({ isStarted: z.boolean() }) export type Response = z.infer; }