model

package
v1.1.17 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package model contains GraphQL model definitions and custom scalar types.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrTimeNotString is returned when Time scalar receives non-string input
	ErrTimeNotString = errors.NewValidationError("time", "must be a string")

	// ErrCursorNotString is returned when Cursor scalar receives non-string input
	ErrCursorNotString = errors.NewValidationError("cursor", "must be a string")
)

GraphQL scalar validation errors

View Source
var (
	// ErrEnumNotString is returned when an enum receives non-string input
	ErrEnumNotString = errors.NewValidationError("enum", "must be strings")

	// ErrInvalidEnumValue is returned when an enum value is not valid
	ErrInvalidEnumValue = errors.NewValidationError("enum", "invalid value")
)

GraphQL enum validation errors

View Source
var (
	// ErrInvalidDurationType is returned when Duration scalar receives unsupported type
	ErrInvalidDurationType = errors.NewValidationError("duration", "must be an integer (seconds) or a duration string")
)

GraphQL duration validation errors

Functions

This section is empty.

Types

type AIAnalysis

type AIAnalysis struct {
	ID               string                    `json:"id"`
	ObjectID         string                    `json:"objectId"`
	ObjectType       string                    `json:"objectType"`
	TextAnalysis     *moderation.TextAnalysis  `json:"textAnalysis,omitempty"`
	ImageAnalysis    *moderation.ImageAnalysis `json:"imageAnalysis,omitempty"`
	AiDetection      *AIDetection              `json:"aiDetection,omitempty"`
	SpamAnalysis     *SpamAnalysis             `json:"spamAnalysis,omitempty"`
	OverallRisk      float64                   `json:"overallRisk"`
	ModerationAction ModerationAction          `json:"moderationAction"`
	Confidence       float64                   `json:"confidence"`
	AnalyzedAt       Time                      `json:"analyzedAt"`
}

AI Analysis types

type AIAnalysisRequest

type AIAnalysisRequest struct {
	Message       string `json:"message"`
	ObjectID      string `json:"objectId"`
	EstimatedTime string `json:"estimatedTime"`
}

type AICapabilities

type AICapabilities struct {
	TextAnalysis      *TextAnalysisCapabilities  `json:"textAnalysis"`
	ImageAnalysis     *ImageAnalysisCapabilities `json:"imageAnalysis"`
	AiDetection       *AIDetectionCapabilities   `json:"aiDetection"`
	ModerationActions []string                   `json:"moderationActions"`
	CostPerAnalysis   *CostBreakdown             `json:"costPerAnalysis"`
}

type AIDetection

type AIDetection struct {
	AiGeneratedProbability float64  `json:"aiGeneratedProbability"`
	GenerationModel        *string  `json:"generationModel,omitempty"`
	PatternConsistency     float64  `json:"patternConsistency"`
	StyleDeviation         float64  `json:"styleDeviation"`
	SemanticCoherence      float64  `json:"semanticCoherence"`
	SuspiciousPatterns     []string `json:"suspiciousPatterns"`
}

type AIDetectionCapabilities

type AIDetectionCapabilities struct {
	AiGeneratedContent bool `json:"aiGeneratedContent"`
	PatternAnalysis    bool `json:"patternAnalysis"`
	StyleConsistency   bool `json:"styleConsistency"`
}

type AIStats

type AIStats struct {
	Period            string                  `json:"period"`
	TotalAnalyses     int                     `json:"totalAnalyses"`
	ToxicContent      int                     `json:"toxicContent"`
	SpamDetected      int                     `json:"spamDetected"`
	AiGenerated       int                     `json:"aiGenerated"`
	NsfwContent       int                     `json:"nsfwContent"`
	PiiDetected       int                     `json:"piiDetected"`
	ToxicityRate      float64                 `json:"toxicityRate"`
	SpamRate          float64                 `json:"spamRate"`
	AiContentRate     float64                 `json:"aiContentRate"`
	NsfwRate          float64                 `json:"nsfwRate"`
	ModerationActions *ModerationActionCounts `json:"moderationActions"`
}

type AccessLog

type AccessLog struct {
	Timestamp Time   `json:"timestamp"`
	Operation string `json:"operation"`
	Cost      int    `json:"cost"`
}

type AccountQuotePermissions

type AccountQuotePermissions struct {
	Username       string   `json:"username"`
	AllowPublic    bool     `json:"allowPublic"`
	AllowFollowers bool     `json:"allowFollowers"`
	AllowMentioned bool     `json:"allowMentioned"`
	BlockList      []string `json:"blockList"`
}

type AccountSuggestion

type AccountSuggestion struct {
	Account *activitypub.Actor `json:"account"`
	Source  SuggestionSource   `json:"source"`
	Reason  *string            `json:"reason,omitempty"`
}

type AcknowledgePayload

type AcknowledgePayload struct {
	Success             bool                 `json:"success"`
	SeveredRelationship *SeveredRelationship `json:"severedRelationship"`
	Acknowledged        bool                 `json:"acknowledged"`
}

type ActivityType

type ActivityType string
const (
	ActivityTypeCreate   ActivityType = "CREATE"
	ActivityTypeUpdate   ActivityType = "UPDATE"
	ActivityTypeDelete   ActivityType = "DELETE"
	ActivityTypeFollow   ActivityType = "FOLLOW"
	ActivityTypeLike     ActivityType = "LIKE"
	ActivityTypeAnnounce ActivityType = "ANNOUNCE"
	ActivityTypeUndo     ActivityType = "UNDO"
	ActivityTypeAccept   ActivityType = "ACCEPT"
	ActivityTypeReject   ActivityType = "REJECT"
	ActivityTypeFlag     ActivityType = "FLAG"
)

func (ActivityType) IsValid

func (e ActivityType) IsValid() bool

func (ActivityType) MarshalGQL

func (e ActivityType) MarshalGQL(w io.Writer)

func (ActivityType) MarshalJSON

func (e ActivityType) MarshalJSON() ([]byte, error)

func (ActivityType) String

func (e ActivityType) String() string

func (*ActivityType) UnmarshalGQL

func (e *ActivityType) UnmarshalGQL(v any) error

func (*ActivityType) UnmarshalJSON

func (e *ActivityType) UnmarshalJSON(b []byte) error

type ActorListPage

type ActorListPage struct {
	Actors     []*activitypub.Actor `json:"actors"`
	NextCursor *Cursor              `json:"nextCursor,omitempty"`
	TotalCount int                  `json:"totalCount"`
}

type ActorType

type ActorType string
const (
	ActorTypePerson       ActorType = "PERSON"
	ActorTypeGroup        ActorType = "GROUP"
	ActorTypeApplication  ActorType = "APPLICATION"
	ActorTypeService      ActorType = "SERVICE"
	ActorTypeOrganization ActorType = "ORGANIZATION"
)

func (ActorType) IsValid

func (e ActorType) IsValid() bool

func (ActorType) MarshalGQL

func (e ActorType) MarshalGQL(w io.Writer)

func (ActorType) MarshalJSON

func (e ActorType) MarshalJSON() ([]byte, error)

func (ActorType) String

func (e ActorType) String() string

func (*ActorType) UnmarshalGQL

func (e *ActorType) UnmarshalGQL(v any) error

func (*ActorType) UnmarshalJSON

func (e *ActorType) UnmarshalJSON(b []byte) error

type AddFilterKeywordInput

type AddFilterKeywordInput struct {
	Keyword   string `json:"keyword"`
	WholeWord *bool  `json:"wholeWord,omitempty"`
}

type AdminAIConfig added in v1.1.13

type AdminAIConfig struct {
	RecordExists bool                        `json:"recordExists"`
	UpdatedAt    Time                        `json:"updatedAt"`
	Managed      *AdminAIConfigLayer         `json:"managed"`
	Override     *AdminAIConfigLayerOverride `json:"override,omitempty"`
	Effective    *AdminAIConfigLayer         `json:"effective"`
}

type AdminAIConfigLayer added in v1.1.13

type AdminAIConfigLayer struct {
	AiEnabled            bool `json:"aiEnabled"`
	ModerationEnabled    bool `json:"moderationEnabled"`
	NsfwDetectionEnabled bool `json:"nsfwDetectionEnabled"`
	SpamDetectionEnabled bool `json:"spamDetectionEnabled"`
	PiiDetectionEnabled  bool `json:"piiDetectionEnabled"`
	AiContentDetection   bool `json:"aiContentDetection"`
}

type AdminAIConfigLayerOverride added in v1.1.13

type AdminAIConfigLayerOverride struct {
	AiEnabled            *bool `json:"aiEnabled,omitempty"`
	ModerationEnabled    *bool `json:"moderationEnabled,omitempty"`
	NsfwDetectionEnabled *bool `json:"nsfwDetectionEnabled,omitempty"`
	SpamDetectionEnabled *bool `json:"spamDetectionEnabled,omitempty"`
	PiiDetectionEnabled  *bool `json:"piiDetectionEnabled,omitempty"`
	AiContentDetection   *bool `json:"aiContentDetection,omitempty"`
}

type AdminAIConfigPatchInput added in v1.1.13

type AdminAIConfigPatchInput struct {
	AiEnabled            *bool `json:"aiEnabled,omitempty"`
	ModerationEnabled    *bool `json:"moderationEnabled,omitempty"`
	NsfwDetectionEnabled *bool `json:"nsfwDetectionEnabled,omitempty"`
	SpamDetectionEnabled *bool `json:"spamDetectionEnabled,omitempty"`
	PiiDetectionEnabled  *bool `json:"piiDetectionEnabled,omitempty"`
	AiContentDetection   *bool `json:"aiContentDetection,omitempty"`
}

type AdminAccount

type AdminAccount struct {
	ID                   string             `json:"id"`
	Username             string             `json:"username"`
	CreatedAt            Time               `json:"createdAt"`
	Locale               string             `json:"locale"`
	IP                   *string            `json:"ip,omitempty"`
	Ips                  []*AdminIP         `json:"ips"`
	Role                 *AdminRole         `json:"role"`
	Confirmed            bool               `json:"confirmed"`
	Approved             bool               `json:"approved"`
	Disabled             bool               `json:"disabled"`
	Silenced             bool               `json:"silenced"`
	Suspended            bool               `json:"suspended"`
	Actor                *activitypub.Actor `json:"actor,omitempty"`
	ReportsCount         int                `json:"reportsCount"`
	ResolvedReportsCount int                `json:"resolvedReportsCount"`
}

type AdminAccountActionInput

type AdminAccountActionInput struct {
	ID   string  `json:"id"`
	Type string  `json:"type"`
	Text *string `json:"text,omitempty"`
}

type AdminAccountConnection

type AdminAccountConnection struct {
	Accounts   []*AdminAccount `json:"accounts"`
	NextCursor *Cursor         `json:"nextCursor,omitempty"`
}

type AdminAgentPolicy added in v1.1.2

type AdminAgentPolicy struct {
	AllowAgents                    bool     `json:"allowAgents"`
	AllowAgentRegistration         bool     `json:"allowAgentRegistration"`
	DefaultQuarantineDays          int      `json:"defaultQuarantineDays"`
	MaxAgentsPerOwner              int      `json:"maxAgentsPerOwner"`
	AllowRemoteAgents              bool     `json:"allowRemoteAgents"`
	RemoteQuarantineDays           int      `json:"remoteQuarantineDays"`
	BlockedAgentDomains            []string `json:"blockedAgentDomains"`
	TrustedAgentDomains            []string `json:"trustedAgentDomains"`
	AgentMaxPostsPerHour           int      `json:"agentMaxPostsPerHour"`
	VerifiedAgentMaxPostsPerHour   int      `json:"verifiedAgentMaxPostsPerHour"`
	AgentMaxFollowsPerHour         int      `json:"agentMaxFollowsPerHour"`
	VerifiedAgentMaxFollowsPerHour int      `json:"verifiedAgentMaxFollowsPerHour"`
	HybridRetrievalEnabled         bool     `json:"hybridRetrievalEnabled"`
	HybridRetrievalMaxCandidates   int      `json:"hybridRetrievalMaxCandidates"`
	UpdatedAt                      Time     `json:"updatedAt"`
}

type AdminCreateAnnouncementInput

type AdminCreateAnnouncementInput struct {
	Text     string `json:"text"`
	AllDay   *bool  `json:"allDay,omitempty"`
	StartsAt *Time  `json:"startsAt,omitempty"`
	EndsAt   *Time  `json:"endsAt,omitempty"`
}

type AdminCreateUserInput

type AdminCreateUserInput struct {
	Username string  `json:"username"`
	Email    *string `json:"email,omitempty"`
	// Deprecated: Lesser is passwordless; this field is ignored if provided.
	Password    *string `json:"password,omitempty"`
	DisplayName *string `json:"displayName,omitempty"`
	Role        *string `json:"role,omitempty"`
}

type AdminDomainAllow

type AdminDomainAllow struct {
	ID        string `json:"id"`
	Domain    string `json:"domain"`
	CreatedAt Time   `json:"createdAt"`
}

type AdminDomainAllowConnection

type AdminDomainAllowConnection struct {
	Allows     []*AdminDomainAllow `json:"allows"`
	NextCursor *Cursor             `json:"nextCursor,omitempty"`
}

type AdminDomainBlock

type AdminDomainBlock struct {
	ID             string  `json:"id"`
	Domain         string  `json:"domain"`
	Severity       string  `json:"severity"`
	RejectMedia    bool    `json:"rejectMedia"`
	RejectReports  bool    `json:"rejectReports"`
	PrivateComment *string `json:"privateComment,omitempty"`
	PublicComment  *string `json:"publicComment,omitempty"`
	Obfuscate      bool    `json:"obfuscate"`
	CreatedAt      Time    `json:"createdAt"`
	UpdatedAt      Time    `json:"updatedAt"`
}

type AdminDomainBlockConnection

type AdminDomainBlockConnection struct {
	Blocks     []*AdminDomainBlock `json:"blocks"`
	NextCursor *Cursor             `json:"nextCursor,omitempty"`
}

type AdminDomainBlockCreateInput

type AdminDomainBlockCreateInput struct {
	Domain         string  `json:"domain"`
	Severity       *string `json:"severity,omitempty"`
	RejectMedia    *bool   `json:"rejectMedia,omitempty"`
	RejectReports  *bool   `json:"rejectReports,omitempty"`
	PrivateComment *string `json:"privateComment,omitempty"`
	PublicComment  *string `json:"publicComment,omitempty"`
	Obfuscate      *bool   `json:"obfuscate,omitempty"`
}

type AdminDomainBlockUpdateInput

type AdminDomainBlockUpdateInput struct {
	Severity       *string `json:"severity,omitempty"`
	RejectMedia    *bool   `json:"rejectMedia,omitempty"`
	RejectReports  *bool   `json:"rejectReports,omitempty"`
	PrivateComment *string `json:"privateComment,omitempty"`
	PublicComment  *string `json:"publicComment,omitempty"`
	Obfuscate      *bool   `json:"obfuscate,omitempty"`
}

type AdminEffectiveTrustConfig added in v1.1.13

type AdminEffectiveTrustConfig struct {
	BaseURL                   string `json:"baseUrl"`
	AttestationsURL           string `json:"attestationsUrl"`
	InstanceKeySecretArn      string `json:"instanceKeySecretArn"`
	TrustProxyEnabled         bool   `json:"trustProxyEnabled"`
	PublicAttestationsEnabled bool   `json:"publicAttestationsEnabled"`
}

type AdminEmailDomainBlock

type AdminEmailDomainBlock struct {
	ID        string `json:"id"`
	Domain    string `json:"domain"`
	CreatedAt Time   `json:"createdAt"`
}

type AdminEmailDomainBlockConnection

type AdminEmailDomainBlockConnection struct {
	Blocks     []*AdminEmailDomainBlock `json:"blocks"`
	NextCursor *Cursor                  `json:"nextCursor,omitempty"`
}

type AdminFederationInstance

type AdminFederationInstance struct {
	Instance    *AdminFederationInstanceInfo `json:"instance"`
	DetailsJSON *string                      `json:"detailsJSON,omitempty"`
}

type AdminFederationInstanceConnection

type AdminFederationInstanceConnection struct {
	Instances  []*AdminFederationInstanceInfo `json:"instances"`
	NextCursor *Cursor                        `json:"nextCursor,omitempty"`
}

type AdminFederationInstanceInfo

type AdminFederationInstanceInfo struct {
	Domain        string  `json:"domain"`
	Software      *string `json:"software,omitempty"`
	Version       *string `json:"version,omitempty"`
	ActiveUsers   int     `json:"activeUsers"`
	TotalMessages int     `json:"totalMessages"`
	TrustScore    float64 `json:"trustScore"`
	FirstSeen     Time    `json:"firstSeen"`
	LastSeen      Time    `json:"lastSeen"`
	IsSilenced    bool    `json:"isSilenced"`
	IsSuspended   bool    `json:"isSuspended"`
}

type AdminFederationStatistics

type AdminFederationStatistics struct {
	ActiveInstances int                                 `json:"activeInstances"`
	TotalMessages   int                                 `json:"totalMessages"`
	TotalUsers      int                                 `json:"totalUsers"`
	TimeRange       *AdminFederationStatisticsTimeRange `json:"timeRange"`
}

type AdminFederationStatisticsTimeRange

type AdminFederationStatisticsTimeRange struct {
	Start Time `json:"start"`
	End   Time `json:"end"`
}

type AdminIP

type AdminIP struct {
	IP     string `json:"ip"`
	UsedAt Time   `json:"usedAt"`
}

type AdminInstanceConfig added in v1.1.13

type AdminInstanceConfig struct {
	Trust       *AdminTrustConfig       `json:"trust"`
	Translation *AdminTranslationConfig `json:"translation"`
	Tips        *AdminTipsConfig        `json:"tips"`
	Ai          *AdminAIConfig          `json:"ai"`
}

type AdminModerationEvent

type AdminModerationEvent struct {
	ID              string  `json:"id"`
	EventType       string  `json:"eventType"`
	ActorID         string  `json:"actorId"`
	ObjectID        string  `json:"objectId"`
	ObjectType      string  `json:"objectType"`
	Category        string  `json:"category"`
	Severity        string  `json:"severity"`
	Reason          *string `json:"reason,omitempty"`
	EvidenceJSON    *string `json:"evidenceJSON,omitempty"`
	ConfidenceScore float64 `json:"confidenceScore"`
	CreatedAt       Time    `json:"createdAt"`
}

type AdminModerationEventConnection

type AdminModerationEventConnection struct {
	Events     []*AdminModerationEvent `json:"events"`
	NextCursor *Cursor                 `json:"nextCursor,omitempty"`
}

type AdminModerationEventFilter

type AdminModerationEventFilter struct {
	EventType   *string `json:"eventType,omitempty"`
	Category    *string `json:"category,omitempty"`
	MinSeverity *int    `json:"minSeverity,omitempty"`
	ActorID     *string `json:"actorId,omitempty"`
	ObjectID    *string `json:"objectId,omitempty"`
}

type AdminModerationEventOverrideInput

type AdminModerationEventOverrideInput struct {
	EventID  string  `json:"eventId"`
	Decision string  `json:"decision"`
	Reason   *string `json:"reason,omitempty"`
}

type AdminModerationEventOverrideResult

type AdminModerationEventOverrideResult struct {
	EventID  string  `json:"eventId"`
	Decision string  `json:"decision"`
	Action   string  `json:"action"`
	Override bool    `json:"override"`
	Admin    string  `json:"admin"`
	Reason   *string `json:"reason,omitempty"`
}

type AdminReport

type AdminReport struct {
	ID              string             `json:"id"`
	ActionTaken     bool               `json:"actionTaken"`
	ActionTakenAt   *Time              `json:"actionTakenAt,omitempty"`
	Category        string             `json:"category"`
	Comment         *string            `json:"comment,omitempty"`
	Forwarded       bool               `json:"forwarded"`
	CreatedAt       Time               `json:"createdAt"`
	UpdatedAt       Time               `json:"updatedAt"`
	Reporter        *activitypub.Actor `json:"reporter"`
	Target          *activitypub.Actor `json:"target"`
	AssignedAccount *activitypub.Actor `json:"assignedAccount,omitempty"`
	ActionTakenBy   *activitypub.Actor `json:"actionTakenBy,omitempty"`
	Statuses        []*Object          `json:"statuses"`
}

type AdminReportAction

type AdminReportAction string
const (
	AdminReportActionAssignToSelf AdminReportAction = "ASSIGN_TO_SELF"
	AdminReportActionUnassign     AdminReportAction = "UNASSIGN"
	AdminReportActionResolve      AdminReportAction = "RESOLVE"
	AdminReportActionReopen       AdminReportAction = "REOPEN"
)

func (AdminReportAction) IsValid

func (e AdminReportAction) IsValid() bool

func (AdminReportAction) MarshalGQL

func (e AdminReportAction) MarshalGQL(w io.Writer)

func (AdminReportAction) MarshalJSON

func (e AdminReportAction) MarshalJSON() ([]byte, error)

func (AdminReportAction) String

func (e AdminReportAction) String() string

func (*AdminReportAction) UnmarshalGQL

func (e *AdminReportAction) UnmarshalGQL(v any) error

func (*AdminReportAction) UnmarshalJSON

func (e *AdminReportAction) UnmarshalJSON(b []byte) error

type AdminReportConnection

type AdminReportConnection struct {
	Reports    []*AdminReport `json:"reports"`
	NextCursor *Cursor        `json:"nextCursor,omitempty"`
}

type AdminReportStatus

type AdminReportStatus string
const (
	AdminReportStatusOpen     AdminReportStatus = "OPEN"
	AdminReportStatusResolved AdminReportStatus = "RESOLVED"
	AdminReportStatusRejected AdminReportStatus = "REJECTED"
)

func (AdminReportStatus) IsValid

func (e AdminReportStatus) IsValid() bool

func (AdminReportStatus) MarshalGQL

func (e AdminReportStatus) MarshalGQL(w io.Writer)

func (AdminReportStatus) MarshalJSON

func (e AdminReportStatus) MarshalJSON() ([]byte, error)

func (AdminReportStatus) String

func (e AdminReportStatus) String() string

func (*AdminReportStatus) UnmarshalGQL

func (e *AdminReportStatus) UnmarshalGQL(v any) error

func (*AdminReportStatus) UnmarshalJSON

func (e *AdminReportStatus) UnmarshalJSON(b []byte) error

type AdminReviewer

type AdminReviewer struct {
	ID              string  `json:"id"`
	Username        string  `json:"username"`
	Role            string  `json:"role"`
	TotalReviews    int     `json:"totalReviews"`
	AccurateReviews int     `json:"accurateReviews"`
	AccuracyRate    float64 `json:"accuracyRate"`
	LastReviewAt    *Time   `json:"lastReviewAt,omitempty"`
}

