event

package
v0.6.55 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeNewPost       = "NEW_POST"
	TypeNewView       = "NEW_VIEW"
	TypeNewLike       = "NEW_LIKE"
	TypeRemovePost    = "REMOVE_POST"
	NewCollection     = "NEW_COLLECTION"
	CollectionUpdated = "COLLECTION_UPDATED"

	PostRejected       = "POST_REJECTED"
	MessageRejected    = "MESSAGE_REJECTED"
	CommentRejected    = "COMMENT_REJECTED"
	CollectionRejected = "COLLECTION_REJECTED"

	TypeCircleNew             = "NEW_CIRCLE"
	TypeCircleRename          = "RENAME_CIRCLE"
	TypeCircleJoin            = "JOIN_CIRCLE"
	TypeCircleLeave           = "LEAVE_CIRCLE"
	TypeCircleDelete          = "DELETE_CIRCLE"
	CircleGroupChanged        = "CIRCLE_GROUP_CHANGED"
	CircleUserBanned          = "CIRCLE_USER_BANNED"
	CircleUserUnbanned        = "CIRCLE_USER_UNBANNED"
	CircleNewModerationAction = "CIRCLE_NEW_MODERATION_ACTION"
	CircleDescriptionUpdated  = "CIRCLE_DESCRIPTION_UPDATED"
	CircleLanguageCodeChanged = "CIRCLE_LANGUAGE_CODE_CHANGED"
	CircleEmojiChanged        = "CIRCLE_EMOJI_CHANGED"

	TypeCommentNew    = "NEW_COMMENT"
	TypeCommentRemove = "REMOVE_COMMENT"
	CommentUpdated    = "UPDATE_COMMENT"

	TypeLegacyUpdateProfile = "LEGACY_UPDATE_PROFILE"

	TypeUserNew = "NEW_USER"

	UserUpdated           = "USER_UPDATED"
	UserDeletionRequested = "USER_DELETION_REQUESTED"
	UserDeleted           = "USER_DELETED"
	UserFollowed          = "USER_FOLLOWED"
	UserUnfollowed        = "USER_UNFOLLOWED"
	UserBlocked           = "USER_BLOCKED"
	UserUnblocked         = "USER_UNBLOCKED"
	UserBanned            = "USER_BANNED"
	UserUnbanned          = "USER_UNBANNED"
	UserVerified          = "USER_VERIFIED"
	UserUnverified        = "USER_UNVERIFIED"
	UserOpenedApp         = "USER_OPENED_APP"

	UserReactedToPost   = "USER_REACTED_TO_POST"
	UserUnreactedToPost = "USER_UNREACTED_TO_POST"

	CircleInvitationSent           = "CIRCLE_INVITATION_SENT"
	CircleReportResolved           = "CIRCLE_REPORT_RESOLVED"
	CircleMemberRoleUpdated        = "CIRCLE_MEMBER_ROLE_UPDATED"
	CircleReportCreated            = "CIRCLE_REPORT_CREATED"
	CircleDiscordWebhookConfigured = "CIRCLE_DISCORD_WEBHOOK_CONFIGURED"
	CircleDiscordWebhookRevoked    = "CIRCLE_DISCORD_WEBHOOK_REVOKED"
	CircleAppEnabled               = "CIRCLE_APP_ENABLED"
	CircleAppDisabled              = "CIRCLE_APP_DISABLED"

	PostSaved                   = "POST_SAVED"
	PostShared                  = "POST_SHARED"
	UserFeedGenerationRequested = "USER_FEED_GENERATION_REQUESTED"

	StorageImageUploaded = "STORAGE_IMAGE_UPLOADED"
	StorageVideoUploaded = "STORAGE_VIDEO_UPLOADED"

	TranscoderImageThumbnailCreated   = "TRANSCODER_IMAGE_THUMBNAIL_CREATED"
	TranscoderVideoDurationDefined    = "TRANSCODER_VIDEO_DURATION_DEFINED"
	TranscoderVideoThumbnailCreated   = "TRANSCODER_VIDEO_THUMBNAIL_CREATED"
	TranscoderVideoWatermarkedCreated = "TRANSCODER_VIDEO_WATERMARKED_CREATED"
	TranscoderVideoM3U8Created        = "TRANSCODER_VIDEO_M3U8_CREATED"

	PostUnremoved = "POST_UNREMOVED"
	UserMentioned = "USER_MENTIONED"

	MessageSent = "MESSAGE_SENT"

	WordsBanned = "WORDS_BANNED"

	CircleChatMessageSent    = "CIRCLE_CHAT_MESSAGE_SENT"
	CircleChatMessageDeleted = "CIRCLE_CHAT_MESSAGE_DELETED"

	DefaultAppCreated    = "DEFAULT_APP_CREATED"
	AppPermissionAdded   = "APP_PERMISSION_ADDED"
	AppSubscriptionAdded = "APP_SUBSCRIPTION_ADDED"
	AppSubscriptionEvent = "APP_SUBSCRIPTION_EVENT"

	AudioTranscriptPayload = "AUDIO_TRANSCRIPT_PAYLOAD"

	PostClassified       = "POST_CLASSIFIED"
	TextFromVideo        = "TEXT_FROM_VIDEO"
	TextFromImage        = "TEXT_FROM_IMAGE"
	PostLanguageDetected = "POST_LANGUAGE_DETECTION"
	VideoTranscripted    = "VIDEO_TRANSCRIPTED"

	AutoNotification = "AUTO_NOTIFICATION"

	PostScreenTimeSaved     = "POST_SCREEN_TIME_SAVED"
	UserCircleBucketUpdated = "USER_CIRCLE_BUCKET_UPDATED"

	RobloxAccountLinked = "ROBLOX_ACCOUNT_LINKED"
)

