ozone

package
v0.0.0-...-fd270fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2025 License: Apache-2.0, MIT Imports: 8 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommunicationDeleteTemplate

func CommunicationDeleteTemplate(ctx context.Context, c *xrpc.Client, input *CommunicationDeleteTemplate_Input) error

CommunicationDeleteTemplate calls the XRPC method "tools.ozone.communication.deleteTemplate".

func SetAddValues

func SetAddValues(ctx context.Context, c *xrpc.Client, input *SetAddValues_Input) error

SetAddValues calls the XRPC method "tools.ozone.set.addValues".

func SetDeleteValues

func SetDeleteValues(ctx context.Context, c *xrpc.Client, input *SetDeleteValues_Input) error

SetDeleteValues calls the XRPC method "tools.ozone.set.deleteValues".

func TeamDeleteMember

func TeamDeleteMember(ctx context.Context, c *xrpc.Client, input *TeamDeleteMember_Input) error

TeamDeleteMember calls the XRPC method "tools.ozone.team.deleteMember".

Types

type CommunicationCreateTemplate_Input

type CommunicationCreateTemplate_Input struct {
	// contentMarkdown: Content of the template, markdown supported, can contain variable placeholders.
	ContentMarkdown string `json:"contentMarkdown" cborgen:"contentMarkdown"`
	// createdBy: DID of the user who is creating the template.
	CreatedBy *string `json:"createdBy,omitempty" cborgen:"createdBy,omitempty"`
	// lang: Message language.
	Lang *string `json:"lang,omitempty" cborgen:"lang,omitempty"`
	// name: Name of the template.
	Name string `json:"name" cborgen:"name"`
	// subject: Subject of the message, used in emails.
	Subject string `json:"subject" cborgen:"subject"`
}

CommunicationCreateTemplate_Input is the input argument to a tools.ozone.communication.createTemplate call.

type CommunicationDefs_TemplateView

type CommunicationDefs_TemplateView struct {
	// contentMarkdown: Subject of the message, used in emails.
	ContentMarkdown string `json:"contentMarkdown" cborgen:"contentMarkdown"`
	CreatedAt       string `json:"createdAt" cborgen:"createdAt"`
	Disabled        bool   `json:"disabled" cborgen:"disabled"`
	Id              string `json:"id" cborgen:"id"`
	// lang: Message language.
	Lang *string `json:"lang,omitempty" cborgen:"lang,omitempty"`
	// lastUpdatedBy: DID of the user who last updated the template.
	LastUpdatedBy string `json:"lastUpdatedBy" cborgen:"lastUpdatedBy"`
	// name: Name of the template.
	Name string `json:"name" cborgen:"name"`
	// subject: Content of the template, can contain markdown and variable placeholders.
	Subject   *string `json:"subject,omitempty" cborgen:"subject,omitempty"`
	UpdatedAt string  `json:"updatedAt" cborgen:"updatedAt"`
}

CommunicationDefs_TemplateView is a "templateView" in the tools.ozone.communication.defs schema.

func CommunicationCreateTemplate

func CommunicationCreateTemplate(ctx context.Context, c *xrpc.Client, input *CommunicationCreateTemplate_Input) (*CommunicationDefs_TemplateView, error)

CommunicationCreateTemplate calls the XRPC method "tools.ozone.communication.createTemplate".

func CommunicationUpdateTemplate

func CommunicationUpdateTemplate(ctx context.Context, c *xrpc.Client, input *CommunicationUpdateTemplate_Input) (*CommunicationDefs_TemplateView, error)

CommunicationUpdateTemplate calls the XRPC method "tools.ozone.communication.updateTemplate".

type CommunicationDeleteTemplate_Input

type CommunicationDeleteTemplate_Input struct {
	Id string `json:"id" cborgen:"id"`
}

CommunicationDeleteTemplate_Input is the input argument to a tools.ozone.communication.deleteTemplate call.

type CommunicationListTemplates_Output

type CommunicationListTemplates_Output struct {
	CommunicationTemplates []*CommunicationDefs_TemplateView `json:"communicationTemplates" cborgen:"communicationTemplates"`
}

CommunicationListTemplates_Output is the output of a tools.ozone.communication.listTemplates call.

func CommunicationListTemplates

func CommunicationListTemplates(ctx context.Context, c *xrpc.Client) (*CommunicationListTemplates_Output, error)

CommunicationListTemplates calls the XRPC method "tools.ozone.communication.listTemplates".

type CommunicationUpdateTemplate_Input

type CommunicationUpdateTemplate_Input struct {
	// contentMarkdown: Content of the template, markdown supported, can contain variable placeholders.
	ContentMarkdown *string `json:"contentMarkdown,omitempty" cborgen:"contentMarkdown,omitempty"`
	Disabled        *bool   `json:"disabled,omitempty" cborgen:"disabled,omitempty"`
	// id: ID of the template to be updated.
	Id string `json:"id" cborgen:"id"`
	// lang: Message language.
	Lang *string `json:"lang,omitempty" cborgen:"lang,omitempty"`
	// name: Name of the template.
	Name *string `json:"name,omitempty" cborgen:"name,omitempty"`
	// subject: Subject of the message, used in emails.
	Subject *string `json:"subject,omitempty" cborgen:"subject,omitempty"`
	// updatedBy: DID of the user who is updating the template.
	UpdatedBy *string `json:"updatedBy,omitempty" cborgen:"updatedBy,omitempty"`
}

CommunicationUpdateTemplate_Input is the input argument to a tools.ozone.communication.updateTemplate call.

type ModerationDefs_AccountEvent

type ModerationDefs_AccountEvent struct {
	LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#accountEvent" cborgen:"$type,const=tools.ozone.moderation.defs#accountEvent"`
	// active: Indicates that the account has a repository which can be fetched from the host that emitted this event.
	Active    bool    `json:"active" cborgen:"active"`
	Comment   *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
	Status    *string `json:"status,omitempty" cborgen:"status,omitempty"`
	Timestamp string  `json:"timestamp" cborgen:"timestamp"`
}

ModerationDefs_AccountEvent is a "accountEvent" in the tools.ozone.moderation.defs schema.

Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.

RECORDTYPE: ModerationDefs_AccountEvent

type ModerationDefs_AccountHosting

type ModerationDefs_AccountHosting struct {
	LexiconTypeID string  `` /* 126-byte string literal not displayed */
	CreatedAt     *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"`
	DeactivatedAt *string `json:"deactivatedAt,omitempty" cborgen:"deactivatedAt,omitempty"`
	DeletedAt     *string `json:"deletedAt,omitempty" cborgen:"deletedAt,omitempty"`
	ReactivatedAt *string `json:"reactivatedAt,omitempty" cborgen:"reactivatedAt,omitempty"`
	Status        string  `json:"status" cborgen:"status"`
	UpdatedAt     *string `json:"updatedAt,omitempty" cborgen:"updatedAt,omitempty"`
}

ModerationDefs_AccountHosting is a "accountHosting" in the tools.ozone.moderation.defs schema.

RECORDTYPE: ModerationDefs_AccountHosting

type ModerationDefs_BlobView

type ModerationDefs_BlobView struct {
	Cid        string                           `json:"cid" cborgen:"cid"`
	CreatedAt  string                           `json:"createdAt" cborgen:"createdAt"`
	Details    *ModerationDefs_BlobView_Details `json:"details,omitempty" cborgen:"details,omitempty"`
	MimeType   string                           `json:"mimeType" cborgen:"mimeType"`
	Moderation *ModerationDefs_Moderation       `json:"moderation,omitempty" cborgen:"moderation,omitempty"`
	Size       int64                            `json:"size" cborgen:"size"`
}

ModerationDefs_BlobView is a "blobView" in the tools.ozone.moderation.defs schema.

type ModerationDefs_BlobView_Details