type AdminReviewerRoleResult

type AdminReviewerRoleResult struct {
	UserID    string `json:"userId"`
	Username  string `json:"username"`
	NewRole   string `json:"newRole"`
	UpdatedBy string `json:"updatedBy"`
}

type AdminRole

type AdminRole struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Permissions int    `json:"permissions"`
}

type AdminStatusConnection

type AdminStatusConnection struct {
	Statuses   []*Object `json:"statuses"`
	NextCursor *Cursor   `json:"nextCursor,omitempty"`
}

type AdminStatusFilter

type AdminStatusFilter struct {
	Local      *bool   `json:"local,omitempty"`
	Remote     *bool   `json:"remote,omitempty"`
	ByDomain   *string `json:"byDomain,omitempty"`
	Visibility *string `json:"visibility,omitempty"`
	Flagged    *bool   `json:"flagged,omitempty"`
	Reported   *bool   `json:"reported,omitempty"`
	Media      *bool   `json:"media,omitempty"`
	Sensitive  *bool   `json:"sensitive,omitempty"`
	MinDate    *Time   `json:"minDate,omitempty"`
	MaxDate    *Time   `json:"maxDate,omitempty"`
}

type AdminTipsConfig added in v1.1.13

type AdminTipsConfig struct {
	RecordExists bool                          `json:"recordExists"`
	UpdatedAt    Time                          `json:"updatedAt"`
	Managed      *AdminTipsConfigLayer         `json:"managed"`
	Override     *AdminTipsConfigLayerOverride `json:"override,omitempty"`
	Effective    *TipsConfig                   `json:"effective"`
}

type AdminTipsConfigLayer added in v1.1.13

type AdminTipsConfigLayer struct {
	Enabled         bool   `json:"enabled"`
	ChainID         int    `json:"chainId"`
	ContractAddress string `json:"contractAddress"`
}

type AdminTipsConfigLayerOverride added in v1.1.13

type AdminTipsConfigLayerOverride struct {
	Enabled         *bool   `json:"enabled,omitempty"`
	ChainID         *int    `json:"chainId,omitempty"`
	ContractAddress *string `json:"contractAddress,omitempty"`
}

type AdminTipsConfigPatchInput added in v1.1.13

type AdminTipsConfigPatchInput struct {
	Enabled         *bool   `json:"enabled,omitempty"`
	ChainID         *int    `json:"chainId,omitempty"`
	ContractAddress *string `json:"contractAddress,omitempty"`
}

type AdminTranslationConfig added in v1.1.13

type AdminTranslationConfig struct {
	RecordExists     bool  `json:"recordExists"`
	UpdatedAt        Time  `json:"updatedAt"`
	ManagedEnabled   bool  `json:"managedEnabled"`
	OverrideEnabled  *bool `json:"overrideEnabled,omitempty"`
	EffectiveEnabled bool  `json:"effectiveEnabled"`
}

type AdminTranslationConfigPatchInput added in v1.1.13

type AdminTranslationConfigPatchInput struct {
	Enabled *bool `json:"enabled,omitempty"`
}

type AdminTrustConfig added in v1.1.13

type AdminTrustConfig struct {
	RecordExists bool                           `json:"recordExists"`
	UpdatedAt    Time                           `json:"updatedAt"`
	Managed      *AdminTrustConfigLayer         `json:"managed"`
	Override     *AdminTrustConfigLayerOverride `json:"override,omitempty"`
	Effective    *AdminEffectiveTrustConfig     `json:"effective"`
}

type AdminTrustConfigLayer added in v1.1.13

type AdminTrustConfigLayer struct {
	BaseURL              string `json:"baseUrl"`
	AttestationsURL      string `json:"attestationsUrl"`
	InstanceKeySecretArn string `json:"instanceKeySecretArn"`
}

type AdminTrustConfigLayerOverride added in v1.1.13

type AdminTrustConfigLayerOverride struct {
	BaseURL              *string `json:"baseUrl,omitempty"`
	AttestationsURL      *string `json:"attestationsUrl,omitempty"`
	InstanceKeySecretArn *string `json:"instanceKeySecretArn,omitempty"`
}

type AdminTrustConfigPatchInput added in v1.1.13

type AdminTrustConfigPatchInput struct {
	BaseURL              *string `json:"baseUrl,omitempty"`
	AttestationsURL      *string `json:"attestationsUrl,omitempty"`
	InstanceKeySecretArn *string `json:"instanceKeySecretArn,omitempty"`
}

type AdminTrustGraph

type AdminTrustGraph struct {
	Nodes []*AdminTrustGraphNode `json:"nodes"`
	Edges []*AdminTrustGraphEdge `json:"edges"`
	Stats *AdminTrustGraphStats  `json:"stats"`
}

type AdminTrustGraphEdge

type AdminTrustGraphEdge struct {
	From      string  `json:"from"`
	To        string  `json:"to"`
	Trust     float64 `json:"trust"`
	CreatedAt Time    `json:"createdAt"`
	UpdatedAt Time    `json:"updatedAt"`
}

type AdminTrustGraphNode

type AdminTrustGraphNode struct {
	ID   string `json:"id"`
	Type string `json:"type"`
}

type AdminTrustGraphStats

type AdminTrustGraphStats struct {
	TotalNodes int `json:"totalNodes"`
	TotalEdges int `json:"totalEdges"`
}

type AdminUpdateTrustInput

type AdminUpdateTrustInput struct {
	FromActorID string  `json:"fromActorId"`
	ToActorID   string  `json:"toActorId"`
	Trust       float64 `json:"trust"`
	Category    *string `json:"category,omitempty"`
	Reason      *string `json:"reason,omitempty"`
}

type AdminUpdateTrustResult

type AdminUpdateTrustResult struct {
	FromActorID string  `json:"fromActorId"`
	ToActorID   string  `json:"toActorId"`
	Trust       float64 `json:"trust"`
	Category    string  `json:"category"`
	UpdatedBy   string  `json:"updatedBy"`
	Reason      *string `json:"reason,omitempty"`
	UpdatedAt   Time    `json:"updatedAt"`
}

type AdminVerifyAgentInput added in v1.1.2

type AdminVerifyAgentInput struct {
	Reason         *string `json:"reason,omitempty"`
	ExitQuarantine *bool   `json:"exitQuarantine,omitempty"`
}

type AffectedRelationship

type AffectedRelationship struct {
	Actor            *activitypub.Actor `json:"actor"`
	RelationshipType string             `json:"relationshipType"`
	EstablishedAt    Time               `json:"establishedAt"`
	LastInteraction  *Time              `json:"lastInteraction,omitempty"`
}

type AffectedRelationshipConnection

type AffectedRelationshipConnection struct {
	Edges      []*AffectedRelationshipEdge `json:"edges"`
	PageInfo   *PageInfo                   `json:"pageInfo"`
	TotalCount int                         `json:"totalCount"`
}

type AffectedRelationshipEdge

type AffectedRelationshipEdge struct {
	Node   *AffectedRelationship `json:"node"`
	Cursor Cursor                `json:"cursor"`
}

type Agent

type Agent struct {
	ID                string                         `json:"id"`
	Username          string                         `json:"username"`
	DisplayName       string                         `json:"displayName"`
	Bio               *string                        `json:"bio,omitempty"`
	AgentType         AgentType                      `json:"agentType"`
	AgentVersion      string                         `json:"agentVersion"`
	AgentCapabilities *activitypub.AgentCapabilities `json:"agentCapabilities"`
	AgentOwner        *string                        `json:"agentOwner,omitempty"`
	DelegatedScopes   []string                       `json:"delegatedScopes"`
	Verified          bool                           `json:"verified"`
	VerifiedAt        *Time                          `json:"verifiedAt,omitempty"`
	OwnerActor        *activitypub.Actor             `json:"ownerActor,omitempty"`
	Type              AgentType                      `json:"type"`
	Version           string                         `json:"version"`
	Capabilities      *activitypub.AgentCapabilities `json:"capabilities"`
	Owner             *activitypub.Actor             `json:"owner,omitempty"`
	CreatedAt         Time                           `json:"createdAt"`
	ActivityCount     int                            `json:"activityCount"`
}

type AgentActivityConnection added in v1.1.2

type AgentActivityConnection struct {
	Edges      []*AgentActivityEdge `json:"edges"`
	PageInfo   *PageInfo            `json:"pageInfo"`
	TotalCount int                  `json:"totalCount"`
}

type AgentActivityEdge added in v1.1.2

type AgentActivityEdge struct {
	Node   *AgentActivityEvent `json:"node"`
	Cursor Cursor              `json:"cursor"`
}

type AgentActivityEvent

type AgentActivityEvent struct {
	EventID       string  `json:"eventId"`
	AgentUsername string  `json:"agentUsername"`
	Action        string  `json:"action"`
	TargetID      *string `json:"targetId,omitempty"`
	MetadataJSON  *string `json:"metadataJson,omitempty"`
	Timestamp     Time    `json:"timestamp"`
}

type AgentCapabilitiesInput added in v1.1.2

type AgentCapabilitiesInput struct {
	CanPost           *bool    `json:"canPost,omitempty"`
	CanReply          *bool    `json:"canReply,omitempty"`
	CanBoost          *bool    `json:"canBoost,omitempty"`
	CanFollow         *bool    `json:"canFollow,omitempty"`
	CanDm             *bool    `json:"canDM,omitempty"`
	MaxPostsPerHour   *int     `json:"maxPostsPerHour,omitempty"`
	RequiresApproval  *bool    `json:"requiresApproval,omitempty"`
	RestrictedDomains []string `json:"restrictedDomains,omitempty"`
}

type AgentConnection

type AgentConnection struct {
	Edges      []*AgentEdge `json:"edges"`
	PageInfo   *PageInfo    `json:"pageInfo"`
	TotalCount int          `json:"totalCount"`
}

type AgentEdge

type AgentEdge struct {
	Node   *Agent `json:"node"`
	Cursor Cursor `json:"cursor"`
}

type AgentPostAttributionInput added in v1.1.2

type AgentPostAttributionInput struct {
	TriggerType     *string  `json:"triggerType,omitempty"`
	TriggerDetails  *string  `json:"triggerDetails,omitempty"`
	MemoryCitations []string `json:"memoryCitations,omitempty"`
	DelegatedBy     *string  `json:"delegatedBy,omitempty"`
	Scopes          []string `json:"scopes,omitempty"`
	Constraints     []string `json:"constraints,omitempty"`
	ModelVersion    *string  `json:"modelVersion,omitempty"`
}

type AgentType

type AgentType string
const (
	AgentTypeCurator    AgentType = "CURATOR"
	AgentTypeModerator  AgentType = "MODERATOR"
	AgentTypeResearcher AgentType = "RESEARCHER"
	AgentTypeAssistant  AgentType = "ASSISTANT"
	AgentTypeBridge     AgentType = "BRIDGE"
	AgentTypeCustom     AgentType = "CUSTOM"
)

func (AgentType) IsValid

func (e AgentType) IsValid() bool

func (AgentType) MarshalGQL

func (e AgentType) MarshalGQL(w io.Writer)

func (AgentType) MarshalJSON

func (e AgentType) MarshalJSON() ([]byte, error)

func (AgentType) String

func (e AgentType) String() string

func (*AgentType) UnmarshalGQL

func (e *AgentType) UnmarshalGQL(v any) error

func (*AgentType) UnmarshalJSON

func (e *AgentType) UnmarshalJSON(b []byte) error

type AlertLevel

type AlertLevel string
const (
	AlertLevelInfo     AlertLevel = "INFO"
	AlertLevelWarning  AlertLevel = "WARNING"
	AlertLevelCritical AlertLevel = "CRITICAL"
)

func (AlertLevel) IsValid

func (e AlertLevel) IsValid() bool

func (AlertLevel) MarshalGQL

func (e AlertLevel) MarshalGQL(w io.Writer)

func (AlertLevel) MarshalJSON

func (e AlertLevel) MarshalJSON() ([]byte, error)

func (AlertLevel) String

func (e AlertLevel) String() string

func (*AlertLevel) UnmarshalGQL

func (e *AlertLevel) UnmarshalGQL(v any) error

func (*AlertLevel) UnmarshalJSON

func (e *AlertLevel) UnmarshalJSON(b []byte) error

type AlertSeverity

type AlertSeverity string
const (
	AlertSeverityInfo     AlertSeverity = "INFO"
	AlertSeverityWarning  AlertSeverity = "WARNING"
	AlertSeverityError    AlertSeverity = "ERROR"
	AlertSeverityCritical AlertSeverity = "CRITICAL"
)

func (AlertSeverity) IsValid

func (e AlertSeverity) IsValid() bool

func (AlertSeverity) MarshalGQL

func (e AlertSeverity) MarshalGQL(w io.Writer)

func (AlertSeverity) MarshalJSON

func (e AlertSeverity) MarshalJSON() ([]byte, error)

func (AlertSeverity) String

func (e AlertSeverity) String() string

func (*AlertSeverity) UnmarshalGQL

func (e *AlertSeverity) UnmarshalGQL(v any) error

func (*AlertSeverity) UnmarshalJSON

func (e *AlertSeverity) UnmarshalJSON(b []byte) error

type Announcement

type Announcement struct {
	ID          string                  `json:"id"`
	Content     string                  `json:"content"`
	Text        string                  `json:"text"`
	PublishedAt Time                    `json:"publishedAt"`
	UpdatedAt   Time                    `json:"updatedAt"`
	AllDay      bool                    `json:"allDay"`
	StartsAt    *Time                   `json:"startsAt,omitempty"`
	EndsAt      *Time                   `json:"endsAt,omitempty"`
	Read        bool                    `json:"read"`
	Reactions   []*AnnouncementReaction `json:"reactions"`
}

type AnnouncementReaction

type AnnouncementReaction struct {
	Name      string  `json:"name"`
	Count     int     `json:"count"`
	Me        bool    `json:"me"`
	URL       *string `json:"url,omitempty"`
	StaticURL *string `json:"staticUrl,omitempty"`
}

type Article

type Article struct {
	ID     string             `json:"id"`
	Slug   string             `json:"slug"`
	Author *activitypub.Actor `json:"author"`

	Title    string  `json:"title"`
	Subtitle *string `json:"subtitle"`
	Excerpt  *string `json:"excerpt"`

	Content       string        `json:"content"`
	ContentFormat ContentFormat `json:"contentFormat"`

	FeaturedImage   *Media      `json:"featuredImage"`
	TableOfContents []*TOCEntry `json:"tableOfContents"`

	ReadingTimeMinutes int `json:"readingTimeMinutes"`
	WordCount          int `json:"wordCount"`

	Series      *Series     `json:"series"`
	SeriesOrder *int        `json:"seriesOrder"`
	Categories  []*Category `json:"categories"`

	SEOTitle       *string `json:"seoTitle"`
	SEODescription *string `json:"seoDescription"`
	CanonicalURL   *string `json:"canonicalUrl"`
	OGImage        *string `json:"ogImage"`

	EditorNotes  *string `json:"editorNotes"`
	ReviewStatus *string `json:"reviewStatus"`

	PublishedAt Time `json:"publishedAt"`
	CreatedAt   Time `json:"createdAt"`
	UpdatedAt   Time `json:"updatedAt"`
}

Article is a published piece of CMS content.

type ArticleConnection

type ArticleConnection struct {
	Edges      []*ArticleEdge `json:"edges"`
	PageInfo   *PageInfo      `json:"pageInfo"`
	TotalCount int            `json:"totalCount"`
}

ArticleConnection is a paginated list of articles.

type ArticleEdge

type ArticleEdge struct {
	Node   *Article `json:"node"`
	Cursor Cursor   `json:"cursor"`
}

ArticleEdge is an edge in an ArticleConnection.

type BandwidthReport

type BandwidthReport struct {
	Period    TimePeriod          `json:"period"`
	TotalGb   float64             `json:"totalGB"`
	PeakMbps  float64             `json:"peakMbps"`
	AvgMbps   float64             `json:"avgMbps"`
	ByQuality []*QualityBandwidth `json:"byQuality"`
	ByHour    []*HourlyBandwidth  `json:"byHour"`
	Cost      float64             `json:"cost"`
}

type BedrockTrainingOptions

type BedrockTrainingOptions struct {
	BaseModelID          *string `json:"baseModelId,omitempty"`
	DatasetS3Path        *string `json:"datasetS3Path,omitempty"`
	OutputS3Path         *string `json:"outputS3Path,omitempty"`
	MaxTrainingTime      *int    `json:"maxTrainingTime,omitempty"`
	EarlyStoppingEnabled *bool   `json:"earlyStoppingEnabled,omitempty"`
}

type Bitrate

type Bitrate struct {
	Quality       StreamQuality `json:"quality"`
	BitsPerSecond int           `json:"bitsPerSecond"`
	Width         int           `json:"width"`
	Height        int           `json:"height"`
	Codec         string        `json:"codec"`
}

type BudgetAlert

type BudgetAlert struct {
	ID                 string     `json:"id"`
	Domain             string     `json:"domain"`
	BudgetUsd          float64    `json:"budgetUSD"`
	SpentUsd           float64    `json:"spentUSD"`
	PercentUsed        float64    `json:"percentUsed"`
	ProjectedOverspend *float64   `json:"projectedOverspend,omitempty"`
	AlertLevel         AlertLevel `json:"alertLevel"`
	Timestamp          Time       `json:"timestamp"`
}

type Category

type Category struct {
	ID          string      `json:"id"`
	Name        string      `json:"name"`
	Slug        string      `json:"slug"`
	Description *string     `json:"description"`
	Parent      *Category   `json:"parent"`
	Children    []*Category `json:"children"`

	ArticleCount int     `json:"articleCount"`
	Order        int     `json:"order"`
	Color        *string `json:"color"`

	CreatedAt Time `json:"createdAt"`
	UpdatedAt Time `json:"updatedAt"`
}

Category is a taxonomy label that can be applied to articles.

type CategoryStats

type CategoryStats struct {
	Category string  `json:"category"`
	Count    int     `json:"count"`
	Accuracy float64 `json:"accuracy"`
}

type Celebrity

type Celebrity struct {
	Name       string   `json:"name"`
	Confidence float64  `json:"confidence"`
	Urls       []string `json:"urls"`
}

type ChangeType

type ChangeType string

ChangeType describes the kind of change recorded in a revision.

const (
	// ChangeTypeCreate indicates a revision created a new object.
	ChangeTypeCreate ChangeType = "CREATE"
	// ChangeTypeUpdate indicates a revision updated an object.
	ChangeTypeUpdate ChangeType = "UPDATE"
	// ChangeTypeRestore indicates a revision restored content from a previous revision.
	ChangeTypeRestore ChangeType = "RESTORE"
)

type CommunityNote

type CommunityNote struct {
	ID         string             `json:"id"`
	Author     *activitypub.Actor `json:"author"`
	Content    string             `json:"content"`
	Helpful    int                `json:"helpful"`
	NotHelpful int                `json:"notHelpful"`
	CreatedAt  Time               `json:"createdAt"`
}

type CommunityNoteConnection

type CommunityNoteConnection struct {
	Edges      []*CommunityNoteEdge `json:"edges"`
	PageInfo   *PageInfo            `json:"pageInfo"`
	TotalCount int                  `json:"totalCount"`
}

type CommunityNoteEdge

type CommunityNoteEdge struct {
	Node   *CommunityNote `json:"node"`
	Cursor Cursor         `json:"cursor"`
}

type CommunityNoteInput

type CommunityNoteInput struct {
	ObjectID string `json:"objectId"`
	Content  string `json:"content"`
}

type CommunityNotePayload

type CommunityNotePayload struct {
	Note   *CommunityNote `json:"note"`
	Object *Object        `json:"object"`
}

type ConnectionType

type ConnectionType string
const (
	ConnectionTypeFollows  ConnectionType = "FOLLOWS"
	ConnectionTypeMentions ConnectionType = "MENTIONS"
	ConnectionTypeReplies  ConnectionType = "REPLIES"
	ConnectionTypeBoosts   ConnectionType = "BOOSTS"
	ConnectionTypeQuotes   ConnectionType = "QUOTES"
	ConnectionTypeMixed    ConnectionType = "MIXED"
)

func (ConnectionType) IsValid

func (e ConnectionType) IsValid() bool

func (ConnectionType) MarshalGQL

func (e ConnectionType) MarshalGQL(w io.Writer)

func (ConnectionType) MarshalJSON

func (e ConnectionType) MarshalJSON() ([]byte, error)

func (ConnectionType) String

func (e ConnectionType) String() string

func (*ConnectionType) UnmarshalGQL

func (e *ConnectionType) UnmarshalGQL(v any) error

func (*ConnectionType) UnmarshalJSON

func (e *ConnectionType) UnmarshalJSON(b []byte) error

type ContentFormat

type ContentFormat string

ContentFormat describes how CMS content is encoded.

const (
	// ContentFormatHTML indicates the content is stored as HTML.
	ContentFormatHTML ContentFormat = "HTML"
	// ContentFormatMarkdown indicates the content is stored as Markdown.
	ContentFormatMarkdown ContentFormat = "MARKDOWN"
)

type ContentMap

type ContentMap struct {
	Language string `json:"language"`
	Content  string `json:"content"`
}

type ContentMapInput

type ContentMapInput struct {
	Language string `json:"language"`
	Content  string `json:"content"`
}

type Conversation

type Conversation struct {
	ID             string                      `json:"id"`
	LastStatus     *Object                     `json:"lastStatus,omitempty"`
	Unread         bool                        `json:"unread"`
	Accounts       []*activitypub.Actor        `json:"accounts"`
	ViewerMetadata *ConversationViewerMetadata `json:"viewerMetadata"`
	CreatedAt      Time                        `json:"createdAt"`
	UpdatedAt      Time                        `json:"updatedAt"`
}

type ConversationFolder added in v1.1.14

type ConversationFolder string
const (
	ConversationFolderInbox    ConversationFolder = "INBOX"
	ConversationFolderRequests ConversationFolder = "REQUESTS"
)

func (ConversationFolder) IsValid added in v1.1.14

func (e ConversationFolder) IsValid() bool

func (ConversationFolder) MarshalGQL added in v1.1.14

func (e ConversationFolder) MarshalGQL(w io.Writer)

func (ConversationFolder) MarshalJSON added in v1.1.14

func (e ConversationFolder) MarshalJSON() ([]byte, error)

func (ConversationFolder) String added in v1.1.14

func (e ConversationFolder) String() string

func (*ConversationFolder) UnmarshalGQL added in v1.1.14