types of events

View Source
const (
	// ModerationActionCategoryOther default category if no others fit.
	ModerationActionCategoryOther = iota
	ModerationActionCategorySpam
	ModerationActionCategorySexualContent
	ModerationActionCategoryGraphicContent
)

Variables

This section is empty.

Functions

func UnmarshalEventPayload added in v0.6.13

func UnmarshalEventPayload[M any](ctx context.Context, evt *Event, f func(ctx context.Context, payload M) error) error

UnmarshalEventPayload unmarshal the payload of an event into the provided type.

Types

type AppPermissionAddedPayload added in v0.6.4

type AppPermissionAddedPayload struct {
	AppID        string `json:"app_id"`
	UserID       string `json:"user_id"`
	PermissionID string `json:"permission_id"`
}

AppPermissionAddedPayload ...

type AppSubscriptionAddedPayload added in v0.6.4

type AppSubscriptionAddedPayload struct {
	AppID          string `json:"app_id"`
	UserID         string `json:"user_id"`
	SubscriptionID string `json:"subscription_id"`
}

AppSubscriptionAddedPayload ...

type AutoNotificationPayload added in v0.6.20

type AutoNotificationPayload struct {
	UserID string `json:"user_id"`
}

AutoNotificationPayload ...

type CircleAppDisabledPayload

type CircleAppDisabledPayload struct {
	CircleID string `json:"circle_id"`
	AppID    string `json:"app_id"`
}

CircleAppDisabledPayload ...

type CircleAppEnabledPayload

type CircleAppEnabledPayload struct {
	CircleID string `json:"circle_id"`
	AppID    string `json:"app_id"`
}

CircleAppEnabledPayload ...

type CircleChatMessageDeletedPayload added in v0.6.44

type CircleChatMessageDeletedPayload struct {
	MessageID string    `json:"message_id"`
	CircleID  string    `json:"circle_id"`
	DeletedAt time.Time `json:"deleted_at"`
}

CircleChatMessageDeletedPayload ...

type CircleChatMessageSentEmbed

type CircleChatMessageSentEmbed struct {
	EmbedID     string `json:"embed_id"`
	URL         string `json:"url"`
	Title       string `json:"title"`
	Description string `json:"description"`
}

CircleChatMessageSentEmbed ...

type CircleChatMessageSentPayload

type CircleChatMessageSentPayload struct {
	MessageID       string  `json:"message_id"`
	CircleID        string  `json:"circle_id"`
	AuthorID        string  `json:"author_id"`
	ReplyTo         *string `json:"reply_to,omitempty"`
	Content         string  `json:"content"`
	CreatedAt       string  `json:"created_at"`
	OriginalContent string  `json:"original_content"`
}

CircleChatMessageSentPayload ...

type CircleDescriptionUpdatedPayload added in v0.6.42

type CircleDescriptionUpdatedPayload struct {
	CircleID string `json:"circle_id"`
}