type ModerationDefs_BlobView_Details struct {
	ModerationDefs_ImageDetails *ModerationDefs_ImageDetails
	ModerationDefs_VideoDetails *ModerationDefs_VideoDetails
}

func (*ModerationDefs_BlobView_Details) MarshalJSON

func (t *ModerationDefs_BlobView_Details) MarshalJSON() ([]byte, error)

func (*ModerationDefs_BlobView_Details) UnmarshalJSON

func (t *ModerationDefs_BlobView_Details) UnmarshalJSON(b []byte) error

type ModerationDefs_IdentityEvent

type ModerationDefs_IdentityEvent struct {
	LexiconTypeID string  `json:"$type,const=tools.ozone.moderation.defs#identityEvent" cborgen:"$type,const=tools.ozone.moderation.defs#identityEvent"`
	Comment       *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
	Handle        *string `json:"handle,omitempty" cborgen:"handle,omitempty"`
	PdsHost       *string `json:"pdsHost,omitempty" cborgen:"pdsHost,omitempty"`
	Timestamp     string  `json:"timestamp" cborgen:"timestamp"`
	Tombstone     *bool   `json:"tombstone,omitempty" cborgen:"tombstone,omitempty"`
}

ModerationDefs_IdentityEvent is a "identityEvent" in the tools.ozone.moderation.defs schema.

Logs identity related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.

RECORDTYPE: ModerationDefs_IdentityEvent

type ModerationDefs_ImageDetails

type ModerationDefs_ImageDetails struct {
	LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#imageDetails" cborgen:"$type,const=tools.ozone.moderation.defs#imageDetails"`
	Height        int64  `json:"height" cborgen:"height"`
	Width         int64  `json:"width" cborgen:"width"`
}

ModerationDefs_ImageDetails is a "imageDetails" in the tools.ozone.moderation.defs schema.

RECORDTYPE: ModerationDefs_ImageDetails

type ModerationDefs_ModEventAcknowledge

type ModerationDefs_ModEventAcknowledge struct {
	LexiconTypeID string `` /* 136-byte string literal not displayed */
	// acknowledgeAccountSubjects: If true, all other reports on content authored by this account will be resolved (acknowledged).
	AcknowledgeAccountSubjects *bool   `json:"acknowledgeAccountSubjects,omitempty" cborgen:"acknowledgeAccountSubjects,omitempty"`
	Comment                    *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
}

ModerationDefs_ModEventAcknowledge is a "modEventAcknowledge" in the tools.ozone.moderation.defs schema.

RECORDTYPE: ModerationDefs_ModEventAcknowledge

type ModerationDefs_ModEventComment

type ModerationDefs_ModEventComment struct {
	LexiconTypeID string `` /* 128-byte string literal not displayed */
	Comment       string `json:"comment" cborgen:"comment"`
	// sticky: Make the comment persistent on the subject
	Sticky *bool `json:"sticky,omitempty" cborgen:"sticky,omitempty"`
}

ModerationDefs_ModEventComment is a "modEventComment" in the tools.ozone.moderation.defs schema.

Add a comment to a subject

RECORDTYPE: ModerationDefs_ModEventComment

type ModerationDefs_ModEventDivert

type ModerationDefs_ModEventDivert struct {
	LexiconTypeID string  `` /* 126-byte string literal not displayed */
	Comment       *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
}

ModerationDefs_ModEventDivert is a "modEventDivert" in the tools.ozone.moderation.defs schema.

Divert a record's blobs to a 3rd party service for further scanning/tagging

RECORDTYPE: ModerationDefs_ModEventDivert

type ModerationDefs_ModEventEmail

type ModerationDefs_ModEventEmail struct {
	LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventEmail" cborgen:"$type,const=tools.ozone.moderation.defs#modEventEmail"`
	// comment: Additional comment about the outgoing comm.
	Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
	// content: The content of the email sent to the user.
	Content *string `json:"content,omitempty" cborgen:"content,omitempty"`
	// subjectLine: The subject line of the email sent to the user.
	SubjectLine string `json:"subjectLine" cborgen:"subjectLine"`
}

ModerationDefs_ModEventEmail is a "modEventEmail" in the tools.ozone.moderation.defs schema.

Keep a log of outgoing email to a user

RECORDTYPE: ModerationDefs_ModEventEmail

type ModerationDefs_ModEventEscalate

type ModerationDefs_ModEventEscalate struct {
	LexiconTypeID string  `` /* 130-byte string literal not displayed */
	Comment       *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
}

ModerationDefs_ModEventEscalate is a "modEventEscalate" in the tools.ozone.moderation.defs schema.

RECORDTYPE: ModerationDefs_ModEventEscalate

type ModerationDefs_ModEventLabel

type ModerationDefs_ModEventLabel struct {
	LexiconTypeID   string   `json:"$type,const=tools.ozone.moderation.defs#modEventLabel" cborgen:"$type,const=tools.ozone.moderation.defs#modEventLabel"`
	Comment         *string  `json:"comment,omitempty" cborgen:"comment,omitempty"`
	CreateLabelVals []string `json:"createLabelVals" cborgen:"createLabelVals"`
	NegateLabelVals []string `json:"negateLabelVals" cborgen:"negateLabelVals"`
}

ModerationDefs_ModEventLabel is a "modEventLabel" in the tools.ozone.moderation.defs schema.

Apply/Negate labels on a subject

RECORDTYPE: ModerationDefs_ModEventLabel

type ModerationDefs_ModEventMute

type ModerationDefs_ModEventMute struct {
	LexiconTypeID string  `json:"$type,const=tools.ozone.moderation.defs#modEventMute" cborgen:"$type,const=tools.ozone.moderation.defs#modEventMute"`
	Comment       *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
	// durationInHours: Indicates how long the subject should remain muted.
	DurationInHours int64 `json:"durationInHours" cborgen:"durationInHours"`
}

ModerationDefs_ModEventMute is a "modEventMute" in the tools.ozone.moderation.defs schema.

Mute incoming reports on a subject

RECORDTYPE: ModerationDefs_ModEventMute

type ModerationDefs_ModEventMuteReporter

type ModerationDefs_ModEventMuteReporter struct {
	LexiconTypeID string  `` /* 138-byte string literal not displayed */
	Comment       *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
	// durationInHours: Indicates how long the account should remain muted. Falsy value here means a permanent mute.
	DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"`
}

ModerationDefs_ModEventMuteReporter is a "modEventMuteReporter" in the tools.ozone.moderation.defs schema.

Mute incoming reports from an account

RECORDTYPE: ModerationDefs_ModEventMuteReporter

type ModerationDefs_ModEventReport

type ModerationDefs_ModEventReport struct {
	LexiconTypeID string  `` /* 126-byte string literal not displayed */
	Comment       *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
	// isReporterMuted: Set to true if the reporter was muted from reporting at the time of the event. These reports won't impact the reviewState of the subject.
	IsReporterMuted *bool   `json:"isReporterMuted,omitempty" cborgen:"isReporterMuted,omitempty"`
	ReportType      *string `json:"reportType" cborgen:"reportType"`
}

ModerationDefs_ModEventReport is a "modEventReport" in the tools.ozone.moderation.defs schema.

Report a subject

RECORDTYPE: ModerationDefs_ModEventReport

type ModerationDefs_ModEventResolveAppeal

type ModerationDefs_ModEventResolveAppeal struct {
	LexiconTypeID string `` /* 140-byte string literal not displayed */
	// comment: Describe resolution.
	Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
}

ModerationDefs_ModEventResolveAppeal is a "modEventResolveAppeal" in the tools.ozone.moderation.defs schema.

Resolve appeal on a subject

RECORDTYPE: ModerationDefs_ModEventResolveAppeal

type ModerationDefs_ModEventReverseTakedown

type ModerationDefs_ModEventReverseTakedown struct {
	LexiconTypeID string `` /* 144-byte string literal not displayed */
	// comment: Describe reasoning behind the reversal.
	Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
}

