feat: add E2EE DMs, group chats, local serversettings.json, and security/perf fixes
This commit is contained in:
parent
b60b5a0774
commit
3b52de20d1
33 changed files with 5107 additions and 366 deletions
|
|
@ -8,6 +8,8 @@ public class RegisterRequest
|
|||
public string Password { get; set; } = string.Empty;
|
||||
public string? ServerPassword { get; set; }
|
||||
public string? InviteToken { get; set; }
|
||||
public string? PublicKey { get; set; }
|
||||
public string? EncryptedPrivateKey { get; set; }
|
||||
}
|
||||
|
||||
public class LoginRequest
|
||||
|
|
@ -15,6 +17,8 @@ public class LoginRequest
|
|||
public string Username { get; set; } = string.Empty;
|
||||
public string Password { get; set; } = string.Empty;
|
||||
public string? ServerPassword { get; set; }
|
||||
public string? PublicKey { get; set; }
|
||||
public string? EncryptedPrivateKey { get; set; }
|
||||
}
|
||||
|
||||
public class AuthResponse
|
||||
|
|
@ -24,6 +28,9 @@ public class AuthResponse
|
|||
public string? UserId { get; set; }
|
||||
public string? Username { get; set; }
|
||||
public string? Role { get; set; }
|
||||
public string? PublicKey { get; set; }
|
||||
public string? EncryptedPrivateKey { get; set; }
|
||||
public bool E2eeEnabled { get; set; } = true;
|
||||
public string? ErrorMessage { get; set; }
|
||||
}
|
||||
|
||||
|
|
@ -36,6 +43,8 @@ public class ServerInfoResponse
|
|||
public string Motd { get; set; } = "Welcome to GsDChat!";
|
||||
public long MaxFileSizeMb { get; set; } = 50;
|
||||
public bool AllowMemberChannelCreation { get; set; } = true;
|
||||
public bool AllowDmE2ee { get; set; } = true;
|
||||
public int MaxGroupChatUsers { get; set; } = 10;
|
||||
}
|
||||
|
||||
public class UploadFileResponse
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue