import { z } from "zod";

/* ---------- Start Generation Request ---------- */

export const StartGenerationRequestSchema = z.object({
  actionType: z.enum(["compatibility", "palm"]),
  actionId: z.string(),
  variables: z.record(z.string().or(z.number()).or(z.null())).optional(),
});

export type StartGenerationRequest = z.infer<
  typeof StartGenerationRequestSchema
>;

/* ---------- Start Generation Response ---------- */

export const GenerationResponseSchema = z.object({
  id: z.string(),
  status: z.string(),
  locale: z.string(),
  result: z.string().nullable(),
});

export type GenerationResponse = z.infer<typeof GenerationResponseSchema>;