ModerationDefs_ModEventReverseTakedown is a "modEventReverseTakedown" in the tools.ozone.moderation.defs schema.

Revert take down action on a subject

RECORDTYPE: ModerationDefs_ModEventReverseTakedown

type ModerationDefs_ModEventTag

type ModerationDefs_ModEventTag struct {
	LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventTag" cborgen:"$type,const=tools.ozone.moderation.defs#modEventTag"`
	// add: Tags to be added to the subject. If already exists, won't be duplicated.
	Add []string `json:"add" cborgen:"add"`
	// comment: Additional comment about added/removed tags.
	Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
	// remove: Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated.
	Remove []string `json:"remove" cborgen:"remove"`
}

ModerationDefs_ModEventTag is a "modEventTag" in the tools.ozone.moderation.defs schema.

Add/Remove a tag on a subject

RECORDTYPE: ModerationDefs_ModEventTag

type ModerationDefs_ModEventTakedown

type ModerationDefs_ModEventTakedown struct {
	LexiconTypeID string `` /* 130-byte string literal not displayed */
	// acknowledgeAccountSubjects: If true, all other reports on content authored by this account will be resolved (acknowledged).
	AcknowledgeAccountSubjects *bool   `json:"acknowledgeAccountSubjects,omitempty" cborgen:"acknowledgeAccountSubjects,omitempty"`
	Comment                    *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
	// durationInHours: Indicates how long the takedown should be in effect before automatically expiring.
	DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"`
	// policies: Names/Keywords of the policies that drove the decision.
	Policies []string `json:"policies,omitempty" cborgen:"policies,omitempty"`
}

ModerationDefs_ModEventTakedown is a "modEventTakedown" in the tools.ozone.moderation.defs schema.

Take down a subject permanently or temporarily

RECORDTYPE: ModerationDefs_ModEventTakedown

type ModerationDefs_ModEventUnmute

type ModerationDefs_ModEventUnmute struct {
	LexiconTypeID string `` /* 126-byte string literal not displayed */
	// comment: Describe reasoning behind the reversal.
	Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
}

ModerationDefs_ModEventUnmute is a "modEventUnmute" in the tools.ozone.moderation.defs schema.

Unmute action on a subject

RECORDTYPE: ModerationDefs_ModEventUnmute

type ModerationDefs_ModEventUnmuteReporter

type ModerationDefs_ModEventUnmuteReporter struct {
	LexiconTypeID string `` /* 142-byte string literal not displayed */
	// comment: Describe reasoning behind the reversal.
	Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
}

ModerationDefs_ModEventUnmuteReporter is a "modEventUnmuteReporter" in the tools.ozone.moderation.defs schema.

Unmute incoming reports from an account

RECORDTYPE: ModerationDefs_ModEventUnmuteReporter

type ModerationDefs_ModEventView

type ModerationDefs_ModEventView struct {
	CreatedAt       string                               `json:"createdAt" cborgen:"createdAt"`
	CreatedBy       string                               `json:"createdBy" cborgen:"createdBy"`
	CreatorHandle   *string                              `json:"creatorHandle,omitempty" cborgen:"creatorHandle,omitempty"`
	Event           *ModerationDefs_ModEventView_Event   `json:"event" cborgen:"event"`
	Id              int64                                `json:"id" cborgen:"id"`
	Subject         *ModerationDefs_ModEventView_Subject `json:"subject" cborgen:"subject"`
	SubjectBlobCids []string                             `json:"subjectBlobCids" cborgen:"subjectBlobCids"`
	SubjectHandle   *string                              `json:"subjectHandle,omitempty" cborgen:"subjectHandle,omitempty"`
}

ModerationDefs_ModEventView is a "modEventView" in the tools.ozone.moderation.defs schema.

func ModerationEmitEvent

func ModerationEmitEvent(ctx context.Context, c *xrpc.Client, input *ModerationEmitEvent_Input) (*ModerationDefs_ModEventView, error)

ModerationEmitEvent calls the XRPC method "tools.ozone.moderation.emitEvent".

type ModerationDefs_ModEventViewDetail

type ModerationDefs_ModEventViewDetail struct {
	CreatedAt    string                                     `json:"createdAt" cborgen:"createdAt"`
	CreatedBy    string                                     `json:"createdBy" cborgen:"createdBy"`
	Event        *ModerationDefs_ModEventViewDetail_Event   `json:"event" cborgen:"event"`
	Id           int64                                      `json:"id" cborgen:"id"`
	Subject      *ModerationDefs_ModEventViewDetail_Subject `json:"subject" cborgen:"subject"`
	SubjectBlobs []*ModerationDefs_BlobView                 `json:"subjectBlobs" cborgen:"subjectBlobs"`
}

ModerationDefs_ModEventViewDetail is a "modEventViewDetail" in the tools.ozone.moderation.defs schema.

func ModerationGetEvent

func ModerationGetEvent(ctx context.Context, c *xrpc.Client, id int64) (*ModerationDefs_ModEventViewDetail, error)

ModerationGetEvent calls the XRPC method "tools.ozone.moderation.getEvent".

type ModerationDefs_ModEventViewDetail_Event

type ModerationDefs_ModEventViewDetail_Event struct {
	ModerationDefs_ModEventTakedown        *ModerationDefs_ModEventTakedown
	ModerationDefs_ModEventReverseTakedown *ModerationDefs_ModEventReverseTakedown
	ModerationDefs_ModEventComment         *ModerationDefs_ModEventComment
	ModerationDefs_ModEventReport          *ModerationDefs_ModEventReport
	ModerationDefs_ModEventLabel           *ModerationDefs_ModEventLabel
	ModerationDefs_ModEventAcknowledge     *ModerationDefs_ModEventAcknowledge
	ModerationDefs_ModEventEscalate        *ModerationDefs_ModEventEscalate
	ModerationDefs_ModEventMute            *ModerationDefs_ModEventMute
	ModerationDefs_ModEventUnmute          *ModerationDefs_ModEventUnmute
	ModerationDefs_ModEventMuteReporter    *ModerationDefs_ModEventMuteReporter
	ModerationDefs_ModEventUnmuteReporter  *ModerationDefs_ModEventUnmuteReporter
	ModerationDefs_ModEventEmail           *ModerationDefs_ModEventEmail
	ModerationDefs_ModEventResolveAppeal   *ModerationDefs_ModEventResolveAppeal
	ModerationDefs_ModEventDivert          *ModerationDefs_ModEventDivert
	ModerationDefs_ModEventTag             *ModerationDefs_ModEventTag
	ModerationDefs_AccountEvent            *ModerationDefs_AccountEvent
	ModerationDefs_IdentityEvent           *ModerationDefs_IdentityEvent
	ModerationDefs_RecordEvent             *ModerationDefs_RecordEvent
}

func (*ModerationDefs_ModEventViewDetail_Event) MarshalJSON

func (t *ModerationDefs_ModEventViewDetail_Event) MarshalJSON() ([]byte, error)

func (*ModerationDefs_ModEventViewDetail_Event) UnmarshalJSON

func (t *ModerationDefs_ModEventViewDetail_Event) UnmarshalJSON(b []byte) error

type ModerationDefs_ModEventViewDetail_Subject

type ModerationDefs_ModEventViewDetail_Subject struct {
	ModerationDefs_RepoView           *ModerationDefs_RepoView
	ModerationDefs_RepoViewNotFound   *ModerationDefs_RepoViewNotFound
	ModerationDefs_RecordView         *ModerationDefs_RecordView
	ModerationDefs_RecordViewNotFound *ModerationDefs_RecordViewNotFound
}

func (*ModerationDefs_ModEventViewDetail_Subject) MarshalJSON

func (*ModerationDefs_ModEventViewDetail_Subject) UnmarshalJSON

