namespace ScadaLink.Commons.Messages.Management; public record AuthenticatedUser( string Username, string DisplayName, IReadOnlyList Roles, IReadOnlyList PermittedSiteIds); public record ManagementEnvelope(AuthenticatedUser User, object Command, string CorrelationId); public record ManagementSuccess(string CorrelationId, object? Data); public record ManagementError(string CorrelationId, string Error, string ErrorCode); public record ManagementUnauthorized(string CorrelationId, string Message);