···136136137137// ModerationDefs_ModEventComment is a "modEventComment" in the tools.ozone.moderation.defs schema.
138138//
139139-// # Add a comment to a subject
139139+// Add a comment to a subject. An empty comment will clear any previously set sticky comment.
140140//
141141// RECORDTYPE: ModerationDefs_ModEventComment
142142type ModerationDefs_ModEventComment struct {
143143- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventComment" cborgen:"$type,const=tools.ozone.moderation.defs#modEventComment"`
144144- Comment string `json:"comment" cborgen:"comment"`
143143+ LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventComment" cborgen:"$type,const=tools.ozone.moderation.defs#modEventComment"`
144144+ Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
145145 // sticky: Make the comment persistent on the subject
146146 Sticky *bool `json:"sticky,omitempty" cborgen:"sticky,omitempty"`
147147}
···10371037 default:
10381038 return nil
10391039 }
10401040+}
10411041+10421042+// ModerationDefs_SubjectView is a "subjectView" in the tools.ozone.moderation.defs schema.
10431043+//
10441044+// Detailed view of a subject. For record subjects, the author's repo and profile will be returned.
10451045+type ModerationDefs_SubjectView struct {
10461046+ //Profile *ModerationDefs_SubjectView_Profile `json:"profile,omitempty" cborgen:"profile,omitempty"`
10471047+ Record *ModerationDefs_RecordViewDetail `json:"record,omitempty" cborgen:"record,omitempty"`
10481048+ Repo *ModerationDefs_RepoViewDetail `json:"repo,omitempty" cborgen:"repo,omitempty"`
10491049+ Status *ModerationDefs_SubjectStatusView `json:"status,omitempty" cborgen:"status,omitempty"`
10501050+ Subject string `json:"subject" cborgen:"subject"`
10511051+ Type *string `json:"type" cborgen:"type"`
10401052}
1041105310421054// ModerationDefs_VideoDetails is a "videoDetails" in the tools.ozone.moderation.defs schema.
+30
api/ozone/moderationgetSubjects.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.moderation.getSubjects
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// ModerationGetSubjects_Output is the output of a tools.ozone.moderation.getSubjects call.
1414+type ModerationGetSubjects_Output struct {
1515+ Subjects []*ModerationDefs_SubjectView `json:"subjects" cborgen:"subjects"`
1616+}
1717+1818+// ModerationGetSubjects calls the XRPC method "tools.ozone.moderation.getSubjects".
1919+func ModerationGetSubjects(ctx context.Context, c *xrpc.Client, subjects []string) (*ModerationGetSubjects_Output, error) {
2020+ var out ModerationGetSubjects_Output
2121+2222+ params := map[string]interface{}{
2323+ "subjects": subjects,
2424+ }
2525+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getSubjects", params, nil, &out); err != nil {
2626+ return nil, err
2727+ }
2828+2929+ return &out, nil
3030+}