mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 19:34:38 +00:00
feat(audit): add audit log support for APIs and WebUI dashboard
This commit is contained in:
@@ -84,7 +84,8 @@ export const ModelName = {
|
||||
Provider: 'Provider',
|
||||
Collection: 'Collection',
|
||||
ApiToken: 'ApiToken',
|
||||
AiUsage: 'AiUsage'
|
||||
AiUsage: 'AiUsage',
|
||||
AuditLog: 'AuditLog'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -599,6 +600,19 @@ export const AiUsageScalarFieldEnum = {
|
||||
export type AiUsageScalarFieldEnum = (typeof AiUsageScalarFieldEnum)[keyof typeof AiUsageScalarFieldEnum]
|
||||
|
||||
|
||||
export const AuditLogScalarFieldEnum = {
|
||||
id: 'id',
|
||||
action: 'action',
|
||||
teamId: 'teamId',
|
||||
userId: 'userId',
|
||||
projectId: 'projectId',
|
||||
itemId: 'itemId',
|
||||
createdAt: 'createdAt'
|
||||
} as const
|
||||
|
||||
export type AuditLogScalarFieldEnum = (typeof AuditLogScalarFieldEnum)[keyof typeof AuditLogScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
|
||||
Reference in New Issue
Block a user