func (e *ConversationFolder) UnmarshalGQL(v any) error

func (*ConversationFolder) UnmarshalJSON added in v1.1.14

func (e *ConversationFolder) UnmarshalJSON(b []byte) error

type ConversationViewerMetadata added in v1.1.14

type ConversationViewerMetadata struct {
	RequestState DmRequestState `json:"requestState"`
	RequestedAt  *Time          `json:"requestedAt,omitempty"`
	AcceptedAt   *Time          `json:"acceptedAt,omitempty"`
	DeclinedAt   *Time          `json:"declinedAt,omitempty"`
}

type Coordinates

type Coordinates struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
}

type CostAlert

type CostAlert struct {
	ID        string  `json:"id"`
	Type      string  `json:"type"`
	Amount    float64 `json:"amount"`
	Threshold float64 `json:"threshold"`
	Domain    *string `json:"domain,omitempty"`
	Message   string  `json:"message"`
	Timestamp Time    `json:"timestamp"`
}

type CostBreakdown

type CostBreakdown struct {
	Period           Period      `json:"period"`
	TotalCost        float64     `json:"totalCost"`
	DynamoDBCost     float64     `json:"dynamoDBCost"`
	S3StorageCost    float64     `json:"s3StorageCost"`
	LambdaCost       float64     `json:"lambdaCost"`
	DataTransferCost float64     `json:"dataTransferCost"`
	Breakdown        []*CostItem `json:"breakdown"`
}

type CostItem

type CostItem struct {
	Operation string  `json:"operation"`
	Count     int     `json:"count"`
	Cost      float64 `json:"cost"`
}

type CostOptimizationResult

type CostOptimizationResult struct {
	Optimized       int                   `json:"optimized"`
	SavedMonthlyUsd float64               `json:"savedMonthlyUSD"`
	Actions         []*OptimizationAction `json:"actions"`
}

type CostOrderBy

type CostOrderBy string
const (
	CostOrderByTotalCostDesc    CostOrderBy = "TOTAL_COST_DESC"
	CostOrderByTotalCostAsc     CostOrderBy = "TOTAL_COST_ASC"
	CostOrderByErrorRateDesc    CostOrderBy = "ERROR_RATE_DESC"
	CostOrderByRequestCountDesc CostOrderBy = "REQUEST_COUNT_DESC"
	CostOrderByDomainAsc        CostOrderBy = "DOMAIN_ASC"
)

func (CostOrderBy) IsValid

func (e CostOrderBy) IsValid() bool

func (CostOrderBy) MarshalGQL

func (e CostOrderBy) MarshalGQL(w io.Writer)

func (CostOrderBy) MarshalJSON

func (e CostOrderBy) MarshalJSON() ([]byte, error)

func (CostOrderBy) String

func (e CostOrderBy) String() string

func (*CostOrderBy) UnmarshalGQL

func (e *CostOrderBy) UnmarshalGQL(v any) error

func (*CostOrderBy) UnmarshalJSON

func (e *CostOrderBy) UnmarshalJSON(b []byte) error

type CostProjection

type CostProjection struct {
	Period          Period         `json:"period"`
	CurrentCost     float64        `json:"currentCost"`
	ProjectedCost   float64        `json:"projectedCost"`
	Variance        float64        `json:"variance"`
	TopDrivers      []*cost.Driver `json:"topDrivers"`
	Recommendations []string       `json:"recommendations"`
}

type CostUpdate

type CostUpdate struct {
	OperationCost     int     `json:"operationCost"`
	DailyTotal        float64 `json:"dailyTotal"`
	MonthlyProjection float64 `json:"monthlyProjection"`
}

type CreateArticleInput

type CreateArticleInput struct {
	Slug          *string       `json:"slug"`
	Title         string        `json:"title"`
	Content       string        `json:"content"`
	ContentFormat ContentFormat `json:"contentFormat"`

	Subtitle        *string `json:"subtitle"`
	Excerpt         *string `json:"excerpt"`
	FeaturedImageID *string `json:"featuredImageId"`

	SeriesID    *string  `json:"seriesId"`
	SeriesOrder *int     `json:"seriesOrder"`
	CategoryIDs []string `json:"categoryIds"`

	SEOTitle       *string `json:"seoTitle"`
	SEODescription *string `json:"seoDescription"`
	CanonicalURL   *string `json:"canonicalUrl"`
	OGImage        *string `json:"ogImage"`

	EditorNotes  *string `json:"editorNotes"`
	ReviewStatus *string `json:"reviewStatus"`
}

CreateArticleInput is the input payload for creating an article.

type CreateCategoryInput

type CreateCategoryInput struct {
	Slug        *string `json:"slug"`
	Name        string  `json:"name"`
	Description *string `json:"description"`
	ParentID    *string `json:"parentId"`
	Color       *string `json:"color"`
	Order       *int    `json:"order"`
}

CreateCategoryInput is the input payload for creating a category.

type CreateDraftInput

type CreateDraftInput struct {
	ContentType   ObjectType    `json:"contentType"`
	Title         *string       `json:"title"`
	Slug          *string       `json:"slug"`
	Content       string        `json:"content"`
	ContentFormat ContentFormat `json:"contentFormat"`
	ObjectID      *string       `json:"objectId"`
}

CreateDraftInput is the input payload for creating a draft.

type CreateEmojiInput

type CreateEmojiInput struct {
	Shortcode       string  `json:"shortcode"`
	Image           string  `json:"image"`
	Category        *string `json:"category,omitempty"`
	VisibleInPicker *bool   `json:"visibleInPicker,omitempty"`
}

type CreateExportInput

type CreateExportInput struct {
	Type         ExportType      `json:"type"`
	Format       ExportFormat    `json:"format"`
	IncludeMedia *bool           `json:"includeMedia,omitempty"`
	DateRange    *DateRangeInput `json:"dateRange,omitempty"`
}

type CreateFilterInput

type CreateFilterInput struct {
	Title            string                      `json:"title"`
	Context          []string                    `json:"context"`
	FilterAction     *FilterAction               `json:"filterAction,omitempty"`
	ExpiresInSeconds *int                        `json:"expiresInSeconds,omitempty"`
	Keywords         []*CreateFilterKeywordInput `json:"keywords,omitempty"`
}

type CreateFilterKeywordInput

type CreateFilterKeywordInput struct {
	Keyword   string `json:"keyword"`
	WholeWord *bool  `json:"wholeWord,omitempty"`
}

type CreateImportInput

type CreateImportInput struct {
	Type     ImportType     `json:"type"`
	Mode     *ImportMode    `json:"mode,omitempty"`
	File     graphql.Upload `json:"file"`
	Filename *string        `json:"filename,omitempty"`
}

type CreateListInput

type CreateListInput struct {
	Title         string         `json:"title"`
	RepliesPolicy *RepliesPolicy `json:"repliesPolicy,omitempty"`
	Exclusive     *bool          `json:"exclusive,omitempty"`
}

type CreateNoteInput

type CreateNoteInput struct {
	Content          string                     `json:"content"`
	ContentMap       []*ContentMapInput         `json:"contentMap,omitempty"`
	InReplyToID      *string                    `json:"inReplyToId,omitempty"`
	QuoteID          *string                    `json:"quoteId,omitempty"`
	Visibility       Visibility                 `json:"visibility"`
	Sensitive        *bool                      `json:"sensitive,omitempty"`
	SpoilerText      *string                    `json:"spoilerText,omitempty"`
	AttachmentIds    []string                   `json:"attachmentIds,omitempty"`
	Mentions         []string                   `json:"mentions,omitempty"`
	Tags             []string                   `json:"tags,omitempty"`
	Poll             *PollParamsInput           `json:"poll,omitempty"`
	AgentAttribution *AgentPostAttributionInput `json:"agentAttribution,omitempty"`
}

type CreateNotePayload

type CreateNotePayload struct {
	Object   *Object               `json:"object"`
	Activity *activitypub.Activity `json:"activity"`
	Cost     *CostUpdate           `json:"cost"`
}

type CreatePublicationInput

type CreatePublicationInput struct {
	Slug         *string `json:"slug"`
	Name         string  `json:"name"`
	Tagline      *string `json:"tagline"`
	Description  *string `json:"description"`
	LogoID       *string `json:"logoId"`
	BannerID     *string `json:"bannerId"`
	CustomDomain *string `json:"customDomain"`
}

CreatePublicationInput is the input payload for creating a publication.

type CreateQuoteNoteInput

type CreateQuoteNoteInput struct {
	Content     string      `json:"content"`
	QuoteURL    string      `json:"quoteUrl"`
	QuoteType   *QuoteType  `json:"quoteType,omitempty"`
	Visibility  *Visibility `json:"visibility,omitempty"`
	Quoteable   *bool       `json:"quoteable,omitempty"`
	Sensitive   *bool       `json:"sensitive,omitempty"`
	SpoilerText *string     `json:"spoilerText,omitempty"`
	MediaIds    []string    `json:"mediaIds,omitempty"`
}

type CreateReportInput

type CreateReportInput struct {
	AccountID string   `json:"accountId"`
	StatusIds []string `json:"statusIds,omitempty"`
	Comment   *string  `json:"comment,omitempty"`
	Category  *string  `json:"category,omitempty"`
	Forward   *bool    `json:"forward,omitempty"`
	RuleIds   []int    `json:"ruleIds,omitempty"`
}

type CreateSeriesInput

type CreateSeriesInput struct {
	Slug          *string `json:"slug"`
	Title         string  `json:"title"`
	Description   *string `json:"description"`
	CoverImageURL *string `json:"coverImageUrl"`
	IsComplete    *bool   `json:"isComplete"`
}

CreateSeriesInput is the input payload for creating a series.

type CreateVouchInput

type CreateVouchInput struct {
	To         string  `json:"to"`
	Confidence float64 `json:"confidence"`
	Context    *string `json:"context,omitempty"`
}

type Cursor

type Cursor string

Cursor is a custom GraphQL scalar for pagination

func (Cursor) MarshalGQL

func (c Cursor) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*Cursor) UnmarshalGQL

func (c *Cursor) UnmarshalGQL(v any) error

UnmarshalGQL implements the graphql.Unmarshaler interface

type CustomEmoji

type CustomEmoji struct {
	ID              string  `json:"id"`
	Shortcode       string  `json:"shortcode"`
	URL             string  `json:"url"`
	StaticURL       string  `json:"staticUrl"`
	VisibleInPicker bool    `json:"visibleInPicker"`
	Category        *string `json:"category,omitempty"`
	Domain          *string `json:"domain,omitempty"`
	CreatedAt       Time    `json:"createdAt"`
	UpdatedAt       Time    `json:"updatedAt"`
}

type DatabaseStatus

type DatabaseStatus struct {
	Name        string       `json:"name"`
	Type        string       `json:"type"`
	Status      HealthStatus `json:"status"`
	Connections int          `json:"connections"`
	Latency     Duration     `json:"latency"`
	Throughput  float64      `json:"throughput"`
}

type DateRangeInput

type DateRangeInput struct {
	Start Time `json:"start"`
	End   Time `json:"end"`
}

type DelegateToAgentInput

type DelegateToAgentInput struct {
	AgentUsername string    `json:"agentUsername"`
	DisplayName   string    `json:"displayName"`
	Bio           *string   `json:"bio,omitempty"`
	Scopes        []string  `json:"scopes"`
	ExpiresIn     *int      `json:"expiresIn,omitempty"`
	AgentType     AgentType `json:"agentType"`
	AgentVersion  *string   `json:"agentVersion,omitempty"`
	Version       string    `json:"version"`
}

type DelegationPayload

type DelegationPayload struct {
	Agent        *Agent `json:"agent"`
	AccessToken  string `json:"accessToken"`
	RefreshToken string `json:"refreshToken"`
	TokenType    string `json:"tokenType"`
	Scope        string `json:"scope"`
	CreatedAt    Time   `json:"createdAt"`
	ExpiresIn    int    `json:"expiresIn"`
}

type DigestFrequency

type DigestFrequency string
const (
	DigestFrequencyNever   DigestFrequency = "NEVER"
	DigestFrequencyDaily   DigestFrequency = "DAILY"
	DigestFrequencyWeekly  DigestFrequency = "WEEKLY"
	DigestFrequencyMonthly DigestFrequency = "MONTHLY"
)

func (DigestFrequency) IsValid

func (e DigestFrequency) IsValid() bool

func (DigestFrequency) MarshalGQL

func (e DigestFrequency) MarshalGQL(w io.Writer)

func (DigestFrequency) MarshalJSON

func (e DigestFrequency) MarshalJSON() ([]byte, error)

func (DigestFrequency) String

func (e DigestFrequency) String() string

func (*DigestFrequency) UnmarshalGQL

func (e *DigestFrequency) UnmarshalGQL(v any) error

func (*DigestFrequency) UnmarshalJSON

func (e *DigestFrequency) UnmarshalJSON(b []byte) error

type DirectMessagesFrom added in v1.1.14

type DirectMessagesFrom string
const (
	DirectMessagesFromFollowingOnly DirectMessagesFrom = "FOLLOWING_ONLY"
	DirectMessagesFromAnyone        DirectMessagesFrom = "ANYONE"
)

func (DirectMessagesFrom) IsValid added in v1.1.14

func (e DirectMessagesFrom) IsValid() bool

func (DirectMessagesFrom) MarshalGQL added in v1.1.14

func (e DirectMessagesFrom) MarshalGQL(w io.Writer)

func (DirectMessagesFrom) MarshalJSON added in v1.1.14

func (e DirectMessagesFrom) MarshalJSON() ([]byte, error)

func (DirectMessagesFrom) String added in v1.1.14

func (e DirectMessagesFrom) String() string

func (*DirectMessagesFrom) UnmarshalGQL added in v1.1.14

func (e *DirectMessagesFrom) UnmarshalGQL(v any) error

func (*DirectMessagesFrom) UnmarshalJSON added in v1.1.14

func (e *DirectMessagesFrom) UnmarshalJSON(b []byte) error

type DirectoryFiltersInput

type DirectoryFiltersInput struct {
	Local  *bool           `json:"local,omitempty"`
	Remote *bool           `json:"remote,omitempty"`
	Active *bool           `json:"active,omitempty"`
	Order  *DirectoryOrder `json:"order,omitempty"`
}

type DirectoryOrder

type DirectoryOrder string
const (
	DirectoryOrderActive DirectoryOrder = "ACTIVE"
	DirectoryOrderNew    DirectoryOrder = "NEW"
)

func (DirectoryOrder) IsValid

func (e DirectoryOrder) IsValid() bool

func (DirectoryOrder) MarshalGQL

func (e DirectoryOrder) MarshalGQL(w io.Writer)

func (DirectoryOrder) MarshalJSON

func (e DirectoryOrder) MarshalJSON() ([]byte, error)

func (DirectoryOrder) String

func (e DirectoryOrder) String() string

func (*DirectoryOrder) UnmarshalGQL

func (e *DirectoryOrder) UnmarshalGQL(v any) error

func (*DirectoryOrder) UnmarshalJSON

func (e *DirectoryOrder) UnmarshalJSON(b []byte) error

type DiscoveryPreferences

type DiscoveryPreferences struct {
	ShowFollowCounts          bool `json:"showFollowCounts"`
	SearchSuggestionsEnabled  bool `json:"searchSuggestionsEnabled"`
	PersonalizedSearchEnabled bool `json:"personalizedSearchEnabled"`
}

type DmRequestState added in v1.1.14

type DmRequestState string
const (
	DmRequestStatePending  DmRequestState = "PENDING"
	DmRequestStateAccepted DmRequestState = "ACCEPTED"
	DmRequestStateDeclined DmRequestState = "DECLINED"
)

func (DmRequestState) IsValid added in v1.1.14

func (e DmRequestState) IsValid() bool

func (DmRequestState) MarshalGQL added in v1.1.14

func (e DmRequestState) MarshalGQL(w io.Writer)

func (DmRequestState) MarshalJSON added in v1.1.14

func (e DmRequestState) MarshalJSON() ([]byte, error)

func (DmRequestState) String added in v1.1.14

func (e DmRequestState) String() string

func (*DmRequestState) UnmarshalGQL added in v1.1.14

func (e *DmRequestState) UnmarshalGQL(v any) error

func (*DmRequestState) UnmarshalJSON added in v1.1.14

func (e *DmRequestState) UnmarshalJSON(b []byte) error

type DomainBlockPage

type DomainBlockPage struct {
	Domains    []string `json:"domains"`
	NextCursor *Cursor  `json:"nextCursor,omitempty"`
	TotalCount int      `json:"totalCount"`
}

type Draft

type Draft struct {
	ID     string             `json:"id"`
	Author *activitypub.Actor `json:"author"`

	ContentType   ObjectType    `json:"contentType"`
	Title         *string       `json:"title"`
	Slug          *string       `json:"slug"`
	Content       string        `json:"content"`
	ContentFormat ContentFormat `json:"contentFormat"`

	Status      DraftStatus `json:"status"`
	ScheduledAt *Time       `json:"scheduledAt"`
	ObjectID    *string     `json:"objectId"`

	AutosaveVersion int  `json:"autosaveVersion"`
	LastSavedAt     Time `json:"lastSavedAt"`

	CreatedAt Time `json:"createdAt"`
	UpdatedAt Time `json:"updatedAt"`
}

Draft represents an editable piece of content prior to publication.

type DraftConnection

type DraftConnection struct {
	Edges      []*DraftEdge `json:"edges"`
	PageInfo   *PageInfo    `json:"pageInfo"`
	TotalCount int          `json:"totalCount"`
}

DraftConnection is a paginated list of drafts.

type DraftEdge

type DraftEdge struct {
	Node   *Draft `json:"node"`
	Cursor Cursor `json:"cursor"`
}

DraftEdge is an edge in a DraftConnection.

type DraftStatus

type DraftStatus string

DraftStatus represents the lifecycle state of a draft.

const (
	// DraftStatusDraft indicates a draft is not scheduled for publishing.
	DraftStatusDraft DraftStatus = "DRAFT"
	// DraftStatusScheduled indicates a draft is scheduled for publishing.
	DraftStatusScheduled DraftStatus = "SCHEDULED"
	// DraftStatusPublishing indicates a draft publish is in progress.
	DraftStatusPublishing DraftStatus = "PUBLISHING"
	// DraftStatusPublished indicates a draft has been published.
	DraftStatusPublished DraftStatus = "PUBLISHED"
	// DraftStatusFailed indicates the last publish attempt failed.
	DraftStatusFailed DraftStatus = "FAILED"
)

type Duration

type Duration int

Duration represents a time duration in seconds

func (Duration) MarshalGQL

func (d Duration) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (Duration) Seconds

func (d Duration) Seconds() int

Seconds returns the duration in seconds

func (Duration) String

func (d Duration) String() string

String returns a formatted duration string

func (*Duration) UnmarshalGQL

func (d *Duration) UnmarshalGQL(v any) error

UnmarshalGQL implements the graphql.Unmarshaler interface

type Entity

type Entity struct {
	Type  string  `json:"type"`
	Text  string  `json:"text"`
	Score float64 `json:"score"`
}

type ExpandMediaPreference

type ExpandMediaPreference string
const (
	ExpandMediaPreferenceDefault ExpandMediaPreference = "DEFAULT"
	ExpandMediaPreferenceShowAll ExpandMediaPreference = "SHOW_ALL"
	ExpandMediaPreferenceHideAll ExpandMediaPreference = "HIDE_ALL"
)

func (ExpandMediaPreference) IsValid

func (e ExpandMediaPreference) IsValid() bool

func (ExpandMediaPreference) MarshalGQL

func (e ExpandMediaPreference) MarshalGQL(w io.Writer)

func (ExpandMediaPreference) MarshalJSON

func (e ExpandMediaPreference) MarshalJSON() ([]byte, error)

func (ExpandMediaPreference) String

func (e ExpandMediaPreference) String() string

func (*ExpandMediaPreference) UnmarshalGQL

func (e *ExpandMediaPreference) UnmarshalGQL(v any) error

func (*ExpandMediaPreference) UnmarshalJSON

func (e *ExpandMediaPreference) UnmarshalJSON(b []byte) error

type ExportFormat

type ExportFormat string
const (
	ExportFormatActivitypub ExportFormat = "ACTIVITYPUB"
	ExportFormatMastodon    ExportFormat = "MASTODON"
	ExportFormatCSV         ExportFormat = "CSV"
)

func (ExportFormat) IsValid

func (e ExportFormat) IsValid() bool

func (ExportFormat) MarshalGQL

func (e ExportFormat) MarshalGQL(w io.Writer)

func (ExportFormat) MarshalJSON

func (e ExportFormat) MarshalJSON() ([]byte, error)

func (ExportFormat) String

func (e ExportFormat) String() string

func (*ExportFormat) UnmarshalGQL

func (e *ExportFormat) UnmarshalGQL(v any) error

func (*ExportFormat) UnmarshalJSON

func (e *ExportFormat) UnmarshalJSON(b []byte) error

type ExportJob

type ExportJob struct {
	ID          string       `json:"id"`
	Status      string       `json:"status"`
	Type        ExportType   `json:"type"`
	Format      ExportFormat `json:"format"`
	CreatedAt   Time         `json:"createdAt"`
	DownloadURL *string      `json:"downloadUrl,omitempty"`
	ExpiresAt   *Time        `json:"expiresAt,omitempty"`
	FileSize    *int         `json:"fileSize,omitempty"`
	RecordCount *int         `json:"recordCount,omitempty"`
	Error       *string      `json:"error,omitempty"`
}

type ExportJobConnection

type ExportJobConnection struct {
	Edges      []*ExportJobEdge `json:"edges"`
	PageInfo   *PageInfo        `json:"pageInfo"`
	TotalCount int              `json:"totalCount"`
}

type ExportJobEdge

type ExportJobEdge struct {
	Node   *ExportJob `json:"node"`
	Cursor Cursor     `json:"cursor"`
}

type ExportType

type ExportType string
const (
	ExportTypeArchive   ExportType = "ARCHIVE"
	ExportTypeFollowers ExportType = "FOLLOWERS"
	ExportTypeFollowing ExportType = "FOLLOWING"
	ExportTypeBlocks    ExportType = "BLOCKS"
	ExportTypeMutes     ExportType = "MUTES"
	ExportTypeLists     ExportType = "LISTS"
	ExportTypeBookmarks ExportType = "BOOKMARKS"
)

func (ExportType) IsValid

func (e ExportType) IsValid() bool

func (ExportType) MarshalGQL

func (e ExportType) MarshalGQL(w io.Writer)

func (ExportType) MarshalJSON

func (e ExportType) MarshalJSON() ([]byte, error)

func (ExportType) String

func (e ExportType) String() string