type ModerationDefs_ModEventView_Event

type ModerationDefs_ModEventView_Event struct {
	ModerationDefs_ModEventTakedown        *ModerationDefs_ModEventTakedown
	ModerationDefs_ModEventReverseTakedown *ModerationDefs_ModEventReverseTakedown
	ModerationDefs_ModEventComment         *ModerationDefs_ModEventComment
	ModerationDefs_ModEventReport          *ModerationDefs_ModEventReport
	ModerationDefs_ModEventLabel           *ModerationDefs_ModEventLabel
	ModerationDefs_ModEventAcknowledge     *ModerationDefs_ModEventAcknowledge
	ModerationDefs_ModEventEscalate        *ModerationDefs_ModEventEscalate
	ModerationDefs_ModEventMute            *ModerationDefs_ModEventMute
	ModerationDefs_ModEventUnmute          *ModerationDefs_ModEventUnmute
	ModerationDefs_ModEventMuteReporter    *ModerationDefs_ModEventMuteReporter
	ModerationDefs_ModEventUnmuteReporter  *ModerationDefs_ModEventUnmuteReporter
	ModerationDefs_ModEventEmail           *ModerationDefs_ModEventEmail
	ModerationDefs_ModEventResolveAppeal   *ModerationDefs_ModEventResolveAppeal
	ModerationDefs_ModEventDivert          *ModerationDefs_ModEventDivert
	ModerationDefs_ModEventTag             *ModerationDefs_ModEventTag
	ModerationDefs_AccountEvent            *ModerationDefs_AccountEvent
	ModerationDefs_IdentityEvent           *ModerationDefs_IdentityEvent
	ModerationDefs_RecordEvent             *ModerationDefs_RecordEvent
}

func (*ModerationDefs_ModEventView_Event) MarshalJSON

func (t *ModerationDefs_ModEventView_Event) MarshalJSON() ([]byte, error)

func (*ModerationDefs_ModEventView_Event) UnmarshalJSON

func (t *ModerationDefs_ModEventView_Event) UnmarshalJSON(b []byte) error

type ModerationDefs_ModEventView_Subject

type ModerationDefs_ModEventView_Subject struct {
	AdminDefs_RepoRef    *comatprototypes.AdminDefs_RepoRef
	RepoStrongRef        *comatprototypes.RepoStrongRef
	ConvoDefs_MessageRef *chatbskytypes.ConvoDefs_MessageRef
}

func (*ModerationDefs_ModEventView_Subject) MarshalJSON

func (t *ModerationDefs_ModEventView_Subject) MarshalJSON() ([]byte, error)

func (*ModerationDefs_ModEventView_Subject) UnmarshalJSON

func (t *ModerationDefs_ModEventView_Subject) UnmarshalJSON(b []byte) error

type ModerationDefs_Moderation

type ModerationDefs_Moderation struct {
	SubjectStatus *ModerationDefs_SubjectStatusView `json:"subjectStatus,omitempty" cborgen:"subjectStatus,omitempty"`
}

ModerationDefs_Moderation is a "moderation" in the tools.ozone.moderation.defs schema.

type ModerationDefs_ModerationDetail

type ModerationDefs_ModerationDetail struct {
	SubjectStatus *ModerationDefs_SubjectStatusView `json:"subjectStatus,omitempty" cborgen:"subjectStatus,omitempty"`
}

ModerationDefs_ModerationDetail is a "moderationDetail" in the tools.ozone.moderation.defs schema.

type ModerationDefs_RecordEvent

type ModerationDefs_RecordEvent struct {
	LexiconTypeID string  `json:"$type,const=tools.ozone.moderation.defs#recordEvent" cborgen:"$type,const=tools.ozone.moderation.defs#recordEvent"`
	Cid           *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
	Comment       *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
	Op            string  `json:"op" cborgen:"op"`
	Timestamp     string  `json:"timestamp" cborgen:"timestamp"`
}

ModerationDefs_RecordEvent is a "recordEvent" in the tools.ozone.moderation.defs schema.

Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.

RECORDTYPE: ModerationDefs_RecordEvent

type ModerationDefs_RecordHosting

type ModerationDefs_RecordHosting struct {
	LexiconTypeID string  `json:"$type,const=tools.ozone.moderation.defs#recordHosting" cborgen:"$type,const=tools.ozone.moderation.defs#recordHosting"`
	CreatedAt     *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"`
	DeletedAt     *string `json:"deletedAt,omitempty" cborgen:"deletedAt,omitempty"`
	Status        string  `json:"status" cborgen:"status"`
	UpdatedAt     *string `json:"updatedAt,omitempty" cborgen:"updatedAt,omitempty"`
}

ModerationDefs_RecordHosting is a "recordHosting" in the tools.ozone.moderation.defs schema.

RECORDTYPE: ModerationDefs_RecordHosting

type ModerationDefs_RecordView

type ModerationDefs_RecordView struct {
	LexiconTypeID string                     `json:"$type,const=tools.ozone.moderation.defs#recordView" cborgen:"$type,const=tools.ozone.moderation.defs#recordView"`
	BlobCids      []string                   `json:"blobCids" cborgen:"blobCids"`
	Cid           string                     `json:"cid" cborgen:"cid"`
	IndexedAt     string                     `json:"indexedAt" cborgen:"indexedAt"`
	Moderation    *ModerationDefs_Moderation `json:"moderation" cborgen:"moderation"`
	Repo          *ModerationDefs_RepoView   `json:"repo" cborgen:"repo"`
	Uri           string                     `json:"uri" cborgen:"uri"`
	Value         *util.LexiconTypeDecoder   `json:"value" cborgen:"value"`
}

ModerationDefs_RecordView is a "recordView" in the tools.ozone.moderation.defs schema.

RECORDTYPE: ModerationDefs_RecordView

type ModerationDefs_RecordViewDetail

type ModerationDefs_RecordViewDetail struct {
	LexiconTypeID string                             `` /* 130-byte string literal not displayed */
	Blobs         []*ModerationDefs_BlobView         `json:"blobs" cborgen:"blobs"`
	Cid           string                             `json:"cid" cborgen:"cid"`
	IndexedAt     string                             `json:"indexedAt" cborgen:"indexedAt"`
	Labels        []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"`
	Moderation    *ModerationDefs_ModerationDetail   `json:"moderation" cborgen:"moderation"`
	Repo          *ModerationDefs_RepoView           `json:"repo" cborgen:"repo"`
	Uri           string                             `json:"uri" cborgen:"uri"`
	Value         *util.LexiconTypeDecoder           `json:"value" cborgen:"value"`
}

ModerationDefs_RecordViewDetail is a "recordViewDetail" in the tools.ozone.moderation.defs schema.

RECORDTYPE: ModerationDefs_RecordViewDetail

func ModerationGetRecord

func ModerationGetRecord(ctx context.Context, c *xrpc.Client, cid string, uri string) (*ModerationDefs_RecordViewDetail, error)

ModerationGetRecord calls the XRPC method "tools.ozone.moderation.getRecord".

type ModerationDefs_RecordViewNotFound

type ModerationDefs_RecordViewNotFound struct {
	LexiconTypeID string `` /* 134-byte string literal not displayed */
	Uri           string `json:"uri" cborgen:"uri"`
}

ModerationDefs_RecordViewNotFound is a "recordViewNotFound" in the tools.ozone.moderation.defs schema.

RECORDTYPE: ModerationDefs_RecordViewNotFound

type ModerationDefs_RepoView

