Skip to content

Commit

Permalink
add Command Audit
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlauer-Hax committed Oct 21, 2023
1 parent b7bb091 commit 13181bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/music.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ export enum AuditTypes {
FileUpload = "file-upload",
FileDelete = "file-delete",
FileRead = "file-read",
CommandExecute = "command-execute",
}

export const audit = zod.discriminatedUnion("type", [
Expand Down Expand Up @@ -458,6 +459,12 @@ export const audit = zod.discriminatedUnion("type", [
user: zod.string(),
file: zod.string(),
}),
zod.object({
type: zod.literal(AuditTypes.CommandExecute),
user: zod.string(),
server: zod.string(),
command: zod.string(),
}),
]);

export enum OAuthScopes {
Expand Down

0 comments on commit 13181bc

Please sign in to comment.