summaryrefslogtreecommitdiff
path: root/shrine/types/audit/details.go
blob: 2c15e04115d67c8264f5dc0846581099dcea32be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package audit

type BanDetails struct {
	Reason    string `json:"reason"`
	SystemRef string `json:"system_ref"`
}

type DisableDetails struct {
	Reason        string  `json:"reason"`
	DisabledUntil *string `json:"disabled_until"`
	SystemRef     string  `json:"system_ref"`
}

type RoleChangeDetails struct {
	OldRole string `json:"old_role"`
	NewRole string `json:"new_role"`
}

type WarningDetails struct {
	WarningRef string `json:"warning_ref"`
	Title      string `json:"title"`
	Message    string `json:"message"`
}

type DeactivateWarningDetails struct {
	WarningRef string `json:"warning_ref"`
}

type FieldChange struct {
	Field string `json:"field"`
	Old   any    `json:"old"`
	New   any    `json:"new"`
}

type EditUserDetails struct {
	Changes []FieldChange `json:"changes"`
}