CircleDescriptionUpdatedPayload ...

type CircleDiscordWebhookConfiguredPayload

type CircleDiscordWebhookConfiguredPayload struct {
	CircleID string `json:"circle_id"`
}

CircleDiscordWebhookConfiguredPayload ...

type CircleDiscordWebhookRevokedPayload

type CircleDiscordWebhookRevokedPayload struct {
	CircleID string `json:"circle_id"`
}

CircleDiscordWebhookRevokedPayload ...

type CircleEmojiChangedPayload added in v0.6.49

type CircleEmojiChangedPayload struct {
	CircleID  string    `json:"circle_id"`
	Emoji     string    `json:"emoji"`
	ChangedAt time.Time `json:"changed_at"`
}

CircleEmojiChangedPayload ...

type CircleGroupChangedPayload

type CircleGroupChangedPayload struct {
	CircleID string `json:"circle_id"`
	GroupID  string `json:"group_id"`
}

CircleGroupChangedPayload ...

type CircleInvitationSentPayload

type CircleInvitationSentPayload struct {
	UserID        string `json:"user_id"`
	InvitedUserID string `json:"invited_user_id"`
	CircleID      string `json:"circle_id"`
}

CircleInvitationSentPayload ...

type CircleLanguageCodeUpdatedPayload added in v0.6.44

type CircleLanguageCodeUpdatedPayload struct {
	CircleID  string    `json:"circle_id"`
	ChangedAt time.Time `json:"changed_at"`
}

CircleLanguageCodeUpdatedPayload ...

type CircleMemberRoleUpdatedPayload

type CircleMemberRoleUpdatedPayload struct {
	UserID       string `json:"user_id"`
	MemberUserID string `json:"member_user_id"`
	CircleID     string `json:"circle_id"`
	Role         int64  `json:"role"`
}

CircleMemberRoleUpdatedPayload ...

type CircleModerationActionContext

type CircleModerationActionContext struct {
	ContentDeletion *ContentDeletion `json:"contentDeletion,omitempty"`
}

CircleModerationActionContext ...

type CircleNewModerationActionPayload

type CircleNewModerationActionPayload struct {
	ID               string                        `json:"id"`
	CircleID         string                        `json:"circleID"`
	ModeratorID      string                        `json:"moderatorID"`
	CreatedAt        string                        `json:"createdAt"`
	UserIDToModerate string                        `json:"userIDToModerate"`
	Category         ModerationActionCategory      `json:"category"`
	Message          string                        `json:"message"`
	Context          CircleModerationActionContext `json:"context"`
}

CircleNewModerationActionPayload ...

type CircleReportCreatedPayload

type CircleReportCreatedPayload struct {
	UserID          string `json:"user_id"`
	CircleID        string `json:"circle_id"`
	AnyID           string `json:"any_id"`
	Type            int32  `json:"type"`
	Comment         string `json:"comment"`
	Reason          string `json:"reason"`
	ContentAuthorID string `json:"content_author_id"`
}

CircleReportCreatedPayload ...

type CircleReportResolvedPayload

type CircleReportResolvedPayload struct {
	UserID           string `json:"user_id"`
	ReportType       string `json:"report_type"`
	ReportedEntityID string `json:"reported_entity_id"`
	ReportID         string `json:"report_id"`
	FullFill         int32  `json:"full_fill"`
}

CircleReportResolvedPayload ...

type CircleUserBannedContext

type CircleUserBannedContext struct {
	PurgePosts    bool `json:"purge_posts"`
	PurgeComments bool `json:"purge_comments"`
	PurgeMessages bool `json:"purge_messages"`
}

CircleUserBannedContext ...

type CircleUserBannedPayload

type CircleUserBannedPayload struct {
	UserID         string                  `json:"user_id"`
	CircleID       string                  `json:"circle_id"`
	BannedByUserID string                  `json:"banned_by_user_id"`
	BannedAt       string                  `json:"banned_at"`
	Context        CircleUserBannedContext `json:"context"`
}

CircleUserBannedPayload ...

type CircleUserUnbannedPayload added in v0.6.19

type CircleUserUnbannedPayload struct {
	UserID           string `json:"user_id"`
	CircleID         string `json:"circle_id"`
	UnbannedByUserID string `json:"unbanned_by_user_id"`
	UnbannedAt       string `json:"unbanned_at"`
}

