import { z } from "zod";

export const HealthCheckResponse = z.object({
  status: z.string(),
});

export const ErrorResponse = z.object({
  error: z.string(),
});

export const CreateJobBody = z.object({
  request: z.string().min(1).max(500),
});

export const GetJobParams = z.object({
  id: z.string(),
});

export const GetJobRefundParams = z.object({
  id: z.string(),
});

export const ClaimRefundBody = z.object({
  paymentRequest: z.string(),
});

export const RunDemoQueryParams = z.object({
  request: z.string().min(1),
});

export const CreateSessionBody = z.object({
  amount_sats: z.number().int().min(100).max(10000),
});

export const GetSessionParams = z.object({
  id: z.string(),
});

export const SubmitSessionRequestBody = z.object({
  request: z.string().min(1),
});

export const TopupSessionBody = z.object({
  amount_sats: z.number().int().min(100).max(10000),
});
