feat(cli): add shumai-cli and token authentication

This commit is contained in:
yiling
2026-06-21 12:35:12 +08:00
parent e33cbdb37c
commit 90ef063d43
40 changed files with 3609 additions and 18 deletions
+13
View File
@@ -5,3 +5,16 @@ export const signupInfoResponseSchema = z.object({
})
export type SignupInfoResponse = z.infer<typeof signupInfoResponseSchema>
export const createApiTokenRequestSchema = z.object({
name: z.string().min(1, 'Name is required').max(100, 'Name is too long'),
})
export type CreateApiTokenRequest = z.infer<typeof createApiTokenRequestSchema>
export const apiTokenResponseSchema = z.object({
id: z.string(),
token: z.string(),
name: z.string(),
createdAt: z.string(),
})
export type ApiTokenResponse = z.infer<typeof apiTokenResponseSchema>