CircleUserUnbannedPayload ...

type CollectionRejectedPayload added in v0.6.50

type CollectionRejectedPayload struct {
	Reason      RejectionReason `json:"reason"`
	UserID      string          `json:"user_id"`
	Explanation string          `json:"explanation"`
}

type CollectionUpdatedPayload added in v0.6.50

type CollectionUpdatedPayload struct {
	ID                  string `json:"id"`
	Title               string `json:"title"`
	UserID              string `json:"user_id"`
	Description         string `json:"description"`
	OriginalTitle       string `json:"original_title"`
	OriginalDescription string `json:"original_description"`
}

type CommentRejectedPayload added in v0.6.50

type CommentRejectedPayload struct {
	Reason      RejectionReason `json:"reason"`
	UserID      string          `json:"user_id"`
	Explanation string          `json:"explanation"`
}

type CommentUpdatedPayload added in v0.6.50

type CommentUpdatedPayload struct {
	PostID          string `json:"post_id"`
	UserID          string `json:"user_id"`
	CircleID        string `json:"circle_id"`
	CommentID       string `json:"comment_id"`
	Content         string `json:"content"`
	OriginalContent string `json:"original_content"`
}

type ContentDeletion

type ContentDeletion struct {
	Single *SingleContentDeletion `json:"single,omitempty"`
}

ContentDeletion request to delete content.

Must be one of: SingleContentDeletion.

type CreateCirclePayload

type CreateCirclePayload struct {
	CircleID     string `json:"circle_id"`
	Name         string `json:"name"`
	DirectorID   string `json:"director_id"`
	GroupID      string `json:"group_id"`
	LanguageCode string `json:"language_code"`
	Emoji        string `json:"emoji"`
}

CreateCirclePayload ...

type DefaultAppCreatedPayload added in v0.6.4

type DefaultAppCreatedPayload struct {
	AppID  string `json:"app_id"`
	UserID string `json:"user_id"`
}

DefaultAppCreatedPayload ...

type DeleteCirclePayload

type DeleteCirclePayload struct {
	CircleID  string    `json:"circle_id"`
	DeletedBy string    `json:"deleted_by"`
	DeletedAt time.Time `json:"deleted_at"`
}

DeleteCirclePayload ...

type Event

type Event struct {
	EvtID     string `json:"event_id"`
	EvtType   string `json:"event_type"`
	Timestamp uint64 `json:"timestamp"`

	Payload any `json:"data"`
}

Event ...

func NewEvent

func NewEvent(kind string, payload any) Event

type ImagePayload added in v0.6.26

type ImagePayload struct {
	ExtractedText      string                 `json:"extracted_text"`
	RotatedBoundingBox NormalizedBoundingPoly `json:"rotated_bounding_box"`
	ImageURL           string                 `json:"image_url"`
}

ImagePayload ...

type JoinCirclePayload

type JoinCirclePayload struct {
	CallerID string `json:"caller_id"`
	UserID   string `json:"user_id"`
	CircleID string `json:"circle_id"`
	Role     int64  `json:"role"`
	// JoinedAt is the time when the user joined the circle in RFC3339Nano format
	JoinedAt string `json:"joined_at"`
}

JoinCirclePayload ...

type LeaveCirclePayload

type LeaveCirclePayload struct {
	CallerID string `json:"caller_id"`
	UserID   string `json:"user_id"`
	CircleID string `json:"circle_id"`
	// LeftAt is the time when the user joined the circle in RFC3339Nano format
	LeftAt string `json:"left_at"`
}

LeaveCirclePayload ...

type LegacyUpdateProfilePayload

type LegacyUpdateProfilePayload struct {
	Username             string   `json:"username"`
	Name                 string   `json:"name"`
	Bio                  string   `json:"bio"`
	CountryCode          string   `json:"country_code"`
	LanguageCodes        []string `json:"language_codes"`
	Age                  int64    `json:"age"`
	NotificationsEnabled bool     `json:"notification_enabled"`
	PhoneNumber          string   `json:"phone_number"`
	Email                string   `json:"email"`
	ProfileImageURL      string   `json:"profile_image_url"`
}

LegacyUpdateProfilePayload ...

type LikePostPayload

