| | | 1 | | using ArturRios.Mediator.Command; |
| | | 2 | | |
| | | 3 | | namespace ArturRios.Heimdall.Command.Output; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// The scope as updated by <see cref="Input.UpdateScopeCommand" /> (UC-03). Only externally-facing |
| | | 7 | | /// <c>PublicId</c> identifiers are exposed; internal Ids never leave the data layer. |
| | | 8 | | /// </summary> |
| | | 9 | | public class UpdateScopeCommandOutput : CommandOutput |
| | | 10 | | { |
| | | 11 | | /// <summary>Public identifier of the scope.</summary> |
| | 8 | 12 | | public Guid Id { get; set; } |
| | | 13 | | |
| | | 14 | | /// <summary>Scope display name.</summary> |
| | 15 | 15 | | public string Name { get; set; } = string.Empty; |
| | | 16 | | |
| | | 17 | | /// <summary>Scope description, if any.</summary> |
| | 11 | 18 | | public string? Description { get; set; } |
| | | 19 | | |
| | | 20 | | /// <summary>Whether Google sign-in is enabled for the scope.</summary> |
| | 7 | 21 | | public bool GoogleSignInEnabled { get; set; } |
| | | 22 | | |
| | | 23 | | /// <summary>Whether anonymous self-registration is open for the scope (UC-47).</summary> |
| | 7 | 24 | | public bool SelfRegistrationEnabled { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary>Base link for this scope's verification emails, or <c>null</c> to use the global one.</summary> |
| | 8 | 27 | | public string? EmailVerificationUrl { get; set; } |
| | | 28 | | |
| | | 29 | | /// <summary>Base link for this scope's password-reset emails, or <c>null</c> to use the global one.</summary> |
| | 8 | 30 | | public string? PasswordResetUrl { get; set; } |
| | | 31 | | |
| | | 32 | | /// <summary>Public identifiers of the scope's owners.</summary> |
| | 14 | 33 | | public IEnumerable<Guid> OwnerIds { get; set; } = new List<Guid>(); |
| | | 34 | | |
| | | 35 | | /// <summary>Creation timestamp.</summary> |
| | 7 | 36 | | public DateTime CreatedAt { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary>Last update timestamp.</summary> |
| | 7 | 39 | | public DateTime UpdatedAt { get; set; } |
| | | 40 | | } |