Files
Govor/Govor.Contracts/Requests/SignalR/MessageRequest.cs
Artemy 33550d4fc9 Add E2EE messaging and VPS deployment
Add signed, encrypted messages and attachments with per-session device keys, conversation key discovery, and server-side validation. Extend CI to publish immutable container images and deploy to a VPS, with setup and protocol documentation.
2026-10-24 13:44:41 +07:00

16 lines
556 B
C#

using Govor.Domain.Models.Messages;
using System.ComponentModel.DataAnnotations;
namespace Govor.Contracts.Requests.SignalR;
public record MessageRequest
{
public Guid RecipientId { get; init; }
public RecipientType RecipientType { get; init; }
[Required]
[MaxLength(1_000_000, ErrorMessage = "EncryptedContent cannot exceed 1,000,000 characters.")]
public string EncryptedContent { get; init; } = string.Empty;
public Guid? ReplyToMessageId { get; set; }
public List<MediaReference> MediaAttachments { get; set; } = new();
}