Files
HexaHost-GameCloud/packages/contracts/src/console.ts
smueller 9b061c3ee7
Some checks failed
CI / Node — lint, typecheck, test, build (push) Failing after 9s
CI / Go — node-agent tests (push) Failing after 9s
CI / Go — edge-gateway build (push) Successful in 13s
Phase3
2026-06-26 12:17:26 +02:00

15 lines
399 B
TypeScript

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>;