| | | 1 | | namespace Elsa.Identity.Endpoints.Permissions.List; |
| | | 2 | | |
| | | 3 | | /// <summary>The permission catalog: every resource the installed modules have registered.</summary> |
| | | 4 | | /// <param name="CoreVerbs">The recommended verb set modules should reuse. A convention, not a closed vocabulary.</param |
| | | 5 | | /// <param name="Resources">Every registered resource, ordered by name.</param> |
| | | 6 | | public record Response(IReadOnlyCollection<string> CoreVerbs, IReadOnlyCollection<ResourceDescriptor> Resources); |
| | | 7 | | |
| | | 8 | | /// <summary>One registered resource and the verbs it accepts.</summary> |
| | | 9 | | /// <param name="NonCoreVerbs"> |
| | | 10 | | /// The subset of <paramref name="SupportedVerbs"/> outside the recommended core set, surfaced so a |
| | | 11 | | /// reviewer can spot a needless synonym. |
| | | 12 | | /// </param> |
| | | 13 | | /// <param name="Verified"> |
| | | 14 | | /// <c>false</c> when the descriptor was inferred from an endpoint declaration rather than declared by a |
| | | 15 | | /// module. The module keeps working and the gap stays visible here. |
| | | 16 | | /// </param> |
| | 0 | 17 | | public record ResourceDescriptor( |
| | 0 | 18 | | string Resource, |
| | 0 | 19 | | IReadOnlyCollection<string> SupportedVerbs, |
| | 0 | 20 | | IReadOnlyCollection<string> NonCoreVerbs, |
| | 0 | 21 | | string DisplayName, |
| | 0 | 22 | | string Description, |
| | 0 | 23 | | string Category, |
| | 0 | 24 | | bool Verified); |