From de133734829590fe079e88a4a931a848b0ef3595 Mon Sep 17 00:00:00 2001 From: christiandeange Date: Sat, 4 Jan 2025 00:26:45 +0000 Subject: [PATCH] Update lexicons from atproto --- bluesky/api/bluesky.api | 22 +++++++++++-------- .../schemas/tools/ozone/moderation/defs.json | 6 +++++ .../tools/ozone/moderation/queryEvents.json | 7 ++++++ 3 files changed, 26 insertions(+), 9 deletions(-) diff --git a/bluesky/api/bluesky.api b/bluesky/api/bluesky.api index 0d2d7bb..f2704a6 100644 --- a/bluesky/api/bluesky.api +++ b/bluesky/api/bluesky.api @@ -16460,17 +16460,19 @@ public final class tools/ozone/moderation/ModEventTag$Companion { public final class tools/ozone/moderation/ModEventTakedown { public static final field Companion Ltools/ozone/moderation/ModEventTakedown$Companion; public fun ()V - public fun (Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Boolean;)V - public synthetic fun (Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Boolean;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/util/List;)V + public synthetic fun (Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/util/List;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ljava/lang/String; public final fun component2 ()Ljava/lang/Long; public final fun component3 ()Ljava/lang/Boolean; - public final fun copy (Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Boolean;)Ltools/ozone/moderation/ModEventTakedown; - public static synthetic fun copy$default (Ltools/ozone/moderation/ModEventTakedown;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Boolean;ILjava/lang/Object;)Ltools/ozone/moderation/ModEventTakedown; + public final fun component4 ()Ljava/util/List; + public final fun copy (Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/util/List;)Ltools/ozone/moderation/ModEventTakedown; + public static synthetic fun copy$default (Ltools/ozone/moderation/ModEventTakedown;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/util/List;ILjava/lang/Object;)Ltools/ozone/moderation/ModEventTakedown; public fun equals (Ljava/lang/Object;)Z public final fun getAcknowledgeAccountSubjects ()Ljava/lang/Boolean; public final fun getComment ()Ljava/lang/String; public final fun getDurationInHours ()Ljava/lang/Long; + public final fun getPolicies ()Ljava/util/List; public fun hashCode ()I public fun toString ()Ljava/lang/String; } @@ -17974,8 +17976,8 @@ public final class tools/ozone/moderation/OpSerializer : kotlinx/serialization/K public final class tools/ozone/moderation/QueryEventsQueryParams { public static final field Companion Ltools/ozone/moderation/QueryEventsQueryParams$Companion; - public synthetic fun (Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;Ljava/lang/String;Ljava/util/List;Ltools/ozone/moderation/QueryEventsSubjectType;Ljava/lang/Boolean;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;Ljava/lang/String;Ljava/util/List;Ltools/ozone/moderation/QueryEventsSubjectType;Ljava/lang/Boolean;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;Ljava/lang/String;Ljava/util/List;Ltools/ozone/moderation/QueryEventsSubjectType;Ljava/lang/Boolean;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;Ljava/lang/String;Ljava/util/List;Ltools/ozone/moderation/QueryEventsSubjectType;Ljava/lang/Boolean;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun asList ()Ljava/util/List; public final fun component1 ()Ljava/util/List; public final fun component10 ()Ljava/lang/Long; @@ -17986,7 +17988,8 @@ public final class tools/ozone/moderation/QueryEventsQueryParams { public final fun component15 ()Ljava/util/List; public final fun component16 ()Ljava/util/List; public final fun component17 ()Ljava/util/List; - public final fun component18 ()Ljava/lang/String; + public final fun component18 ()Ljava/util/List; + public final fun component19 ()Ljava/lang/String; public final fun component2-68yuAGA ()Ljava/lang/String; public final fun component3 ()Ljava/lang/String; public final fun component4 ()Lkotlinx/datetime/Instant; @@ -17995,8 +17998,8 @@ public final class tools/ozone/moderation/QueryEventsQueryParams { public final fun component7 ()Ljava/util/List; public final fun component8 ()Ltools/ozone/moderation/QueryEventsSubjectType; public final fun component9 ()Ljava/lang/Boolean; - public final fun copy-1kN9m_U (Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;Ljava/lang/String;Ljava/util/List;Ltools/ozone/moderation/QueryEventsSubjectType;Ljava/lang/Boolean;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/lang/String;)Ltools/ozone/moderation/QueryEventsQueryParams; - public static synthetic fun copy-1kN9m_U$default (Ltools/ozone/moderation/QueryEventsQueryParams;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;Ljava/lang/String;Ljava/util/List;Ltools/ozone/moderation/QueryEventsSubjectType;Ljava/lang/Boolean;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/lang/String;ILjava/lang/Object;)Ltools/ozone/moderation/QueryEventsQueryParams; + public final fun copy-_1NeaXE (Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;Ljava/lang/String;Ljava/util/List;Ltools/ozone/moderation/QueryEventsSubjectType;Ljava/lang/Boolean;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/lang/String;)Ltools/ozone/moderation/QueryEventsQueryParams; + public static synthetic fun copy-_1NeaXE$default (Ltools/ozone/moderation/QueryEventsQueryParams;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;Ljava/lang/String;Ljava/util/List;Ltools/ozone/moderation/QueryEventsSubjectType;Ljava/lang/Boolean;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/lang/String;ILjava/lang/Object;)Ltools/ozone/moderation/QueryEventsQueryParams; public fun equals (Ljava/lang/Object;)Z public final fun getAddedLabels ()Ljava/util/List; public final fun getAddedTags ()Ljava/util/List; @@ -18009,6 +18012,7 @@ public final class tools/ozone/moderation/QueryEventsQueryParams { public final fun getHasComment ()Ljava/lang/Boolean; public final fun getIncludeAllUserRecords ()Ljava/lang/Boolean; public final fun getLimit ()Ljava/lang/Long; + public final fun getPolicies ()Ljava/util/List; public final fun getRemovedLabels ()Ljava/util/List; public final fun getRemovedTags ()Ljava/util/List; public final fun getReportTypes ()Ljava/util/List; diff --git a/lexicons/schemas/tools/ozone/moderation/defs.json b/lexicons/schemas/tools/ozone/moderation/defs.json index c9fa711..7c590cd 100644 --- a/lexicons/schemas/tools/ozone/moderation/defs.json +++ b/lexicons/schemas/tools/ozone/moderation/defs.json @@ -224,6 +224,12 @@ "acknowledgeAccountSubjects": { "type": "boolean", "description": "If true, all other reports on content authored by this account will be resolved (acknowledged)." + }, + "policies": { + "type": "array", + "maxLength": 5, + "items": { "type": "string" }, + "description": "Names/Keywords of the policies that drove the decision." } } }, diff --git a/lexicons/schemas/tools/ozone/moderation/queryEvents.json b/lexicons/schemas/tools/ozone/moderation/queryEvents.json index 9e89a94..e33e18c 100644 --- a/lexicons/schemas/tools/ozone/moderation/queryEvents.json +++ b/lexicons/schemas/tools/ozone/moderation/queryEvents.json @@ -106,6 +106,13 @@ "type": "string" } }, + "policies": { + "type": "array", + "items": { + "type": "string", + "description": "If specified, only events where the action policies match any of the given policies are returned" + } + }, "cursor": { "type": "string" }