File size: 659 Bytes
4e23b01 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | import { z } from 'zod';
const keySchema = z.string().min(1).max(256);
export const guiStoreGetItemQuerySchema = z.object({ key: keySchema });
export const guiStoreSetItemBodySchema = z.object({
key: keySchema,
value: z.string(),
});
export const guiStoreRemoveItemBodySchema = z.object({ key: keySchema });
export const guiStoreGetItemResponseSchema = z.object({
value: z.string().nullable(),
});
export type GuiStoreGetItemResponse = z.infer<typeof guiStoreGetItemResponseSchema>;
export const guiStoreLengthResponseSchema = z.object({
length: z.number(),
});
export type GuiStoreLengthResponse = z.infer<typeof guiStoreLengthResponseSchema>;
|