/** * Generated by orval v8.5.3 🍺 * Do not edit manually. * Api * API specification * OpenAPI spec version: 0.1.0 */ import * as zod from "zod"; /** * Returns server health status * @summary Health check */ export const HealthCheckResponse = zod.object({ status: zod.string(), }); /** * Accepts a request, creates a job row, and issues an eval fee Lightning invoice. * @summary Create a new agent job */ export const CreateJobBody = zod.object({ request: zod.string().min(1), }); /** * Returns current job state. Automatically advances the state machine when a pending invoice is found to be paid. * @summary Get job status */ export const GetJobParams = zod.object({ id: zod.coerce.string(), }); export const GetJobResponse = zod.object({ jobId: zod.string(), state: zod.enum([ "awaiting_eval_payment", "evaluating", "rejected", "awaiting_work_payment", "executing", "complete", "failed", ]), evalInvoice: zod .object({ paymentRequest: zod.string(), amountSats: zod.number(), }) .optional(), workInvoice: zod .object({ paymentRequest: zod.string(), amountSats: zod.number(), }) .optional(), pricingBreakdown: zod .object({ estimatedCostUsd: zod .number() .optional() .describe( "Total estimated cost in USD (token cost + DO infra + margin)", ), marginPct: zod .number() .optional() .describe("Originator margin percentage applied"), btcPriceUsd: zod .number() .optional() .describe("BTC\/USD spot price used to convert the invoice to sats"), }) .optional() .describe( "Cost breakdown shown with the work invoice (estimations at invoice-creation time)", ), reason: zod.string().optional(), result: zod.string().optional(), costLedger: zod .object({ actualInputTokens: zod.number().optional(), actualOutputTokens: zod.number().optional(), totalTokens: zod .number() .optional() .describe("Sum of actualInputTokens + actualOutputTokens"), actualCostUsd: zod .number() .optional() .describe("Raw Anthropic token cost (no infra, no margin)"), estimatedCostUsd: zod.number().optional(), marginPct: zod.number().optional(), btcPriceUsd: zod.number().optional(), }) .optional() .describe("Actual cost record stored after the job completes"), errorMessage: zod.string().optional(), }); /** * Runs the agent without payment. Limited to 5 requests per IP per hour. * @summary Free demo (rate-limited) */ export const RunDemoQueryParams = zod.object({ request: zod.coerce.string(), }); export const RunDemoResponse = zod.object({ result: zod.string(), });