| | | 1 | | using ArturRios.Mediator.Command; |
| | | 2 | | |
| | | 3 | | namespace ArturRios.Heimdall.Command.Output; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// The scope permission created by <see cref="Input.CreateScopePermissionCommand" /> (UC-31). |
| | | 7 | | /// Only externally-facing <c>PublicId</c> identifiers are exposed; the internal Ids that link the |
| | | 8 | | /// row to its scope never leave the data layer. |
| | | 9 | | /// </summary> |
| | | 10 | | public class CreateScopePermissionCommandOutput : CommandOutput |
| | | 11 | | { |
| | | 12 | | /// <summary>Public identifier of the created permission.</summary> |
| | 85 | 13 | | public Guid Id { get; set; } |
| | | 14 | | |
| | | 15 | | /// <summary>Permission display name.</summary> |
| | 108 | 16 | | public string Name { get; set; } = string.Empty; |
| | | 17 | | |
| | | 18 | | /// <summary>Permission description.</summary> |
| | 65 | 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> |
| | 65 | 25 | | public bool IncludeAsJwtClaim { get; set; } |
| | | 26 | | |
| | | 27 | | /// <summary>Public identifier of the scope the permission belongs to.</summary> |
| | 64 | 28 | | public Guid ScopeId { get; set; } |
| | | 29 | | |
| | | 30 | | /// <summary>Creation timestamp.</summary> |
| | 62 | 31 | | public DateTime CreatedAt { get; set; } |
| | | 32 | | } |