type ModerationDefs_RepoView struct {
	LexiconTypeID    string                                       `json:"$type,const=tools.ozone.moderation.defs#repoView" cborgen:"$type,const=tools.ozone.moderation.defs#repoView"`
	DeactivatedAt    *string                                      `json:"deactivatedAt,omitempty" cborgen:"deactivatedAt,omitempty"`
	Did              string                                       `json:"did" cborgen:"did"`
	Email            *string                                      `json:"email,omitempty" cborgen:"email,omitempty"`
	Handle           string                                       `json:"handle" cborgen:"handle"`
	IndexedAt        string                                       `json:"indexedAt" cborgen:"indexedAt"`
	InviteNote       *string                                      `json:"inviteNote,omitempty" cborgen:"inviteNote,omitempty"`
	InvitedBy        *comatprototypes.ServerDefs_InviteCode       `json:"invitedBy,omitempty" cborgen:"invitedBy,omitempty"`
	InvitesDisabled  *bool                                        `json:"invitesDisabled,omitempty" cborgen:"invitesDisabled,omitempty"`
	Moderation       *ModerationDefs_Moderation                   `json:"moderation" cborgen:"moderation"`
	RelatedRecords   []*util.LexiconTypeDecoder                   `json:"relatedRecords" cborgen:"relatedRecords"`
	ThreatSignatures []*comatprototypes.AdminDefs_ThreatSignature `json:"threatSignatures,omitempty" cborgen:"threatSignatures,omitempty"`
}

ModerationDefs_RepoView is a "repoView" in the tools.ozone.moderation.defs schema.

RECORDTYPE: ModerationDefs_RepoView

type ModerationDefs_RepoViewDetail

type ModerationDefs_RepoViewDetail struct {
	LexiconTypeID    string                                       `` /* 126-byte string literal not displayed */
	DeactivatedAt    *string                                      `json:"deactivatedAt,omitempty" cborgen:"deactivatedAt,omitempty"`
	Did              string                                       `json:"did" cborgen:"did"`
	Email            *string                                      `json:"email,omitempty" cborgen:"email,omitempty"`
	EmailConfirmedAt *string                                      `json:"emailConfirmedAt,omitempty" cborgen:"emailConfirmedAt,omitempty"`
	Handle           string                                       `json:"handle" cborgen:"handle"`
	IndexedAt        string                                       `json:"indexedAt" cborgen:"indexedAt"`
	InviteNote       *string                                      `json:"inviteNote,omitempty" cborgen:"inviteNote,omitempty"`
	InvitedBy        *comatprototypes.ServerDefs_InviteCode       `json:"invitedBy,omitempty" cborgen:"invitedBy,omitempty"`
	Invites          []*comatprototypes.ServerDefs_InviteCode     `json:"invites,omitempty" cborgen:"invites,omitempty"`
	InvitesDisabled  *bool                                        `json:"invitesDisabled,omitempty" cborgen:"invitesDisabled,omitempty"`
	Labels           []*comatprototypes.LabelDefs_Label           `json:"labels,omitempty" cborgen:"labels,omitempty"`
	Moderation       *ModerationDefs_ModerationDetail             `json:"moderation" cborgen:"moderation"`
	RelatedRecords   []*util.LexiconTypeDecoder                   `json:"relatedRecords" cborgen:"relatedRecords"`
	ThreatSignatures []*comatprototypes.AdminDefs_ThreatSignature `json:"threatSignatures,omitempty" cborgen:"threatSignatures,omitempty"`
}

ModerationDefs_RepoViewDetail is a "repoViewDetail" in the tools.ozone.moderation.defs schema.

RECORDTYPE: ModerationDefs_RepoViewDetail

func ModerationGetRepo

func ModerationGetRepo(ctx context.Context, c *xrpc.Client, did string) (*ModerationDefs_RepoViewDetail, error)

ModerationGetRepo calls the XRPC method "tools.ozone.moderation.getRepo".

type ModerationDefs_RepoViewNotFound

type ModerationDefs_RepoViewNotFound struct {
	LexiconTypeID string `` /* 130-byte string literal not displayed */
	Did           string `json:"did" cborgen:"did"`
}

ModerationDefs_RepoViewNotFound is a "repoViewNotFound" in the tools.ozone.moderation.defs schema.

RECORDTYPE: ModerationDefs_RepoViewNotFound

type ModerationDefs_SubjectStatusView

type ModerationDefs_SubjectStatusView struct {
	// appealed: True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators.
	Appealed *bool `json:"appealed,omitempty" cborgen:"appealed,omitempty"`
	// comment: Sticky comment on the subject.
	Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
	// createdAt: Timestamp referencing the first moderation status impacting event was emitted on the subject
	CreatedAt string                                    `json:"createdAt" cborgen:"createdAt"`
	Hosting   *ModerationDefs_SubjectStatusView_Hosting `json:"hosting,omitempty" cborgen:"hosting,omitempty"`
	Id        int64                                     `json:"id" cborgen:"id"`
	// lastAppealedAt: Timestamp referencing when the author of the subject appealed a moderation action
	LastAppealedAt     *string                                   `json:"lastAppealedAt,omitempty" cborgen:"lastAppealedAt,omitempty"`
	LastReportedAt     *string                                   `json:"lastReportedAt,omitempty" cborgen:"lastReportedAt,omitempty"`
	LastReviewedAt     *string                                   `json:"lastReviewedAt,omitempty" cborgen:"lastReviewedAt,omitempty"`
	LastReviewedBy     *string                                   `json:"lastReviewedBy,omitempty" cborgen:"lastReviewedBy,omitempty"`
	MuteReportingUntil *string                                   `json:"muteReportingUntil,omitempty" cborgen:"muteReportingUntil,omitempty"`
	MuteUntil          *string                                   `json:"muteUntil,omitempty" cborgen:"muteUntil,omitempty"`
	ReviewState        *string                                   `json:"reviewState" cborgen:"reviewState"`
	Subject            *ModerationDefs_SubjectStatusView_Subject `json:"subject" cborgen:"subject"`
	SubjectBlobCids    []string                                  `json:"subjectBlobCids,omitempty" cborgen:"subjectBlobCids,omitempty"`
	SubjectRepoHandle  *string                                   `json:"subjectRepoHandle,omitempty" cborgen:"subjectRepoHandle,omitempty"`
	SuspendUntil       *string                                   `json:"suspendUntil,omitempty" cborgen:"suspendUntil,omitempty"`
	Tags               []string                                  `json:"tags,omitempty" cborgen:"tags,omitempty"`
	Takendown          *bool                                     `json:"takendown,omitempty" cborgen:"takendown,omitempty"`
	// updatedAt: Timestamp referencing when the last update was made to the moderation status of the subject
	UpdatedAt string `json:"updatedAt" cborgen:"updatedAt"`
}

ModerationDefs_SubjectStatusView is a "subjectStatusView" in the tools.ozone.moderation.defs schema.

type ModerationDefs_SubjectStatusView_Hosting

type ModerationDefs_SubjectStatusView_Hosting struct {
	ModerationDefs_AccountHosting *ModerationDefs_AccountHosting
	ModerationDefs_RecordHosting  *ModerationDefs_RecordHosting
}

func (*ModerationDefs_SubjectStatusView_Hosting) MarshalJSON

func (t *ModerationDefs_SubjectStatusView_Hosting) MarshalJSON() ([]byte, error)

func (*ModerationDefs_SubjectStatusView_Hosting) UnmarshalJSON

func (t *ModerationDefs_SubjectStatusView_Hosting) UnmarshalJSON(b []byte) error

type ModerationDefs_SubjectStatusView_Subject

type ModerationDefs_SubjectStatusView_Subject struct {
	AdminDefs_RepoRef *comatprototypes.AdminDefs_RepoRef
	RepoStrongRef     *comatprototypes.RepoStrongRef
}

func (*ModerationDefs_SubjectStatusView_Subject) MarshalJSON

func (t *ModerationDefs_SubjectStatusView_Subject) MarshalJSON() ([]byte, error)

func (*ModerationDefs_SubjectStatusView_Subject) UnmarshalJSON

func (t *ModerationDefs_SubjectStatusView_Subject) UnmarshalJSON(b []byte) error