func (*ExportType) UnmarshalGQL

func (e *ExportType) UnmarshalGQL(v any) error

func (*ExportType) UnmarshalJSON

func (e *ExportType) UnmarshalJSON(b []byte) error

type FederationCost

type FederationCost struct {
	Domain         string         `json:"domain"`
	IngressBytes   int            `json:"ingressBytes"`
	EgressBytes    int            `json:"egressBytes"`
	RequestCount   int            `json:"requestCount"`
	ErrorRate      float64        `json:"errorRate"`
	MonthlyCostUsd float64        `json:"monthlyCostUSD"`
	HealthScore    float64        `json:"healthScore"`
	Recommendation *string        `json:"recommendation,omitempty"`
	LastUpdated    Time           `json:"lastUpdated"`
	Breakdown      *CostBreakdown `json:"breakdown"`
}

type FederationCostConnection

type FederationCostConnection struct {
	Edges      []*FederationCostEdge `json:"edges"`
	PageInfo   *PageInfo             `json:"pageInfo"`
	TotalCount int                   `json:"totalCount"`
}

type FederationCostEdge

type FederationCostEdge struct {
	Node   *FederationCost `json:"node"`
	Cursor Cursor          `json:"cursor"`
}

type FederationEdge

type FederationEdge struct {
	Source        string  `json:"source"`
	Target        string  `json:"target"`
	Weight        float64 `json:"weight"`
	VolumePerDay  int     `json:"volumePerDay"`
	ErrorRate     float64 `json:"errorRate"`
	Latency       float64 `json:"latency"`
	Bidirectional bool    `json:"bidirectional"`
	HealthScore   float64 `json:"healthScore"`
}

type FederationFlow

type FederationFlow struct {
	TopSources      []*FlowNode     `json:"topSources"`
	TopDestinations []*FlowNode     `json:"topDestinations"`
	VolumeByHour    []*HourlyVolume `json:"volumeByHour"`
	CostByInstance  []*InstanceCost `json:"costByInstance"`
}

type FederationGraph

type FederationGraph struct {
	Nodes       []*InstanceNode    `json:"nodes"`
	Edges       []*FederationEdge  `json:"edges"`
	Clusters    []*InstanceCluster `json:"clusters"`
	HealthScore float64            `json:"healthScore"`
}

type FederationHealthUpdate

type FederationHealthUpdate struct {
	Domain         string               `json:"domain"`
	PreviousStatus InstanceHealthStatus `json:"previousStatus"`
	CurrentStatus  InstanceHealthStatus `json:"currentStatus"`
	Issues         []*HealthIssue       `json:"issues"`
	Timestamp      Time                 `json:"timestamp"`
}

type FederationLimit

type FederationLimit struct {
	Domain            string   `json:"domain"`
	IngressLimitMb    int      `json:"ingressLimitMB"`
	EgressLimitMb     int      `json:"egressLimitMB"`
	RequestsPerMinute int      `json:"requestsPerMinute"`
	MonthlyBudgetUsd  *float64 `json:"monthlyBudgetUSD,omitempty"`
	Active            bool     `json:"active"`
	CreatedAt         Time     `json:"createdAt"`
	UpdatedAt         Time     `json:"updatedAt"`
}

type FederationLimitInput

type FederationLimitInput struct {
	IngressLimitMb    *int     `json:"ingressLimitMB,omitempty"`
	EgressLimitMb     *int     `json:"egressLimitMB,omitempty"`
	RequestsPerMinute *int     `json:"requestsPerMinute,omitempty"`
	MonthlyBudgetUsd  *float64 `json:"monthlyBudgetUSD,omitempty"`
}

type FederationManagementStatus

type FederationManagementStatus struct {
	Domain      string             `json:"domain"`
	Status      FederationState    `json:"status"`
	Reason      *string            `json:"reason,omitempty"`
	PausedUntil *Time              `json:"pausedUntil,omitempty"`
	Limits      *FederationLimit   `json:"limits,omitempty"`
	Metrics     *FederationMetrics `json:"metrics"`
}

type FederationMetrics

type FederationMetrics struct {
	CurrentMonthCostUsd     float64 `json:"currentMonthCostUSD"`
	CurrentMonthRequests    int     `json:"currentMonthRequests"`
	CurrentMonthBandwidthMb int     `json:"currentMonthBandwidthMB"`
	AverageResponseTime     float64 `json:"averageResponseTime"`
	ErrorRate               float64 `json:"errorRate"`
}

type FederationRecommendation

type FederationRecommendation struct {
	Type            RecommendationType `json:"type"`
	Priority        Priority           `json:"priority"`
	Domain          *string            `json:"domain,omitempty"`
	Reason          string             `json:"reason"`
	PotentialImpact string             `json:"potentialImpact"`
	Action          string             `json:"action"`
}

type FederationState

type FederationState string
const (
	FederationStateActive  FederationState = "ACTIVE"
	FederationStatePaused  FederationState = "PAUSED"
	FederationStateLimited FederationState = "LIMITED"
	FederationStateBlocked FederationState = "BLOCKED"
	FederationStateError   FederationState = "ERROR"
)

func (FederationState) IsValid

func (e FederationState) IsValid() bool

func (FederationState) MarshalGQL

func (e FederationState) MarshalGQL(w io.Writer)

func (FederationState) MarshalJSON

func (e FederationState) MarshalJSON() ([]byte, error)

func (FederationState) String

func (e FederationState) String() string

func (*FederationState) UnmarshalGQL

func (e *FederationState) UnmarshalGQL(v any) error

func (*FederationState) UnmarshalJSON

func (e *FederationState) UnmarshalJSON(b []byte) error

type FederationStatus

type FederationStatus struct {
	Domain      string  `json:"domain"`
	Reachable   bool    `json:"reachable"`
	LastContact *Time   `json:"lastContact,omitempty"`
	SharedInbox *string `json:"sharedInbox,omitempty"`
	PublicKey   *string `json:"publicKey,omitempty"`
	Software    *string `json:"software,omitempty"`
	Version     *string `json:"version,omitempty"`
}

type Field

type Field struct {
	Name       string `json:"name"`
	Value      string `json:"value"`
	VerifiedAt *Time  `json:"verifiedAt,omitempty"`
}

type FilterAction

type FilterAction string
const (
	FilterActionWarn FilterAction = "WARN"
	FilterActionHide FilterAction = "HIDE"
	FilterActionBlur FilterAction = "BLUR"
)

func (FilterAction) IsValid

func (e FilterAction) IsValid() bool

func (FilterAction) MarshalGQL

func (e FilterAction) MarshalGQL(w io.Writer)

func (FilterAction) MarshalJSON

func (e FilterAction) MarshalJSON() ([]byte, error)

func (FilterAction) String

func (e FilterAction) String() string

func (*FilterAction) UnmarshalGQL

func (e *FilterAction) UnmarshalGQL(v any) error

func (*FilterAction) UnmarshalJSON

func (e *FilterAction) UnmarshalJSON(b []byte) error

type FilterTestInput

type FilterTestInput struct {
	Content string   `json:"content"`
	Context []string `json:"context"`
}

type FilterTestPayload

type FilterTestPayload struct {
	Content      string              `json:"content"`
	TotalFilters int                 `json:"totalFilters"`
	MatchedCount int                 `json:"matchedCount"`
	Results      []*FilterTestResult `json:"results"`
}

type FilterTestResult

type FilterTestResult struct {
	Action       string   `json:"action"`
	Severity     string   `json:"severity"`
	MatchScore   float64  `json:"matchScore"`
	MatchedRules []string `json:"matchedRules"`
	FilterID     string   `json:"filterId"`
	FilterTitle  string   `json:"filterTitle"`
}

type FlagInput

type FlagInput struct {
	ObjectID string   `json:"objectId"`
	Reason   string   `json:"reason"`
	Evidence []string `json:"evidence,omitempty"`
}

type FlagPayload

type FlagPayload struct {
	ModerationID string `json:"moderationId"`
	Queued       bool   `json:"queued"`
}

type FlowNode

type FlowNode struct {
	Domain         string  `json:"domain"`
	Volume         int     `json:"volume"`
	Percentage     float64 `json:"percentage"`
	Trend          Trend   `json:"trend"`
	AvgMessageSize int     `json:"avgMessageSize"`
}

type FocusInput

type FocusInput struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
}

type GroupedNotificationGroup

type GroupedNotificationGroup struct {
	ID                       string               `json:"id"`
	Type                     string               `json:"type"`
	GroupKey                 string               `json:"groupKey"`
	Count                    int                  `json:"count"`
	LatestCreatedAt          Time                 `json:"latestCreatedAt"`
	EarliestCreatedAt        Time                 `json:"earliestCreatedAt"`
	Read                     bool                 `json:"read"`
	Summary                  string               `json:"summary"`
	SampleActors             []*activitypub.Actor `json:"sampleActors"`
	SampleActorIds           []string             `json:"sampleActorIds"`
	TargetStatusID           *string              `json:"targetStatusId,omitempty"`
	MostRecentNotificationID *string              `json:"mostRecentNotificationId,omitempty"`
	AllNotificationIds       []string             `json:"allNotificationIds"`
}

type GroupedNotificationsInput

type GroupedNotificationsInput struct {
	Types        []string               `json:"types,omitempty"`
	ExcludeTypes []string               `json:"excludeTypes,omitempty"`
	First        *int                   `json:"first,omitempty"`
	After        *Cursor                `json:"after,omitempty"`
	IncludeAll   *bool                  `json:"includeAll,omitempty"`
	Options      *GroupingStrategyInput `json:"options,omitempty"`
}

type GroupingStrategyInput

type GroupingStrategyInput struct {
	TimeWindowHours *int  `json:"timeWindowHours,omitempty"`
	MaxGroupSize    *int  `json:"maxGroupSize,omitempty"`
	MinGroupSize    *int  `json:"minGroupSize,omitempty"`
	SampleSize      *int  `json:"sampleSize,omitempty"`
	GroupByType     *bool `json:"groupByType,omitempty"`
	GroupByTarget   *bool `json:"groupByTarget,omitempty"`
}

type Hashtag

type Hashtag struct {
	Name                 string                       `json:"name"`
	DisplayName          string                       `json:"displayName"`
	URL                  string                       `json:"url"`
	FollowerCount        int                          `json:"followerCount"`
	PostCount            int                          `json:"postCount"`
	TrendingScore        float64                      `json:"trendingScore"`
	IsFollowing          bool                         `json:"isFollowing"`
	FollowedAt           *Time                        `json:"followedAt,omitempty"`
	NotificationSettings *HashtagNotificationSettings `json:"notificationSettings,omitempty"`
	Posts                *PostConnection              `json:"posts"`
	RelatedHashtags      []*Hashtag                   `json:"relatedHashtags"`
	Analytics            *HashtagAnalytics            `json:"analytics"`
}

type HashtagActivityUpdate

type HashtagActivityUpdate struct {
	Hashtag   string             `json:"hashtag"`
	Post      *Object            `json:"post"`
	Author    *activitypub.Actor `json:"author"`
	Timestamp Time               `json:"timestamp"`
}

type HashtagAnalytics

type HashtagAnalytics struct {
	HourlyPosts []int                `json:"hourlyPosts"`
	DailyPosts  []int                `json:"dailyPosts"`
	TopPosters  []*activitypub.Actor `json:"topPosters"`
	Sentiment   float64              `json:"sentiment"`
	Engagement  float64              `json:"engagement"`
}

type HashtagConnection

type HashtagConnection struct {
	Edges      []*HashtagEdge `json:"edges"`
	PageInfo   *PageInfo      `json:"pageInfo"`
	TotalCount int            `json:"totalCount"`
}

type HashtagEdge

type HashtagEdge struct {
	Node   *Hashtag `json:"node"`
	Cursor Cursor   `json:"cursor"`
}

type HashtagFollowPayload

type HashtagFollowPayload struct {
	Success bool     `json:"success"`
	Hashtag *Hashtag `json:"hashtag"`
}

type HashtagMode

type HashtagMode string
const (
	HashtagModeAny HashtagMode = "ANY"
	HashtagModeAll HashtagMode = "ALL"
)

func (HashtagMode) IsValid

func (e HashtagMode) IsValid() bool

func (HashtagMode) MarshalGQL

func (e HashtagMode) MarshalGQL(w io.Writer)

func (HashtagMode) MarshalJSON

func (e HashtagMode) MarshalJSON() ([]byte, error)

func (HashtagMode) String

func (e HashtagMode) String() string

func (*HashtagMode) UnmarshalGQL

func (e *HashtagMode) UnmarshalGQL(v any) error

func (*HashtagMode) UnmarshalJSON

func (e *HashtagMode) UnmarshalJSON(b []byte) error

type HashtagNotificationSettings

type HashtagNotificationSettings struct {
	Level      NotificationLevel     `json:"level"`
	Muted      bool                  `json:"muted"`
	MutedUntil *Time                 `json:"mutedUntil,omitempty"`
	Filters    []*NotificationFilter `json:"filters"`
}

type HashtagNotificationSettingsInput

type HashtagNotificationSettingsInput struct {
	Level      NotificationLevel          `json:"level"`
	Muted      *bool                      `json:"muted,omitempty"`
	MutedUntil *Time                      `json:"mutedUntil,omitempty"`
	Filters    []*NotificationFilterInput `json:"filters,omitempty"`
}

type HashtagSuggestion

type HashtagSuggestion struct {
	Hashtag *Hashtag `json:"hashtag"`
	Reason  string   `json:"reason"`
	Score   float64  `json:"score"`
}

type HealthIssue

type HealthIssue struct {
	Type        string        `json:"type"`
	Severity    IssueSeverity `json:"severity"`
	Description string        `json:"description"`
	DetectedAt  Time          `json:"detectedAt"`
	Impact      string        `json:"impact"`
}

type HealthStatus

type HealthStatus string
const (
	HealthStatusHealthy  HealthStatus = "HEALTHY"
	HealthStatusDegraded HealthStatus = "DEGRADED"
	HealthStatusDown     HealthStatus = "DOWN"
	HealthStatusUnknown  HealthStatus = "UNKNOWN"
)

func (HealthStatus) IsValid

func (e HealthStatus) IsValid() bool

func (HealthStatus) MarshalGQL

func (e HealthStatus) MarshalGQL(w io.Writer)

func (HealthStatus) MarshalJSON

func (e HealthStatus) MarshalJSON() ([]byte, error)

func (HealthStatus) String

func (e HealthStatus) String() string

func (*HealthStatus) UnmarshalGQL

func (e *HealthStatus) UnmarshalGQL(v any) error

func (*HealthStatus) UnmarshalJSON

func (e *HealthStatus) UnmarshalJSON(b []byte) error

type HourlyBandwidth

type HourlyBandwidth struct {
	Hour     Time    `json:"hour"`
	TotalGb  float64 `json:"totalGB"`
	PeakMbps float64 `json:"peakMbps"`
}

type HourlyVolume

type HourlyVolume struct {
	Hour       Time    `json:"hour"`
	Inbound    int     `json:"inbound"`
	Outbound   int     `json:"outbound"`
	Errors     int     `json:"errors"`
	AvgLatency float64 `json:"avgLatency"`
}

type ImageAnalysisCapabilities

type ImageAnalysisCapabilities struct {
	NsfwDetection        bool `json:"nsfwDetection"`
	ViolenceDetection    bool `json:"violenceDetection"`
	TextExtraction       bool `json:"textExtraction"`
	CelebrityRecognition bool `json:"celebrityRecognition"`
	DeepfakeDetection    bool `json:"deepfakeDetection"`
}

type ImportJob

type ImportJob struct {
	ID        string         `json:"id"`
	Status    string         `json:"status"`
	Type      ImportType     `json:"type"`
	CreatedAt Time           `json:"createdAt"`
	Processed int            `json:"processed"`
	Total     *int           `json:"total,omitempty"`
	Errors    []string       `json:"errors"`
	Results   *ImportResults `json:"results,omitempty"`
}

type ImportJobConnection

type ImportJobConnection struct {
	Edges      []*ImportJobEdge `json:"edges"`
	PageInfo   *PageInfo        `json:"pageInfo"`
	TotalCount int              `json:"totalCount"`
}

type ImportJobEdge

type ImportJobEdge struct {
	Node   *ImportJob `json:"node"`
	Cursor Cursor     `json:"cursor"`
}

type ImportMode

type ImportMode string
const (
	ImportModeMerge     ImportMode = "MERGE"
	ImportModeOverwrite ImportMode = "OVERWRITE"
)

func (ImportMode) IsValid

func (e ImportMode) IsValid() bool

func (ImportMode) MarshalGQL

func (e ImportMode) MarshalGQL(w io.Writer)

func (ImportMode) MarshalJSON

func (e ImportMode) MarshalJSON() ([]byte, error)

func (ImportMode) String

func (e ImportMode) String() string

func (*ImportMode) UnmarshalGQL

func (e *ImportMode) UnmarshalGQL(v any) error

func (*ImportMode) UnmarshalJSON

func (e *ImportMode) UnmarshalJSON(b []byte) error

type ImportResults

type ImportResults struct {
	Success int `json:"success"`
	Skipped int `json:"skipped"`
	Failed  int `json:"failed"`
}

type ImportType

type ImportType string
const (
	ImportTypeFollowers ImportType = "FOLLOWERS"
	ImportTypeFollowing ImportType = "FOLLOWING"
	ImportTypeBlocks    ImportType = "BLOCKS"
	ImportTypeMutes     ImportType = "MUTES"
	ImportTypeLists     ImportType = "LISTS"
	ImportTypeBookmarks ImportType = "BOOKMARKS"
)

func (ImportType) IsValid

func (e ImportType) IsValid() bool

func (ImportType) MarshalGQL

func (e ImportType) MarshalGQL(w io.Writer)

func (ImportType) MarshalJSON

func (e ImportType) MarshalJSON() ([]byte, error)

func (ImportType) String

func (e ImportType) String() string

func (*ImportType) UnmarshalGQL

func (e *ImportType) UnmarshalGQL(v any) error

func (*ImportType) UnmarshalJSON

func (e *ImportType) UnmarshalJSON(b []byte) error

type InfrastructureAlert

type InfrastructureAlert struct {
	ID        string        `json:"id"`
	Service   string        `json:"service"`
	Severity  AlertSeverity `json:"severity"`
	Message   string        `json:"message"`
	Timestamp Time          `json:"timestamp"`
	Resolved  bool          `json:"resolved"`
}

type InfrastructureEvent

type InfrastructureEvent struct {
	ID          string                  `json:"id"`
	Type        InfrastructureEventType `json:"type"`
	Service     string                  `json:"service"`
	Description string                  `json:"description"`
	Impact      string                  `json:"impact"`
	Timestamp   Time                    `json:"timestamp"`
}

type InfrastructureEventType

type InfrastructureEventType string
const (
	InfrastructureEventTypeDeployment  InfrastructureEventType = "DEPLOYMENT"
	InfrastructureEventTypeScaling     InfrastructureEventType = "SCALING"
	InfrastructureEventTypeFailure     InfrastructureEventType = "FAILURE"
	InfrastructureEventTypeRecovery    InfrastructureEventType = "RECOVERY"
	InfrastructureEventTypeMaintenance InfrastructureEventType = "MAINTENANCE"
)

func (InfrastructureEventType) IsValid

func (e InfrastructureEventType) IsValid() bool

func (InfrastructureEventType) MarshalGQL

func (e InfrastructureEventType) MarshalGQL(w io.Writer)

func (InfrastructureEventType) MarshalJSON

func (e InfrastructureEventType) MarshalJSON() ([]byte, error)

func (InfrastructureEventType) String

func (e InfrastructureEventType) String() string

func (*InfrastructureEventType) UnmarshalGQL

func (e *InfrastructureEventType) UnmarshalGQL(v any) error

func (*InfrastructureEventType) UnmarshalJSON

func (e *InfrastructureEventType) UnmarshalJSON(b []byte) error

type InfrastructureStatus

type InfrastructureStatus struct {
	Healthy   bool                   `json:"healthy"`
	Services  []*ServiceStatus       `json:"services"`
	Databases []*DatabaseStatus      `json:"databases"`
	Queues    []*QueueStatus         `json:"queues"`
	Alerts    []*InfrastructureAlert `json:"alerts"`
}

type InstanceActivityEntry

type InstanceActivityEntry struct {
	Week          string `json:"week"`
	Statuses      int    `json:"statuses"`
	Logins        int    `json:"logins"`
	Registrations int    `json:"registrations"`
}

type InstanceBudget

type InstanceBudget struct {
	Domain             string   `json:"domain"`
	MonthlyBudgetUsd   float64  `json:"monthlyBudgetUSD"`
	CurrentSpendUsd    float64  `json:"currentSpendUSD"`
	RemainingBudgetUsd float64  `json:"remainingBudgetUSD"`
	ProjectedOverspend *float64 `json:"projectedOverspend,omitempty"`
	AlertThreshold     float64  `json:"alertThreshold"`
	AutoLimit          bool     `json:"autoLimit"`
	Period             string   `json:"period"`
}

type InstanceCluster

type InstanceCluster struct {
	ID             string   `json:"id"`
	Name           string   `json:"name"`
	Members        []string `json:"members"`
	Commonality    string   `json:"commonality"`
	AvgHealthScore float64  `json:"avgHealthScore"`
	TotalVolume    int      `json:"totalVolume"`
	Description    string   `json:"description"`
}

type InstanceConfigFeature added in v1.1.13

type InstanceConfigFeature string
const (
	InstanceConfigFeatureTrust       InstanceConfigFeature = "TRUST"
	InstanceConfigFeatureTranslation InstanceConfigFeature = "TRANSLATION"
	InstanceConfigFeatureTips        InstanceConfigFeature = "TIPS"
	InstanceConfigFeatureAi          InstanceConfigFeature = "AI"
)

func (InstanceConfigFeature) IsValid added in v1.1.13

func (e InstanceConfigFeature) IsValid() bool

func (InstanceConfigFeature) MarshalGQL added in v1.1.13

func (e InstanceConfigFeature) MarshalGQL(w io.Writer)

func (InstanceConfigFeature) MarshalJSON added in v1.1.13

func (e InstanceConfigFeature) MarshalJSON() ([]byte, error)

func (InstanceConfigFeature) String added in v1.1.13

func (e InstanceConfigFeature) String() string

func (*InstanceConfigFeature) UnmarshalGQL added in v1.1.13

func (e *InstanceConfigFeature) UnmarshalGQL(v any) error

func (*InstanceConfigFeature) UnmarshalJSON added in v1.1.13

func (e *InstanceConfigFeature) UnmarshalJSON(b []byte) error

type InstanceConnection

