import { z } from 'zod';

export const consoleTokenResponseSchema = z.object({
  token: z.string(),
  expiresAt: z.string().datetime(),
  wsUrl: z.string(),
});

export const consoleCommandSchema = z.object({
  command: z.string().min(1).max(256),
});

export type ConsoleTokenResponse = z.infer<typeof consoleTokenResponseSchema>;
export type ConsoleCommand = z.infer<typeof consoleCommandSchema>;