type ModerationDefs_VideoDetails

type ModerationDefs_VideoDetails struct {
	LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#videoDetails" cborgen:"$type,const=tools.ozone.moderation.defs#videoDetails"`
	Height        int64  `json:"height" cborgen:"height"`
	Length        int64  `json:"length" cborgen:"length"`
	Width         int64  `json:"width" cborgen:"width"`
}

ModerationDefs_VideoDetails is a "videoDetails" in the tools.ozone.moderation.defs schema.

RECORDTYPE: ModerationDefs_VideoDetails

type ModerationEmitEvent_Input

type ModerationEmitEvent_Input struct {
	CreatedBy       string                             `json:"createdBy" cborgen:"createdBy"`
	Event           *ModerationEmitEvent_Input_Event   `json:"event" cborgen:"event"`
	Subject         *ModerationEmitEvent_Input_Subject `json:"subject" cborgen:"subject"`
	SubjectBlobCids []string                           `json:"subjectBlobCids,omitempty" cborgen:"subjectBlobCids,omitempty"`
}

ModerationEmitEvent_Input is the input argument to a tools.ozone.moderation.emitEvent call.

type ModerationEmitEvent_Input_Event

type ModerationEmitEvent_Input_Event struct {
	ModerationDefs_ModEventTakedown        *ModerationDefs_ModEventTakedown
	ModerationDefs_ModEventAcknowledge     *ModerationDefs_ModEventAcknowledge
	ModerationDefs_ModEventEscalate        *ModerationDefs_ModEventEscalate
	ModerationDefs_ModEventComment         *ModerationDefs_ModEventComment
	ModerationDefs_ModEventLabel           *ModerationDefs_ModEventLabel
	ModerationDefs_ModEventReport          *ModerationDefs_ModEventReport
	ModerationDefs_ModEventMute            *ModerationDefs_ModEventMute
	ModerationDefs_ModEventUnmute          *ModerationDefs_ModEventUnmute
	ModerationDefs_ModEventMuteReporter    *ModerationDefs_ModEventMuteReporter
	ModerationDefs_ModEventUnmuteReporter  *ModerationDefs_ModEventUnmuteReporter
	ModerationDefs_ModEventReverseTakedown *ModerationDefs_ModEventReverseTakedown
	ModerationDefs_ModEventResolveAppeal   *ModerationDefs_ModEventResolveAppeal
	ModerationDefs_ModEventEmail           *ModerationDefs_ModEventEmail
	ModerationDefs_ModEventTag             *ModerationDefs_ModEventTag
	ModerationDefs_AccountEvent            *ModerationDefs_AccountEvent
	ModerationDefs_IdentityEvent           *ModerationDefs_IdentityEvent
	ModerationDefs_RecordEvent             *ModerationDefs_RecordEvent
}

func (*ModerationEmitEvent_Input_Event) MarshalJSON

func (t *ModerationEmitEvent_Input_Event) MarshalJSON() ([]byte, error)

func (*ModerationEmitEvent_Input_Event) UnmarshalJSON

func (t *ModerationEmitEvent_Input_Event) UnmarshalJSON(b []byte) error

type ModerationEmitEvent_Input_Subject

type ModerationEmitEvent_Input_Subject struct {
	AdminDefs_RepoRef *comatprototypes.AdminDefs_RepoRef
	RepoStrongRef     *comatprototypes.RepoStrongRef
}

func (*ModerationEmitEvent_Input_Subject) MarshalJSON

func (t *ModerationEmitEvent_Input_Subject) MarshalJSON() ([]byte, error)

func (*ModerationEmitEvent_Input_Subject) UnmarshalJSON

func (t *ModerationEmitEvent_Input_Subject) UnmarshalJSON(b []byte) error

type ModerationGetRecords_Output

type ModerationGetRecords_Output struct {
	Records []*ModerationGetRecords_Output_Records_Elem `json:"records" cborgen:"records"`
}

ModerationGetRecords_Output is the output of a tools.ozone.moderation.getRecords call.

func ModerationGetRecords

func ModerationGetRecords(ctx context.Context, c *xrpc.Client, uris []string) (*ModerationGetRecords_Output, error)

ModerationGetRecords calls the XRPC method "tools.ozone.moderation.getRecords".

type ModerationGetRecords_Output_Records_Elem

type ModerationGetRecords_Output_Records_Elem struct {
	ModerationDefs_RecordViewDetail   *ModerationDefs_RecordViewDetail
	ModerationDefs_RecordViewNotFound *ModerationDefs_RecordViewNotFound
}

func (*ModerationGetRecords_Output_Records_Elem) MarshalJSON

func (t *ModerationGetRecords_Output_Records_Elem) MarshalJSON() ([]byte, error)

func (*ModerationGetRecords_Output_Records_Elem) UnmarshalJSON

func (t *ModerationGetRecords_Output_Records_Elem) UnmarshalJSON(b []byte) error

type ModerationGetRepos_Output

type ModerationGetRepos_Output struct {
	Repos []*ModerationGetRepos_Output_Repos_Elem `json:"repos" cborgen:"repos"`
}

ModerationGetRepos_Output is the output of a tools.ozone.moderation.getRepos call.

func ModerationGetRepos

func ModerationGetRepos(ctx context.Context, c *xrpc.Client, dids []string) (*ModerationGetRepos_Output, error)

ModerationGetRepos calls the XRPC method "tools.ozone.moderation.getRepos".

type ModerationGetRepos_Output_Repos_Elem

type ModerationGetRepos_Output_Repos_Elem struct {
	ModerationDefs_RepoViewDetail   *ModerationDefs_RepoViewDetail
	ModerationDefs_RepoViewNotFound *ModerationDefs_RepoViewNotFound
}

func (*ModerationGetRepos_Output_Repos_Elem) MarshalJSON

func (t *ModerationGetRepos_Output_Repos_Elem) MarshalJSON() ([]byte, error)

func (*ModerationGetRepos_Output_Repos_Elem) UnmarshalJSON

func (t *ModerationGetRepos_Output_Repos_Elem) UnmarshalJSON(b []byte) error

type ModerationQueryEvents_Output

type ModerationQueryEvents_Output struct {
	Cursor *string                        `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
	Events []*ModerationDefs_ModEventView `json:"events" cborgen:"events"`
}

ModerationQueryEvents_Output is the output of a tools.ozone.moderation.queryEvents call.

func ModerationQueryEvents

func ModerationQueryEvents(ctx context.Context, c *xrpc.Client, addedLabels []string, addedTags []string, collections []string, comment string, createdAfter string, createdBefore string, createdBy string, cursor string, hasComment bool, includeAllUserRecords bool, limit int64, policies []string, removedLabels []string, removedTags []string, reportTypes []string, sortDirection string, subject string, subjectType string, types []string) (*ModerationQueryEvents_Output, error)

ModerationQueryEvents calls the XRPC method "tools.ozone.moderation.queryEvents".

addedLabels: If specified, only events where all of these labels were added are returned addedTags: If specified, only events where all of these tags were added are returned collections: If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored. comment: If specified, only events with comments containing the keyword are returned. Apply || separator to use multiple keywords and match using OR condition. createdAfter: Retrieve events created after a given timestamp createdBefore: Retrieve events created before a given timestamp hasComment: If true, only events with comments are returned includeAllUserRecords: If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned. removedLabels: If specified, only events where all of these labels were removed are returned removedTags: If specified, only events where all of these tags were removed are returned sortDirection: Sort direction for the events. Defaults to descending order of created at timestamp. subjectType: If specified, only events where the subject is 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. types: The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned.

type ModerationQueryStatuses_Output

type ModerationQueryStatuses_Output struct {
	Cursor          *string                             `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
	SubjectStatuses []*ModerationDefs_SubjectStatusView `json:"subjectStatuses" cborgen:"subjectStatuses"`
}

