···217217 DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"`
218218}
219219220220+// ModerationDefs_ModEventPriorityScore is a "modEventPriorityScore" in the tools.ozone.moderation.defs schema.
221221+//
222222+// Set priority score of the subject. Higher score means higher priority.
223223+//
224224+// RECORDTYPE: ModerationDefs_ModEventPriorityScore
225225+type ModerationDefs_ModEventPriorityScore struct {
226226+ LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventPriorityScore" cborgen:"$type,const=tools.ozone.moderation.defs#modEventPriorityScore"`
227227+ Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
228228+ Score int64 `json:"score" cborgen:"score"`
229229+}
230230+220231// ModerationDefs_ModEventReport is a "modEventReport" in the tools.ozone.moderation.defs schema.
221232//
222233// # Report a subject
···346357 ModerationDefs_AccountEvent *ModerationDefs_AccountEvent
347358 ModerationDefs_IdentityEvent *ModerationDefs_IdentityEvent
348359 ModerationDefs_RecordEvent *ModerationDefs_RecordEvent
360360+ ModerationDefs_ModEventPriorityScore *ModerationDefs_ModEventPriorityScore
349361}
350362351363func (t *ModerationDefs_ModEventViewDetail_Event) MarshalJSON() ([]byte, error) {
···421433 t.ModerationDefs_RecordEvent.LexiconTypeID = "tools.ozone.moderation.defs#recordEvent"
422434 return json.Marshal(t.ModerationDefs_RecordEvent)
423435 }
436436+ if t.ModerationDefs_ModEventPriorityScore != nil {
437437+ t.ModerationDefs_ModEventPriorityScore.LexiconTypeID = "tools.ozone.moderation.defs#modEventPriorityScore"
438438+ return json.Marshal(t.ModerationDefs_ModEventPriorityScore)
439439+ }
424440 return nil, fmt.Errorf("cannot marshal empty enum")
425441}
426442func (t *ModerationDefs_ModEventViewDetail_Event) UnmarshalJSON(b []byte) error {
···484500 case "tools.ozone.moderation.defs#recordEvent":
485501 t.ModerationDefs_RecordEvent = new(ModerationDefs_RecordEvent)
486502 return json.Unmarshal(b, t.ModerationDefs_RecordEvent)
503503+ case "tools.ozone.moderation.defs#modEventPriorityScore":
504504+ t.ModerationDefs_ModEventPriorityScore = new(ModerationDefs_ModEventPriorityScore)
505505+ return json.Unmarshal(b, t.ModerationDefs_ModEventPriorityScore)
487506488507 default:
489508 return nil
···560579 ModerationDefs_AccountEvent *ModerationDefs_AccountEvent
561580 ModerationDefs_IdentityEvent *ModerationDefs_IdentityEvent
562581 ModerationDefs_RecordEvent *ModerationDefs_RecordEvent
582582+ ModerationDefs_ModEventPriorityScore *ModerationDefs_ModEventPriorityScore
563583}
564584565585func (t *ModerationDefs_ModEventView_Event) MarshalJSON() ([]byte, error) {
···635655 t.ModerationDefs_RecordEvent.LexiconTypeID = "tools.ozone.moderation.defs#recordEvent"
636656 return json.Marshal(t.ModerationDefs_RecordEvent)
637657 }
658658+ if t.ModerationDefs_ModEventPriorityScore != nil {
659659+ t.ModerationDefs_ModEventPriorityScore.LexiconTypeID = "tools.ozone.moderation.defs#modEventPriorityScore"
660660+ return json.Marshal(t.ModerationDefs_ModEventPriorityScore)
661661+ }
638662 return nil, fmt.Errorf("cannot marshal empty enum")
639663}
640664func (t *ModerationDefs_ModEventView_Event) UnmarshalJSON(b []byte) error {
···698722 case "tools.ozone.moderation.defs#recordEvent":
699723 t.ModerationDefs_RecordEvent = new(ModerationDefs_RecordEvent)
700724 return json.Unmarshal(b, t.ModerationDefs_RecordEvent)
725725+ case "tools.ozone.moderation.defs#modEventPriorityScore":
726726+ t.ModerationDefs_ModEventPriorityScore = new(ModerationDefs_ModEventPriorityScore)
727727+ return json.Unmarshal(b, t.ModerationDefs_ModEventPriorityScore)
701728702729 default:
703730 return nil
···887914 Did string `json:"did" cborgen:"did"`
888915}
889916917917+// ModerationDefs_ReporterStats is a "reporterStats" in the tools.ozone.moderation.defs schema.
918918+type ModerationDefs_ReporterStats struct {
919919+ // accountReportCount: The total number of reports made by the user on accounts.
920920+ AccountReportCount int64 `json:"accountReportCount" cborgen:"accountReportCount"`
921921+ Did string `json:"did" cborgen:"did"`
922922+ // labeledAccountCount: The total number of accounts labeled as a result of the user's reports.
923923+ LabeledAccountCount int64 `json:"labeledAccountCount" cborgen:"labeledAccountCount"`
924924+ // labeledRecordCount: The total number of records labeled as a result of the user's reports.
925925+ LabeledRecordCount int64 `json:"labeledRecordCount" cborgen:"labeledRecordCount"`
926926+ // recordReportCount: The total number of reports made by the user on records.
927927+ RecordReportCount int64 `json:"recordReportCount" cborgen:"recordReportCount"`
928928+ // reportedAccountCount: The total number of accounts reported by the user.
929929+ ReportedAccountCount int64 `json:"reportedAccountCount" cborgen:"reportedAccountCount"`
930930+ // reportedRecordCount: The total number of records reported by the user.
931931+ ReportedRecordCount int64 `json:"reportedRecordCount" cborgen:"reportedRecordCount"`
932932+ // takendownAccountCount: The total number of accounts taken down as a result of the user's reports.
933933+ TakendownAccountCount int64 `json:"takendownAccountCount" cborgen:"takendownAccountCount"`
934934+ // takendownRecordCount: The total number of records taken down as a result of the user's reports.
935935+ TakendownRecordCount int64 `json:"takendownRecordCount" cborgen:"takendownRecordCount"`
936936+}
937937+890938// ModerationDefs_SubjectStatusView is a "subjectStatusView" in the tools.ozone.moderation.defs schema.
891939type ModerationDefs_SubjectStatusView struct {
892940 // accountStats: Statistics related to the account subject
···906954 LastReviewedBy *string `json:"lastReviewedBy,omitempty" cborgen:"lastReviewedBy,omitempty"`
907955 MuteReportingUntil *string `json:"muteReportingUntil,omitempty" cborgen:"muteReportingUntil,omitempty"`
908956 MuteUntil *string `json:"muteUntil,omitempty" cborgen:"muteUntil,omitempty"`
957957+ // priorityScore: Numeric value representing the level of priority. Higher score means higher priority.
958958+ PriorityScore *int64 `json:"priorityScore,omitempty" cborgen:"priorityScore,omitempty"`
909959 // recordsStats: Statistics related to the record subjects authored by the subject's account
910960 RecordsStats *ModerationDefs_RecordsStats `json:"recordsStats,omitempty" cborgen:"recordsStats,omitempty"`
911961 ReviewState *string `json:"reviewState" cborgen:"reviewState"`
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.moderation.getReporterStats
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// ModerationGetReporterStats_Output is the output of a tools.ozone.moderation.getReporterStats call.
1414+type ModerationGetReporterStats_Output struct {
1515+ Stats []*ModerationDefs_ReporterStats `json:"stats" cborgen:"stats"`
1616+}
1717+1818+// ModerationGetReporterStats calls the XRPC method "tools.ozone.moderation.getReporterStats".
1919+func ModerationGetReporterStats(ctx context.Context, c *xrpc.Client, dids []string) (*ModerationGetReporterStats_Output, error) {
2020+ var out ModerationGetReporterStats_Output
2121+2222+ params := map[string]interface{}{
2323+ "dids": dids,
2424+ }
2525+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getReporterStats", params, nil, &out); err != nil {
2626+ return nil, err
2727+ }
2828+2929+ return &out, nil
3030+}
+3-1
api/ozone/moderationqueryStatuses.go
···3030// includeMuted: By default, we don't include muted subjects in the results. Set this to true to include them.
3131// lastReviewedBy: Get all subject statuses that were reviewed by a specific moderator
3232// minAccountSuspendCount: If specified, only subjects that belong to an account that has at least this many suspensions will be returned.
3333+// minPriorityScore: If specified, only subjects that have priority score value above the given value will be returned.
3334// minReportedRecordsCount: If specified, only subjects that belong to an account that has at least this many reported records will be returned.
3435// minTakendownRecordsCount: If specified, only subjects that belong to an account that has at least this many taken down records will be returned.
3536// onlyMuted: When set to true, only muted subjects and reporters will be returned.
···4445// subject: The subject to get the status for.
4546// subjectType: If specified, subjects of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.
4647// takendown: Get subjects that were taken down
4747-func ModerationQueryStatuses(ctx context.Context, c *xrpc.Client, appealed bool, collections []string, comment string, cursor string, excludeTags []string, hostingDeletedAfter string, hostingDeletedBefore string, hostingStatuses []string, hostingUpdatedAfter string, hostingUpdatedBefore string, ignoreSubjects []string, includeAllUserRecords bool, includeMuted bool, lastReviewedBy string, limit int64, minAccountSuspendCount int64, minReportedRecordsCount int64, minTakendownRecordsCount int64, onlyMuted bool, queueCount int64, queueIndex int64, queueSeed string, reportedAfter string, reportedBefore string, reviewState string, reviewedAfter string, reviewedBefore string, sortDirection string, sortField string, subject string, subjectType string, tags []string, takendown bool) (*ModerationQueryStatuses_Output, error) {
4848+func ModerationQueryStatuses(ctx context.Context, c *xrpc.Client, appealed bool, collections []string, comment string, cursor string, excludeTags []string, hostingDeletedAfter string, hostingDeletedBefore string, hostingStatuses []string, hostingUpdatedAfter string, hostingUpdatedBefore string, ignoreSubjects []string, includeAllUserRecords bool, includeMuted bool, lastReviewedBy string, limit int64, minAccountSuspendCount int64, minPriorityScore int64, minReportedRecordsCount int64, minTakendownRecordsCount int64, onlyMuted bool, queueCount int64, queueIndex int64, queueSeed string, reportedAfter string, reportedBefore string, reviewState string, reviewedAfter string, reviewedBefore string, sortDirection string, sortField string, subject string, subjectType string, tags []string, takendown bool) (*ModerationQueryStatuses_Output, error) {
4849 var out ModerationQueryStatuses_Output
49505051 params := map[string]interface{}{
···6465 "lastReviewedBy": lastReviewedBy,
6566 "limit": limit,
6667 "minAccountSuspendCount": minAccountSuspendCount,
6868+ "minPriorityScore": minPriorityScore,
6769 "minReportedRecordsCount": minReportedRecordsCount,
6870 "minTakendownRecordsCount": minTakendownRecordsCount,
6971 "onlyMuted": onlyMuted,