type InstanceConnection struct {
	Domain         string         `json:"domain"`
	ConnectionType ConnectionType `json:"connectionType"`
	Strength       float64        `json:"strength"`
	VolumeIn       int            `json:"volumeIn"`
	VolumeOut      int            `json:"volumeOut"`
	SharedUsers    int            `json:"sharedUsers"`
	LastActivity   Time           `json:"lastActivity"`
}

type InstanceCost

type InstanceCost struct {
	Domain     string         `json:"domain"`
	CostUsd    float64        `json:"costUSD"`
	Percentage float64        `json:"percentage"`
	Breakdown  *CostBreakdown `json:"breakdown"`
}

type InstanceDomainBlock

type InstanceDomainBlock struct {
	Domain   string `json:"domain"`
	Digest   string `json:"digest"`
	Severity string `json:"severity"`
	Comment  string `json:"comment"`
}

type InstanceHealthMetrics

type InstanceHealthMetrics struct {
	ResponseTime    float64 `json:"responseTime"`
	ErrorRate       float64 `json:"errorRate"`
	FederationDelay float64 `json:"federationDelay"`
	QueueDepth      int     `json:"queueDepth"`
	CostEfficiency  float64 `json:"costEfficiency"`
}

type InstanceHealthReport

type InstanceHealthReport struct {
	Domain          string                 `json:"domain"`
	Status          InstanceHealthStatus   `json:"status"`
	Metrics         *InstanceHealthMetrics `json:"metrics"`
	Issues          []*HealthIssue         `json:"issues"`
	Recommendations []string               `json:"recommendations"`
	LastChecked     Time                   `json:"lastChecked"`
}

type InstanceHealthStatus

type InstanceHealthStatus string
const (
	InstanceHealthStatusHealthy  InstanceHealthStatus = "HEALTHY"
	InstanceHealthStatusWarning  InstanceHealthStatus = "WARNING"
	InstanceHealthStatusCritical InstanceHealthStatus = "CRITICAL"
	InstanceHealthStatusOffline  InstanceHealthStatus = "OFFLINE"
	InstanceHealthStatusUnknown  InstanceHealthStatus = "UNKNOWN"
)

func (InstanceHealthStatus) IsValid

func (e InstanceHealthStatus) IsValid() bool

func (InstanceHealthStatus) MarshalGQL

func (e InstanceHealthStatus) MarshalGQL(w io.Writer)

func (InstanceHealthStatus) MarshalJSON

func (e InstanceHealthStatus) MarshalJSON() ([]byte, error)

func (InstanceHealthStatus) String

func (e InstanceHealthStatus) String() string

func (*InstanceHealthStatus) UnmarshalGQL

func (e *InstanceHealthStatus) UnmarshalGQL(v any) error

func (*InstanceHealthStatus) UnmarshalJSON

func (e *InstanceHealthStatus) UnmarshalJSON(b []byte) error

type InstanceInfo

type InstanceInfo struct {
	Domain            string             `json:"domain"`
	Title             string             `json:"title"`
	ShortDescription  *string            `json:"shortDescription,omitempty"`
	Description       string             `json:"description"`
	Email             *string            `json:"email,omitempty"`
	Version           string             `json:"version"`
	SourceURL         *string            `json:"sourceUrl,omitempty"`
	StreamingURL      *string            `json:"streamingUrl,omitempty"`
	ThumbnailURL      *string            `json:"thumbnailUrl,omitempty"`
	Languages         []string           `json:"languages"`
	RegistrationsOpen bool               `json:"registrationsOpen"`
	ApprovalRequired  bool               `json:"approvalRequired"`
	InvitesEnabled    bool               `json:"invitesEnabled"`
	UserCount         int                `json:"userCount"`
	StatusCount       int                `json:"statusCount"`
	DomainCount       int                `json:"domainCount"`
	ContactAccount    *activitypub.Actor `json:"contactAccount,omitempty"`
	Rules             []*InstanceRule    `json:"rules"`
	Tips              *TipsConfig        `json:"tips"`
}

type InstanceMetadata

type InstanceMetadata struct {
	FirstSeen          Time    `json:"firstSeen"`
	LastActivity       Time    `json:"lastActivity"`
	MonthlyActiveUsers int     `json:"monthlyActiveUsers"`
	RegistrationsOpen  bool    `json:"registrationsOpen"`
	ApprovalRequired   bool    `json:"approvalRequired"`
	PrimaryLanguage    string  `json:"primaryLanguage"`
	Description        *string `json:"description,omitempty"`
}

type InstanceMetrics

type InstanceMetrics struct {
	ActiveUsers          int     `json:"activeUsers"`
	RequestsPerMinute    int     `json:"requestsPerMinute"`
	AverageLatencyMs     float64 `json:"averageLatencyMs"`
	StorageUsedGb        float64 `json:"storageUsedGB"`
	EstimatedMonthlyCost float64 `json:"estimatedMonthlyCost"`
	LastUpdated          Time    `json:"lastUpdated"`
}

type InstanceNode

type InstanceNode struct {
	Domain         string               `json:"domain"`
	DisplayName    string               `json:"displayName"`
	Software       string               `json:"software"`
	Version        string               `json:"version"`
	UserCount      int                  `json:"userCount"`
	StatusCount    int                  `json:"statusCount"`
	FederatingWith int                  `json:"federatingWith"`
	HealthStatus   InstanceHealthStatus `json:"healthStatus"`
	Coordinates    *Coordinates         `json:"coordinates"`
	Metadata       *InstanceMetadata    `json:"metadata"`
}

type InstanceRelations

type InstanceRelations struct {
	Domain              string                      `json:"domain"`
	DirectConnections   []*InstanceConnection       `json:"directConnections"`
	IndirectConnections []*InstanceConnection       `json:"indirectConnections"`
	BlockedBy           []string                    `json:"blockedBy"`
	Blocking            []string                    `json:"blocking"`
	FederationScore     float64                     `json:"federationScore"`
	Recommendations     []*FederationRecommendation `json:"recommendations"`
}

type InstanceRule

type InstanceRule struct {
	ID   string `json:"id"`
	Text string `json:"text"`
}

type IssueSeverity

type IssueSeverity string
const (
	IssueSeverityLow      IssueSeverity = "LOW"
	IssueSeverityMedium   IssueSeverity = "MEDIUM"
	IssueSeverityHigh     IssueSeverity = "HIGH"
	IssueSeverityCritical IssueSeverity = "CRITICAL"
)

func (IssueSeverity) IsValid

func (e IssueSeverity) IsValid() bool

func (IssueSeverity) MarshalGQL

func (e IssueSeverity) MarshalGQL(w io.Writer)

func (IssueSeverity) MarshalJSON

func (e IssueSeverity) MarshalJSON() ([]byte, error)

func (IssueSeverity) String

func (e IssueSeverity) String() string

func (*IssueSeverity) UnmarshalGQL

func (e *IssueSeverity) UnmarshalGQL(v any) error

func (*IssueSeverity) UnmarshalJSON

func (e *IssueSeverity) UnmarshalJSON(b []byte) error

type List

type List struct {
	ID            string               `json:"id"`
	Title         string               `json:"title"`
	RepliesPolicy RepliesPolicy        `json:"repliesPolicy"`
	Exclusive     bool                 `json:"exclusive"`
	AccountCount  int                  `json:"accountCount"`
	Accounts      []*activitypub.Actor `json:"accounts"`
	CreatedAt     Time                 `json:"createdAt"`
	UpdatedAt     Time                 `json:"updatedAt"`
}

type ListUpdate

type ListUpdate struct {
	Type      string             `json:"type"`
	List      *List              `json:"list"`
	Account   *activitypub.Actor `json:"account,omitempty"`
	Timestamp Time               `json:"timestamp"`
}

type Marker

type Marker struct {
	LastReadID string `json:"lastReadId"`
	UpdatedAt  Time   `json:"updatedAt"`
	Version    int    `json:"version"`
}

type MarkerSet

type MarkerSet struct {
	Home          *Marker `json:"home,omitempty"`
	Notifications *Marker `json:"notifications,omitempty"`
}

type MarkerTimeline

type MarkerTimeline string
const (
	MarkerTimelineHome          MarkerTimeline = "HOME"
	MarkerTimelineNotifications MarkerTimeline = "NOTIFICATIONS"
)

func (MarkerTimeline) IsValid

func (e MarkerTimeline) IsValid() bool

func (MarkerTimeline) MarshalGQL

func (e MarkerTimeline) MarshalGQL(w io.Writer)

func (MarkerTimeline) MarshalJSON

func (e MarkerTimeline) MarshalJSON() ([]byte, error)

func (MarkerTimeline) String

func (e MarkerTimeline) String() string

func (*MarkerTimeline) UnmarshalGQL

func (e *MarkerTimeline) UnmarshalGQL(v any) error

func (*MarkerTimeline) UnmarshalJSON

func (e *MarkerTimeline) UnmarshalJSON(b []byte) error

type Media

type Media struct {
	ID            string             `json:"id"`
	Type          MediaType          `json:"type"`
	URL           string             `json:"url"`
	PreviewURL    *string            `json:"previewUrl,omitempty"`
	Description   *string            `json:"description,omitempty"`
	Sensitive     bool               `json:"sensitive"`
	SpoilerText   *string            `json:"spoilerText,omitempty"`
	MediaCategory MediaCategory      `json:"mediaCategory"`
	Blurhash      *string            `json:"blurhash,omitempty"`
	Width         *int               `json:"width,omitempty"`
	Height        *int               `json:"height,omitempty"`
	Duration      *float64           `json:"duration,omitempty"`
	Size          int                `json:"size"`
	MimeType      string             `json:"mimeType"`
	UploadedBy    *activitypub.Actor `json:"uploadedBy"`
	CreatedAt     Time               `json:"createdAt"`
}

type MediaCategory

type MediaCategory string
const (
	MediaCategoryImage    MediaCategory = "IMAGE"
	MediaCategoryVideo    MediaCategory = "VIDEO"
	MediaCategoryAudio    MediaCategory = "AUDIO"
	MediaCategoryGifv     MediaCategory = "GIFV"
	MediaCategoryDocument MediaCategory = "DOCUMENT"
	MediaCategoryUnknown  MediaCategory = "UNKNOWN"
)

func (MediaCategory) IsValid

func (e MediaCategory) IsValid() bool

func (MediaCategory) MarshalGQL

func (e MediaCategory) MarshalGQL(w io.Writer)

func (MediaCategory) MarshalJSON

func (e MediaCategory) MarshalJSON() ([]byte, error)

func (MediaCategory) String

func (e MediaCategory) String() string

func (*MediaCategory) UnmarshalGQL

func (e *MediaCategory) UnmarshalGQL(v any) error

func (*MediaCategory) UnmarshalJSON

func (e *MediaCategory) UnmarshalJSON(b []byte) error

type MediaConnection

type MediaConnection struct {
	Edges      []*MediaEdge `json:"edges"`
	PageInfo   *PageInfo    `json:"pageInfo"`
	TotalCount int          `json:"totalCount"`
}

type MediaEdge

type MediaEdge struct {
	Node   *Media `json:"node"`
	Cursor Cursor `json:"cursor"`
}

type MediaFilterInput

type MediaFilterInput struct {
	OwnerID       *string    `json:"ownerId,omitempty"`
	OwnerUsername *string    `json:"ownerUsername,omitempty"`
	MediaType     *MediaType `json:"mediaType,omitempty"`
	MimeType      *string    `json:"mimeType,omitempty"`
	Since         *Time      `json:"since,omitempty"`
	Until         *Time      `json:"until,omitempty"`
}

type MediaStream

type MediaStream struct {
	ID              string     `json:"id"`
	URL             string     `json:"url"`
	HlsPlaylistURL  *string    `json:"hlsPlaylistUrl,omitempty"`
	DashManifestURL *string    `json:"dashManifestUrl,omitempty"`
	ThumbnailURL    string     `json:"thumbnailUrl"`
	Duration        int        `json:"duration"`
	Bitrates        []*Bitrate `json:"bitrates"`
	ExpiresAt       Time       `json:"expiresAt"`
}

type MediaType

type MediaType string
const (
	MediaTypeImage   MediaType = "IMAGE"
	MediaTypeVideo   MediaType = "VIDEO"
	MediaTypeAudio   MediaType = "AUDIO"
	MediaTypeUnknown MediaType = "UNKNOWN"
)

func (MediaType) IsValid

func (e MediaType) IsValid() bool

func (MediaType) MarshalGQL

func (e MediaType) MarshalGQL(w io.Writer)

func (MediaType) MarshalJSON

func (e MediaType) MarshalJSON() ([]byte, error)

func (MediaType) String

func (e MediaType) String() string

func (*MediaType) UnmarshalGQL

func (e *MediaType) UnmarshalGQL(v any) error

func (*MediaType) UnmarshalJSON

func (e *MediaType) UnmarshalJSON(b []byte) error

type Mention

type Mention struct {
	ID       string  `json:"id"`
	Username string  `json:"username"`
	Domain   *string `json:"domain,omitempty"`
	URL      string  `json:"url"`
}

type MetricsDimension

type MetricsDimension struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type MetricsUpdate

type MetricsUpdate struct {
	MetricID             string              `json:"metricId"`
	ServiceName          string              `json:"serviceName"`
	MetricType           string              `json:"metricType"`
	SubscriptionCategory string              `json:"subscriptionCategory"`
	AggregationLevel     string              `json:"aggregationLevel"`
	Timestamp            Time                `json:"timestamp"`
	Count                int                 `json:"count"`
	Sum                  float64             `json:"sum"`
	Min                  float64             `json:"min"`
	Max                  float64             `json:"max"`
	Average              float64             `json:"average"`
	P50                  *float64            `json:"p50,omitempty"`
	P95                  *float64            `json:"p95,omitempty"`
	P99                  *float64            `json:"p99,omitempty"`
	Unit                 *string             `json:"unit,omitempty"`
	UserCostMicrocents   *int                `json:"userCostMicrocents,omitempty"`
	TotalCostMicrocents  *int                `json:"totalCostMicrocents,omitempty"`
	Dimensions           []*MetricsDimension `json:"dimensions"`
	UserID               *string             `json:"userId,omitempty"`
	TenantID             *string             `json:"tenantId,omitempty"`
	InstanceDomain       *string             `json:"instanceDomain,omitempty"`
}

type ModerationAction

type ModerationAction string
const (
	ModerationActionNone      ModerationAction = "NONE"
	ModerationActionFlag      ModerationAction = "FLAG"
	ModerationActionHide      ModerationAction = "HIDE"
	ModerationActionRemove    ModerationAction = "REMOVE"
	ModerationActionShadowBan ModerationAction = "SHADOW_BAN"
	ModerationActionReview    ModerationAction = "REVIEW"
)

func (ModerationAction) IsValid

func (e ModerationAction) IsValid() bool

func (ModerationAction) MarshalGQL

func (e ModerationAction) MarshalGQL(w io.Writer)

func (ModerationAction) MarshalJSON

func (e ModerationAction) MarshalJSON() ([]byte, error)

func (ModerationAction) String

func (e ModerationAction) String() string

func (*ModerationAction) UnmarshalGQL

func (e *ModerationAction) UnmarshalGQL(v any) error

func (*ModerationAction) UnmarshalJSON

func (e *ModerationAction) UnmarshalJSON(b []byte) error

type ModerationActionCounts

type ModerationActionCounts struct {
	None      int `json:"none"`
	Flag      int `json:"flag"`
	Hide      int `json:"hide"`
	Remove    int `json:"remove"`
	ShadowBan int `json:"shadowBan"`
	Review    int `json:"review"`
}

type ModerationAlert

type ModerationAlert struct {
	ID              string                        `json:"id"`
	Severity        ModerationSeverity            `json:"severity"`
	Pattern         *moderation.ModerationPattern `json:"pattern,omitempty"`
	Content         *Object                       `json:"content"`
	MatchedText     string                        `json:"matchedText"`
	Confidence      float64                       `json:"confidence"`
	SuggestedAction ModerationAction              `json:"suggestedAction"`
	Timestamp       Time                          `json:"timestamp"`
	Handled         bool                          `json:"handled"`
}

type ModerationConsensusResult

type ModerationConsensusResult struct {
	EventID         string                       `json:"eventId"`
	ObjectID        string                       `json:"objectId"`
	Category        string                       `json:"category"`
	Severity        int                          `json:"severity"`
	ConfidenceScore float64                      `json:"confidenceScore"`
	Reviews         []*ModerationConsensusReview `json:"reviews"`
	ReviewerCount   int                          `json:"reviewerCount"`
	ConsensusScore  *float64                     `json:"consensusScore,omitempty"`
	Decision        *string                      `json:"decision,omitempty"`
	DecidedAt       *Time                        `json:"decidedAt,omitempty"`
}

type ModerationConsensusReview

type ModerationConsensusReview struct {
	ReviewerID     string  `json:"reviewerId"`
	ReviewerDomain *string `json:"reviewerDomain,omitempty"`
	Action         string  `json:"action"`
	Confidence     float64 `json:"confidence"`
	TrustWeight    float64 `json:"trustWeight"`
	ReviewedAt     Time    `json:"reviewedAt"`
}

type ModerationDashboard

type ModerationDashboard struct {
	PendingReviews      int                              `json:"pendingReviews"`
	RecentDecisions     []*moderation.ModerationDecision `json:"recentDecisions"`
	TopPatterns         []*PatternStats                  `json:"topPatterns"`
	FalsePositiveRate   float64                          `json:"falsePositiveRate"`
	AverageResponseTime Duration                         `json:"averageResponseTime"`
	ThreatTrends        []*ThreatTrend                   `json:"threatTrends"`
}

type ModerationEffectiveness

type ModerationEffectiveness struct {
	PatternID      string  `json:"patternId"`
	MatchCount     int     `json:"matchCount"`
	TruePositives  int     `json:"truePositives"`
	FalsePositives int     `json:"falsePositives"`
	MissedCount    int     `json:"missedCount"`
	Precision      float64 `json:"precision"`
	Recall         float64 `json:"recall"`
	F1Score        float64 `json:"f1Score"`
}

type ModerationHistoryDecision

type ModerationHistoryDecision struct {
	ID               string  `json:"id"`
	EventID          string  `json:"eventId"`
	ObjectID         string  `json:"objectId"`
	Action           string  `json:"action"`
	ConsensusScore   float64 `json:"consensusScore"`
	ReviewerCount    int     `json:"reviewerCount"`
	TrustWeightTotal float64 `json:"trustWeightTotal"`
	DecidedAt        Time    `json:"decidedAt"`
}

type ModerationHistoryEvent

type ModerationHistoryEvent struct {
	ID              string  `json:"id"`
	EventType       string  `json:"eventType"`
	ObjectID        string  `json:"objectId"`
	ObjectType      string  `json:"objectType"`
	ActorID         string  `json:"actorId"`
	Category        string  `json:"category"`
	Severity        int     `json:"severity"`
	ConfidenceScore float64 `json:"confidenceScore"`
	Reason          *string `json:"reason,omitempty"`
	CreatedAt       Time    `json:"createdAt"`
	UpdatedAt       Time    `json:"updatedAt"`
}

type ModerationHistoryResult

type ModerationHistoryResult struct {
	ObjectID      string                            `json:"objectId"`
	Events        []*ModerationHistoryEvent         `json:"events"`
	Decisions     []*ModerationHistoryDecision      `json:"decisions"`
	Timeline      []*ModerationHistoryTimelineEntry `json:"timeline"`
	CurrentStatus string                            `json:"currentStatus"`
	LastUpdated   Time                              `json:"lastUpdated"`
}

type ModerationHistoryTimelineEntry

type ModerationHistoryTimelineEntry struct {
	Timestamp Time                       `json:"timestamp"`
	Type      string                     `json:"type"`
	Event     *ModerationHistoryEvent    `json:"event,omitempty"`
	Decision  *ModerationHistoryDecision `json:"decision,omitempty"`
}

type ModerationItem

type ModerationItem struct {
	ID          string             `json:"id"`
	Content     *Object            `json:"content"`
	ReportCount int                `json:"reportCount"`
	Severity    ModerationSeverity `json:"severity"`
	Priority    Priority           `json:"priority"`
	AssignedTo  *activitypub.Actor `json:"assignedTo,omitempty"`
	Deadline    Time               `json:"deadline"`
}

type ModerationPatternInput

type ModerationPatternInput struct {
	Pattern  string             `json:"pattern"`
	Type     PatternType        `json:"type"`
	Severity ModerationSeverity `json:"severity"`
	Active   *bool              `json:"active,omitempty"`
}

type ModerationPeriod

type ModerationPeriod string
const (
	ModerationPeriodHourly  ModerationPeriod = "HOURLY"
	ModerationPeriodDaily   ModerationPeriod = "DAILY"
	ModerationPeriodWeekly  ModerationPeriod = "WEEKLY"
	ModerationPeriodMonthly ModerationPeriod = "MONTHLY"
)

func (ModerationPeriod) IsValid

func (e ModerationPeriod) IsValid() bool

func (ModerationPeriod) MarshalGQL

func (e ModerationPeriod) MarshalGQL(w io.Writer)

func (ModerationPeriod) MarshalJSON

func (e ModerationPeriod) MarshalJSON() ([]byte, error)

func (ModerationPeriod) String

func (e ModerationPeriod) String() string

func (*ModerationPeriod) UnmarshalGQL

func (e *ModerationPeriod) UnmarshalGQL(v any) error

func (*ModerationPeriod) UnmarshalJSON

func (e *ModerationPeriod) UnmarshalJSON(b []byte) error

type ModerationReviewInput

type ModerationReviewInput struct {
	EventID    string  `json:"eventId"`
	Action     string  `json:"action"`
	Severity   int     `json:"severity"`
	Confidence float64 `json:"confidence"`
	Notes      *string `json:"notes,omitempty"`
}

type ModerationReviewResult

type ModerationReviewResult struct {
	ReviewID   string `json:"reviewId"`
	EventID    string `json:"eventId"`
	Action     string `json:"action"`
	ReviewedAt Time   `json:"reviewedAt"`
}

type ModerationSampleInput

type ModerationSampleInput struct {
	ObjectID   string  `json:"objectId"`
	ObjectType string  `json:"objectType"`
	Label      string  `json:"label"`
	Confidence float64 `json:"confidence"`
}

type ModerationSeverity

type ModerationSeverity string
const (
	ModerationSeverityInfo     ModerationSeverity = "INFO"
	ModerationSeverityLow      ModerationSeverity = "LOW"
	ModerationSeverityMedium   ModerationSeverity = "MEDIUM"
	ModerationSeverityHigh     ModerationSeverity = "HIGH"
	ModerationSeverityCritical ModerationSeverity = "CRITICAL"
)

