mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-27 13:47:56 -05:00
12 lines
227 B
TypeScript
12 lines
227 B
TypeScript
import * as v from "valibot";
|
|
import { _action } from "~/utils/schema";
|
|
|
|
export const apiActionSchema = v.union([
|
|
v.object({
|
|
_action: _action("GENERATE_READ"),
|
|
}),
|
|
v.object({
|
|
_action: _action("GENERATE_WRITE"),
|
|
}),
|
|
]);
|