import "@orpc/openapi/extensions/route"; import { oc } from "@orpc/contract"; import { z } from "zod"; export const contract = oc.router({ ping: oc .route({ method: "GET", path: "/ping", summary: "Health check", description: "Simple ping endpoint to verify the plugin is responding correctly.", tags: ["Health"], }) .output( z.object({ status: z.literal("ok").describe('Always returns "ok" if the service is healthy'), timestamp: z.string().describe("ISO 8601 timestamp of when the ping was processed"), }), ), }); export type ContractType = typeof contract;