@pump-fun/shared-contracts
Version:
Shared contracts for Pump.fun microservices.
26 lines (24 loc) • 575 B
text/typescript
/**
* Health check contract definitions
* Contract-first approach for system health monitoring
*/
import { oc } from "@orpc/contract";
import { z } from "zod";
/**
* Health check contract - public endpoint
*/
export const healthCheck = oc
.route({
description: "Check if the notification API service is healthy",
method: "GET",
path: "/health",
tags: ["System"],
})
.output(
z.object({
service: z.literal("notification-api"),
status: z.literal("ok"),
timestamp: z.string().datetime(),
version: z.string(),
}),
);