func (ModerationSeverity) IsValid

func (e ModerationSeverity) IsValid() bool

func (ModerationSeverity) MarshalGQL

func (e ModerationSeverity) MarshalGQL(w io.Writer)

func (ModerationSeverity) MarshalJSON

func (e ModerationSeverity) MarshalJSON() ([]byte, error)

func (ModerationSeverity) String

func (e ModerationSeverity) String() string

func (*ModerationSeverity) UnmarshalGQL

func (e *ModerationSeverity) UnmarshalGQL(v any) error

func (*ModerationSeverity) UnmarshalJSON

func (e *ModerationSeverity) UnmarshalJSON(b []byte) error

type ModerationTrustScore

type ModerationTrustScore struct {
	ActorID      string                `json:"actorId"`
	ActorDomain  *string               `json:"actorDomain,omitempty"`
	OverallScore float64               `json:"overallScore"`
	Scores       []*TrustCategoryScore `json:"scores"`
	TrusterCount int                   `json:"trusterCount"`
	CalculatedAt Time                  `json:"calculatedAt"`
}

type ModeratorStats

type ModeratorStats struct {
	ModeratorID     string           `json:"moderatorId"`
	Period          TimePeriod       `json:"period"`
	DecisionsCount  int              `json:"decisionsCount"`
	AvgResponseTime Duration         `json:"avgResponseTime"`
	Accuracy        float64          `json:"accuracy"`
	Overturned      int              `json:"overturned"`
	Categories      []*CategoryStats `json:"categories"`
}

type Mutation

type Mutation struct {
}

type MuteHashtagPayload

type MuteHashtagPayload struct {
	Success    bool     `json:"success"`
	Hashtag    *Hashtag `json:"hashtag"`
	MutedUntil *Time    `json:"mutedUntil,omitempty"`
}

type Notification

type Notification struct {
	ID        string             `json:"id"`
	Type      string             `json:"type"`
	Account   *activitypub.Actor `json:"account"`
	Status    *Object            `json:"status,omitempty"`
	Read      bool               `json:"read"`
	CreatedAt Time               `json:"createdAt"`
}

type NotificationConnection

type NotificationConnection struct {
	Edges      []*NotificationEdge `json:"edges"`
	PageInfo   *PageInfo           `json:"pageInfo"`
	TotalCount int                 `json:"totalCount"`
}

type NotificationEdge

type NotificationEdge struct {
	Node   *Notification `json:"node"`
	Cursor Cursor        `json:"cursor"`
}

type NotificationFilter

type NotificationFilter struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

type NotificationFilterInput

type NotificationFilterInput struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

type NotificationLevel

type NotificationLevel string
const (
	NotificationLevelAll       NotificationLevel = "ALL"
	NotificationLevelMutuals   NotificationLevel = "MUTUALS"
	NotificationLevelFollowing NotificationLevel = "FOLLOWING"
	NotificationLevelNone      NotificationLevel = "NONE"
)

func (NotificationLevel) IsValid

func (e NotificationLevel) IsValid() bool

func (NotificationLevel) MarshalGQL

func (e NotificationLevel) MarshalGQL(w io.Writer)

func (NotificationLevel) MarshalJSON

func (e NotificationLevel) MarshalJSON() ([]byte, error)

func (NotificationLevel) String

func (e NotificationLevel) String() string

func (*NotificationLevel) UnmarshalGQL

func (e *NotificationLevel) UnmarshalGQL(v any) error

func (*NotificationLevel) UnmarshalJSON

func (e *NotificationLevel) UnmarshalJSON(b []byte) error

type NotificationPreferences

type NotificationPreferences struct {
	Email  bool            `json:"email"`
	Push   bool            `json:"push"`
	InApp  bool            `json:"inApp"`
	Digest DigestFrequency `json:"digest"`
}

type Object

type Object struct {
	ID               string                            `json:"id"`
	Type             ObjectType                        `json:"type"`
	Actor            *activitypub.Actor                `json:"actor"`
	Content          string                            `json:"content"`
	ContentMap       []*ContentMap                     `json:"contentMap"`
	InReplyTo        *Object                           `json:"inReplyTo,omitempty"`
	Visibility       Visibility                        `json:"visibility"`
	Sensitive        bool                              `json:"sensitive"`
	SpoilerText      *string                           `json:"spoilerText,omitempty"`
	Attachments      []*activitypub.Attachment         `json:"attachments"`
	Tags             []*activitypub.Tag                `json:"tags"`
	Mentions         []*Mention                        `json:"mentions"`
	CreatedAt        Time                              `json:"createdAt"`
	UpdatedAt        Time                              `json:"updatedAt"`
	Poll             *Poll                             `json:"poll,omitempty"`
	RepliesCount     int                               `json:"repliesCount"`
	LikesCount       int                               `json:"likesCount"`
	SharesCount      int                               `json:"sharesCount"`
	Boosted          bool                              `json:"boosted"`
	ViewerFavourited bool                              `json:"viewerFavourited"`
	ViewerBookmarked bool                              `json:"viewerBookmarked"`
	ViewerPinned     bool                              `json:"viewerPinned"`
	RelationshipType ObjectRelationshipType            `json:"relationshipType"`
	BoostedObject    *Object                           `json:"boostedObject,omitempty"`
	ContentHash      string                            `json:"contentHash"`
	EstimatedCost    int                               `json:"estimatedCost"`
	ModerationScore  *float64                          `json:"moderationScore,omitempty"`
	CommunityNotes   []*CommunityNote                  `json:"communityNotes"`
	AgentAttribution *activitypub.AgentPostAttribution `json:"agentAttribution,omitempty"`
	QuoteURL         *string                           `json:"quoteUrl,omitempty"`
	Quoteable        bool                              `json:"quoteable"`
	QuotePermissions QuotePermission                   `json:"quotePermissions"`
	QuoteContext     *activitypub.QuoteContext         `json:"quoteContext,omitempty"`
	QuoteCount       int                               `json:"quoteCount"`
	Quotes           *QuoteConnection                  `json:"quotes"`
}

type ObjectConnection

type ObjectConnection struct {
	Edges      []*ObjectEdge `json:"edges"`
	PageInfo   *PageInfo     `json:"pageInfo"`
	TotalCount int           `json:"totalCount"`
}

type ObjectEdge

type ObjectEdge struct {
	Node   *Object `json:"node"`
	Cursor Cursor  `json:"cursor"`
}

type ObjectExplanation

type ObjectExplanation struct {
	Object          *Object      `json:"object"`
	StorageLocation string       `json:"storageLocation"`
	SizeBytes       int          `json:"sizeBytes"`
	StorageCost     float64      `json:"storageCost"`
	AccessPattern   []*AccessLog `json:"accessPattern"`
}

type ObjectRelationshipType

type ObjectRelationshipType string
const (
	ObjectRelationshipTypeOriginal ObjectRelationshipType = "ORIGINAL"
	ObjectRelationshipTypeBoost    ObjectRelationshipType = "BOOST"
)

func (ObjectRelationshipType) IsValid

func (e ObjectRelationshipType) IsValid() bool

func (ObjectRelationshipType) MarshalGQL

func (e ObjectRelationshipType) MarshalGQL(w io.Writer)

func (ObjectRelationshipType) MarshalJSON

func (e ObjectRelationshipType) MarshalJSON() ([]byte, error)

func (ObjectRelationshipType) String

func (e ObjectRelationshipType) String() string

func (*ObjectRelationshipType) UnmarshalGQL

func (e *ObjectRelationshipType) UnmarshalGQL(v any) error

func (*ObjectRelationshipType) UnmarshalJSON

func (e *ObjectRelationshipType) UnmarshalJSON(b []byte) error

type ObjectType

type ObjectType string
const (
	ObjectTypeNote     ObjectType = "NOTE"
	ObjectTypeArticle  ObjectType = "ARTICLE"
	ObjectTypeImage    ObjectType = "IMAGE"
	ObjectTypeVideo    ObjectType = "VIDEO"
	ObjectTypeQuestion ObjectType = "QUESTION"
	ObjectTypeEvent    ObjectType = "EVENT"
	ObjectTypePage     ObjectType = "PAGE"
)

func (ObjectType) IsValid

func (e ObjectType) IsValid() bool

func (ObjectType) MarshalGQL

func (e ObjectType) MarshalGQL(w io.Writer)

func (ObjectType) MarshalJSON

func (e ObjectType) MarshalJSON() ([]byte, error)

func (ObjectType) String

func (e ObjectType) String() string

func (*ObjectType) UnmarshalGQL

func (e *ObjectType) UnmarshalGQL(v any) error

func (*ObjectType) UnmarshalJSON

func (e *ObjectType) UnmarshalJSON(b []byte) error

type OptimizationAction

type OptimizationAction struct {
	Domain     string  `json:"domain"`
	Action     string  `json:"action"`
	SavingsUsd float64 `json:"savingsUSD"`
	Impact     string  `json:"impact"`
}

type PageInfo

type PageInfo struct {
	HasNextPage     bool    `json:"hasNextPage"`
	HasPreviousPage bool    `json:"hasPreviousPage"`
	StartCursor     *Cursor `json:"startCursor,omitempty"`
	EndCursor       *Cursor `json:"endCursor,omitempty"`
}

type PatternStats

type PatternStats struct {
	Pattern    *moderation.ModerationPattern `json:"pattern"`
	MatchCount int                           `json:"matchCount"`
	Accuracy   float64                       `json:"accuracy"`
	LastMatch  Time                          `json:"lastMatch"`
	Trend      Trend                         `json:"trend"`
}

type PatternType

type PatternType string
const (
	PatternTypeRegex     PatternType = "REGEX"
	PatternTypeKeyword   PatternType = "KEYWORD"
	PatternTypePhrase    PatternType = "PHRASE"
	PatternTypeMlPattern PatternType = "ML_PATTERN"
)

func (PatternType) IsValid

func (e PatternType) IsValid() bool

func (PatternType) MarshalGQL

func (e PatternType) MarshalGQL(w io.Writer)

func (PatternType) MarshalJSON

func (e PatternType) MarshalJSON() ([]byte, error)

func (PatternType) String

func (e PatternType) String() string

func (*PatternType) UnmarshalGQL

func (e *PatternType) UnmarshalGQL(v any) error

func (*PatternType) UnmarshalJSON

func (e *PatternType) UnmarshalJSON(b []byte) error

type PerformanceAlert

type PerformanceAlert struct {
	ID          string          `json:"id"`
	Service     ServiceCategory `json:"service"`
	Metric      string          `json:"metric"`
	Threshold   float64         `json:"threshold"`
	ActualValue float64         `json:"actualValue"`
	Severity    AlertSeverity   `json:"severity"`
	Timestamp   Time            `json:"timestamp"`
}

type PerformanceReport

type PerformanceReport struct {
	Service    ServiceCategory `json:"service"`
	P50Latency Duration        `json:"p50Latency"`
	P95Latency Duration        `json:"p95Latency"`
	P99Latency Duration        `json:"p99Latency"`
	ErrorRate  float64         `json:"errorRate"`
	Throughput float64         `json:"throughput"`
	ColdStarts int             `json:"coldStarts"`
	Period     TimePeriod      `json:"period"`
}

type Period

type Period string
const (
	PeriodHour  Period = "HOUR"
	PeriodDay   Period = "DAY"
	PeriodWeek  Period = "WEEK"
	PeriodMonth Period = "MONTH"
	PeriodYear  Period = "YEAR"
)

func (Period) IsValid

func (e Period) IsValid() bool

func (Period) MarshalGQL

func (e Period) MarshalGQL(w io.Writer)

func (Period) MarshalJSON

func (e Period) MarshalJSON() ([]byte, error)

func (Period) String

func (e Period) String() string

func (*Period) UnmarshalGQL

func (e *Period) UnmarshalGQL(v any) error

func (*Period) UnmarshalJSON

func (e *Period) UnmarshalJSON(b []byte) error

type Poll

type Poll struct {
	ID          string        `json:"id"`
	ExpiresAt   *Time         `json:"expiresAt,omitempty"`
	Expired     bool          `json:"expired"`
	Multiple    bool          `json:"multiple"`
	HideTotals  bool          `json:"hideTotals"`
	VotesCount  int           `json:"votesCount"`
	VotersCount int           `json:"votersCount"`
	Voted       bool          `json:"voted"`
	OwnVotes    []int         `json:"ownVotes,omitempty"`
	Options     []*PollOption `json:"options"`
}

type PollOption

type PollOption struct {
	Title      string `json:"title"`
	VotesCount int    `json:"votesCount"`
}

type PollParams

type PollParams struct {
	Options    []string `json:"options"`
	ExpiresIn  int      `json:"expiresIn"`
	Multiple   *bool    `json:"multiple,omitempty"`
	HideTotals *bool    `json:"hideTotals,omitempty"`
}

type PollParamsInput

type PollParamsInput struct {
	Options    []string `json:"options"`
	ExpiresIn  int      `json:"expiresIn"`
	Multiple   *bool    `json:"multiple,omitempty"`
	HideTotals *bool    `json:"hideTotals,omitempty"`
}

type PortableReputation

type PortableReputation struct {
	Context     []string    `json:"context"`
	Type        string      `json:"type"`
	Actor       string      `json:"actor"`
	Reputation  *Reputation `json:"reputation"`
	Vouches     []*Vouch    `json:"vouches"`
	IssuedAt    Time        `json:"issuedAt"`
	ExpiresAt   Time        `json:"expiresAt"`
	Issuer      string      `json:"issuer"`
	IssuerProof string      `json:"issuerProof"`
}

type PostConnection

type PostConnection struct {
	Edges      []*PostEdge `json:"edges"`
	PageInfo   *PageInfo   `json:"pageInfo"`
	TotalCount int         `json:"totalCount"`
}

type PostEdge

type PostEdge struct {
	Node   *Object `json:"node"`
	Cursor Cursor  `json:"cursor"`
}

type PostingPreferences

type PostingPreferences struct {
	DefaultVisibility Visibility `json:"defaultVisibility"`
	DefaultSensitive  bool       `json:"defaultSensitive"`
	DefaultLanguage   string     `json:"defaultLanguage"`
}

type Priority

type Priority string
const (
	PriorityLow      Priority = "LOW"
	PriorityMedium   Priority = "MEDIUM"
	PriorityHigh     Priority = "HIGH"
	PriorityCritical Priority = "CRITICAL"
)

func (Priority) IsValid

func (e Priority) IsValid() bool

func (Priority) MarshalGQL

func (e Priority) MarshalGQL(w io.Writer)

func (Priority) MarshalJSON

func (e Priority) MarshalJSON() ([]byte, error)

func (Priority) String

func (e Priority) String() string

func (*Priority) UnmarshalGQL

func (e *Priority) UnmarshalGQL(v any) error

func (*Priority) UnmarshalJSON

func (e *Priority) UnmarshalJSON(b []byte) error

type PrivacyPreferences

type PrivacyPreferences struct {
	DefaultVisibility  Visibility         `json:"defaultVisibility"`
	Indexable          bool               `json:"indexable"`
	ShowOnlineStatus   bool               `json:"showOnlineStatus"`
	DirectMessagesFrom DirectMessagesFrom `json:"directMessagesFrom"`
}

type ProfileDirectory

type ProfileDirectory struct {
	Accounts   []*activitypub.Actor `json:"accounts"`
	TotalCount int                  `json:"totalCount"`
}

type ProfileFieldInput

type ProfileFieldInput struct {
	Name       string `json:"name"`
	Value      string `json:"value"`
	VerifiedAt *Time  `json:"verifiedAt,omitempty"`
}

type Publication

type Publication struct {
	ID          string  `json:"id"`
	Name        string  `json:"name"`
	Tagline     *string `json:"tagline"`
	Description *string `json:"description"`
	Slug        string  `json:"slug"`

	LogoURL      *string `json:"logoUrl"`
	BannerURL    *string `json:"bannerUrl"`
	CustomDomain *string `json:"customDomain"`

	Actor   *activitypub.Actor   `json:"actor"`
	Members []*PublicationMember `json:"members"`

	CreatedAt Time `json:"createdAt"`
	UpdatedAt Time `json:"updatedAt"`
}

Publication is a group/brand that can own articles and members.

type PublicationMember

type PublicationMember struct {
	User        *activitypub.Actor `json:"user"`
	Role        PublicationRole    `json:"role"`
	DisplayName *string            `json:"displayName"`
	Bio         *string            `json:"bio"`
	JoinedAt    Time               `json:"joinedAt"`
}

PublicationMember associates a user with a role in a publication.

type PublicationRole

type PublicationRole string

PublicationRole defines the role granted to a publication member.

const (
	// PublicationRoleOwner can manage settings and members.
	PublicationRoleOwner PublicationRole = "OWNER"
	// PublicationRoleEditor can edit and publish content.
	PublicationRoleEditor PublicationRole = "EDITOR"
	// PublicationRoleWriter can create and edit their own content.
	PublicationRoleWriter PublicationRole = "WRITER"
	// PublicationRoleContributor can contribute content with limited privileges.
	PublicationRoleContributor PublicationRole = "CONTRIBUTOR"
)

type PushSubscription

type PushSubscription struct {
	ID        string                  `json:"id"`
	Endpoint  string                  `json:"endpoint"`
	Keys      *PushSubscriptionKeys   `json:"keys"`
	Alerts    *PushSubscriptionAlerts `json:"alerts"`
	Policy    string                  `json:"policy"`
	ServerKey *string                 `json:"serverKey,omitempty"`
	CreatedAt *Time                   `json:"createdAt,omitempty"`
	UpdatedAt *Time                   `json:"updatedAt,omitempty"`
}

type PushSubscriptionAlerts

type PushSubscriptionAlerts struct {
	Follow        bool `json:"follow"`
	Favourite     bool `json:"favourite"`
	Reblog        bool `json:"reblog"`
	Mention       bool `json:"mention"`
	Poll          bool `json:"poll"`
	FollowRequest bool `json:"followRequest"`
	Status        bool `json:"status"`
	Update        bool `json:"update"`
	AdminSignUp   bool `json:"adminSignUp"`
	AdminReport   bool `json:"adminReport"`
}

type PushSubscriptionAlertsInput

type PushSubscriptionAlertsInput struct {
	Follow        *bool `json:"follow,omitempty"`
	Favourite     *bool `json:"favourite,omitempty"`
	Reblog        *bool `json:"reblog,omitempty"`
	Mention       *bool `json:"mention,omitempty"`
	Poll          *bool `json:"poll,omitempty"`
	FollowRequest *bool `json:"followRequest,omitempty"`
	Status        *bool `json:"status,omitempty"`
	Update        *bool `json:"update,omitempty"`
	AdminSignUp   *bool `json:"adminSignUp,omitempty"`
	AdminReport   *bool `json:"adminReport,omitempty"`
}

type PushSubscriptionKeys

type PushSubscriptionKeys struct {
	Auth   string `json:"auth"`
	P256dh string `json:"p256dh"`
}

type PushSubscriptionKeysInput

type PushSubscriptionKeysInput struct {
	Auth   string `json:"auth"`
	P256dh string `json:"p256dh"`
}

type QualityBandwidth

type QualityBandwidth struct {
	Quality    StreamQuality `json:"quality"`
	TotalGb    float64       `json:"totalGB"`
	Percentage float64       `json:"percentage"`
}

type QualityStats

type QualityStats struct {
	Quality      StreamQuality `json:"quality"`
	ViewCount    int           `json:"viewCount"`
	Percentage   float64       `json:"percentage"`
	AvgBandwidth float64       `json:"avgBandwidth"`
}

type Query

type Query struct {
}

type QueryPerformance

type QueryPerformance struct {
	Query       string   `json:"query"`
	Count       int      `json:"count"`
	AvgDuration Duration `json:"avgDuration"`
	P95Duration Duration `json:"p95Duration"`
	ErrorCount  int      `json:"errorCount"`
	LastSeen    Time     `json:"lastSeen"`
}

type QueueStatus

type QueueStatus struct {
	Name           string  `json:"name"`
	Depth          int     `json:"depth"`
	ProcessingRate float64 `json:"processingRate"`
	OldestMessage  *Time   `json:"oldestMessage,omitempty"`
	DlqCount       int     `json:"dlqCount"`
}

type QuoteActivityUpdate

type QuoteActivityUpdate struct {
	Type      string             `json:"type"`
	Quote     *Object            `json:"quote,omitempty"`
	Quoter    *activitypub.Actor `json:"quoter,omitempty"`
	Timestamp Time               `json:"timestamp"`
}

type QuoteConnection

type QuoteConnection struct {
	Edges      []*QuoteEdge `json:"edges"`
	PageInfo   *PageInfo    `json:"pageInfo"`
	TotalCount int          `json:"totalCount"`
}

type QuoteEdge

type QuoteEdge struct {
	Node   *Object `json:"node"`
	Cursor Cursor  `json:"cursor"`
}

type QuotePermission

type QuotePermission string
const (
	QuotePermissionEveryone  QuotePermission = "EVERYONE"
	QuotePermissionFollowers QuotePermission = "FOLLOWERS"
	QuotePermissionNone      QuotePermission = "NONE"
)

func (QuotePermission) IsValid

func (e QuotePermission) IsValid() bool

func (QuotePermission) MarshalGQL

func (e QuotePermission) MarshalGQL(w io.Writer)

func (QuotePermission) MarshalJSON

func (e QuotePermission) MarshalJSON() ([]byte, error)

func (QuotePermission) String

func (e QuotePermission) String() string

func (*QuotePermission) UnmarshalGQL

func (e *QuotePermission) UnmarshalGQL(v any) error

func (*QuotePermission) UnmarshalJSON

func (e *QuotePermission) UnmarshalJSON(b []byte) error

type QuoteType

type QuoteType string
const (
	QuoteTypeFull       QuoteType = "FULL"
	QuoteTypePartial    QuoteType = "PARTIAL"
	QuoteTypeCommentary QuoteType = "COMMENTARY"
	QuoteTypeReaction   QuoteType = "REACTION"
)

func (QuoteType) IsValid

func (e QuoteType) IsValid() bool

func (QuoteType) MarshalGQL

func (e QuoteType) MarshalGQL(w io.Writer)

func (QuoteType) MarshalJSON

func (e QuoteType) MarshalJSON() ([]byte, error)

func (QuoteType) String

func (e QuoteType) String() string

func (*QuoteType) UnmarshalGQL

func (e *QuoteType) UnmarshalGQL(v any) error

func (*QuoteType) UnmarshalJSON

func (e *QuoteType) UnmarshalJSON(b []byte) error

type ReadingPreferences

