mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 22:14:50 +00:00
feat(cli): add shumai-cli and token authentication
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user