Download packages/kap-server/src/protocol/rest-oauth.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 603 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/kap-server/src/protocol/rest-oauth.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/kap-server/src/protocol/rest-oauth.ts
-
curl -L -o rest-oauth.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/kap-server/src/protocol/rest-oauth.ts
603 Bytes
| import { z } from 'zod'; | |
| export const oauthLoginStartRequestSchema = z.object({ | |
| provider: z.string().min(1).optional(), | |
| region: z.enum(['mainland-cn', 'global']).optional(), | |
| }); | |
| export type OAuthLoginStartRequest = z.infer<typeof oauthLoginStartRequestSchema>; | |
| export const oauthLoginQuerySchema = z.object({ | |
| provider: z.string().min(1).optional(), | |
| }); | |
| export type OAuthLoginQuery = z.infer<typeof oauthLoginQuerySchema>; | |
| export const oauthLogoutRequestSchema = z.object({ | |
| provider: z.string().min(1).optional(), | |
| }); | |
| export type OAuthLogoutRequest = z.infer<typeof oauthLogoutRequestSchema>; | |