26 lines
682 B
TypeScript
26 lines
682 B
TypeScript
import type { Context } from "hono";
|
|
import { z } from "zod";
|
|
declare const requestSchema: z.ZodObject<{
|
|
ip: z.ZodOptional<z.ZodString>;
|
|
endpoint: z.ZodString;
|
|
action: z.ZodOptional<z.ZodString>;
|
|
stats: z.ZodOptional<z.ZodString>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
ip?: string;
|
|
endpoint?: string;
|
|
action?: string;
|
|
stats?: string;
|
|
}, {
|
|
ip?: string;
|
|
endpoint?: string;
|
|
action?: string;
|
|
stats?: string;
|
|
}>;
|
|
type ApiHitData = z.infer<typeof requestSchema>;
|
|
export declare const apiHit: (c: Context, data: unknown) => Promise<{
|
|
success: boolean;
|
|
data?: ApiHitData;
|
|
errors?: any[];
|
|
}>;
|
|
export {};
|
|
//# sourceMappingURL=apiHits.d.ts.map
|