type LikePostPayload struct {
	PostID string `json:"post_id"`
	UserID string `json:"user_id"`
	Total  int64  `json:"likes_total"`
}

LikePostPayload ...

type MessageRejectedPayload added in v0.6.50

type MessageRejectedPayload struct {
	Reason      RejectionReason `json:"reason"`
	UserID      string          `json:"user_id"`
	Explanation string          `json:"explanation"`
}

type MessageSentPayload

type MessageSentPayload struct {
	UserID          string `json:"user_id"`
	ChatID          string `json:"chat_id"`
	Content         string `json:"content"`
	CircleID        string `json:"circle_id"`
	OriginalContent string `json:"original_content"`
}

MessageSentPayload ...

type ModerationActionCategory

type ModerationActionCategory uint8

ModerationActionCategory moderation category.

type NewCollectionPayload added in v0.6.50

type NewCollectionPayload struct {
	ID                  string `json:"id"`
	Title               string `json:"title"`
	UserID              string `json:"user_id"`
	Description         string `json:"description"`
	OriginalTitle       string `json:"original_title"`
	OriginalDescription string `json:"original_description"`
}

type NewCommentPayload

type NewCommentPayload struct {
	CircleID        string `json:"circle_id"`
	PostID          string `json:"post_id"`
	UserID          string `json:"user_id"`
	CommentID       string `json:"comment_id"`
	Total           int64  `json:"comments_total"`
	Content         string `json:"content"`
	OriginalContent string `json:"original_content"`
}

NewCommentPayload ...

type NewPostPayload

type NewPostPayload struct {
	PostID              string  `json:"post_id"`
	UserID              string  `json:"user_id"`
	CircleID            string  `json:"circle_id"`
	CreatedAt           string  `json:"created_at"`
	Type                uint8   `json:"type"`
	LanguageCode        string  `json:"language_code"`
	ContentURL          string  `json:"content_url"`
	OwnerID             *string `json:"owner_id"`
	OwnerKind           int64   `json:"owner_kind"`
	Content             string  `json:"content"`
	MoreContent         string  `json:"more_content"`
	OriginalContent     string  `json:"original_content"`
	OriginalMoreContent string  `json:"original_more_content"`
}

NewPostPayload ...

type NewUserPayload

type NewUserPayload struct {
	UserID             string   `json:"user_id"`
	Username           string   `json:"username"`
	Email              string   `json:"email"`
	Phone              *string  `json:"phone"`
	LanguageCodes      []string `json:"language_codes"`
	AffiliateCodeOwner *string  `json:"affiliate_code_owner"`
	CreatedAt          string   `json:"created_at"`
	IsGuest            bool     `json:"is_guest"`
}

NewUserPayload ...

type NormalizedBoundingPoly added in v0.6.17

type NormalizedBoundingPoly struct {
	// Normalized vertices of the bounding polygon.
	Vertices []NormalizedVertex `json:"vertices"`
}

NormalizedBoundingPoly ...

type NormalizedVertex added in v0.6.17

type NormalizedVertex struct {
	// X coordinate.
	X float32 `json:"x"`
	// Y coordinate.
	Y float32 `json:"y"`
}

NormalizedVertex ...

type PostClassifiedPayload added in v0.6.9

type PostClassifiedPayload struct {
	PostID             string   `json:"post_id"`
	PostType           string   `json:"post_type"`
	ClassificationTags []string `json:"classification_tags"`
}

PostClassifiedPayload ...

type PostLanguageDetectedPayload added in v0.6.21

type PostLanguageDetectedPayload struct {
	PostID       string  `json:"post_id"`
	Confidence   float32 `json:"confidence"`
	LanguageCode string  `json:"language_code"`
}

PostLanguageDetectedPayload ...

type PostRejectedPayload added in v0.6.50

type PostRejectedPayload struct {
	Reason      RejectionReason `json:"reason"`
	UserID      string          `json:"user_id"`
	Explanation string          `json:"explanation"`
}

type PostSavedPayload

type PostSavedPayload struct {
	UserID  string `json:"user_id"`
	PostID  string `json:"post_id"`
	SavedAt string `json:"saved_at"`
}

PostSavedPayload ...

type PostScreenTimeKind added in v0.6.28

type PostScreenTimeKind = uint

PostScreenTimeKind kind of screen time.

