Documentation
¶
Overview ¶
Package model contains GraphQL model definitions and custom scalar types.
Index ¶
- Variables
- type AIAnalysis
- type AIAnalysisRequest
- type AICapabilities
- type AIDetection
- type AIDetectionCapabilities
- type AIStats
- type AccessLog
- type AccountQuotePermissions
- type AccountSuggestion
- type AcknowledgePayload
- type ActivityType
- type ActorListPage
- type ActorType
- type AddFilterKeywordInput
- type AdminAccount
- type AdminAccountActionInput
- type AdminAccountConnection
- type AdminCreateAnnouncementInput
- type AdminCreateUserInput
- type AdminDomainAllow
- type AdminDomainAllowConnection
- type AdminDomainBlock
- type AdminDomainBlockConnection
- type AdminDomainBlockCreateInput
- type AdminDomainBlockUpdateInput
- type AdminEmailDomainBlock
- type AdminEmailDomainBlockConnection
- type AdminFederationInstance
- type AdminFederationInstanceConnection
- type AdminFederationInstanceInfo
- type AdminFederationStatistics
- type AdminFederationStatisticsTimeRange
- type AdminIP
- type AdminModerationEvent
- type AdminModerationEventConnection
- type AdminModerationEventFilter
- type AdminModerationEventOverrideInput
- type AdminModerationEventOverrideResult
- type AdminReport
- type AdminReportAction
- func (e AdminReportAction) IsValid() bool
- func (e AdminReportAction) MarshalGQL(w io.Writer)
- func (e AdminReportAction) MarshalJSON() ([]byte, error)
- func (e AdminReportAction) String() string
- func (e *AdminReportAction) UnmarshalGQL(v any) error
- func (e *AdminReportAction) UnmarshalJSON(b []byte) error
- type AdminReportConnection
- type AdminReportStatus
- func (e AdminReportStatus) IsValid() bool
- func (e AdminReportStatus) MarshalGQL(w io.Writer)
- func (e AdminReportStatus) MarshalJSON() ([]byte, error)
- func (e AdminReportStatus) String() string
- func (e *AdminReportStatus) UnmarshalGQL(v any) error
- func (e *AdminReportStatus) UnmarshalJSON(b []byte) error
- type AdminReviewer
- type AdminReviewerRoleResult
- type AdminRole
- type AdminStatusConnection
- type AdminStatusFilter
- type AdminTrustGraph
- type AdminTrustGraphEdge
- type AdminTrustGraphNode
- type AdminTrustGraphStats
- type AdminUpdateTrustInput
- type AdminUpdateTrustResult
- type AffectedRelationship
- type AffectedRelationshipConnection
- type AffectedRelationshipEdge
- type Agent
- type AgentActivityEvent
- type AgentConnection
- type AgentEdge
- type AgentType
- type AlertLevel
- type AlertSeverity
- type Announcement
- type AnnouncementReaction
- type Article
- type ArticleConnection
- type ArticleEdge
- type BandwidthReport
- type BedrockTrainingOptions
- type Bitrate
- type BudgetAlert
- type Category
- type CategoryStats
- type Celebrity
- type ChangeType
- type CommunityNote
- type CommunityNoteConnection
- type CommunityNoteEdge
- type CommunityNoteInput
- type CommunityNotePayload
- type ConnectionType
- type ContentFormat
- type ContentMap
- type ContentMapInput
- type Conversation
- type Coordinates
- type CostAlert
- type CostBreakdown
- type CostItem
- type CostOptimizationResult
- type CostOrderBy
- type CostProjection
- type CostUpdate
- type CreateArticleInput
- type CreateCategoryInput
- type CreateDraftInput
- type CreateEmojiInput
- type CreateExportInput
- type CreateFilterInput
- type CreateFilterKeywordInput
- type CreateImportInput
- type CreateListInput
- type CreateNoteInput
- type CreateNotePayload
- type CreatePublicationInput
- type CreateQuoteNoteInput
- type CreateReportInput
- type CreateSeriesInput
- type CreateVouchInput
- type Cursor
- type CustomEmoji
- type DatabaseStatus
- type DateRangeInput
- type DelegateToAgentInput
- type DelegationPayload
- type DigestFrequency
- type DirectoryFiltersInput
- type DirectoryOrder
- type DiscoveryPreferences
- type DomainBlockPage
- type Draft
- type DraftConnection
- type DraftEdge
- type DraftStatus
- type Duration
- type Entity
- type ExpandMediaPreference
- func (e ExpandMediaPreference) IsValid() bool
- func (e ExpandMediaPreference) MarshalGQL(w io.Writer)
- func (e ExpandMediaPreference) MarshalJSON() ([]byte, error)
- func (e ExpandMediaPreference) String() string
- func (e *ExpandMediaPreference) UnmarshalGQL(v any) error
- func (e *ExpandMediaPreference) UnmarshalJSON(b []byte) error
- type ExportFormat
- type ExportJob
- type ExportJobConnection
- type ExportJobEdge
- type ExportType
- type FederationCost
- type FederationCostConnection
- type FederationCostEdge
- type FederationEdge
- type FederationFlow
- type FederationGraph
- type FederationHealthUpdate
- type FederationLimit
- type FederationLimitInput
- type FederationManagementStatus
- type FederationMetrics
- type FederationRecommendation
- type FederationState
- type FederationStatus
- type Field
- type FilterAction
- type FilterTestInput
- type FilterTestPayload
- type FilterTestResult
- type FlagInput
- type FlagPayload
- type FlowNode
- type FocusInput
- type GroupedNotificationGroup
- type GroupedNotificationsInput
- type GroupingStrategyInput
- type Hashtag
- type HashtagActivityUpdate
- type HashtagAnalytics
- type HashtagConnection
- type HashtagEdge
- type HashtagFollowPayload
- type HashtagMode
- type HashtagNotificationSettings
- type HashtagNotificationSettingsInput
- type HashtagSuggestion
- type HealthIssue
- type HealthStatus
- type HourlyBandwidth
- type HourlyVolume
- type ImageAnalysisCapabilities
- type ImportJob
- type ImportJobConnection
- type ImportJobEdge
- type ImportMode
- type ImportResults
- type ImportType
- type InfrastructureAlert
- type InfrastructureEvent
- type InfrastructureEventType
- func (e InfrastructureEventType) IsValid() bool
- func (e InfrastructureEventType) MarshalGQL(w io.Writer)
- func (e InfrastructureEventType) MarshalJSON() ([]byte, error)
- func (e InfrastructureEventType) String() string
- func (e *InfrastructureEventType) UnmarshalGQL(v any) error
- func (e *InfrastructureEventType) UnmarshalJSON(b []byte) error
- type InfrastructureStatus
- type InstanceActivityEntry
- type InstanceBudget
- type InstanceCluster
- type InstanceConnection
- type InstanceCost
- type InstanceDomainBlock
- type InstanceHealthMetrics
- type InstanceHealthReport
- type InstanceHealthStatus
- func (e InstanceHealthStatus) IsValid() bool
- func (e InstanceHealthStatus) MarshalGQL(w io.Writer)
- func (e InstanceHealthStatus) MarshalJSON() ([]byte, error)
- func (e InstanceHealthStatus) String() string
- func (e *InstanceHealthStatus) UnmarshalGQL(v any) error
- func (e *InstanceHealthStatus) UnmarshalJSON(b []byte) error
- type InstanceInfo
- type InstanceMetadata
- type InstanceMetrics
- type InstanceNode
- type InstanceRelations
- type InstanceRule
- type IssueSeverity
- type List
- type ListUpdate
- type Marker
- type MarkerSet
- type MarkerTimeline
- type Media
- type MediaCategory
- type MediaConnection
- type MediaEdge
- type MediaFilterInput
- type MediaStream
- type MediaType
- type Mention
- type MetricsDimension
- type MetricsUpdate
- type ModerationAction
- type ModerationActionCounts
- type ModerationAlert
- type ModerationConsensusResult
- type ModerationConsensusReview
- type ModerationDashboard
- type ModerationEffectiveness
- type ModerationHistoryDecision
- type ModerationHistoryEvent
- type ModerationHistoryResult
- type ModerationHistoryTimelineEntry
- type ModerationItem
- type ModerationPatternInput
- type ModerationPeriod
- type ModerationReviewInput
- type ModerationReviewResult
- type ModerationSampleInput
- type ModerationSeverity
- func (e ModerationSeverity) IsValid() bool
- func (e ModerationSeverity) MarshalGQL(w io.Writer)
- func (e ModerationSeverity) MarshalJSON() ([]byte, error)
- func (e ModerationSeverity) String() string
- func (e *ModerationSeverity) UnmarshalGQL(v any) error
- func (e *ModerationSeverity) UnmarshalJSON(b []byte) error
- type ModerationTrustScore
- type ModeratorStats
- type Mutation
- type MuteHashtagPayload
- type Notification
- type NotificationConnection
- type NotificationEdge
- type NotificationFilter
- type NotificationFilterInput
- type NotificationLevel
- func (e NotificationLevel) IsValid() bool
- func (e NotificationLevel) MarshalGQL(w io.Writer)
- func (e NotificationLevel) MarshalJSON() ([]byte, error)
- func (e NotificationLevel) String() string
- func (e *NotificationLevel) UnmarshalGQL(v any) error
- func (e *NotificationLevel) UnmarshalJSON(b []byte) error
- type NotificationPreferences
- type Object
- type ObjectConnection
- type ObjectEdge
- type ObjectExplanation
- type ObjectRelationshipType
- func (e ObjectRelationshipType) IsValid() bool
- func (e ObjectRelationshipType) MarshalGQL(w io.Writer)
- func (e ObjectRelationshipType) MarshalJSON() ([]byte, error)
- func (e ObjectRelationshipType) String() string
- func (e *ObjectRelationshipType) UnmarshalGQL(v any) error
- func (e *ObjectRelationshipType) UnmarshalJSON(b []byte) error
- type ObjectType
- type OptimizationAction
- type PageInfo
- type PatternStats
- type PatternType
- type PerformanceAlert
- type PerformanceReport
- type Period
- type Poll
- type PollOption
- type PollParams
- type PollParamsInput
- type PortableReputation
- type PostConnection
- type PostEdge
- type PostingPreferences
- type Priority
- type PrivacyPreferences
- type ProfileDirectory
- type ProfileFieldInput
- type Publication
- type PublicationMember
- type PublicationRole
- type PushSubscription
- type PushSubscriptionAlerts
- type PushSubscriptionAlertsInput
- type PushSubscriptionKeys
- type PushSubscriptionKeysInput
- type QualityBandwidth
- type QualityStats
- type Query
- type QueryPerformance
- type QueueStatus
- type QuoteActivityUpdate
- type QuoteConnection
- type QuoteEdge
- type QuotePermission
- type QuoteType
- type ReadingPreferences
- type ReblogFilter
- type ReblogFilterInput
- type RecommendationType
- func (e RecommendationType) IsValid() bool
- func (e RecommendationType) MarshalGQL(w io.Writer)
- func (e RecommendationType) MarshalJSON() ([]byte, error)
- func (e RecommendationType) String() string
- func (e *RecommendationType) UnmarshalGQL(v any) error
- func (e *RecommendationType) UnmarshalJSON(b []byte) error
- type ReconnectionPayload
- type RegisterAccountInput
- type RegisterAccountPayload
- type RegisterAgentInput
- type RegisterAgentPayload
- type RegisterPushSubscriptionInput
- type Relationship
- type RelationshipUpdate
- type RepliesPolicy
- type Report
- type Reputation
- type ReputationEvidence
- type ReputationImportResult
- type ReputationVerificationResult
- type Revision
- type RevisionConnection
- type RevisionEdge
- type SaveMarkerInput
- type ScheduleStatusInput
- type ScheduledStatus
- type SearchResult
- type Sentiment
- type SentimentScores
- type Series
- type SeriesConnection
- type SeriesEdge
- type ServiceCategory
- type ServiceStatus
- type SeveranceDetails
- type SeveranceReason
- type SeveredRelationship
- type SeveredRelationshipConnection
- type SeveredRelationshipEdge
- type SpamAnalysis
- type SpamIndicator
- type StatusEdit
- type StatusParams
- type Stream
- type StreamConnection
- type StreamEdge
- type StreamQuality
- type StreamingAnalytics
- type StreamingPreferences
- type StreamingPreferencesInput
- type StreamingQualityInput
- type StreamingQualityReport
- type Subscription
- type SuggestionSource
- type SyncRepliesPayload
- type SyncStatus
- type SyncThreadPayload
- type TOCEntry
- type TextAnalysisCapabilities
- type ThreadContext
- type ThreatAlert
- type ThreatTrend
- type Time
- type TimePeriod
- type TimelineOrder
- type TimelineType
- type TipsConfig
- type TrainingResult
- type TranslationLanguage
- type TranslationResult
- type Trend
- type TrendingItem
- type TrendingItemType
- type TrendingLink
- type TrendingStatus
- type TrendingTag
- type TrustCategoryScore
- type TrustInput
- type UnfollowHashtagPayload
- type UpdateAccountQuotePermissionsInput
- type UpdateAgentInput
- type UpdateArticleInput
- type UpdateCategoryInput
- type UpdateDraftInput
- type UpdateEmojiInput
- type UpdateFilterInput
- type UpdateHashtagNotificationsPayload
- type UpdateListInput
- type UpdateMediaInput
- type UpdateProfileInput
- type UpdatePublicationInput
- type UpdatePushSubscriptionInput
- type UpdateQuotePermissionsPayload
- type UpdateRelationshipInput
- type UpdateScheduledStatusInput
- type UpdateSeriesInput
- type UpdateStatusInput
- type UpdateUserPreferencesInput
- type UploadMediaInput
- type UploadMediaPayload
- type UserPreferences
- type Visibility
- type Vouch
- type WithdrawQuotePayload
Constants ¶
This section is empty.
Variables ¶
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
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
var AllActivityType = []ActivityType{ ActivityTypeCreate, ActivityTypeUpdate, ActivityTypeDelete, ActivityTypeFollow, ActivityTypeLike, ActivityTypeAnnounce, ActivityTypeUndo, ActivityTypeAccept, ActivityTypeReject, ActivityTypeFlag, }
var AllActorType = []ActorType{ ActorTypePerson, ActorTypeGroup, ActorTypeApplication, ActorTypeService, ActorTypeOrganization, }
var AllAdminReportAction = []AdminReportAction{ AdminReportActionAssignToSelf, AdminReportActionUnassign, AdminReportActionResolve, AdminReportActionReopen, }
var AllAdminReportStatus = []AdminReportStatus{ AdminReportStatusOpen, AdminReportStatusResolved, AdminReportStatusRejected, }
var AllAgentType = []AgentType{ AgentTypeCurator, AgentTypeModerator, AgentTypeResearcher, AgentTypeAssistant, AgentTypeBridge, AgentTypeCustom, }
var AllAlertLevel = []AlertLevel{ AlertLevelInfo, AlertLevelWarning, AlertLevelCritical, }
var AllAlertSeverity = []AlertSeverity{ AlertSeverityInfo, AlertSeverityWarning, AlertSeverityError, AlertSeverityCritical, }
var AllConnectionType = []ConnectionType{ ConnectionTypeFollows, ConnectionTypeMentions, ConnectionTypeReplies, ConnectionTypeBoosts, ConnectionTypeQuotes, ConnectionTypeMixed, }
var AllCostOrderBy = []CostOrderBy{ CostOrderByTotalCostDesc, CostOrderByTotalCostAsc, CostOrderByErrorRateDesc, CostOrderByRequestCountDesc, CostOrderByDomainAsc, }
var AllDigestFrequency = []DigestFrequency{ DigestFrequencyNever, DigestFrequencyDaily, DigestFrequencyWeekly, DigestFrequencyMonthly, }
var AllDirectoryOrder = []DirectoryOrder{ DirectoryOrderActive, DirectoryOrderNew, }
var AllExpandMediaPreference = []ExpandMediaPreference{ ExpandMediaPreferenceDefault, ExpandMediaPreferenceShowAll, ExpandMediaPreferenceHideAll, }
var AllExportFormat = []ExportFormat{ ExportFormatActivitypub, ExportFormatMastodon, ExportFormatCSV, }
var AllExportType = []ExportType{ ExportTypeArchive, ExportTypeFollowers, ExportTypeFollowing, ExportTypeBlocks, ExportTypeMutes, ExportTypeLists, ExportTypeBookmarks, }
var AllFederationState = []FederationState{ FederationStateActive, FederationStatePaused, FederationStateLimited, FederationStateBlocked, FederationStateError, }
var AllFilterAction = []FilterAction{ FilterActionWarn, FilterActionHide, FilterActionBlur, }
var AllHashtagMode = []HashtagMode{ HashtagModeAny, HashtagModeAll, }
var AllHealthStatus = []HealthStatus{ HealthStatusHealthy, HealthStatusDegraded, HealthStatusDown, HealthStatusUnknown, }
var AllImportMode = []ImportMode{ ImportModeMerge, ImportModeOverwrite, }
var AllImportType = []ImportType{ ImportTypeFollowers, ImportTypeFollowing, ImportTypeBlocks, ImportTypeMutes, ImportTypeLists, ImportTypeBookmarks, }
var AllInfrastructureEventType = []InfrastructureEventType{ InfrastructureEventTypeDeployment, InfrastructureEventTypeScaling, InfrastructureEventTypeFailure, InfrastructureEventTypeRecovery, InfrastructureEventTypeMaintenance, }
var AllInstanceHealthStatus = []InstanceHealthStatus{ InstanceHealthStatusHealthy, InstanceHealthStatusWarning, InstanceHealthStatusCritical, InstanceHealthStatusOffline, InstanceHealthStatusUnknown, }
var AllIssueSeverity = []IssueSeverity{ IssueSeverityLow, IssueSeverityMedium, IssueSeverityHigh, IssueSeverityCritical, }
var AllMarkerTimeline = []MarkerTimeline{ MarkerTimelineHome, MarkerTimelineNotifications, }
var AllMediaCategory = []MediaCategory{ MediaCategoryImage, MediaCategoryVideo, MediaCategoryAudio, MediaCategoryGifv, MediaCategoryDocument, MediaCategoryUnknown, }
var AllMediaType = []MediaType{ MediaTypeImage, MediaTypeVideo, MediaTypeAudio, MediaTypeUnknown, }
var AllModerationAction = []ModerationAction{ ModerationActionNone, ModerationActionFlag, ModerationActionHide, ModerationActionRemove, ModerationActionShadowBan, ModerationActionReview, }
var AllModerationPeriod = []ModerationPeriod{ ModerationPeriodHourly, ModerationPeriodDaily, ModerationPeriodWeekly, ModerationPeriodMonthly, }
var AllModerationSeverity = []ModerationSeverity{ ModerationSeverityInfo, ModerationSeverityLow, ModerationSeverityMedium, ModerationSeverityHigh, ModerationSeverityCritical, }
var AllNotificationLevel = []NotificationLevel{ NotificationLevelAll, NotificationLevelMutuals, NotificationLevelFollowing, NotificationLevelNone, }
var AllObjectRelationshipType = []ObjectRelationshipType{ ObjectRelationshipTypeOriginal, ObjectRelationshipTypeBoost, }
var AllObjectType = []ObjectType{ ObjectTypeNote, ObjectTypeArticle, ObjectTypeImage, ObjectTypeVideo, ObjectTypeQuestion, ObjectTypeEvent, ObjectTypePage, }
var AllPatternType = []PatternType{ PatternTypeRegex, PatternTypeKeyword, PatternTypePhrase, PatternTypeMlPattern, }
var AllPeriod = []Period{ PeriodHour, PeriodDay, PeriodWeek, PeriodMonth, PeriodYear, }
var AllPriority = []Priority{ PriorityLow, PriorityMedium, PriorityHigh, PriorityCritical, }
var AllQuotePermission = []QuotePermission{ QuotePermissionEveryone, QuotePermissionFollowers, QuotePermissionNone, }
var AllQuoteType = []QuoteType{ QuoteTypeFull, QuoteTypePartial, QuoteTypeCommentary, QuoteTypeReaction, }
var AllRecommendationType = []RecommendationType{ RecommendationTypePerformance, RecommendationTypeCost, RecommendationTypeSecurity, RecommendationTypeConnectivity, RecommendationTypeContent, }
var AllRepliesPolicy = []RepliesPolicy{ RepliesPolicyFollowed, RepliesPolicyList, RepliesPolicyNone, }
var AllSentiment = []Sentiment{ SentimentPositive, SentimentNegative, SentimentNeutral, SentimentMixed, }
var AllServiceCategory = []ServiceCategory{ ServiceCategoryGraphqlAPI, ServiceCategoryFederationDelivery, ServiceCategoryMediaProcessor, ServiceCategoryModerationEngine, ServiceCategorySearchIndexer, ServiceCategoryStreamingService, }
var AllSeveranceReason = []SeveranceReason{ SeveranceReasonDomainBlock, SeveranceReasonInstanceDown, SeveranceReasonDefederation, SeveranceReasonPolicyViolation, SeveranceReasonOther, }
var AllStreamQuality = []StreamQuality{ StreamQualityAuto, StreamQualityLow, StreamQualityMedium, StreamQualityHigh, StreamQualityUltra, }
var AllSuggestionSource = []SuggestionSource{ SuggestionSourceStaff, SuggestionSourcePastInteractions, SuggestionSourceGlobal, SuggestionSourceSimilarProfiles, }
var AllSyncStatus = []SyncStatus{ SyncStatusComplete, SyncStatusPartial, SyncStatusSyncing, SyncStatusFailed, }
var AllTimePeriod = []TimePeriod{ TimePeriodHour, TimePeriodDay, TimePeriodWeek, TimePeriodMonth, }
var AllTimelineOrder = []TimelineOrder{ TimelineOrderNewest, TimelineOrderOldest, }
var AllTimelineType = []TimelineType{ TimelineTypeHome, TimelineTypePublic, TimelineTypeLocal, TimelineTypeHashtag, TimelineTypeList, TimelineTypeDirect, TimelineTypeActor, }
var AllTrend = []Trend{ TrendIncreasing, TrendStable, TrendDecreasing, }
var AllTrendingItemType = []TrendingItemType{ TrendingItemTypeHashtag, TrendingItemTypeStatus, TrendingItemTypeLink, }
var AllVisibility = []Visibility{ VisibilityPublic, VisibilityUnlisted, VisibilityFollowers, VisibilityDirect, }
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 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 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 AccountQuotePermissions ¶
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
func (ActorType) MarshalGQL ¶
func (ActorType) MarshalJSON ¶
func (*ActorType) UnmarshalGQL ¶
func (*ActorType) UnmarshalJSON ¶
type AddFilterKeywordInput ¶
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 AdminAccountConnection ¶
type AdminAccountConnection struct {
Accounts []*AdminAccount `json:"accounts"`
NextCursor *Cursor `json:"nextCursor,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 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 AdminEmailDomainBlock ¶
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 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 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 AdminReviewerRoleResult ¶
type AdminStatusConnection ¶
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 AdminTrustGraph ¶
type AdminTrustGraph struct {
Nodes []*AdminTrustGraphNode `json:"nodes"`
Edges []*AdminTrustGraphEdge `json:"edges"`
Stats *AdminTrustGraphStats `json:"stats"`
}
type AdminTrustGraphEdge ¶
type AdminTrustGraphNode ¶
type AdminTrustGraphStats ¶
type AdminUpdateTrustInput ¶
type AdminUpdateTrustResult ¶
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"`
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 AgentActivityEvent ¶
type AgentConnection ¶
type AgentType ¶
type AgentType string
func (AgentType) MarshalGQL ¶
func (AgentType) MarshalJSON ¶
func (*AgentType) UnmarshalGQL ¶
func (*AgentType) UnmarshalJSON ¶
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 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 ¶
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 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 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 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 ContentMapInput ¶
type Conversation ¶
type Coordinates ¶
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 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 CostUpdate ¶
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 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 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"`
}
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 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 Cursor ¶
type Cursor string
Cursor is a custom GraphQL scalar for pagination
func (Cursor) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (*Cursor) UnmarshalGQL ¶
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 DateRangeInput ¶
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"`
Version string `json:"version"`
}
type DelegationPayload ¶
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 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 DomainBlockPage ¶
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 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 ¶
MarshalGQL implements the graphql.Marshaler interface
func (*Duration) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshaler interface
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 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 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 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 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 FilterTestPayload ¶
type FilterTestPayload struct {
Content string `json:"content"`
TotalFilters int `json:"totalFilters"`
MatchedCount int `json:"matchedCount"`
Results []*FilterTestResult `json:"results"`
}
type FilterTestResult ¶
type FlagPayload ¶
type FocusInput ¶
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"`
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 HashtagConnection ¶
type HashtagConnection struct {
Edges []*HashtagEdge `json:"edges"`
PageInfo *PageInfo `json:"pageInfo"`
TotalCount int `json:"totalCount"`
}
type HashtagEdge ¶
type HashtagFollowPayload ¶
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 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 HourlyVolume ¶
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 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 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 InfrastructureEvent ¶
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 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 InstanceConnection ¶
type InstanceCost ¶
type InstanceCost struct {
Domain string `json:"domain"`
CostUsd float64 `json:"costUSD"`
Percentage float64 `json:"percentage"`
Breakdown *CostBreakdown `json:"breakdown"`
}
type InstanceDomainBlock ¶
type InstanceHealthMetrics ¶
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 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 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 MediaFilterInput ¶
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
func (MediaType) MarshalGQL ¶
func (MediaType) MarshalJSON ¶
func (*MediaType) UnmarshalGQL ¶
func (*MediaType) UnmarshalJSON ¶
type MetricsDimension ¶
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 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 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 ModerationReviewResult ¶
type ModerationSampleInput ¶
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 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 MuteHashtagPayload ¶
type Notification ¶
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 NotificationFilterInput ¶
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"`
Boosted bool `json:"boosted"`
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"`
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 ObjectExplanation ¶
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 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
func (Period) MarshalGQL ¶
func (Period) MarshalJSON ¶
func (*Period) UnmarshalGQL ¶
func (*Period) UnmarshalJSON ¶
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 PollParams ¶
type PollParamsInput ¶
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 PostingPreferences ¶
type PostingPreferences struct {
DefaultVisibility Visibility `json:"defaultVisibility"`
DefaultSensitive bool `json:"defaultSensitive"`
DefaultLanguage string `json:"defaultLanguage"`
}
type Priority ¶
type Priority string
func (Priority) MarshalGQL ¶
func (Priority) MarshalJSON ¶
func (*Priority) UnmarshalGQL ¶
func (*Priority) UnmarshalJSON ¶
type PrivacyPreferences ¶
type PrivacyPreferences struct {
DefaultVisibility Visibility `json:"defaultVisibility"`
Indexable bool `json:"indexable"`
ShowOnlineStatus bool `json:"showOnlineStatus"`
}
type ProfileDirectory ¶
type ProfileDirectory struct {
Accounts []*activitypub.Actor `json:"accounts"`
TotalCount int `json:"totalCount"`
}
type ProfileFieldInput ¶
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 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 QueryPerformance ¶
type QueueStatus ¶
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 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
func (QuoteType) MarshalGQL ¶
func (QuoteType) MarshalJSON ¶
func (*QuoteType) UnmarshalGQL ¶
func (*QuoteType) UnmarshalJSON ¶
type ReadingPreferences ¶
type ReadingPreferences struct {
ExpandSpoilers bool `json:"expandSpoilers"`
ExpandMedia ExpandMediaPreference `json:"expandMedia"`
AutoplayGifs bool `json:"autoplayGifs"`
TimelineOrder TimelineOrder `json:"timelineOrder"`
}
type ReblogFilter ¶
type ReblogFilterInput ¶
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 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 ¶
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"`
}
type Sentiment ¶
type Sentiment string
func (Sentiment) MarshalGQL ¶
func (Sentiment) MarshalJSON ¶
func (*Sentiment) UnmarshalGQL ¶
func (*Sentiment) UnmarshalJSON ¶
type SentimentScores ¶
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 ¶
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 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 StatusEdit ¶
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 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 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 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 ¶
Time is a custom GraphQL scalar
func (Time) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (*Time) UnmarshalGQL ¶
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 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 TranslationResult ¶
type Trend ¶
type Trend string
func (Trend) MarshalGQL ¶
func (Trend) MarshalJSON ¶
func (*Trend) UnmarshalGQL ¶
func (*Trend) UnmarshalJSON ¶
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 ¶
type TrendingStatus ¶
type TrendingTag ¶
type TrustCategoryScore ¶
type TrustInput ¶
type TrustInput struct {
TargetActorID string `json:"targetActorId"`
Category models.TrustCategory `json:"category"`
Score float64 `json:"score"`
}
type UnfollowHashtagPayload ¶
type UpdateAgentInput ¶
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 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 UpdateRelationshipInput ¶
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 UpdateUserPreferencesInput ¶
type UpdateUserPreferencesInput struct {
Language *string `json:"language,omitempty"`
DefaultPostingVisibility *Visibility `json:"defaultPostingVisibility,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 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 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"`
}