UNPKG

@mnpay/golomt

Version:
22 lines (21 loc) 832 B
import { z } from 'zod'; import { GolomtRequestPath } from '../constants'; export declare const golomtErrorResponseSchema: z.ZodObject<{ timestamp: z.ZodString; status: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<200>, z.ZodLiteral<400>]>, z.ZodLiteral<403>]>, z.ZodLiteral<500>]>; error: z.ZodEnum<["Validation", "NotFound", "Internal", "Forbidden"]>; message: z.ZodString; path: z.ZodNativeEnum<typeof GolomtRequestPath>; }, "strip", z.ZodTypeAny, { timestamp: string; status: 200 | 400 | 403 | 500; path: GolomtRequestPath; message: string; error: "Validation" | "NotFound" | "Internal" | "Forbidden"; }, { timestamp: string; status: 200 | 400 | 403 | 500; path: GolomtRequestPath; message: string; error: "Validation" | "NotFound" | "Internal" | "Forbidden"; }>;