Download packages/kap-server/src/protocol/rest-remote-control.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 553 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/kap-server/src/protocol/rest-remote-control.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/kap-server/src/protocol/rest-remote-control.ts
-
curl -L -o rest-remote-control.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/kap-server/src/protocol/rest-remote-control.ts
553 Bytes
| import { z } from 'zod'; | |
| export const remoteControlStatusSchema = z.object({ | |
| enabled: z.boolean(), | |
| state: z.enum(['off', 'starting', 'on', 'stopping']), | |
| url: z.string().optional(), | |
| device_id: z.string().optional(), | |
| device_name: z.string().optional(), | |
| error: z.string().optional(), | |
| }); | |
| export type RemoteControlStatusResponse = z.infer<typeof remoteControlStatusSchema>; | |
| export const setRemoteControlRequestSchema = z.object({ | |
| enabled: z.boolean(), | |
| }); | |
| export type SetRemoteControlRequest = z.infer<typeof setRemoteControlRequestSchema>; | |