Download packages/kap-server/src/protocol/rest-guiStore.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 659 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/kap-server/src/protocol/rest-guiStore.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/kap-server/src/protocol/rest-guiStore.ts
-
curl -L -o rest-guiStore.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/kap-server/src/protocol/rest-guiStore.ts
659 Bytes
| 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>; | |