From 6b03d7bb7aaad328b690ada0b844d64f9dea3ae2 Mon Sep 17 00:00:00 2001 From: Tim Miller Date: Fri, 3 Jan 2025 19:14:06 +0900 Subject: [PATCH] Bump dependencies (#143) --- .../Tools/Ozone/Moderation/ModEventTakedown.g.cs | 12 +++++++++++- .../Tools/Ozone/Moderation/ModerationEndpoints.g.cs | 8 +++++++- .../Tools/Ozone/Moderation/ToolsOzoneModeration.g.cs | 5 +++-- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModEventTakedown.g.cs b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModEventTakedown.g.cs index b4734ab..666758c 100644 --- a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModEventTakedown.g.cs +++ b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModEventTakedown.g.cs @@ -18,11 +18,13 @@ public partial class ModEventTakedown : ATObject /// /// Indicates how long the takedown should be in effect before automatically expiring. /// If true, all other reports on content authored by this account will be resolved (acknowledged). - public ModEventTakedown(string? comment = default, long? durationInHours = default, bool? acknowledgeAccountSubjects = default) + /// Names/Keywords of the policies that drove the decision. + public ModEventTakedown(string? comment = default, long? durationInHours = default, bool? acknowledgeAccountSubjects = default, List? policies = default) { this.Comment = comment; this.DurationInHours = durationInHours; this.AcknowledgeAccountSubjects = acknowledgeAccountSubjects; + this.Policies = policies; } @@ -42,6 +44,7 @@ public ModEventTakedown(CBORObject obj) if (obj["comment"] is not null) this.Comment = obj["comment"].AsString(); if (obj["durationInHours"] is not null) this.DurationInHours = obj["durationInHours"].AsInt64Value(); if (obj["acknowledgeAccountSubjects"] is not null) this.AcknowledgeAccountSubjects = obj["acknowledgeAccountSubjects"].AsBoolean(); + if (obj["policies"] is not null) this.Policies = obj["policies"].Values.Select(n =>n.AsString()).ToList(); } /// @@ -64,6 +67,13 @@ public ModEventTakedown(CBORObject obj) [JsonPropertyName("acknowledgeAccountSubjects")] public bool? AcknowledgeAccountSubjects { get; set; } + /// + /// Gets or sets the policies. + ///
Names/Keywords of the policies that drove the decision. + ///
+ [JsonPropertyName("policies")] + public List? Policies { get; set; } + /// /// Gets the ATRecord Type. /// diff --git a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModerationEndpoints.g.cs b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModerationEndpoints.g.cs index 8944250..dff0f55 100644 --- a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModerationEndpoints.g.cs +++ b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModerationEndpoints.g.cs @@ -192,10 +192,11 @@ public static class ModerationEndpoints /// /// /// + /// /// /// /// Result of - public static Task> QueryEventsAsync (this FishyFlip.ATProtocol atp, List? types = default, FishyFlip.Models.ATDid? createdBy = default, string? sortDirection = default, DateTime? createdAfter = default, DateTime? createdBefore = default, string? subject = default, List? collections = default, string? subjectType = default, bool? includeAllUserRecords = default, int? limit = 50, bool? hasComment = default, string? comment = default, List? addedLabels = default, List? removedLabels = default, List? addedTags = default, List? removedTags = default, List? reportTypes = default, string? cursor = default, CancellationToken cancellationToken = default) + public static Task> QueryEventsAsync (this FishyFlip.ATProtocol atp, List? types = default, FishyFlip.Models.ATDid? createdBy = default, string? sortDirection = default, DateTime? createdAfter = default, DateTime? createdBefore = default, string? subject = default, List? collections = default, string? subjectType = default, bool? includeAllUserRecords = default, int? limit = 50, bool? hasComment = default, string? comment = default, List? addedLabels = default, List? removedLabels = default, List? addedTags = default, List? removedTags = default, List? reportTypes = default, List? policies = default, string? cursor = default, CancellationToken cancellationToken = default) { var endpointUrl = QueryEvents.ToString(); endpointUrl += "?"; @@ -285,6 +286,11 @@ public static class ModerationEndpoints queryStrings.Add(string.Join("&", reportTypes.Select(n => "reportTypes=" + n))); } + if (policies != null) + { + queryStrings.Add(string.Join("&", policies.Select(n => "policies=" + n))); + } + if (cursor != null) { queryStrings.Add("cursor=" + cursor); diff --git a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ToolsOzoneModeration.g.cs b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ToolsOzoneModeration.g.cs index 036cbbe..034a1b9 100644 --- a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ToolsOzoneModeration.g.cs +++ b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ToolsOzoneModeration.g.cs @@ -126,11 +126,12 @@ internal ToolsOzoneModeration(ATProtocol atp) /// /// /// + /// /// /// - public Task> QueryEventsAsync (List? types = default, FishyFlip.Models.ATDid? createdBy = default, string? sortDirection = default, DateTime? createdAfter = default, DateTime? createdBefore = default, string? subject = default, List? collections = default, string? subjectType = default, bool? includeAllUserRecords = default, int? limit = 50, bool? hasComment = default, string? comment = default, List? addedLabels = default, List? removedLabels = default, List? addedTags = default, List? removedTags = default, List? reportTypes = default, string? cursor = default, CancellationToken cancellationToken = default) + public Task> QueryEventsAsync (List? types = default, FishyFlip.Models.ATDid? createdBy = default, string? sortDirection = default, DateTime? createdAfter = default, DateTime? createdBefore = default, string? subject = default, List? collections = default, string? subjectType = default, bool? includeAllUserRecords = default, int? limit = 50, bool? hasComment = default, string? comment = default, List? addedLabels = default, List? removedLabels = default, List? addedTags = default, List? removedTags = default, List? reportTypes = default, List? policies = default, string? cursor = default, CancellationToken cancellationToken = default) { - return atp.QueryEventsAsync(types, createdBy, sortDirection, createdAfter, createdBefore, subject, collections, subjectType, includeAllUserRecords, limit, hasComment, comment, addedLabels, removedLabels, addedTags, removedTags, reportTypes, cursor, cancellationToken); + return atp.QueryEventsAsync(types, createdBy, sortDirection, createdAfter, createdBefore, subject, collections, subjectType, includeAllUserRecords, limit, hasComment, comment, addedLabels, removedLabels, addedTags, removedTags, reportTypes, policies, cursor, cancellationToken); }