mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-28 20:04:26 +00:00
feat(quota): move usage monitoring to team dashboard (#327)
This commit is contained in:
@@ -49,6 +49,7 @@ export enum AuditAction {
|
||||
quota_rule_create = 'quota_rule_create',
|
||||
quota_rule_update = 'quota_rule_update',
|
||||
quota_rule_delete = 'quota_rule_delete',
|
||||
quota_record_reset = 'quota_record_reset',
|
||||
quota_policy_create = 'quota_policy_create',
|
||||
quota_policy_update = 'quota_policy_update',
|
||||
quota_policy_delete = 'quota_policy_delete',
|
||||
|
||||
@@ -182,6 +182,11 @@ export const createQuotaRuleRequestSchema = z
|
||||
})
|
||||
export type CreateQuotaRuleRequest = z.input<typeof createQuotaRuleRequestSchema>
|
||||
|
||||
export const resetQuotaRecordRequestSchema = z.object({
|
||||
userId: z.string().nullable(),
|
||||
})
|
||||
export type ResetQuotaRecordRequest = z.infer<typeof resetQuotaRecordRequestSchema>
|
||||
|
||||
export const updateQuotaRuleRequestSchema = z
|
||||
.object({
|
||||
scopeMode: quotaScopeModeSchema.optional(),
|
||||
|
||||
Reference in New Issue
Block a user