diff --git a/src/Seq.Api/Client/SeqApiClient.cs b/src/Seq.Api/Client/SeqApiClient.cs index d3565ec..f0b690b 100644 --- a/src/Seq.Api/Client/SeqApiClient.cs +++ b/src/Seq.Api/Client/SeqApiClient.cs @@ -48,7 +48,9 @@ public sealed class SeqApiClient : IDisposable readonly JsonSerializer _serializer = JsonSerializer.Create( new JsonSerializerSettings { - Converters = { new StringEnumConverter(), new LinkCollectionConverter() } + Converters = { new StringEnumConverter(), new LinkCollectionConverter() }, + DateParseHandling = DateParseHandling.None, + FloatParseHandling = FloatParseHandling.Decimal }); /// diff --git a/src/Seq.Api/Model/Security/Permission.cs b/src/Seq.Api/Model/Security/Permission.cs index 8da1c61..9ed273e 100644 --- a/src/Seq.Api/Model/Security/Permission.cs +++ b/src/Seq.Api/Model/Security/Permission.cs @@ -56,15 +56,21 @@ public enum Permission Setup, /// - /// Access to settings required for day-to-day operation of Seq, such as users, retention policies, API keys. + /// Access to settings that control data ingestion, storage, dashboarding and alerting. /// Project, /// /// Access to settings and features that interact with, or provide access to, the underlying host server, /// such as app (plug-in) installation, backup settings, cluster configuration, diagnostics, and features - /// relying on outbound network access like package feeds and update checks. + /// relying on outbound network access like package feeds and update checks. This permission is required for + /// configuration of the authentication provider and related settings. /// - System + System, + + /// + /// Create, edit, and delete user accounts, reset local user passwords. + /// + Organization } } diff --git a/src/Seq.Api/Model/Security/RoleEntity.cs b/src/Seq.Api/Model/Security/RoleEntity.cs index 57ad0e8..e8a66e5 100644 --- a/src/Seq.Api/Model/Security/RoleEntity.cs +++ b/src/Seq.Api/Model/Security/RoleEntity.cs @@ -29,6 +29,11 @@ public class RoleEntity : Entity /// /// Permissions granted to users in the role. /// - public HashSet Permissions { get; set; } = new HashSet(); + public HashSet Permissions { get; set; } = new(); + + /// + /// Optionally, an extended description of the role. + /// + public string Description { get; set; } } } diff --git a/src/Seq.Api/Model/Users/SearchHistoryItemStatus.cs b/src/Seq.Api/Model/Users/SearchHistoryItemAction.cs similarity index 90% rename from src/Seq.Api/Model/Users/SearchHistoryItemStatus.cs rename to src/Seq.Api/Model/Users/SearchHistoryItemAction.cs index 7944494..b374beb 100644 --- a/src/Seq.Api/Model/Users/SearchHistoryItemStatus.cs +++ b/src/Seq.Api/Model/Users/SearchHistoryItemAction.cs @@ -17,7 +17,7 @@ namespace Seq.Api.Model.Users /// /// An operation applied to a search history item. /// - public enum SearchHistoryItemStatus + public enum SearchHistoryItemAction { /// /// The item was used (make it more recent). @@ -28,10 +28,10 @@ public enum SearchHistoryItemStatus /// The item has been pinned. /// Pinned, - + /// - /// The item has been un-pinned. + /// The item has been unpinned. /// - Forgotten + Unpinned } } \ No newline at end of file diff --git a/src/Seq.Api/Model/Users/SearchHistoryItemPart.cs b/src/Seq.Api/Model/Users/SearchHistoryItemPart.cs index 1014a7a..6465910 100644 --- a/src/Seq.Api/Model/Users/SearchHistoryItemPart.cs +++ b/src/Seq.Api/Model/Users/SearchHistoryItemPart.cs @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// ReSharper disable ClassNeverInstantiated.Global + namespace Seq.Api.Model.Users { /// @@ -20,13 +22,13 @@ namespace Seq.Api.Model.Users public class SearchHistoryItemPart { /// - /// The filter entered by the user into the filter bar. + /// The search or query entered by the user into the search bar. /// public string Search { get; set; } /// /// Status to apply to the search history item. /// - public SearchHistoryItemStatus Status { get; set; } + public SearchHistoryItemAction Action { get; set; } } }