| | | 1 | | using ArturRios.Mediator.Query; |
| | | 2 | | |
| | | 3 | | namespace ArturRios.Heimdall.Query.Output; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Scope data returned by the view/list queries (UC-02). Only externally-facing <c>PublicId</c> |
| | | 7 | | /// identifiers are exposed; internal Ids never leave the data layer. |
| | | 8 | | /// </summary> |
| | | 9 | | public class ScopeOutput : QueryOutput |
| | | 10 | | { |
| | | 11 | | /// <summary>Public identifier of the scope.</summary> |
| | 76 | 12 | | public Guid Id { get; set; } |
| | | 13 | | |
| | | 14 | | /// <summary>Scope display name.</summary> |
| | 128 | 15 | | public string Name { get; set; } = string.Empty; |
| | | 16 | | |
| | | 17 | | /// <summary>Scope description, if any.</summary> |
| | 54 | 18 | | public string? Description { get; set; } |
| | | 19 | | |
| | | 20 | | /// <summary>Whether Google sign-in is enabled for the scope.</summary> |
| | 54 | 21 | | public bool GoogleSignInEnabled { get; set; } |
| | | 22 | | |
| | | 23 | | /// <summary>Whether anonymous self-registration is open for the scope (UC-47).</summary> |
| | 54 | 24 | | public bool SelfRegistrationEnabled { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// The lawful basis this tenant processes its users' data on (see <c>LegalBases</c>), or |
| | | 28 | | /// <c>null</c> where it takes the deployment default (NFR-23). |
| | | 29 | | /// </summary> |
| | 54 | 30 | | public int? DefaultLegalBasis { get; set; } |
| | | 31 | | |
| | | 32 | | /// <summary>Where this tenant publishes its own privacy notice, if it has one.</summary> |
| | 54 | 33 | | public string? PrivacyNoticeUri { get; set; } |
| | | 34 | | |
| | | 35 | | /// <summary>Base link for this scope's verification emails, or <c>null</c> to use the global one.</summary> |
| | 56 | 36 | | public string? EmailVerificationUrl { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary>Base link for this scope's password-reset emails, or <c>null</c> to use the global one.</summary> |
| | 56 | 39 | | public string? PasswordResetUrl { get; set; } |
| | | 40 | | |
| | | 41 | | /// <summary>Whether the scope is logically deleted.</summary> |
| | 55 | 42 | | public bool IsDeleted { get; set; } |
| | | 43 | | |
| | | 44 | | /// <summary>Public identifiers of the scope's owners.</summary> |
| | 109 | 45 | | public IEnumerable<Guid> OwnerIds { get; set; } = new List<Guid>(); |
| | | 46 | | |
| | | 47 | | /// <summary>Creation timestamp.</summary> |
| | 54 | 48 | | public DateTime CreatedAt { get; set; } |
| | | 49 | | |
| | | 50 | | /// <summary>Last update timestamp.</summary> |
| | 54 | 51 | | public DateTime UpdatedAt { get; set; } |
| | | 52 | | } |