const (
	// PostScreenTimeKindUnknown unknown kind.
	PostScreenTimeKindUnknown PostScreenTimeKind = iota
	// PostScreenTimeKindContent content kind.
	PostScreenTimeKindContent
	// PostScreenTimeKindComment comment kind.
	PostScreenTimeKindComment
)

type PostScreenTimeSavedPayload added in v0.6.28

type PostScreenTimeSavedPayload struct {
	ID        string             `json:"id"`
	UserID    string             `json:"user_id"`
	PostID    string             `json:"post_id"`
	CircleID  string             `json:"circle_id"`
	Duration  time.Duration      `json:"duration"`
	CreatedAt time.Time          `json:"created_at"`
	Kind      PostScreenTimeKind `json:"kind"`
}

PostScreenTimeSavedPayload payload for post screen time saved.

type PostSharedPayload

type PostSharedPayload struct {
	UserID   string `json:"user_id"`
	PostID   string `json:"post_id"`
	SharedAt string `json:"shared_at"`
}

PostSharedPayload ...

type PostUnremovedPayload

type PostUnremovedPayload struct {
	PostID   string `json:"post_id"`
	CircleID string `json:"circle_id"`
	UserID   string `json:"user_id"`
}

PostUnremovedPayload ...

type RejectionReason added in v0.6.50

type RejectionReason uint8
const (
	RejectionReasonUsingProhibitedURL RejectionReason = iota
)

type RemoveCommentPayload

type RemoveCommentPayload struct {
	PostID    string `json:"post_id"`
	UserID    string `json:"user_id"`
	CommentID string `json:"comment_id"`
	Total     int64  `json:"comments_total"`
}

RemoveCommentPayload ...

type RemovePostPayload

type RemovePostPayload struct {
	PostID   string `json:"post_id"`
	CircleID string `json:"circle_id"`
	UserID   string `json:"user_id"`
}

RemovePostPayload ...

type RenameCirclePayload

type RenameCirclePayload struct {
	CircleID string `json:"circle_id"`
	Name     string `json:"name"`
}

RenameCirclePayload ...

type RobloxAccountLinkedPayload added in v0.6.34

type RobloxAccountLinkedPayload struct {
	UserID         string `json:"user_id"`
	RobloxUsername string `json:"roblox_username"`
}

RobloxAccountLinkedPayload payload for linking roblox account.

type Segment added in v0.6.17

type Segment struct {
	ExtractedText string `json:"extracted_text"`
	// Confidence for the track of detected text. It is calculated as the highest
	// over all frames where OCR detected text appears.
	Confidence      float32       `json:"confidence"`
	StartTimeOffset time.Duration `json:"start_time_offset"`
	EndTimeOffset   time.Duration `json:"end_time_offset"`
	// Bounding polygon of the detected text for this frame.
	RotatedBoundingBox NormalizedBoundingPoly `json:"rotated_bounding_box"`
}

Segment ... inspired by https://pkg.go.dev/cloud.google.com/go/videointelligence@v1.11.0/apiv1/videointelligencepb#TextAnnotation

type SingleContentDeletion

type SingleContentDeletion struct {
	Post    *SingleContentDeletionPost    `json:"post,omitempty"`
	Comment *SingleContentDeletionComment `json:"comment,omitempty"`
	Message *SingleContentDeletionMessage `json:"message,omitempty"`
}

SingleContentDeletion request to remove the specified content.

Must be one of: SingleContentDeletionPost, SingleContentDeletionComment, SingleContentDeletionMessage.

type SingleContentDeletionComment

type SingleContentDeletionComment struct {
	CommentID string `json:"commentID"`
}

SingleContentDeletionComment request to remove the specified comment.

type SingleContentDeletionMessage

type SingleContentDeletionMessage struct {
	MessageID string `json:"messageID"`
}

SingleContentDeletionMessage request to remove the specified message.

type SingleContentDeletionPost

type SingleContentDeletionPost struct {
	PostID string `json:"postID"`
}

SingleContentDeletionPost request to remove the specified post.

type StorageAudioTranscriptPayload added in v0.6.1

type StorageAudioTranscriptPayload struct {
	FileID     string `json:"file_id"`
	OwnerID    string `json:"owner_id"`
	Transcript string `json:"transcript"`
}

StorageAudioTranscriptPayload ...

type StorageImageUploadedPayload

