summaryrefslogtreecommitdiff
path: root/Hutch/Models
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-07-16 01:29:06 -0500
committerGitHub <[email protected]>2026-07-16 01:29:06 -0500
commit8e585a709d8979d493fef3ed4015db93687f48e8 (patch)
treefaebe598a4c6f7a5f3db92d465ed693aab594252 /Hutch/Models
parentf100206cc6d6784563d8eb905c9feb15c58bcc1e (diff)
parent21be03e6ca54c1a15607faab905b119eda9a548f (diff)
downloadhutch-8e585a709d8979d493fef3ed4015db93687f48e8.tar.gz
hutch-8e585a709d8979d493fef3ed4015db93687f48e8.tar.bz2
hutch-8e585a709d8979d493fef3ed4015db93687f48e8.zip
Merge pull request #6 from zerolabsco/phase-3-api-features
Phase 3: API features
Diffstat (limited to 'Hutch/Models')
-rw-r--r--Hutch/Models/Meta.swift10
1 files changed, 10 insertions, 0 deletions
diff --git a/Hutch/Models/Meta.swift b/Hutch/Models/Meta.swift
index 91bd7e3..f52fc76 100644
--- a/Hutch/Models/Meta.swift
+++ b/Hutch/Models/Meta.swift
@@ -69,3 +69,13 @@ struct PersonalAccessToken: Codable, Sendable, Identifiable {
let comment: String?
let grants: String?
}
+
+/// One entry in meta.sr.ht's audit log: a security-relevant action on the
+/// account, with the address it came from.
+struct AuditLogEntry: Codable, Sendable, Identifiable {
+ let id: Int
+ let created: Date
+ let ipAddress: String
+ let eventType: String
+ let details: String?
+}