mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-07 21:56:33 -05:00
12 lines
219 B
TypeScript
12 lines
219 B
TypeScript
import { z } from "zod";
|
|
import { _action } from "~/utils/zod";
|
|
|
|
export const apiActionSchema = z.union([
|
|
z.object({
|
|
_action: _action("GENERATE_READ"),
|
|
}),
|
|
z.object({
|
|
_action: _action("GENERATE_WRITE"),
|
|
}),
|
|
]);
|