feat(backend): user lookup

This commit is contained in:
sam 2024-12-27 17:48:37 -05:00
parent 8713279d3d
commit 12eddb9949
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
4 changed files with 156 additions and 0 deletions

View file

@ -18,6 +18,7 @@ using Foxnouns.Backend.Database;
using Foxnouns.Backend.Database.Models;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using NodaTime;
namespace Foxnouns.Backend.Dto;
@ -94,3 +95,18 @@ public enum FieldsToClear
Flags,
CustomPreferences,
}
public record QueryUsersRequest(string Query, bool Fuzzy);
public record QueryUserResponse(
UserResponse User,
bool MemberListHidden,
Instant LastActive,
Instant LastSidReroll,
bool Suspended,
bool Deleted,
[property: JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
IEnumerable<AuthMethodResponse>? AuthMethods
);
public record QuerySensitiveUserDataRequest(string Reason);