type ReadingPreferences struct {
	ExpandSpoilers bool                  `json:"expandSpoilers"`
	ExpandMedia    ExpandMediaPreference `json:"expandMedia"`
	AutoplayGifs   bool                  `json:"autoplayGifs"`
	TimelineOrder  TimelineOrder         `json:"timelineOrder"`
}

type ReblogFilter

type ReblogFilter struct {
	Key     string `json:"key"`
	Enabled bool   `json:"enabled"`
}

type ReblogFilterInput

type ReblogFilterInput struct {
	Key     string `json:"key"`
	Enabled bool   `json:"enabled"`
}

type RecommendationType

type RecommendationType string
const (
	RecommendationTypePerformance  RecommendationType = "PERFORMANCE"
	RecommendationTypeCost         RecommendationType = "COST"
	RecommendationTypeSecurity     RecommendationType = "SECURITY"
	RecommendationTypeConnectivity RecommendationType = "CONNECTIVITY"
	RecommendationTypeContent      RecommendationType = "CONTENT"
)

func (RecommendationType) IsValid

func (e RecommendationType) IsValid() bool

func (RecommendationType) MarshalGQL

func (e RecommendationType) MarshalGQL(w io.Writer)

func (RecommendationType) MarshalJSON

func (e RecommendationType) MarshalJSON() ([]byte, error)

func (RecommendationType) String

func (e RecommendationType) String() string

func (*RecommendationType) UnmarshalGQL

func (e *RecommendationType) UnmarshalGQL(v any) error

func (*RecommendationType) UnmarshalJSON

func (e *RecommendationType) UnmarshalJSON(b []byte) error

type ReconnectionPayload

type ReconnectionPayload struct {
	Success             bool                 `json:"success"`
	SeveredRelationship *SeveredRelationship `json:"severedRelationship"`
	Reconnected         int                  `json:"reconnected"`
	Failed              int                  `json:"failed"`
	Errors              []string             `json:"errors,omitempty"`
}

type RegisterAccountInput

type RegisterAccountInput struct {
	Username                 string      `json:"username"`
	Locale                   *string     `json:"locale,omitempty"`
	Agreement                bool        `json:"agreement"`
	Reason                   *string     `json:"reason,omitempty"`
	DefaultPostingVisibility *Visibility `json:"defaultPostingVisibility,omitempty"`
}

type RegisterAccountPayload

type RegisterAccountPayload struct {
	Actor   *activitypub.Actor `json:"actor"`
	Created bool               `json:"created"`
}

type RegisterAgentInput

type RegisterAgentInput struct {
	Username    string    `json:"username"`
	DisplayName string    `json:"displayName"`
	Bio         *string   `json:"bio,omitempty"`
	AgentType   AgentType `json:"agentType"`
	Version     string    `json:"version"`
	PublicKey   *string   `json:"publicKey,omitempty"`
	KeyType     *string   `json:"keyType,omitempty"`
	Purpose     *string   `json:"purpose,omitempty"`
}

type RegisterAgentPayload

type RegisterAgentPayload struct {
	Agent *Agent `json:"agent"`
}

type RegisterPushSubscriptionInput

type RegisterPushSubscriptionInput struct {
	Endpoint string                       `json:"endpoint"`
	Keys     *PushSubscriptionKeysInput   `json:"keys"`
	Alerts   *PushSubscriptionAlertsInput `json:"alerts"`
}

type Relationship

type Relationship struct {
	ID                  string   `json:"id"`
	Following           bool     `json:"following"`
	FollowedBy          bool     `json:"followedBy"`
	Blocking            bool     `json:"blocking"`
	BlockedBy           bool     `json:"blockedBy"`
	Muting              bool     `json:"muting"`
	MutingNotifications bool     `json:"mutingNotifications"`
	Requested           bool     `json:"requested"`
	DomainBlocking      bool     `json:"domainBlocking"`
	ShowingReblogs      bool     `json:"showingReblogs"`
	Notifying           bool     `json:"notifying"`
	Languages           []string `json:"languages,omitempty"`
	Note                *string  `json:"note,omitempty"`
}

type RelationshipUpdate

type RelationshipUpdate struct {
	Type         string             `json:"type"`
	Relationship *Relationship      `json:"relationship"`
	Actor        *activitypub.Actor `json:"actor"`
	Timestamp    Time               `json:"timestamp"`
}

type RepliesPolicy

type RepliesPolicy string
const (
	RepliesPolicyFollowed RepliesPolicy = "FOLLOWED"
	RepliesPolicyList     RepliesPolicy = "LIST"
	RepliesPolicyNone     RepliesPolicy = "NONE"
)

func (RepliesPolicy) IsValid

func (e RepliesPolicy) IsValid() bool

func (RepliesPolicy) MarshalGQL

func (e RepliesPolicy) MarshalGQL(w io.Writer)

func (RepliesPolicy) MarshalJSON

func (e RepliesPolicy) MarshalJSON() ([]byte, error)

func (RepliesPolicy) String

func (e RepliesPolicy) String() string

func (*RepliesPolicy) UnmarshalGQL

func (e *RepliesPolicy) UnmarshalGQL(v any) error

func (*RepliesPolicy) UnmarshalJSON

func (e *RepliesPolicy) UnmarshalJSON(b []byte) error

type Report

type Report struct {
	ID            string             `json:"id"`
	ActionTaken   bool               `json:"actionTaken"`
	ActionTakenAt *Time              `json:"actionTakenAt,omitempty"`
	Category      string             `json:"category"`
	Comment       *string            `json:"comment,omitempty"`
	Forwarded     bool               `json:"forwarded"`
	CreatedAt     Time               `json:"createdAt"`
	StatusIds     []string           `json:"statusIds"`
	RuleIds       []int              `json:"ruleIds"`
	TargetAccount *activitypub.Actor `json:"targetAccount,omitempty"`
}

type Reputation

type Reputation struct {
	ActorID         string              `json:"actorId"`
	Instance        string              `json:"instance"`
	TotalScore      int                 `json:"totalScore"`
	TrustScore      int                 `json:"trustScore"`
	ActivityScore   int                 `json:"activityScore"`
	ModerationScore int                 `json:"moderationScore"`
	CommunityScore  int                 `json:"communityScore"`
	CalculatedAt    Time                `json:"calculatedAt"`
	Version         string              `json:"version"`
	Evidence        *ReputationEvidence `json:"evidence"`
	Signature       *string             `json:"signature,omitempty"`
}

type ReputationEvidence

type ReputationEvidence struct {
	TotalPosts        int     `json:"totalPosts"`
	TotalFollowers    int     `json:"totalFollowers"`
	AccountAge        int     `json:"accountAge"`
	VouchCount        int     `json:"vouchCount"`
	TrustingActors    int     `json:"trustingActors"`
	AverageTrustScore float64 `json:"averageTrustScore"`
}

type ReputationImportResult

type ReputationImportResult struct {
	Success         bool    `json:"success"`
	ActorID         string  `json:"actorId"`
	PreviousScore   int     `json:"previousScore"`
	ImportedScore   int     `json:"importedScore"`
	VouchesImported int     `json:"vouchesImported"`
	Message         *string `json:"message,omitempty"`
	Error           *string `json:"error,omitempty"`
}

type ReputationVerificationResult

type ReputationVerificationResult struct {
	Valid          bool    `json:"valid"`
	ActorID        string  `json:"actorId"`
	Issuer         string  `json:"issuer"`
	IssuedAt       Time    `json:"issuedAt"`
	ExpiresAt      Time    `json:"expiresAt"`
	SignatureValid bool    `json:"signatureValid"`
	NotExpired     bool    `json:"notExpired"`
	IssuerTrusted  bool    `json:"issuerTrusted"`
	Error          *string `json:"error,omitempty"`
}

type Revision

type Revision struct {
	ID            string             `json:"id"`
	ObjectID      string             `json:"objectId"`
	Version       int                `json:"version"`
	Content       string             `json:"content"`
	MetadataJSON  *string            `json:"metadataJson"`
	ChangedBy     *activitypub.Actor `json:"changedBy"`
	ChangeSummary *string            `json:"changeSummary"`
	ChangeType    ChangeType         `json:"changeType"`
	CreatedAt     Time               `json:"createdAt"`
}

Revision is an immutable snapshot of content at a specific version.

type RevisionConnection

type RevisionConnection struct {
	Edges      []*RevisionEdge `json:"edges"`
	PageInfo   *PageInfo       `json:"pageInfo"`
	TotalCount int             `json:"totalCount"`
}

RevisionConnection is a paginated list of revisions.

type RevisionEdge

type RevisionEdge struct {
	Node   *Revision `json:"node"`
	Cursor Cursor    `json:"cursor"`
}

RevisionEdge is an edge in a RevisionConnection.

type SaveMarkerInput

type SaveMarkerInput struct {
	Timeline   MarkerTimeline `json:"timeline"`
	LastReadID string         `json:"lastReadId"`
}

type ScheduleStatusInput

type ScheduleStatusInput struct {
	Text        string           `json:"text"`
	ScheduledAt Time             `json:"scheduledAt"`
	Visibility  *Visibility      `json:"visibility,omitempty"`
	Sensitive   *bool            `json:"sensitive,omitempty"`
	SpoilerText *string          `json:"spoilerText,omitempty"`
	InReplyToID *string          `json:"inReplyToId,omitempty"`
	Language    *string          `json:"language,omitempty"`
	MediaIds    []string         `json:"mediaIds,omitempty"`
	Poll        *PollParamsInput `json:"poll,omitempty"`
}

type ScheduledStatus

type ScheduledStatus struct {
	ID               string        `json:"id"`
	ScheduledAt      Time          `json:"scheduledAt"`
	Params           *StatusParams `json:"params"`
	MediaAttachments []*Media      `json:"mediaAttachments"`
	CreatedAt        Time          `json:"createdAt"`
}

type SearchResult

type SearchResult struct {
	Accounts []*activitypub.Actor `json:"accounts"`
	Statuses []*Object            `json:"statuses"`
	Hashtags []*activitypub.Tag   `json:"hashtags"`
}

type SendMessagePayload added in v1.1.14

type SendMessagePayload struct {
	Conversation *Conversation `json:"conversation"`
	Message      *Object       `json:"message"`
}

type Sentiment

type Sentiment string
const (
	SentimentPositive Sentiment = "POSITIVE"
	SentimentNegative Sentiment = "NEGATIVE"
	SentimentNeutral  Sentiment = "NEUTRAL"
	SentimentMixed    Sentiment = "MIXED"
)

func (Sentiment) IsValid

func (e Sentiment) IsValid() bool

func (Sentiment) MarshalGQL

func (e Sentiment) MarshalGQL(w io.Writer)

func (Sentiment) MarshalJSON

func (e Sentiment) MarshalJSON() ([]byte, error)

func (Sentiment) String

func (e Sentiment) String() string

func (*Sentiment) UnmarshalGQL

func (e *Sentiment) UnmarshalGQL(v any) error

func (*Sentiment) UnmarshalJSON

func (e *Sentiment) UnmarshalJSON(b []byte) error

type SentimentScores

type SentimentScores struct {
	Positive float64 `json:"positive"`
	Negative float64 `json:"negative"`
	Neutral  float64 `json:"neutral"`
	Mixed    float64 `json:"mixed"`
}

type Series

type Series struct {
	ID     string             `json:"id"`
	Author *activitypub.Actor `json:"author"`

	Title         string  `json:"title"`
	Description   *string `json:"description"`
	Slug          string  `json:"slug"`
	CoverImageURL *string `json:"coverImageUrl"`

	IsComplete   bool `json:"isComplete"`
	ArticleCount int  `json:"articleCount"`

	CreatedAt Time `json:"createdAt"`
	UpdatedAt Time `json:"updatedAt"`
}

Series groups related articles under a shared title and description.

type SeriesConnection

type SeriesConnection struct {
	Edges      []*SeriesEdge `json:"edges"`
	PageInfo   *PageInfo     `json:"pageInfo"`
	TotalCount int           `json:"totalCount"`
}

SeriesConnection is a paginated list of series.

type SeriesEdge

type SeriesEdge struct {
	Node   *Series `json:"node"`
	Cursor Cursor  `json:"cursor"`
}

SeriesEdge is an edge in a SeriesConnection.

type ServiceCategory

type ServiceCategory string
const (
	ServiceCategoryGraphqlAPI         ServiceCategory = "GRAPHQL_API"
	ServiceCategoryFederationDelivery ServiceCategory = "FEDERATION_DELIVERY"
	ServiceCategoryMediaProcessor     ServiceCategory = "MEDIA_PROCESSOR"
	ServiceCategoryModerationEngine   ServiceCategory = "MODERATION_ENGINE"
	ServiceCategorySearchIndexer      ServiceCategory = "SEARCH_INDEXER"
	ServiceCategoryStreamingService   ServiceCategory = "STREAMING_SERVICE"
)

func (ServiceCategory) IsValid

func (e ServiceCategory) IsValid() bool

func (ServiceCategory) MarshalGQL

func (e ServiceCategory) MarshalGQL(w io.Writer)

func (ServiceCategory) MarshalJSON

func (e ServiceCategory) MarshalJSON() ([]byte, error)

func (ServiceCategory) String

func (e ServiceCategory) String() string

func (*ServiceCategory) UnmarshalGQL

func (e *ServiceCategory) UnmarshalGQL(v any) error

func (*ServiceCategory) UnmarshalJSON

func (e *ServiceCategory) UnmarshalJSON(b []byte) error

type ServiceStatus

type ServiceStatus struct {
	Name        string          `json:"name"`
	Type        ServiceCategory `json:"type"`
	Status      HealthStatus    `json:"status"`
	Uptime      float64         `json:"uptime"`
	LastRestart *Time           `json:"lastRestart,omitempty"`
	ErrorRate   float64         `json:"errorRate"`
}

type SeveranceDetails

type SeveranceDetails struct {
	Description  string   `json:"description"`
	Metadata     []string `json:"metadata"`
	AdminNotes   *string  `json:"adminNotes,omitempty"`
	AutoDetected bool     `json:"autoDetected"`
}

type SeveranceReason

type SeveranceReason string
const (
	SeveranceReasonDomainBlock     SeveranceReason = "DOMAIN_BLOCK"
	SeveranceReasonInstanceDown    SeveranceReason = "INSTANCE_DOWN"
	SeveranceReasonDefederation    SeveranceReason = "DEFEDERATION"
	SeveranceReasonPolicyViolation SeveranceReason = "POLICY_VIOLATION"
	SeveranceReasonOther           SeveranceReason = "OTHER"
)

func (SeveranceReason) IsValid

func (e SeveranceReason) IsValid() bool

func (SeveranceReason) MarshalGQL

func (e SeveranceReason) MarshalGQL(w io.Writer)

func (SeveranceReason) MarshalJSON

func (e SeveranceReason) MarshalJSON() ([]byte, error)

func (SeveranceReason) String

func (e SeveranceReason) String() string

func (*SeveranceReason) UnmarshalGQL

func (e *SeveranceReason) UnmarshalGQL(v any) error

func (*SeveranceReason) UnmarshalJSON

func (e *SeveranceReason) UnmarshalJSON(b []byte) error

type SeveredRelationship

type SeveredRelationship struct {
	ID                string            `json:"id"`
	LocalInstance     string            `json:"localInstance"`
	RemoteInstance    string            `json:"remoteInstance"`
	Reason            SeveranceReason   `json:"reason"`
	AffectedFollowers int               `json:"affectedFollowers"`
	AffectedFollowing int               `json:"affectedFollowing"`
	Timestamp         Time              `json:"timestamp"`
	Reversible        bool              `json:"reversible"`
	Details           *SeveranceDetails `json:"details,omitempty"`
}

type SeveredRelationshipConnection

type SeveredRelationshipConnection struct {
	Edges      []*SeveredRelationshipEdge `json:"edges"`
	PageInfo   *PageInfo                  `json:"pageInfo"`
	TotalCount int                        `json:"totalCount"`
}

type SeveredRelationshipEdge

type SeveredRelationshipEdge struct {
	Node   *SeveredRelationship `json:"node"`
	Cursor Cursor               `json:"cursor"`
}

type SpamAnalysis

type SpamAnalysis struct {
	SpamScore       float64          `json:"spamScore"`
	SpamIndicators  []*SpamIndicator `json:"spamIndicators"`
	PostingVelocity float64          `json:"postingVelocity"`
	RepetitionScore float64          `json:"repetitionScore"`
	LinkDensity     float64          `json:"linkDensity"`
	FollowerRatio   float64          `json:"followerRatio"`
	InteractionRate float64          `json:"interactionRate"`
	AccountAgeDays  int              `json:"accountAgeDays"`
}

type SpamIndicator

type SpamIndicator struct {
	Type        string  `json:"type"`
	Description string  `json:"description"`
	Severity    float64 `json:"severity"`
}

type StatusEdit

type StatusEdit struct {
	Content     string             `json:"content"`
	SpoilerText *string            `json:"spoilerText,omitempty"`
	Sensitive   bool               `json:"sensitive"`
	CreatedAt   Time               `json:"createdAt"`
	Account     *activitypub.Actor `json:"account"`
}

type StatusParams

type StatusParams struct {
	Text        string      `json:"text"`
	Visibility  Visibility  `json:"visibility"`
	Sensitive   bool        `json:"sensitive"`
	SpoilerText *string     `json:"spoilerText,omitempty"`
	InReplyToID *string     `json:"inReplyToId,omitempty"`
	Language    *string     `json:"language,omitempty"`
	Poll        *PollParams `json:"poll,omitempty"`
}

type Stream

type Stream struct {
	ID         string        `json:"id"`
	MediaID    string        `json:"mediaId"`
	Title      string        `json:"title"`
	Thumbnail  string        `json:"thumbnail"`
	Duration   Duration      `json:"duration"`
	ViewCount  int           `json:"viewCount"`
	Quality    StreamQuality `json:"quality"`
	Popularity float64       `json:"popularity"`
	CreatedAt  Time          `json:"createdAt"`
}

type StreamConnection

type StreamConnection struct {
	Edges      []*StreamEdge `json:"edges"`
	PageInfo   *PageInfo     `json:"pageInfo"`
	TotalCount int           `json:"totalCount"`
}

type StreamEdge

type StreamEdge struct {
	Node   *Stream `json:"node"`
	Cursor Cursor  `json:"cursor"`
}

type StreamQuality

type StreamQuality string
const (
	StreamQualityAuto   StreamQuality = "AUTO"
	StreamQualityLow    StreamQuality = "LOW"
	StreamQualityMedium StreamQuality = "MEDIUM"
	StreamQualityHigh   StreamQuality = "HIGH"
	StreamQualityUltra  StreamQuality = "ULTRA"
)

func (StreamQuality) IsValid

func (e StreamQuality) IsValid() bool

func (StreamQuality) MarshalGQL

func (e StreamQuality) MarshalGQL(w io.Writer)

func (StreamQuality) MarshalJSON

func (e StreamQuality) MarshalJSON() ([]byte, error)

func (StreamQuality) String

func (e StreamQuality) String() string

func (*StreamQuality) UnmarshalGQL

func (e *StreamQuality) UnmarshalGQL(v any) error

func (*StreamQuality) UnmarshalJSON

func (e *StreamQuality) UnmarshalJSON(b []byte) error

type StreamingAnalytics

type StreamingAnalytics struct {
	TotalViews          int             `json:"totalViews"`
	UniqueViewers       int             `json:"uniqueViewers"`
	AverageWatchTime    Duration        `json:"averageWatchTime"`
	QualityDistribution []*QualityStats `json:"qualityDistribution"`
	BufferingEvents     int             `json:"bufferingEvents"`
	CompletionRate      float64         `json:"completionRate"`
}

type StreamingPreferences

type StreamingPreferences struct {
	DefaultQuality StreamQuality `json:"defaultQuality"`
	AutoQuality    bool          `json:"autoQuality"`
	PreloadNext    bool          `json:"preloadNext"`
	DataSaver      bool          `json:"dataSaver"`
}

type StreamingPreferencesInput

type StreamingPreferencesInput struct {
	DefaultQuality *StreamQuality `json:"defaultQuality,omitempty"`
	AutoQuality    *bool          `json:"autoQuality,omitempty"`
	PreloadNext    *bool          `json:"preloadNext,omitempty"`
	DataSaver      *bool          `json:"dataSaver,omitempty"`
}

type StreamingQualityInput

type StreamingQualityInput struct {
	MediaID         string        `json:"mediaId"`
	Quality         StreamQuality `json:"quality"`
	BufferingEvents int           `json:"bufferingEvents"`
	WatchTime       int           `json:"watchTime"`
}

type StreamingQualityReport

type StreamingQualityReport struct {
	Success  bool          `json:"success"`
	MediaID  string        `json:"mediaId"`
	Quality  StreamQuality `json:"quality"`
	ReportID string        `json:"reportId"`
}

type Subscription

type Subscription struct {
}

type SuggestionSource

type SuggestionSource string
const (
	SuggestionSourceStaff            SuggestionSource = "STAFF"
	SuggestionSourcePastInteractions SuggestionSource = "PAST_INTERACTIONS"
	SuggestionSourceGlobal           SuggestionSource = "GLOBAL"
	SuggestionSourceSimilarProfiles  SuggestionSource = "SIMILAR_PROFILES"
)

func (SuggestionSource) IsValid

func (e SuggestionSource) IsValid() bool

func (SuggestionSource) MarshalGQL

func (e SuggestionSource) MarshalGQL(w io.Writer)

func (SuggestionSource) MarshalJSON

func (e SuggestionSource) MarshalJSON() ([]byte, error)

func (SuggestionSource) String

func (e SuggestionSource) String() string

func (*SuggestionSource) UnmarshalGQL

func (e *SuggestionSource) UnmarshalGQL(v any) error

func (*SuggestionSource) UnmarshalJSON

func (e *SuggestionSource) UnmarshalJSON(b []byte) error

type SyncRepliesPayload

type SyncRepliesPayload struct {
	Success       bool           `json:"success"`
	SyncedReplies int            `json:"syncedReplies"`
	Thread        *ThreadContext `json:"thread"`
}

type SyncStatus

type SyncStatus string
const (
	SyncStatusComplete SyncStatus = "COMPLETE"
	SyncStatusPartial  SyncStatus = "PARTIAL"
	SyncStatusSyncing  SyncStatus = "SYNCING"
	SyncStatusFailed   SyncStatus = "FAILED"
)

func (SyncStatus) IsValid

func (e SyncStatus) IsValid() bool

func (SyncStatus) MarshalGQL

func (e SyncStatus) MarshalGQL(w io.Writer)

func (SyncStatus) MarshalJSON