ModerationQueryStatuses_Output is the output of a tools.ozone.moderation.queryStatuses call.

func ModerationQueryStatuses

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, 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)

ModerationQueryStatuses calls the XRPC method "tools.ozone.moderation.queryStatuses".

appealed: Get subjects in unresolved appealed status collections: If specified, subjects belonging to the given collections will be returned. When subjectType is set to 'account', this will be ignored. comment: Search subjects by keyword from comments hostingDeletedAfter: Search subjects where the associated record/account was deleted after a given timestamp hostingDeletedBefore: Search subjects where the associated record/account was deleted before a given timestamp hostingStatuses: Search subjects by the status of the associated record/account hostingUpdatedAfter: Search subjects where the associated record/account was updated after a given timestamp hostingUpdatedBefore: Search subjects where the associated record/account was updated before a given timestamp includeAllUserRecords: All subjects, or subjects from given 'collections' param, belonging to the account specified in the 'subject' param will be returned. includeMuted: By default, we don't include muted subjects in the results. Set this to true to include them. lastReviewedBy: Get all subject statuses that were reviewed by a specific moderator onlyMuted: When set to true, only muted subjects and reporters will be returned. queueCount: Number of queues being used by moderators. Subjects will be split among all queues. queueIndex: Index of the queue to fetch subjects from. Works only when queueCount value is specified. queueSeed: A seeder to shuffle/balance the queue items. reportedAfter: Search subjects reported after a given timestamp reportedBefore: Search subjects reported before a given timestamp reviewState: Specify when fetching subjects in a certain state reviewedAfter: Search subjects reviewed after a given timestamp reviewedBefore: Search subjects reviewed before a given timestamp subject: The subject to get the status for. 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. takendown: Get subjects that were taken down

type ModerationSearchRepos_Output

type ModerationSearchRepos_Output struct {
	Cursor *string                    `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
	Repos  []*ModerationDefs_RepoView `json:"repos" cborgen:"repos"`
}

ModerationSearchRepos_Output is the output of a tools.ozone.moderation.searchRepos call.

func ModerationSearchRepos

func ModerationSearchRepos(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, term string) (*ModerationSearchRepos_Output, error)

ModerationSearchRepos calls the XRPC method "tools.ozone.moderation.searchRepos".

term: DEPRECATED: use 'q' instead

type ServerGetConfig_Output

type ServerGetConfig_Output struct {
	Appview    *ServerGetConfig_ServiceConfig `json:"appview,omitempty" cborgen:"appview,omitempty"`
	BlobDivert *ServerGetConfig_ServiceConfig `json:"blobDivert,omitempty" cborgen:"blobDivert,omitempty"`
	Chat       *ServerGetConfig_ServiceConfig `json:"chat,omitempty" cborgen:"chat,omitempty"`
	Pds        *ServerGetConfig_ServiceConfig `json:"pds,omitempty" cborgen:"pds,omitempty"`
	Viewer     *ServerGetConfig_ViewerConfig  `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
}

ServerGetConfig_Output is the output of a tools.ozone.server.getConfig call.

func ServerGetConfig

func ServerGetConfig(ctx context.Context, c *xrpc.Client) (*ServerGetConfig_Output, error)

ServerGetConfig calls the XRPC method "tools.ozone.server.getConfig".

type ServerGetConfig_ServiceConfig

type ServerGetConfig_ServiceConfig struct {
	Url *string `json:"url,omitempty" cborgen:"url,omitempty"`
}

ServerGetConfig_ServiceConfig is a "serviceConfig" in the tools.ozone.server.getConfig schema.

type ServerGetConfig_ViewerConfig

type ServerGetConfig_ViewerConfig struct {
	Role *string `json:"role,omitempty" cborgen:"role,omitempty"`
}

ServerGetConfig_ViewerConfig is a "viewerConfig" in the tools.ozone.server.getConfig schema.

type SetAddValues_Input

type SetAddValues_Input struct {
	// name: Name of the set to add values to
	Name string `json:"name" cborgen:"name"`
	// values: Array of string values to add to the set
	Values []string `json:"values" cborgen:"values"`
}

SetAddValues_Input is the input argument to a tools.ozone.set.addValues call.

type SetDefs_Set

type SetDefs_Set struct {
	Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
	Name        string  `json:"name" cborgen:"name"`
}

SetDefs_Set is a "set" in the tools.ozone.set.defs schema.

type SetDefs_SetView

type SetDefs_SetView struct {
	CreatedAt   string  `json:"createdAt" cborgen:"createdAt"`
	Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
	Name        string  `json:"name" cborgen:"name"`
	SetSize     int64   `json:"setSize" cborgen:"setSize"`
	UpdatedAt   string  `json:"updatedAt" cborgen:"updatedAt"`
}

SetDefs_SetView is a "setView" in the tools.ozone.set.defs schema.

func SetUpsertSet

func SetUpsertSet(ctx context.Context, c *xrpc.Client, input *SetDefs_Set) (*SetDefs_SetView, error)

SetUpsertSet calls the XRPC method "tools.ozone.set.upsertSet".

type SetDeleteSet_Input

type SetDeleteSet_Input struct {
	// name: Name of the set to delete
	Name string `json:"name" cborgen:"name"`
}

SetDeleteSet_Input is the input argument to a tools.ozone.set.deleteSet call.

type SetDeleteSet_Output

type SetDeleteSet_Output struct {
}

SetDeleteSet_Output is the output of a tools.ozone.set.deleteSet call.

func SetDeleteSet

func SetDeleteSet(ctx context.Context, c *xrpc.Client, input *SetDeleteSet_Input) (*SetDeleteSet_Output, error)

SetDeleteSet calls the XRPC method "tools.ozone.set.deleteSet".

type SetDeleteValues_Input

type SetDeleteValues_Input struct {
	// name: Name of the set to delete values from
	Name string `json:"name" cborgen:"name"`
	// values: Array of string values to delete from the set
	Values []string `json:"values" cborgen:"values"`
}

SetDeleteValues_Input is the input argument to a tools.ozone.set.deleteValues call.

type SetGetValues_Output

type SetGetValues_Output struct {
	Cursor *string          `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
	Set    *SetDefs_SetView `json:"set" cborgen:"set"`
	Values []string         `json:"values" cborgen:"values"`
}

SetGetValues_Output is the output of a tools.ozone.set.getValues call.

func SetGetValues

func SetGetValues(ctx context.Context, c *xrpc.Client, cursor string, limit int64, name string) (*SetGetValues_Output, error)

SetGetValues calls the XRPC method "tools.ozone.set.getValues".

type SetQuerySets_Output

type SetQuerySets_Output struct {
	Cursor *string            `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
	Sets   []*SetDefs_SetView `json:"sets" cborgen:"sets"`
}

SetQuerySets_Output is the output of a tools.ozone.set.querySets call.

func SetQuerySets

func SetQuerySets(ctx context.Context, c *xrpc.Client, cursor string, limit int64, namePrefix string, sortBy string, sortDirection string) (*SetQuerySets_Output, error)

SetQuerySets calls the XRPC method "tools.ozone.set.querySets".

sortDirection: Defaults to ascending order of name field.

type SettingDefs_Option

type SettingDefs_Option struct {
	CreatedAt     *string                  `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"`
	CreatedBy     string                   `json:"createdBy" cborgen:"createdBy"`
	Description   *string                  `json:"description,omitempty" cborgen:"description,omitempty"`
	Did           string                   `json:"did" cborgen:"did"`
	Key           string                   `json:"key" cborgen:"key"`
	LastUpdatedBy string                   `json:"lastUpdatedBy" cborgen:"lastUpdatedBy"`
	ManagerRole   *string                  `json:"managerRole,omitempty" cborgen:"managerRole,omitempty"`
	Scope         string                   `json:"scope" cborgen:"scope"`
	UpdatedAt     *string                  `json:"updatedAt,omitempty" cborgen:"updatedAt,omitempty"`
	Value         *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
}