type StorageImageUploadedPayload struct {
	FileID         string `json:"file_id"`
	Service        string `json:"service"`
	BucketLocation string `json:"bucket_location"`
}

StorageImageUploadedPayload ...

type StorageVideoUploadedPayload

type StorageVideoUploadedPayload struct {
	FileID            string `json:"file_id"`
	Service           string `json:"service"`
	FileOwnerUsername string `json:"file_owner_username"`
	BucketLocation    string `json:"bucket_location"`
}

StorageVideoUploadedPayload ...

type TextFromImagePayload added in v0.6.25

type TextFromImagePayload struct {
	PostID string         `json:"post_id"`
	Images []ImagePayload `json:"images"`
}

TextFromImagePayload ...

type TextFromVideoPayload added in v0.6.17

type TextFromVideoPayload struct {
	PostID   string    `json:"post_id"`
	Segments []Segment `json:"segments"`
}

TextFromVideoPayload ...

type TextSegment added in v0.6.27

type TextSegment struct {
	StartTime time.Duration `json:"start_time"`
	EndTime   time.Duration `json:"end_time"`
	Text      string        `json:"text"`
}

TextSegment ...

type TranscoderImageThumbnailCreatedPayload

type TranscoderImageThumbnailCreatedPayload struct {
	FileID         string `json:"file_id"`
	Service        string `json:"service"`
	BucketLocation string `json:"bucket_location"`
}

TranscoderImageThumbnailCreatedPayload ...

type TranscoderVideoDurationDefinedPayload

type TranscoderVideoDurationDefinedPayload struct {
	FileID               string `json:"file_id"`
	Service              string `json:"service"`
	DurationMilliseconds int    `json:"duration_ms"`
}

TranscoderVideoDurationDefinedPayload ...

type TranscoderVideoM3U8CreatedPayload added in v0.6.17

type TranscoderVideoM3U8CreatedPayload struct {
	FileID         string `json:"file_id"`
	Service        string `json:"service"`
	BucketLocation string `json:"bucket_location"`
}

TranscoderVideoM3U8CreatedPayload ...

type TranscoderVideoThumbnailCreatedPayload

type TranscoderVideoThumbnailCreatedPayload struct {
	FileID         string `json:"file_id"`
	Service        string `json:"service"`
	BucketLocation string `json:"bucket_location"`
}

TranscoderVideoThumbnailCreatedPayload ...

type TranscoderVideoWatermarkedCreatedPayload

type TranscoderVideoWatermarkedCreatedPayload struct {
	FileID         string `json:"file_id"`
	Service        string `json:"service"`
	BucketLocation string `json:"bucket_location"`
}

TranscoderVideoWatermarkedCreatedPayload ...

type Typed

type Typed[T any] struct {
	EvtID     string
	EvtType   string
	Timestamp uint64

	Payload T
}

Typed ...

type UserBannedContext

type UserBannedContext struct {
	PurgePosts           bool `json:"purge_posts"`
	PurgeComments        bool `json:"purge_comments"`
	PurgeCollections     bool `json:"purge_collections"`
	PurgePublicMessages  bool `json:"purge_public_messages"`
	PurgePrivateMessages bool `json:"purge_private_messages"`
}

UserBannedContext ...

type UserBannedPayload

type UserBannedPayload struct {
	UserID         string            `json:"user_id"`
	BannedByUserID string            `json:"banned_by_user_id"`
	BannedAt       string            `json:"banned_at"`
	Context        UserBannedContext `json:"context"`
}

UserBannedPayload ..

type UserBlockedPayload

type UserBlockedPayload struct {
	UserID        string `json:"user_id"`
	BlockedUserID string `json:"blocked_user_id"`
	BlockedAt     string `json:"blocked_at"`
}

UserBlockedPayload ..

type UserCircleBucketUpdatedPayload added in v0.6.29

type UserCircleBucketUpdatedPayload struct {
	UserID    string    `json:"user_id"`
	CircleID  string    `json:"circle_id"`
	StartTime time.Time `json:"start_time"`
	UpdatedAt time.Time `json:"updated_at"`
}

UserCircleBucketUpdatedPayload payload for user circle bucket updated.

type UserDeletedPayload added in v0.6.39

type UserDeletedPayload struct {
	UserID    string `json:"user_id"`
	DeletedAt string `json:"deleted_at"`
}

UserDeletedPayload ...