func (e SyncStatus) MarshalJSON() ([]byte, error)

func (SyncStatus) String

func (e SyncStatus) String() string

func (*SyncStatus) UnmarshalGQL

func (e *SyncStatus) UnmarshalGQL(v any) error

func (*SyncStatus) UnmarshalJSON

func (e *SyncStatus) UnmarshalJSON(b []byte) error

type SyncThreadPayload

type SyncThreadPayload struct {
	Success     bool           `json:"success"`
	Thread      *ThreadContext `json:"thread"`
	SyncedPosts int            `json:"syncedPosts"`
	Errors      []string       `json:"errors,omitempty"`
}

type TOCEntry

type TOCEntry struct {
	ID    string `json:"id"`
	Level int    `json:"level"`
	Text  string `json:"text"`
}

TOCEntry is a table-of-contents entry extracted from article content.

type TextAnalysisCapabilities

type TextAnalysisCapabilities struct {
	SentimentAnalysis bool `json:"sentimentAnalysis"`
	ToxicityDetection bool `json:"toxicityDetection"`
	SpamDetection     bool `json:"spamDetection"`
	PiiDetection      bool `json:"piiDetection"`
	EntityExtraction  bool `json:"entityExtraction"`
	LanguageDetection bool `json:"languageDetection"`
}

type ThreadContext

type ThreadContext struct {
	RootNote         *Object    `json:"rootNote"`
	Ancestors        []*Object  `json:"ancestors"`
	Descendants      []*Object  `json:"descendants"`
	ReplyCount       int        `json:"replyCount"`
	ParticipantCount int        `json:"participantCount"`
	LastActivity     Time       `json:"lastActivity"`
	MissingPosts     int        `json:"missingPosts"`
	SyncStatus       SyncStatus `json:"syncStatus"`
}

type ThreatAlert

type ThreatAlert struct {
	ID                string             `json:"id"`
	Type              string             `json:"type"`
	Severity          ModerationSeverity `json:"severity"`
	Source            string             `json:"source"`
	Description       string             `json:"description"`
	AffectedInstances []string           `json:"affectedInstances"`
	MitigationSteps   []string           `json:"mitigationSteps"`
	Timestamp         Time               `json:"timestamp"`
}

type ThreatTrend

type ThreatTrend struct {
	Type      string             `json:"type"`
	Severity  ModerationSeverity `json:"severity"`
	Count     int                `json:"count"`
	Change    float64            `json:"change"`
	Instances []string           `json:"instances"`
}

type Time

type Time time.Time

Time is a custom GraphQL scalar

func (Time) MarshalGQL

func (t Time) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*Time) UnmarshalGQL

func (t *Time) UnmarshalGQL(v any) error

UnmarshalGQL implements the graphql.Unmarshaler interface

type TimePeriod

type TimePeriod string
const (
	TimePeriodHour  TimePeriod = "HOUR"
	TimePeriodDay   TimePeriod = "DAY"
	TimePeriodWeek  TimePeriod = "WEEK"
	TimePeriodMonth TimePeriod = "MONTH"
)

func (TimePeriod) IsValid

func (e TimePeriod) IsValid() bool

func (TimePeriod) MarshalGQL

func (e TimePeriod) MarshalGQL(w io.Writer)

func (TimePeriod) MarshalJSON

func (e TimePeriod) MarshalJSON() ([]byte, error)

func (TimePeriod) String

func (e TimePeriod) String() string

func (*TimePeriod) UnmarshalGQL

func (e *TimePeriod) UnmarshalGQL(v any) error

func (*TimePeriod) UnmarshalJSON

func (e *TimePeriod) UnmarshalJSON(b []byte) error

type TimelineOrder

type TimelineOrder string
const (
	TimelineOrderNewest TimelineOrder = "NEWEST"
	TimelineOrderOldest TimelineOrder = "OLDEST"
)

func (TimelineOrder) IsValid

func (e TimelineOrder) IsValid() bool

func (TimelineOrder) MarshalGQL

func (e TimelineOrder) MarshalGQL(w io.Writer)

func (TimelineOrder) MarshalJSON

func (e TimelineOrder) MarshalJSON() ([]byte, error)

func (TimelineOrder) String

func (e TimelineOrder) String() string

func (*TimelineOrder) UnmarshalGQL

func (e *TimelineOrder) UnmarshalGQL(v any) error

func (*TimelineOrder) UnmarshalJSON

func (e *TimelineOrder) UnmarshalJSON(b []byte) error

type TimelineType

type TimelineType string
const (
	TimelineTypeHome    TimelineType = "HOME"
	TimelineTypePublic  TimelineType = "PUBLIC"
	TimelineTypeLocal   TimelineType = "LOCAL"
	TimelineTypeHashtag TimelineType = "HASHTAG"
	TimelineTypeList    TimelineType = "LIST"
	TimelineTypeDirect  TimelineType = "DIRECT"
	TimelineTypeActor   TimelineType = "ACTOR"
)

func (TimelineType) IsValid

func (e TimelineType) IsValid() bool

func (TimelineType) MarshalGQL

func (e TimelineType) MarshalGQL(w io.Writer)

func (TimelineType) MarshalJSON

func (e TimelineType) MarshalJSON() ([]byte, error)

func (TimelineType) String

func (e TimelineType) String() string

func (*TimelineType) UnmarshalGQL

func (e *TimelineType) UnmarshalGQL(v any) error

func (*TimelineType) UnmarshalJSON

func (e *TimelineType) UnmarshalJSON(b []byte) error

type TipsConfig added in v1.1.0

type TipsConfig struct {
	Enabled         bool    `json:"enabled"`
	ChainID         *int    `json:"chainId,omitempty"`
	ContractAddress *string `json:"contractAddress,omitempty"`
}

type TrainingResult

type TrainingResult struct {
	Success      bool     `json:"success"`
	Status       string   `json:"status"`
	JobID        string   `json:"jobId"`
	JobName      string   `json:"jobName"`
	DatasetS3Key string   `json:"datasetS3Key"`
	ModelVersion string   `json:"modelVersion"`
	Accuracy     float64  `json:"accuracy"`
	Precision    float64  `json:"precision"`
	Recall       float64  `json:"recall"`
	F1Score      float64  `json:"f1Score"`
	SamplesUsed  int      `json:"samplesUsed"`
	TrainingTime int      `json:"trainingTime"`
	Improvements []string `json:"improvements"`
}

type TranslationLanguage

type TranslationLanguage struct {
	Code string `json:"code"`
	Name string `json:"name"`
}

type TranslationResult

type TranslationResult struct {
	Content          string  `json:"content"`
	SpoilerText      *string `json:"spoilerText,omitempty"`
	DetectedLanguage string  `json:"detectedLanguage"`
	Provider         string  `json:"provider"`
}

type Trend

type Trend string
const (
	TrendIncreasing Trend = "INCREASING"
	TrendStable     Trend = "STABLE"
	TrendDecreasing Trend = "DECREASING"
)

func (Trend) IsValid

func (e Trend) IsValid() bool

func (Trend) MarshalGQL

func (e Trend) MarshalGQL(w io.Writer)

func (Trend) MarshalJSON

func (e Trend) MarshalJSON() ([]byte, error)

func (Trend) String

func (e Trend) String() string

func (*Trend) UnmarshalGQL

func (e *Trend) UnmarshalGQL(v any) error

func (*Trend) UnmarshalJSON

func (e *Trend) UnmarshalJSON(b []byte) error

type TrendingItem

type TrendingItem struct {
	Type    TrendingItemType `json:"type"`
	Hashtag *TrendingTag     `json:"hashtag,omitempty"`
	Status  *TrendingStatus  `json:"status,omitempty"`
	Link    *TrendingLink    `json:"link,omitempty"`
}

type TrendingItemType

type TrendingItemType string
const (
	TrendingItemTypeHashtag TrendingItemType = "HASHTAG"
	TrendingItemTypeStatus  TrendingItemType = "STATUS"
	TrendingItemTypeLink    TrendingItemType = "LINK"
)

func (TrendingItemType) IsValid

func (e TrendingItemType) IsValid() bool

func (TrendingItemType) MarshalGQL

func (e TrendingItemType) MarshalGQL(w io.Writer)

func (TrendingItemType) MarshalJSON

func (e TrendingItemType) MarshalJSON() ([]byte, error)

func (TrendingItemType) String

func (e TrendingItemType) String() string

func (*TrendingItemType) UnmarshalGQL

func (e *TrendingItemType) UnmarshalGQL(v any) error

func (*TrendingItemType) UnmarshalJSON

func (e *TrendingItemType) UnmarshalJSON(b []byte) error
type TrendingLink struct {
	URL         string `json:"url"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Type        string `json:"type"`
	AuthorName  string `json:"authorName"`
	Image       string `json:"image"`
	Shares      int    `json:"shares"`
}

type TrendingStatus

type TrendingStatus struct {
	ID          string `json:"id"`
	URL         string `json:"url"`
	AuthorID    string `json:"authorId"`
	Content     string `json:"content"`
	Engagements int    `json:"engagements"`
	PublishedAt Time   `json:"publishedAt"`
}

type TrendingTag

type TrendingTag struct {
	Name     string `json:"name"`
	URL      string `json:"url"`
	History  []int  `json:"history"`
	Uses     int    `json:"uses"`
	Accounts int    `json:"accounts"`
}

type TrustCategoryScore

type TrustCategoryScore struct {
	Category string  `json:"category"`
	Score    float64 `json:"score"`
}

type TrustInput

type TrustInput struct {
	TargetActorID string               `json:"targetActorId"`
	Category      models.TrustCategory `json:"category"`
	Score         float64              `json:"score"`
}

type UnfollowHashtagPayload

type UnfollowHashtagPayload struct {
	Success bool     `json:"success"`
	Hashtag *Hashtag `json:"hashtag"`
}

type UpdateAccountQuotePermissionsInput

type UpdateAccountQuotePermissionsInput struct {
	AllowPublic    *bool    `json:"allowPublic,omitempty"`
	AllowFollowers *bool    `json:"allowFollowers,omitempty"`
	AllowMentioned *bool    `json:"allowMentioned,omitempty"`
	BlockList      []string `json:"blockList,omitempty"`
}

type UpdateAdminAgentPolicyInput added in v1.1.2

type UpdateAdminAgentPolicyInput struct {
	AllowAgents                    bool     `json:"allowAgents"`
	AllowAgentRegistration         bool     `json:"allowAgentRegistration"`
	DefaultQuarantineDays          int      `json:"defaultQuarantineDays"`
	MaxAgentsPerOwner              int      `json:"maxAgentsPerOwner"`
	AllowRemoteAgents              bool     `json:"allowRemoteAgents"`
	RemoteQuarantineDays           int      `json:"remoteQuarantineDays"`
	BlockedAgentDomains            []string `json:"blockedAgentDomains,omitempty"`
	TrustedAgentDomains            []string `json:"trustedAgentDomains,omitempty"`
	AgentMaxPostsPerHour           int      `json:"agentMaxPostsPerHour"`
	VerifiedAgentMaxPostsPerHour   int      `json:"verifiedAgentMaxPostsPerHour"`
	AgentMaxFollowsPerHour         int      `json:"agentMaxFollowsPerHour"`
	VerifiedAgentMaxFollowsPerHour int      `json:"verifiedAgentMaxFollowsPerHour"`
	HybridRetrievalEnabled         bool     `json:"hybridRetrievalEnabled"`
	HybridRetrievalMaxCandidates   int      `json:"hybridRetrievalMaxCandidates"`
}

type UpdateAdminInstanceManagedDefaultsInput added in v1.1.13

type UpdateAdminInstanceManagedDefaultsInput struct {
	Trust       *AdminTrustConfigPatchInput       `json:"trust,omitempty"`
	Translation *AdminTranslationConfigPatchInput `json:"translation,omitempty"`
	Tips        *AdminTipsConfigPatchInput        `json:"tips,omitempty"`
	Ai          *AdminAIConfigPatchInput          `json:"ai,omitempty"`
}

type UpdateAdminInstanceOverridesInput added in v1.1.13

type UpdateAdminInstanceOverridesInput struct {
	Trust       *AdminTrustConfigPatchInput       `json:"trust,omitempty"`
	Translation *AdminTranslationConfigPatchInput `json:"translation,omitempty"`
	Tips        *AdminTipsConfigPatchInput        `json:"tips,omitempty"`
	Ai          *AdminAIConfigPatchInput          `json:"ai,omitempty"`
}

type UpdateAgentInput

type UpdateAgentInput struct {
	DisplayName       *string                 `json:"displayName,omitempty"`
	Bio               *string                 `json:"bio,omitempty"`
	AgentType         *AgentType              `json:"agentType,omitempty"`
	AgentVersion      *string                 `json:"agentVersion,omitempty"`
	Version           *string                 `json:"version,omitempty"`
	AgentCapabilities *AgentCapabilitiesInput `json:"agentCapabilities,omitempty"`
	ExitQuarantine    *bool                   `json:"exitQuarantine,omitempty"`
	Purpose           *string                 `json:"purpose,omitempty"`
}

type UpdateArticleInput

type UpdateArticleInput struct {
	Slug          *string        `json:"slug"`
	Title         *string        `json:"title"`
	Content       *string        `json:"content"`
	ContentFormat *ContentFormat `json:"contentFormat"`

	Subtitle        *string `json:"subtitle"`
	Excerpt         *string `json:"excerpt"`
	FeaturedImageID *string `json:"featuredImageId"`

	SeriesID    *string  `json:"seriesId"`
	SeriesOrder *int     `json:"seriesOrder"`
	CategoryIDs []string `json:"categoryIds"`

	SEOTitle       *string `json:"seoTitle"`
	SEODescription *string `json:"seoDescription"`
	CanonicalURL   *string `json:"canonicalUrl"`
	OGImage        *string `json:"ogImage"`

	EditorNotes  *string `json:"editorNotes"`
	ReviewStatus *string `json:"reviewStatus"`
}

UpdateArticleInput is the input payload for updating an article.

type UpdateCategoryInput

type UpdateCategoryInput struct {
	Slug        *string `json:"slug"`
	Name        *string `json:"name"`
	Description *string `json:"description"`
	ParentID    *string `json:"parentId"`
	Color       *string `json:"color"`
	Order       *int    `json:"order"`
}

UpdateCategoryInput is the input payload for updating a category.

type UpdateDraftInput

type UpdateDraftInput struct {
	Title         *string        `json:"title"`
	Slug          *string        `json:"slug"`
	Content       *string        `json:"content"`
	ContentFormat *ContentFormat `json:"contentFormat"`
}

UpdateDraftInput is the input payload for updating a draft.

type UpdateEmojiInput

type UpdateEmojiInput struct {
	Category        *string `json:"category,omitempty"`
	VisibleInPicker *bool   `json:"visibleInPicker,omitempty"`
}

type UpdateFilterInput

type UpdateFilterInput struct {
	Title            *string       `json:"title,omitempty"`
	Context          []string      `json:"context,omitempty"`
	FilterAction     *FilterAction `json:"filterAction,omitempty"`
	ExpiresInSeconds *int          `json:"expiresInSeconds,omitempty"`
}

type UpdateHashtagNotificationsPayload

type UpdateHashtagNotificationsPayload struct {
	Success  bool                         `json:"success"`
	Hashtag  *Hashtag                     `json:"hashtag"`
	Settings *HashtagNotificationSettings `json:"settings"`
}

type UpdateListInput

type UpdateListInput struct {
	Title         *string        `json:"title,omitempty"`
	RepliesPolicy *RepliesPolicy `json:"repliesPolicy,omitempty"`
	Exclusive     *bool          `json:"exclusive,omitempty"`
}

type UpdateMediaInput

type UpdateMediaInput struct {
	Description *string     `json:"description,omitempty"`
	Focus       *FocusInput `json:"focus,omitempty"`
}

type UpdateProfileInput

type UpdateProfileInput struct {
	DisplayName  *string              `json:"displayName,omitempty"`
	Bio          *string              `json:"bio,omitempty"`
	Avatar       *string              `json:"avatar,omitempty"`
	Header       *string              `json:"header,omitempty"`
	Locked       *bool                `json:"locked,omitempty"`
	Bot          *bool                `json:"bot,omitempty"`
	Discoverable *bool                `json:"discoverable,omitempty"`
	NoIndex      *bool                `json:"noIndex,omitempty"`
	Sensitive    *bool                `json:"sensitive,omitempty"`
	Language     *string              `json:"language,omitempty"`
	Fields       []*ProfileFieldInput `json:"fields,omitempty"`
}

type UpdatePublicationInput

type UpdatePublicationInput struct {
	Slug         *string `json:"slug"`
	Name         *string `json:"name"`
	Tagline      *string `json:"tagline"`
	Description  *string `json:"description"`
	LogoID       *string `json:"logoId"`
	BannerID     *string `json:"bannerId"`
	CustomDomain *string `json:"customDomain"`
}

UpdatePublicationInput is the input payload for updating a publication.

type UpdatePushSubscriptionInput

type UpdatePushSubscriptionInput struct {
	Alerts *PushSubscriptionAlertsInput `json:"alerts"`
}

type UpdateQuotePermissionsPayload

type UpdateQuotePermissionsPayload struct {
	Success        bool    `json:"success"`
	Note           *Object `json:"note"`
	AffectedQuotes int     `json:"affectedQuotes"`
}

type UpdateRelationshipInput

type UpdateRelationshipInput struct {
	Notify      *bool    `json:"notify,omitempty"`
	ShowReblogs *bool    `json:"showReblogs,omitempty"`
	Languages   []string `json:"languages,omitempty"`
	Note        *string  `json:"note,omitempty"`
}

type UpdateScheduledStatusInput

type UpdateScheduledStatusInput struct {
	ScheduledAt Time `json:"scheduledAt"`
}

type UpdateSeriesInput

type UpdateSeriesInput struct {
	Title         *string `json:"title"`
	Description   *string `json:"description"`
	CoverImageURL *string `json:"coverImageUrl"`
	IsComplete    *bool   `json:"isComplete"`
}

UpdateSeriesInput is the input payload for updating a series.

type UpdateStatusInput

type UpdateStatusInput struct {
	Content       string   `json:"content"`
	Sensitive     *bool    `json:"sensitive,omitempty"`
	SpoilerText   *string  `json:"spoilerText,omitempty"`
	Language      *string  `json:"language,omitempty"`
	AttachmentIds []string `json:"attachmentIds,omitempty"`
}

type UpdateUserPreferencesInput

type UpdateUserPreferencesInput struct {
	Language                  *string                    `json:"language,omitempty"`
	DefaultPostingVisibility  *Visibility                `json:"defaultPostingVisibility,omitempty"`
	DirectMessagesFrom        *DirectMessagesFrom        `json:"directMessagesFrom,omitempty"`
	DefaultMediaSensitive     *bool                      `json:"defaultMediaSensitive,omitempty"`
	ExpandSpoilers            *bool                      `json:"expandSpoilers,omitempty"`
	ExpandMedia               *ExpandMediaPreference     `json:"expandMedia,omitempty"`
	AutoplayGifs              *bool                      `json:"autoplayGifs,omitempty"`
	ShowFollowCounts          *bool                      `json:"showFollowCounts,omitempty"`
	PreferredTimelineOrder    *TimelineOrder             `json:"preferredTimelineOrder,omitempty"`
	SearchSuggestionsEnabled  *bool                      `json:"searchSuggestionsEnabled,omitempty"`
	PersonalizedSearchEnabled *bool                      `json:"personalizedSearchEnabled,omitempty"`
	ReblogFilters             []*ReblogFilterInput       `json:"reblogFilters,omitempty"`
	Streaming                 *StreamingPreferencesInput `json:"streaming,omitempty"`
}

type UploadMediaInput

type UploadMediaInput struct {
	File        graphql.Upload `json:"file"`
	Filename    *string        `json:"filename,omitempty"`
	Description *string        `json:"description,omitempty"`
	Focus       *FocusInput    `json:"focus,omitempty"`
	Sensitive   *bool          `json:"sensitive,omitempty"`
	SpoilerText *string        `json:"spoilerText,omitempty"`
	MediaType   *MediaCategory `json:"mediaType,omitempty"`
}

type UploadMediaPayload

type UploadMediaPayload struct {
	Media    *Media   `json:"media"`
	UploadID string   `json:"uploadId"`
	Warnings []string `json:"warnings,omitempty"`
}

type UserPreferences

type UserPreferences struct {
	ActorID       string                   `json:"actorId"`
	Posting       *PostingPreferences      `json:"posting"`
	Reading       *ReadingPreferences      `json:"reading"`
	Discovery     *DiscoveryPreferences    `json:"discovery"`
	Streaming     *StreamingPreferences    `json:"streaming"`
	Notifications *NotificationPreferences `json:"notifications"`
	Privacy       *PrivacyPreferences      `json:"privacy"`
	ReblogFilters []*ReblogFilter          `json:"reblogFilters"`
}

type ViewerRole added in v1.1.13

type ViewerRole struct {
	Role    string `json:"role"`
	IsAdmin bool   `json:"isAdmin"`
}

type Visibility

type Visibility string
const (
	VisibilityPublic    Visibility = "PUBLIC"
	VisibilityUnlisted  Visibility = "UNLISTED"
	VisibilityFollowers Visibility = "FOLLOWERS"
	VisibilityDirect    Visibility = "DIRECT"
)

func (Visibility) IsValid

func (e Visibility) IsValid() bool

func (Visibility) MarshalGQL

func (e Visibility) MarshalGQL(w io.Writer)

func (Visibility) MarshalJSON

func (e Visibility) MarshalJSON() ([]byte, error)

func (Visibility) String

func (e Visibility) String() string

func (*Visibility) UnmarshalGQL

func (e *Visibility) UnmarshalGQL(v any) error

func (*Visibility) UnmarshalJSON

func (e *Visibility) UnmarshalJSON(b []byte) error

type Vouch

type Vouch struct {
	ID                string             `json:"id"`
	From              *activitypub.Actor `json:"from"`
	To                *activitypub.Actor `json:"to"`
	Confidence        float64            `json:"confidence"`
	Context           string             `json:"context"`
	VoucherReputation int                `json:"voucherReputation"`
	CreatedAt         Time               `json:"createdAt"`
	ExpiresAt         Time               `json:"expiresAt"`
	Active            bool               `json:"active"`
	Revoked           bool               `json:"revoked"`
	RevokedAt         *Time              `json:"revokedAt,omitempty"`
}

type WithdrawQuotePayload

type WithdrawQuotePayload struct {
	Success        bool    `json:"success"`
	Note           *Object `json:"note"`
	WithdrawnCount int     `json:"withdrawnCount"`
}

Jump to

Keyboard shortcuts

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