| | | 1 | | using ArturRios.Mediator.Command; |
| | | 2 | | |
| | | 3 | | namespace ArturRios.Heimdall.Command.Output; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// The scope permission as it stands after a UC-33 update. Only externally-facing <c>PublicId</c> |
| | | 7 | | /// identifiers are exposed; the internal Ids that link the row to its scope never leave the data |
| | | 8 | | /// layer. |
| | | 9 | | /// </summary> |
| | | 10 | | public class UpdateScopePermissionCommandOutput : CommandOutput |
| | | 11 | | { |
| | | 12 | | /// <summary>Public identifier of the updated permission.</summary> |
| | 15 | 13 | | public Guid Id { get; set; } |
| | | 14 | | |
| | | 15 | | /// <summary>Permission display name after the update.</summary> |
| | 21 | 16 | | public string Name { get; set; } = string.Empty; |
| | | 17 | | |
| | | 18 | | /// <summary>Permission description after the update.</summary> |
| | 12 | 19 | | public string? Description { get; set; } |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// Whether the permission's <see cref="Name" /> is added as a claim on the JWT issued to |
| | | 23 | | /// identities acting within the owning scope. |
| | | 24 | | /// </summary> |
| | 12 | 25 | | public bool IncludeAsJwtClaim { get; set; } |
| | | 26 | | |
| | | 27 | | /// <summary>Public identifier of the scope the permission belongs to (unchanged by this operation).</summary> |
| | 12 | 28 | | public Guid ScopeId { get; set; } |
| | | 29 | | |
| | | 30 | | /// <summary>Creation timestamp.</summary> |
| | 11 | 31 | | public DateTime CreatedAt { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary>Update timestamp, stamped by this operation.</summary> |
| | 11 | 34 | | public DateTime UpdatedAt { get; set; } |
| | | 35 | | } |