type UserDeletionRequestedPayload added in v0.6.40

type UserDeletionRequestedPayload struct {
	UserID string `json:"user_id"`
}

UserDeletionRequestedPayload ...

type UserFeedGenerationRequestedPayload added in v0.6.7

type UserFeedGenerationRequestedPayload struct {
	UserID string `json:"user_id"`
}

UserFeedGenerationRequestedPayload ...

type UserFollowedPayload

type UserFollowedPayload struct {
	UserID         string `json:"user_id"`
	FollowedUserID string `json:"followed_user_id"`
	FollowedAt     string `json:"followed_at"`
}

UserFollowedPayload ..

type UserMentionedPayload

type UserMentionedPayload struct {
	UserID          string `json:"user_id"`
	PostID          string `json:"post_id"`
	MentionedUserID string `json:"mentioned_user_id"`
}

UserMentionedPayload ...

type UserOpenedAppPayload added in v0.6.11

type UserOpenedAppPayload struct {
	UserID string `json:"user_id"`
}

UserOpenedAppPayload ...

type UserReactedToPostPayload

type UserReactedToPostPayload struct {
	UserID   string `json:"user_id"`
	PostID   string `json:"post_id"`
	Reaction string `json:"reaction"`
}

UserReactedToPostPayload ..

type UserUnbannedPayload

type UserUnbannedPayload struct {
	UserID     string `json:"user_id"`
	UnbannedAt string `json:"unbanned_at"`
}

UserUnbannedPayload ..

type UserUnblockedPayload

type UserUnblockedPayload struct {
	UserID          string `json:"user_id"`
	UnblockedUserID string `json:"unblocked_user_id"`
	UnblockedAt     string `json:"unblocked_at"`
}

UserUnblockedPayload ..

type UserUnfollowedPayload

type UserUnfollowedPayload struct {
	UserID           string `json:"user_id"`
	UnfollowedUserID string `json:"unfollowed_user_id"`
	UnfollowedAt     string `json:"unfollowed_at"`
}

UserUnfollowedPayload ..

type UserUnreactedToPostPayload

type UserUnreactedToPostPayload struct {
	UserID   string `json:"user_id"`
	PostID   string `json:"post_id"`
	Reaction string `json:"reaction"`
}

UserUnreactedToPostPayload ..

type UserUnverifiedPayload

type UserUnverifiedPayload struct {
	UserID       string `json:"user_id"`
	UnverifiedAt string `json:"unverified_at"`
}

UserUnverifiedPayload ..

type UserUpdatedPayload

type UserUpdatedPayload struct {
	UserID        string   `json:"user_id"`
	Username      *string  `json:"username"`
	Email         *string  `json:"email"`
	Phone         *string  `json:"phone"`
	LanguageCodes []string `json:"language_codes"`
	UpdatedAt     string   `json:"updated_at"`
}

UserUpdatedPayload ..

type UserVerifiedPayload

type UserVerifiedPayload struct {
	UserID     string `json:"user_id"`
	VerifiedAt string `json:"verified_at"`
}

UserVerifiedPayload ..

type VideoTranscriptedPayload added in v0.6.27

type VideoTranscriptedPayload struct {
	PostID        string        `json:"post_id"`
	ExtractedText string        `json:"extracted_text"`
	Confidence    float32       `json:"confidence"`
	TextSegments  []TextSegment `json:"text_segments"`
}

VideoTranscriptedPayload ...

type ViewPostPayload

type ViewPostPayload struct {
	PostID   string `json:"post_id"`
	UserID   string `json:"user_id"`
	CircleID string `json:"circle_id"`
	Total    int64  `json:"views_total"`
}

ViewPostPayload ...

type WordsBannedContext

type WordsBannedContext struct {
	PurgePosts           bool `json:"purge_posts"`
	PurgeComments        bool `json:"purge_comments"`
	PurgeCollections     bool `json:"purge_collections"`
	PurgePublicMessages  bool `json:"purge_public_messages"`
	PurgePrivateMessages bool `json:"purge_private_messages"`
}

WordsBannedContext ...

type WordsBannedPayload

type WordsBannedPayload struct {
	BlockedByUserID string             `json:"blocked_by_user_id"`
	Words           []string           `json:"words"`
	Context         WordsBannedContext `json:"context"`
}

WordsBannedPayload ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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