SettingDefs_Option is a "option" in the tools.ozone.setting.defs schema.

type SettingListOptions_Output

type SettingListOptions_Output struct {
	Cursor  *string               `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
	Options []*SettingDefs_Option `json:"options" cborgen:"options"`
}

SettingListOptions_Output is the output of a tools.ozone.setting.listOptions call.

func SettingListOptions

func SettingListOptions(ctx context.Context, c *xrpc.Client, cursor string, keys []string, limit int64, prefix string, scope string) (*SettingListOptions_Output, error)

SettingListOptions calls the XRPC method "tools.ozone.setting.listOptions".

keys: Filter for only the specified keys. Ignored if prefix is provided prefix: Filter keys by prefix

type SettingRemoveOptions_Input

type SettingRemoveOptions_Input struct {
	Keys  []string `json:"keys" cborgen:"keys"`
	Scope string   `json:"scope" cborgen:"scope"`
}

SettingRemoveOptions_Input is the input argument to a tools.ozone.setting.removeOptions call.

type SettingRemoveOptions_Output

type SettingRemoveOptions_Output struct {
}

SettingRemoveOptions_Output is the output of a tools.ozone.setting.removeOptions call.

func SettingRemoveOptions

func SettingRemoveOptions(ctx context.Context, c *xrpc.Client, input *SettingRemoveOptions_Input) (*SettingRemoveOptions_Output, error)

SettingRemoveOptions calls the XRPC method "tools.ozone.setting.removeOptions".

type SettingUpsertOption_Input

type SettingUpsertOption_Input struct {
	Description *string                  `json:"description,omitempty" cborgen:"description,omitempty"`
	Key         string                   `json:"key" cborgen:"key"`
	ManagerRole *string                  `json:"managerRole,omitempty" cborgen:"managerRole,omitempty"`
	Scope       string                   `json:"scope" cborgen:"scope"`
	Value       *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
}

SettingUpsertOption_Input is the input argument to a tools.ozone.setting.upsertOption call.

type SettingUpsertOption_Output

type SettingUpsertOption_Output struct {
	Option *SettingDefs_Option `json:"option" cborgen:"option"`
}

SettingUpsertOption_Output is the output of a tools.ozone.setting.upsertOption call.

func SettingUpsertOption

func SettingUpsertOption(ctx context.Context, c *xrpc.Client, input *SettingUpsertOption_Input) (*SettingUpsertOption_Output, error)

SettingUpsertOption calls the XRPC method "tools.ozone.setting.upsertOption".

type SignatureDefs_SigDetail

type SignatureDefs_SigDetail struct {
	Property string `json:"property" cborgen:"property"`
	Value    string `json:"value" cborgen:"value"`
}

SignatureDefs_SigDetail is a "sigDetail" in the tools.ozone.signature.defs schema.

type SignatureFindCorrelation_Output

type SignatureFindCorrelation_Output struct {
	Details []*SignatureDefs_SigDetail `json:"details" cborgen:"details"`
}

SignatureFindCorrelation_Output is the output of a tools.ozone.signature.findCorrelation call.

func SignatureFindCorrelation

func SignatureFindCorrelation(ctx context.Context, c *xrpc.Client, dids []string) (*SignatureFindCorrelation_Output, error)

SignatureFindCorrelation calls the XRPC method "tools.ozone.signature.findCorrelation".

type SignatureFindRelatedAccounts_Output

type SignatureFindRelatedAccounts_Output struct {
	Accounts []*SignatureFindRelatedAccounts_RelatedAccount `json:"accounts" cborgen:"accounts"`
	Cursor   *string                                        `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
}

SignatureFindRelatedAccounts_Output is the output of a tools.ozone.signature.findRelatedAccounts call.

func SignatureFindRelatedAccounts

func SignatureFindRelatedAccounts(ctx context.Context, c *xrpc.Client, cursor string, did string, limit int64) (*SignatureFindRelatedAccounts_Output, error)

SignatureFindRelatedAccounts calls the XRPC method "tools.ozone.signature.findRelatedAccounts".

type SignatureFindRelatedAccounts_RelatedAccount

type SignatureFindRelatedAccounts_RelatedAccount struct {
	Account      *comatprototypes.AdminDefs_AccountView `json:"account" cborgen:"account"`
	Similarities []*SignatureDefs_SigDetail             `json:"similarities,omitempty" cborgen:"similarities,omitempty"`
}

SignatureFindRelatedAccounts_RelatedAccount is a "relatedAccount" in the tools.ozone.signature.findRelatedAccounts schema.

type SignatureSearchAccounts_Output

type SignatureSearchAccounts_Output struct {
	Accounts []*comatprototypes.AdminDefs_AccountView `json:"accounts" cborgen:"accounts"`
	Cursor   *string                                  `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
}

SignatureSearchAccounts_Output is the output of a tools.ozone.signature.searchAccounts call.

func SignatureSearchAccounts

func SignatureSearchAccounts(ctx context.Context, c *xrpc.Client, cursor string, limit int64, values []string) (*SignatureSearchAccounts_Output, error)

SignatureSearchAccounts calls the XRPC method "tools.ozone.signature.searchAccounts".

type TeamAddMember_Input

type TeamAddMember_Input struct {
	Did  string `json:"did" cborgen:"did"`
	Role string `json:"role" cborgen:"role"`
}

TeamAddMember_Input is the input argument to a tools.ozone.team.addMember call.

type TeamDefs_Member

type TeamDefs_Member struct {
	CreatedAt     *string                                     `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"`
	Did           string                                      `json:"did" cborgen:"did"`
	Disabled      *bool                                       `json:"disabled,omitempty" cborgen:"disabled,omitempty"`
	LastUpdatedBy *string                                     `json:"lastUpdatedBy,omitempty" cborgen:"lastUpdatedBy,omitempty"`
	Profile       *appbskytypes.ActorDefs_ProfileViewDetailed `json:"profile,omitempty" cborgen:"profile,omitempty"`
	Role          string                                      `json:"role" cborgen:"role"`
	UpdatedAt     *string                                     `json:"updatedAt,omitempty" cborgen:"updatedAt,omitempty"`
}

TeamDefs_Member is a "member" in the tools.ozone.team.defs schema.

func TeamAddMember

func TeamAddMember(ctx context.Context, c *xrpc.Client, input *TeamAddMember_Input) (*TeamDefs_Member, error)

TeamAddMember calls the XRPC method "tools.ozone.team.addMember".

func TeamUpdateMember

func TeamUpdateMember(ctx context.Context, c *xrpc.Client, input *TeamUpdateMember_Input) (*TeamDefs_Member, error)

TeamUpdateMember calls the XRPC method "tools.ozone.team.updateMember".

type TeamDeleteMember_Input

type TeamDeleteMember_Input struct {
	Did string `json:"did" cborgen:"did"`
}

TeamDeleteMember_Input is the input argument to a tools.ozone.team.deleteMember call.

type TeamListMembers_Output

type TeamListMembers_Output struct {
	Cursor  *string            `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
	Members []*TeamDefs_Member `json:"members" cborgen:"members"`
}

TeamListMembers_Output is the output of a tools.ozone.team.listMembers call.

func TeamListMembers

func TeamListMembers(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*TeamListMembers_Output, error)

TeamListMembers calls the XRPC method "tools.ozone.team.listMembers".

type TeamUpdateMember_Input

type TeamUpdateMember_Input struct {
	Did      string  `json:"did" cborgen:"did"`
	Disabled *bool   `json:"disabled,omitempty" cborgen:"disabled,omitempty"`
	Role     *string `json:"role,omitempty" cborgen:"role,omitempty"`
}

TeamUpdateMember_Input is the input argument to a tools.ozone.team.updateMember call.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL