schemagen

package
v0.0.0-...-45ae864 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const GraphAssertCreator = "app.bsky.graph.assertCreator"
View Source
const GraphAssertMember = "app.bsky.graph.assertMember"
View Source
const SystemActorScene = "app.bsky.system.actorScene"
View Source
const SystemActorUser = "app.bsky.system.actorUser"

Variables

This section is empty.

Functions

func GraphMute

func GraphMute(ctx context.Context, c *xrpc.Client, input *GraphMute_Input) error

func GraphUnmute

func GraphUnmute(ctx context.Context, c *xrpc.Client, input *GraphUnmute_Input) error

func NotificationUpdateSeen

func NotificationUpdateSeen(ctx context.Context, c *xrpc.Client, input *NotificationUpdateSeen_Input) error

Types

type ActorCreateScene_Input

type ActorCreateScene_Input struct {
	LexiconTypeID string  `json:"$type,omitempty"`
	Handle        string  `json:"handle" cborgen:"handle"`
	RecoveryKey   *string `json:"recoveryKey,omitempty" cborgen:"recoveryKey"`
}

type ActorCreateScene_Output

type ActorCreateScene_Output struct {
	LexiconTypeID string         `json:"$type,omitempty"`
	Declaration   *SystemDeclRef `json:"declaration" cborgen:"declaration"`
	Did           string         `json:"did" cborgen:"did"`
	Handle        string         `json:"handle" cborgen:"handle"`
}

type ActorGetProfile_MyState

type ActorGetProfile_MyState struct {
	LexiconTypeID string  `json:"$type,omitempty"`
	Follow        *string `json:"follow,omitempty" cborgen:"follow"`
	Member        *string `json:"member,omitempty" cborgen:"member"`
	Muted         *bool   `json:"muted,omitempty" cborgen:"muted"`
}

type ActorGetProfile_Output

type ActorGetProfile_Output struct {
	LexiconTypeID  string                   `json:"$type,omitempty"`
	Avatar         *string                  `json:"avatar,omitempty" cborgen:"avatar"`
	Banner         *string                  `json:"banner,omitempty" cborgen:"banner"`
	Creator        string                   `json:"creator" cborgen:"creator"`
	Declaration    *SystemDeclRef           `json:"declaration" cborgen:"declaration"`
	Description    *string                  `json:"description,omitempty" cborgen:"description"`
	Did            string                   `json:"did" cborgen:"did"`
	DisplayName    *string                  `json:"displayName,omitempty" cborgen:"displayName"`
	FollowersCount int64                    `json:"followersCount" cborgen:"followersCount"`
	FollowsCount   int64                    `json:"followsCount" cborgen:"followsCount"`
	Handle         string                   `json:"handle" cborgen:"handle"`
	MembersCount   int64                    `json:"membersCount" cborgen:"membersCount"`
	MyState        *ActorGetProfile_MyState `json:"myState,omitempty" cborgen:"myState"`
	PostsCount     int64                    `json:"postsCount" cborgen:"postsCount"`
}

func ActorGetProfile

func ActorGetProfile(ctx context.Context, c *xrpc.Client, actor string) (*ActorGetProfile_Output, error)

type ActorGetSuggestions_Actor

type ActorGetSuggestions_Actor struct {
	LexiconTypeID string                       `json:"$type,omitempty"`
	Avatar        *string                      `json:"avatar,omitempty" cborgen:"avatar"`
	Declaration   *SystemDeclRef               `json:"declaration" cborgen:"declaration"`
	Description   *string                      `json:"description,omitempty" cborgen:"description"`
	Did           string                       `json:"did" cborgen:"did"`
	DisplayName   *string                      `json:"displayName,omitempty" cborgen:"displayName"`
	Handle        string                       `json:"handle" cborgen:"handle"`
	IndexedAt     *string                      `json:"indexedAt,omitempty" cborgen:"indexedAt"`
	MyState       *ActorGetSuggestions_MyState `json:"myState,omitempty" cborgen:"myState"`
}

type ActorGetSuggestions_MyState

type ActorGetSuggestions_MyState struct {
	LexiconTypeID string  `json:"$type,omitempty"`
	Follow        *string `json:"follow,omitempty" cborgen:"follow"`
}

type ActorGetSuggestions_Output

type ActorGetSuggestions_Output struct {
	LexiconTypeID string                       `json:"$type,omitempty"`
	Actors        []*ActorGetSuggestions_Actor `json:"actors" cborgen:"actors"`
	Cursor        *string                      `json:"cursor,omitempty" cborgen:"cursor"`
}

func ActorGetSuggestions

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

type ActorProfile

type ActorProfile struct {
	LexiconTypeID string     `json:"$type" cborgen:"$type,const=app.bsky.actor.profile"`
	Avatar        *util.Blob `json:"avatar,omitempty" cborgen:"avatar"`
	Banner        *util.Blob `json:"banner,omitempty" cborgen:"banner"`
	Description   *string    `json:"description,omitempty" cborgen:"description"`
	DisplayName   string     `json:"displayName" cborgen:"displayName"`
}

RECORDTYPE: ActorProfile

func (*ActorProfile) MarshalCBOR

func (t *ActorProfile) MarshalCBOR(w io.Writer) error

func (*ActorProfile) UnmarshalCBOR

func (t *ActorProfile) UnmarshalCBOR(r io.Reader) (err error)

type ActorRef

type ActorRef struct {
	LexiconTypeID  string `json:"$type,omitempty"`
	DeclarationCid string `json:"declarationCid" cborgen:"declarationCid"`
	Did            string `json:"did" cborgen:"did"`
}

func (*ActorRef) MarshalCBOR

func (t *ActorRef) MarshalCBOR(w io.Writer) error

func (*ActorRef) UnmarshalCBOR

func (t *ActorRef) UnmarshalCBOR(r io.Reader) (err error)

type ActorRef_ViewerState

type ActorRef_ViewerState struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Muted         *bool  `json:"muted,omitempty" cborgen:"muted"`
}

type ActorRef_WithInfo

type ActorRef_WithInfo struct {
	LexiconTypeID string                `json:"$type,omitempty"`
	Avatar        *string               `json:"avatar,omitempty" cborgen:"avatar"`
	Declaration   *SystemDeclRef        `json:"declaration" cborgen:"declaration"`
	Did           string                `json:"did" cborgen:"did"`
	DisplayName   *string               `json:"displayName,omitempty" cborgen:"displayName"`
	Handle        string                `json:"handle" cborgen:"handle"`
	Viewer        *ActorRef_ViewerState `json:"viewer,omitempty" cborgen:"viewer"`
}

type ActorSearchTypeahead_Output

type ActorSearchTypeahead_Output struct {
	LexiconTypeID string                       `json:"$type,omitempty"`
	Users         []*ActorSearchTypeahead_User `json:"users" cborgen:"users"`
}

func ActorSearchTypeahead

func ActorSearchTypeahead(ctx context.Context, c *xrpc.Client, limit int64, term string) (*ActorSearchTypeahead_Output, error)

type ActorSearchTypeahead_User

type ActorSearchTypeahead_User struct {
	LexiconTypeID string         `json:"$type,omitempty"`
	Avatar        *string        `json:"avatar,omitempty" cborgen:"avatar"`
	Declaration   *SystemDeclRef `json:"declaration" cborgen:"declaration"`
	Did           string         `json:"did" cborgen:"did"`
	DisplayName   *string        `json:"displayName,omitempty" cborgen:"displayName"`
	Handle        string         `json:"handle" cborgen:"handle"`
}

type ActorSearch_Output

type ActorSearch_Output struct {
	LexiconTypeID string              `json:"$type,omitempty"`
	Cursor        *string             `json:"cursor,omitempty" cborgen:"cursor"`
	Users         []*ActorSearch_User `json:"users" cborgen:"users"`
}

func ActorSearch

func ActorSearch(ctx context.Context, c *xrpc.Client, before string, limit int64, term string) (*ActorSearch_Output, error)

type ActorSearch_User

type ActorSearch_User struct {
	LexiconTypeID string         `json:"$type,omitempty"`
	Avatar        *string        `json:"avatar,omitempty" cborgen:"avatar"`
	Declaration   *SystemDeclRef `json:"declaration" cborgen:"declaration"`
	Description   *string        `json:"description,omitempty" cborgen:"description"`
	Did           string         `json:"did" cborgen:"did"`
	DisplayName   *string        `json:"displayName,omitempty" cborgen:"displayName"`
	Handle        string         `json:"handle" cborgen:"handle"`
	IndexedAt     *string        `json:"indexedAt,omitempty" cborgen:"indexedAt"`
}

type ActorUpdateProfile_Input

type ActorUpdateProfile_Input struct {
	LexiconTypeID string     `json:"$type,omitempty"`
	Avatar        *util.Blob `json:"avatar,omitempty" cborgen:"avatar"`
	Banner        *util.Blob `json:"banner,omitempty" cborgen:"banner"`
	Description   *string    `json:"description,omitempty" cborgen:"description"`
	Did           *string    `json:"did,omitempty" cborgen:"did"`
	DisplayName   *string    `json:"displayName,omitempty" cborgen:"displayName"`
}

type ActorUpdateProfile_Output

type ActorUpdateProfile_Output struct {
	LexiconTypeID string                  `json:"$type,omitempty"`
	Cid           string                  `json:"cid" cborgen:"cid"`
	Record        util.LexiconTypeDecoder `json:"record" cborgen:"record"`
	Uri           string                  `json:"uri" cborgen:"uri"`
}

type EmbedExternal

type EmbedExternal struct {
	LexiconTypeID string                  `json:"$type,omitempty"`
	External      *EmbedExternal_External `json:"external" cborgen:"external"`
}

func (*EmbedExternal) MarshalCBOR

func (t *EmbedExternal) MarshalCBOR(w io.Writer) error

func (*EmbedExternal) UnmarshalCBOR

func (t *EmbedExternal) UnmarshalCBOR(r io.Reader) (err error)

type EmbedExternal_External

type EmbedExternal_External struct {
	LexiconTypeID string     `json:"$type,omitempty"`
	Description   string     `json:"description" cborgen:"description"`
	Thumb         *util.Blob `json:"thumb,omitempty" cborgen:"thumb"`
	Title         string     `json:"title" cborgen:"title"`
	Uri           string     `json:"uri" cborgen:"uri"`
}

func (*EmbedExternal_External) MarshalCBOR

func (t *EmbedExternal_External) MarshalCBOR(w io.Writer) error

func (*EmbedExternal_External) UnmarshalCBOR

func (t *EmbedExternal_External) UnmarshalCBOR(r io.Reader) (err error)

type EmbedExternal_Presented

type EmbedExternal_Presented struct {
	LexiconTypeID string                           `json:"$type,omitempty"`
	External      *EmbedExternal_PresentedExternal `json:"external" cborgen:"external"`
}

type EmbedExternal_PresentedExternal

type EmbedExternal_PresentedExternal struct {
	LexiconTypeID string  `json:"$type,omitempty"`
	Description   string  `json:"description" cborgen:"description"`
	Thumb         *string `json:"thumb,omitempty" cborgen:"thumb"`
	Title         string  `json:"title" cborgen:"title"`
	Uri           string  `json:"uri" cborgen:"uri"`
}

type EmbedImages

type EmbedImages struct {
	LexiconTypeID string               `json:"$type,omitempty"`
	Images        []*EmbedImages_Image `json:"images" cborgen:"images"`
}

func (*EmbedImages) MarshalCBOR

func (t *EmbedImages) MarshalCBOR(w io.Writer) error

func (*EmbedImages) UnmarshalCBOR

func (t *EmbedImages) UnmarshalCBOR(r io.Reader) (err error)

type EmbedImages_Image

type EmbedImages_Image struct {
	LexiconTypeID string     `json:"$type,omitempty"`
	Alt           string     `json:"alt" cborgen:"alt"`
	Image         *util.Blob `json:"image" cborgen:"image"`
}

func (*EmbedImages_Image) MarshalCBOR

func (t *EmbedImages_Image) MarshalCBOR(w io.Writer) error

func (*EmbedImages_Image) UnmarshalCBOR

func (t *EmbedImages_Image) UnmarshalCBOR(r io.Reader) (err error)

type EmbedImages_Presented

type EmbedImages_Presented struct {
	LexiconTypeID string                        `json:"$type,omitempty"`
	Images        []*EmbedImages_PresentedImage `json:"images" cborgen:"images"`
}

type EmbedImages_PresentedImage

type EmbedImages_PresentedImage struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Alt           string `json:"alt" cborgen:"alt"`
	Fullsize      string `json:"fullsize" cborgen:"fullsize"`
	Thumb         string `json:"thumb" cborgen:"thumb"`
}

func (*EmbedImages_PresentedImage) MarshalCBOR

func (t *EmbedImages_PresentedImage) MarshalCBOR(w io.Writer) error

func (*EmbedImages_PresentedImage) UnmarshalCBOR

func (t *EmbedImages_PresentedImage) UnmarshalCBOR(r io.Reader) (err error)

type FeedEmbed

type FeedEmbed struct {
	Items []*FeedEmbed_Items_Elem `json:"items" cborgen:"items"`
}

type FeedEmbed_External

type FeedEmbed_External struct {
	ImageUri    string `json:"imageUri" cborgen:"imageUri"`
	Type        string `json:"type" cborgen:"type"`
	Uri         string `json:"uri" cborgen:"uri"`
	Title       string `json:"title" cborgen:"title"`
	Description string `json:"description" cborgen:"description"`
}

type FeedEmbed_Items_Elem

type FeedEmbed_Items_Elem struct {
	FeedEmbed_Media    *FeedEmbed_Media
	FeedEmbed_Record   *FeedEmbed_Record
	FeedEmbed_External *FeedEmbed_External
}

func (*FeedEmbed_Items_Elem) MarshalJSON

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

func (*FeedEmbed_Items_Elem) UnmarshalJSON

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

type FeedEmbed_Media

type FeedEmbed_Media struct {
	Alt      *string    `json:"alt" cborgen:"alt"`
	Thumb    *util.Blob `json:"thumb" cborgen:"thumb"`
	Original *util.Blob `json:"original" cborgen:"original"`
}

type FeedEmbed_Record

type FeedEmbed_Record struct {
	Record any                `json:"record" cborgen:"record"`
	Type   string             `json:"type" cborgen:"type"`
	Author *ActorRef_WithInfo `json:"author" cborgen:"author"`
}

type FeedFeedViewPost

type FeedFeedViewPost struct {
	LexiconTypeID string                     `json:"$type,omitempty"`
	Post          *FeedPost_View             `json:"post" cborgen:"post"`
	Reason        *FeedFeedViewPost_Reason   `json:"reason,omitempty" cborgen:"reason"`
	Reply         *FeedFeedViewPost_ReplyRef `json:"reply,omitempty" cborgen:"reply"`
}

type FeedFeedViewPost_Reason

type FeedFeedViewPost_Reason struct {
	FeedFeedViewPost_ReasonTrend  *FeedFeedViewPost_ReasonTrend
	FeedFeedViewPost_ReasonRepost *FeedFeedViewPost_ReasonRepost
}

func (*FeedFeedViewPost_Reason) MarshalJSON

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

func (*FeedFeedViewPost_Reason) UnmarshalJSON

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

type FeedFeedViewPost_ReasonRepost

type FeedFeedViewPost_ReasonRepost struct {
	LexiconTypeID string             `json:"$type,omitempty"`
	By            *ActorRef_WithInfo `json:"by" cborgen:"by"`
	IndexedAt     string             `json:"indexedAt" cborgen:"indexedAt"`
}

type FeedFeedViewPost_ReasonTrend

type FeedFeedViewPost_ReasonTrend struct {
	LexiconTypeID string             `json:"$type,omitempty"`
	By            *ActorRef_WithInfo `json:"by" cborgen:"by"`
	IndexedAt     string             `json:"indexedAt" cborgen:"indexedAt"`
}

type FeedFeedViewPost_ReplyRef

type FeedFeedViewPost_ReplyRef struct {
	LexiconTypeID string         `json:"$type,omitempty"`
	Parent        *FeedPost_View `json:"parent" cborgen:"parent"`
	Root          *FeedPost_View `json:"root" cborgen:"root"`
}

type FeedGetAuthorFeed_Output

type FeedGetAuthorFeed_Output struct {
	LexiconTypeID string              `json:"$type,omitempty"`
	Cursor        *string             `json:"cursor,omitempty" cborgen:"cursor"`
	Feed          []*FeedFeedViewPost `json:"feed" cborgen:"feed"`
}

func FeedGetAuthorFeed

func FeedGetAuthorFeed(ctx context.Context, c *xrpc.Client, author string, before string, limit int64) (*FeedGetAuthorFeed_Output, error)

type FeedGetPostThread_NotFoundPost

type FeedGetPostThread_NotFoundPost struct {
	LexiconTypeID string `json:"$type,omitempty"`
	NotFound      bool   `json:"notFound" cborgen:"notFound"`
	Uri           string `json:"uri" cborgen:"uri"`
}

type FeedGetPostThread_Output

type FeedGetPostThread_Output struct {
	LexiconTypeID string                           `json:"$type,omitempty"`
	Thread        *FeedGetPostThread_Output_Thread `json:"thread" cborgen:"thread"`
}

func FeedGetPostThread

func FeedGetPostThread(ctx context.Context, c *xrpc.Client, depth int64, uri string) (*FeedGetPostThread_Output, error)

type FeedGetPostThread_Output_Thread

type FeedGetPostThread_Output_Thread struct {
	FeedGetPostThread_ThreadViewPost *FeedGetPostThread_ThreadViewPost
	FeedGetPostThread_NotFoundPost   *FeedGetPostThread_NotFoundPost
}

func (*FeedGetPostThread_Output_Thread) MarshalJSON

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

func (*FeedGetPostThread_Output_Thread) UnmarshalJSON

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

type FeedGetPostThread_ThreadViewPost

type FeedGetPostThread_ThreadViewPost struct {
	LexiconTypeID string                                           `json:"$type,omitempty"`
	Parent        *FeedGetPostThread_ThreadViewPost_Parent         `json:"parent,omitempty" cborgen:"parent"`
	Post          *FeedPost_View                                   `json:"post" cborgen:"post"`
	Replies       []*FeedGetPostThread_ThreadViewPost_Replies_Elem `json:"replies,omitempty" cborgen:"replies"`
}

type FeedGetPostThread_ThreadViewPost_Parent

type FeedGetPostThread_ThreadViewPost_Parent struct {
	FeedGetPostThread_ThreadViewPost *FeedGetPostThread_ThreadViewPost
	FeedGetPostThread_NotFoundPost   *FeedGetPostThread_NotFoundPost
}

func (*FeedGetPostThread_ThreadViewPost_Parent) MarshalJSON

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

func (*FeedGetPostThread_ThreadViewPost_Parent) UnmarshalJSON

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

type FeedGetPostThread_ThreadViewPost_Replies_Elem

type FeedGetPostThread_ThreadViewPost_Replies_Elem struct {
	FeedGetPostThread_ThreadViewPost *FeedGetPostThread_ThreadViewPost
	FeedGetPostThread_NotFoundPost   *FeedGetPostThread_NotFoundPost
}

func (*FeedGetPostThread_ThreadViewPost_Replies_Elem) MarshalJSON

func (*FeedGetPostThread_ThreadViewPost_Replies_Elem) UnmarshalJSON

type FeedGetRepostedBy_Output

type FeedGetRepostedBy_Output struct {
	LexiconTypeID string                          `json:"$type,omitempty"`
	Cid           *string                         `json:"cid,omitempty" cborgen:"cid"`
	Cursor        *string                         `json:"cursor,omitempty" cborgen:"cursor"`
	RepostedBy    []*FeedGetRepostedBy_RepostedBy `json:"repostedBy" cborgen:"repostedBy"`
	Uri           string                          `json:"uri" cborgen:"uri"`
}

func FeedGetRepostedBy

func FeedGetRepostedBy(ctx context.Context, c *xrpc.Client, before string, cid string, limit int64, uri string) (*FeedGetRepostedBy_Output, error)

type FeedGetRepostedBy_RepostedBy

type FeedGetRepostedBy_RepostedBy struct {
	LexiconTypeID string         `json:"$type,omitempty"`
	Avatar        *string        `json:"avatar,omitempty" cborgen:"avatar"`
	CreatedAt     *string        `json:"createdAt,omitempty" cborgen:"createdAt"`
	Declaration   *SystemDeclRef `json:"declaration" cborgen:"declaration"`
	Did           string         `json:"did" cborgen:"did"`
	DisplayName   *string        `json:"displayName,omitempty" cborgen:"displayName"`
	Handle        string         `json:"handle" cborgen:"handle"`
	IndexedAt     string         `json:"indexedAt" cborgen:"indexedAt"`
}

type FeedGetTimeline_Output

type FeedGetTimeline_Output struct {
	LexiconTypeID string              `json:"$type,omitempty"`
	Cursor        *string             `json:"cursor,omitempty" cborgen:"cursor"`
	Feed          []*FeedFeedViewPost `json:"feed" cborgen:"feed"`
}

func FeedGetTimeline

func FeedGetTimeline(ctx context.Context, c *xrpc.Client, algorithm string, before string, limit int64) (*FeedGetTimeline_Output, error)

type FeedGetVotes_Output

type FeedGetVotes_Output struct {
	LexiconTypeID string               `json:"$type,omitempty"`
	Cid           *string              `json:"cid,omitempty" cborgen:"cid"`
	Cursor        *string              `json:"cursor,omitempty" cborgen:"cursor"`
	Uri           string               `json:"uri" cborgen:"uri"`
	Votes         []*FeedGetVotes_Vote `json:"votes" cborgen:"votes"`
}

func FeedGetVotes

func FeedGetVotes(ctx context.Context, c *xrpc.Client, before string, cid string, direction string, limit int64, uri string) (*FeedGetVotes_Output, error)

type FeedGetVotes_Vote

type FeedGetVotes_Vote struct {
	LexiconTypeID string             `json:"$type,omitempty"`
	Actor         *ActorRef_WithInfo `json:"actor" cborgen:"actor"`
	CreatedAt     string             `json:"createdAt" cborgen:"createdAt"`
	Direction     string             `json:"direction" cborgen:"direction"`
	IndexedAt     string             `json:"indexedAt" cborgen:"indexedAt"`
}

type FeedPost

type FeedPost struct {
	LexiconTypeID string             `json:"$type" cborgen:"$type,const=app.bsky.feed.post"`
	CreatedAt     string             `json:"createdAt" cborgen:"createdAt"`
	Embed         *FeedPost_Embed    `json:"embed,omitempty" cborgen:"embed"`
	Entities      []*FeedPost_Entity `json:"entities,omitempty" cborgen:"entities"`
	Reply         *FeedPost_ReplyRef `json:"reply,omitempty" cborgen:"reply"`
	Text          string             `json:"text" cborgen:"text"`
}

RECORDTYPE: FeedPost

func (*FeedPost) MarshalCBOR

func (t *FeedPost) MarshalCBOR(w io.Writer) error

func (*FeedPost) UnmarshalCBOR

func (t *FeedPost) UnmarshalCBOR(r io.Reader) (err error)

type FeedPost_Embed

type FeedPost_Embed struct {
	EmbedImages   *EmbedImages
	EmbedExternal *EmbedExternal
}

func (*FeedPost_Embed) MarshalCBOR

func (t *FeedPost_Embed) MarshalCBOR(w io.Writer) error

func (*FeedPost_Embed) MarshalJSON

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

func (*FeedPost_Embed) UnmarshalCBOR

func (t *FeedPost_Embed) UnmarshalCBOR(r io.Reader) error

func (*FeedPost_Embed) UnmarshalJSON

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

type FeedPost_Entity

type FeedPost_Entity struct {
	LexiconTypeID string              `json:"$type,omitempty"`
	Index         *FeedPost_TextSlice `json:"index" cborgen:"index"`
	Type          string              `json:"type" cborgen:"type"`
	Value         string              `json:"value" cborgen:"value"`
}

func (*FeedPost_Entity) MarshalCBOR

func (t *FeedPost_Entity) MarshalCBOR(w io.Writer) error

func (*FeedPost_Entity) UnmarshalCBOR

func (t *FeedPost_Entity) UnmarshalCBOR(r io.Reader) (err error)

type FeedPost_ReplyRef

type FeedPost_ReplyRef struct {
	LexiconTypeID string                         `json:"$type,omitempty"`
	Parent        *comatprototypes.RepoStrongRef `json:"parent" cborgen:"parent"`
	Root          *comatprototypes.RepoStrongRef `json:"root" cborgen:"root"`
}

func (*FeedPost_ReplyRef) MarshalCBOR

func (t *FeedPost_ReplyRef) MarshalCBOR(w io.Writer) error

func (*FeedPost_ReplyRef) UnmarshalCBOR

func (t *FeedPost_ReplyRef) UnmarshalCBOR(r io.Reader) (err error)

type FeedPost_TextSlice

type FeedPost_TextSlice struct {
	LexiconTypeID string `json:"$type,omitempty"`
	End           int64  `json:"end" cborgen:"end"`
	Start         int64  `json:"start" cborgen:"start"`
}

func (*FeedPost_TextSlice) MarshalCBOR

func (t *FeedPost_TextSlice) MarshalCBOR(w io.Writer) error

func (*FeedPost_TextSlice) UnmarshalCBOR

func (t *FeedPost_TextSlice) UnmarshalCBOR(r io.Reader) (err error)

type FeedPost_View

type FeedPost_View struct {
	LexiconTypeID string                  `json:"$type,omitempty"`
	Author        *ActorRef_WithInfo      `json:"author" cborgen:"author"`
	Cid           string                  `json:"cid" cborgen:"cid"`
	DownvoteCount int64                   `json:"downvoteCount" cborgen:"downvoteCount"`
	Embed         *FeedPost_View_Embed    `json:"embed,omitempty" cborgen:"embed"`
	IndexedAt     string                  `json:"indexedAt" cborgen:"indexedAt"`
	Record        util.LexiconTypeDecoder `json:"record" cborgen:"record"`
	ReplyCount    int64                   `json:"replyCount" cborgen:"replyCount"`
	RepostCount   int64                   `json:"repostCount" cborgen:"repostCount"`
	UpvoteCount   int64                   `json:"upvoteCount" cborgen:"upvoteCount"`
	Uri           string                  `json:"uri" cborgen:"uri"`
	Viewer        *FeedPost_ViewerState   `json:"viewer" cborgen:"viewer"`
}

type FeedPost_View_Embed

type FeedPost_View_Embed struct {
	EmbedImages_Presented   *EmbedImages_Presented
	EmbedExternal_Presented *EmbedExternal_Presented
}

func (*FeedPost_View_Embed) MarshalJSON

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

func (*FeedPost_View_Embed) UnmarshalJSON

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

type FeedPost_ViewerState

type FeedPost_ViewerState struct {
	LexiconTypeID string  `json:"$type,omitempty"`
	Downvote      *string `json:"downvote,omitempty" cborgen:"downvote"`
	Muted         *bool   `json:"muted,omitempty" cborgen:"muted"`
	Repost        *string `json:"repost,omitempty" cborgen:"repost"`
	Upvote        *string `json:"upvote,omitempty" cborgen:"upvote"`
}

type FeedRepost

type FeedRepost struct {
	LexiconTypeID string                         `json:"$type" cborgen:"$type,const=app.bsky.feed.repost"`
	CreatedAt     string                         `json:"createdAt" cborgen:"createdAt"`
	Subject       *comatprototypes.RepoStrongRef `json:"subject" cborgen:"subject"`
}

RECORDTYPE: FeedRepost

func (*FeedRepost) MarshalCBOR

func (t *FeedRepost) MarshalCBOR(w io.Writer) error

func (*FeedRepost) UnmarshalCBOR

func (t *FeedRepost) UnmarshalCBOR(r io.Reader) (err error)

type FeedSetVote_Input

type FeedSetVote_Input struct {
	LexiconTypeID string                         `json:"$type,omitempty"`
	Direction     string                         `json:"direction" cborgen:"direction"`
	Subject       *comatprototypes.RepoStrongRef `json:"subject" cborgen:"subject"`
}

type FeedSetVote_Output

type FeedSetVote_Output struct {
	LexiconTypeID string  `json:"$type,omitempty"`
	Downvote      *string `json:"downvote,omitempty" cborgen:"downvote"`
	Upvote        *string `json:"upvote,omitempty" cborgen:"upvote"`
}

func FeedSetVote

func FeedSetVote(ctx context.Context, c *xrpc.Client, input *FeedSetVote_Input) (*FeedSetVote_Output, error)

type FeedTrend

type FeedTrend struct {
	LexiconTypeID string                         `json:"$type" cborgen:"$type,const=app.bsky.feed.trend"`
	CreatedAt     string                         `json:"createdAt" cborgen:"createdAt"`
	Subject       *comatprototypes.RepoStrongRef `json:"subject" cborgen:"subject"`
}

RECORDTYPE: FeedTrend

func (*FeedTrend) MarshalCBOR

func (t *FeedTrend) MarshalCBOR(w io.Writer) error

func (*FeedTrend) UnmarshalCBOR

func (t *FeedTrend) UnmarshalCBOR(r io.Reader) (err error)

type FeedVote

type FeedVote struct {
	LexiconTypeID string                         `json:"$type" cborgen:"$type,const=app.bsky.feed.vote"`
	CreatedAt     string                         `json:"createdAt" cborgen:"createdAt"`
	Direction     string                         `json:"direction" cborgen:"direction"`
	Subject       *comatprototypes.RepoStrongRef `json:"subject" cborgen:"subject"`
}

RECORDTYPE: FeedVote

func (*FeedVote) MarshalCBOR

func (t *FeedVote) MarshalCBOR(w io.Writer) error

func (*FeedVote) UnmarshalCBOR

func (t *FeedVote) UnmarshalCBOR(r io.Reader) (err error)

type GraphAssertion

type GraphAssertion struct {
	LexiconTypeID string    `json:"$type" cborgen:"$type,const=app.bsky.graph.assertion"`
	Assertion     string    `json:"assertion" cborgen:"assertion"`
	CreatedAt     string    `json:"createdAt" cborgen:"createdAt"`
	Subject       *ActorRef `json:"subject" cborgen:"subject"`
}

RECORDTYPE: GraphAssertion

func (*GraphAssertion) MarshalCBOR

func (t *GraphAssertion) MarshalCBOR(w io.Writer) error

func (*GraphAssertion) UnmarshalCBOR

func (t *GraphAssertion) UnmarshalCBOR(r io.Reader) (err error)

type GraphConfirmation

type GraphConfirmation struct {
	LexiconTypeID string                         `json:"$type" cborgen:"$type,const=app.bsky.graph.confirmation"`
	Assertion     *comatprototypes.RepoStrongRef `json:"assertion" cborgen:"assertion"`
	CreatedAt     string                         `json:"createdAt" cborgen:"createdAt"`
	Originator    *ActorRef                      `json:"originator" cborgen:"originator"`
}

RECORDTYPE: GraphConfirmation

func (*GraphConfirmation) MarshalCBOR

func (t *GraphConfirmation) MarshalCBOR(w io.Writer) error

func (*GraphConfirmation) UnmarshalCBOR

func (t *GraphConfirmation) UnmarshalCBOR(r io.Reader) (err error)

type GraphFollow

type GraphFollow struct {
	LexiconTypeID string    `json:"$type" cborgen:"$type,const=app.bsky.graph.follow"`
	CreatedAt     string    `json:"createdAt" cborgen:"createdAt"`
	Subject       *ActorRef `json:"subject" cborgen:"subject"`
}

RECORDTYPE: GraphFollow

func (*GraphFollow) MarshalCBOR

func (t *GraphFollow) MarshalCBOR(w io.Writer) error

func (*GraphFollow) UnmarshalCBOR

func (t *GraphFollow) UnmarshalCBOR(r io.Reader) (err error)

type GraphGetAssertions_Assertion

type GraphGetAssertions_Assertion struct {
	LexiconTypeID string                           `json:"$type,omitempty"`
	Assertion     string                           `json:"assertion" cborgen:"assertion"`
	Author        *ActorRef_WithInfo               `json:"author" cborgen:"author"`
	Cid           string                           `json:"cid" cborgen:"cid"`
	Confirmation  *GraphGetAssertions_Confirmation `json:"confirmation,omitempty" cborgen:"confirmation"`
	CreatedAt     string                           `json:"createdAt" cborgen:"createdAt"`
	IndexedAt     string                           `json:"indexedAt" cborgen:"indexedAt"`
	Subject       *ActorRef_WithInfo               `json:"subject" cborgen:"subject"`
	Uri           string                           `json:"uri" cborgen:"uri"`
}

type GraphGetAssertions_Confirmation

type GraphGetAssertions_Confirmation struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Cid           string `json:"cid" cborgen:"cid"`
	CreatedAt     string `json:"createdAt" cborgen:"createdAt"`
	IndexedAt     string `json:"indexedAt" cborgen:"indexedAt"`
	Uri           string `json:"uri" cborgen:"uri"`
}

type GraphGetAssertions_Output

type GraphGetAssertions_Output struct {
	LexiconTypeID string                          `json:"$type,omitempty"`
	Assertions    []*GraphGetAssertions_Assertion `json:"assertions" cborgen:"assertions"`
	Cursor        *string                         `json:"cursor,omitempty" cborgen:"cursor"`
}

func GraphGetAssertions

func GraphGetAssertions(ctx context.Context, c *xrpc.Client, assertion string, author string, before string, confirmed bool, limit int64, subject string) (*GraphGetAssertions_Output, error)

type GraphGetFollowers_Follower

type GraphGetFollowers_Follower struct {
	LexiconTypeID string         `json:"$type,omitempty"`
	Avatar        *string        `json:"avatar,omitempty" cborgen:"avatar"`
	CreatedAt     *string        `json:"createdAt,omitempty" cborgen:"createdAt"`
	Declaration   *SystemDeclRef `json:"declaration" cborgen:"declaration"`
	Did           string         `json:"did" cborgen:"did"`
	DisplayName   *string        `json:"displayName,omitempty" cborgen:"displayName"`
	Handle        string         `json:"handle" cborgen:"handle"`
	IndexedAt     string         `json:"indexedAt" cborgen:"indexedAt"`
}

type GraphGetFollowers_Output

type GraphGetFollowers_Output struct {
	LexiconTypeID string                        `json:"$type,omitempty"`
	Cursor        *string                       `json:"cursor,omitempty" cborgen:"cursor"`
	Followers     []*GraphGetFollowers_Follower `json:"followers" cborgen:"followers"`
	Subject       *ActorRef_WithInfo            `json:"subject" cborgen:"subject"`
}

func GraphGetFollowers

func GraphGetFollowers(ctx context.Context, c *xrpc.Client, before string, limit int64, user string) (*GraphGetFollowers_Output, error)

type GraphGetFollows_Follow

type GraphGetFollows_Follow struct {
	LexiconTypeID string         `json:"$type,omitempty"`
	CreatedAt     *string        `json:"createdAt,omitempty" cborgen:"createdAt"`
	Declaration   *SystemDeclRef `json:"declaration" cborgen:"declaration"`
	Did           string         `json:"did" cborgen:"did"`
	DisplayName   *string        `json:"displayName,omitempty" cborgen:"displayName"`
	Handle        string         `json:"handle" cborgen:"handle"`
	IndexedAt     string         `json:"indexedAt" cborgen:"indexedAt"`
}

type GraphGetFollows_Output

type GraphGetFollows_Output struct {
	LexiconTypeID string                    `json:"$type,omitempty"`
	Cursor        *string                   `json:"cursor,omitempty" cborgen:"cursor"`
	Follows       []*GraphGetFollows_Follow `json:"follows" cborgen:"follows"`
	Subject       *ActorRef_WithInfo        `json:"subject" cborgen:"subject"`
}

func GraphGetFollows

func GraphGetFollows(ctx context.Context, c *xrpc.Client, before string, limit int64, user string) (*GraphGetFollows_Output, error)

type GraphGetMembers_Member

type GraphGetMembers_Member struct {
	LexiconTypeID string         `json:"$type,omitempty"`
	CreatedAt     *string        `json:"createdAt,omitempty" cborgen:"createdAt"`
	Declaration   *SystemDeclRef `json:"declaration" cborgen:"declaration"`
	Did           string         `json:"did" cborgen:"did"`
	DisplayName   *string        `json:"displayName,omitempty" cborgen:"displayName"`
	Handle        string         `json:"handle" cborgen:"handle"`
	IndexedAt     string         `json:"indexedAt" cborgen:"indexedAt"`
}

type GraphGetMembers_Output

type GraphGetMembers_Output struct {
	LexiconTypeID string                    `json:"$type,omitempty"`
	Cursor        *string                   `json:"cursor,omitempty" cborgen:"cursor"`
	Members       []*GraphGetMembers_Member `json:"members" cborgen:"members"`
	Subject       *ActorRef_WithInfo        `json:"subject" cborgen:"subject"`
}

func GraphGetMembers

func GraphGetMembers(ctx context.Context, c *xrpc.Client, actor string, before string, limit int64) (*GraphGetMembers_Output, error)

type GraphGetMemberships_Membership

type GraphGetMemberships_Membership struct {
	LexiconTypeID string         `json:"$type,omitempty"`
	CreatedAt     *string        `json:"createdAt,omitempty" cborgen:"createdAt"`
	Declaration   *SystemDeclRef `json:"declaration" cborgen:"declaration"`
	Did           string         `json:"did" cborgen:"did"`
	DisplayName   *string        `json:"displayName,omitempty" cborgen:"displayName"`
	Handle        string         `json:"handle" cborgen:"handle"`
	IndexedAt     string         `json:"indexedAt" cborgen:"indexedAt"`
}

type GraphGetMemberships_Output

type GraphGetMemberships_Output struct {
	LexiconTypeID string                            `json:"$type,omitempty"`
	Cursor        *string                           `json:"cursor,omitempty" cborgen:"cursor"`
	Memberships   []*GraphGetMemberships_Membership `json:"memberships" cborgen:"memberships"`
	Subject       *ActorRef_WithInfo                `json:"subject" cborgen:"subject"`
}

func GraphGetMemberships

func GraphGetMemberships(ctx context.Context, c *xrpc.Client, actor string, before string, limit int64) (*GraphGetMemberships_Output, error)

type GraphGetMutes_Mute

type GraphGetMutes_Mute struct {
	LexiconTypeID string         `json:"$type,omitempty"`
	CreatedAt     string         `json:"createdAt" cborgen:"createdAt"`
	Declaration   *SystemDeclRef `json:"declaration" cborgen:"declaration"`
	Did           string         `json:"did" cborgen:"did"`
	DisplayName   *string        `json:"displayName,omitempty" cborgen:"displayName"`
	Handle        string         `json:"handle" cborgen:"handle"`
}

type GraphGetMutes_Output

type GraphGetMutes_Output struct {
	LexiconTypeID string                `json:"$type,omitempty"`
	Cursor        *string               `json:"cursor,omitempty" cborgen:"cursor"`
	Mutes         []*GraphGetMutes_Mute `json:"mutes" cborgen:"mutes"`
}

func GraphGetMutes

func GraphGetMutes(ctx context.Context, c *xrpc.Client, before string, limit int64) (*GraphGetMutes_Output, error)

type GraphMute_Input

type GraphMute_Input struct {
	LexiconTypeID string `json:"$type,omitempty"`
	User          string `json:"user" cborgen:"user"`
}

type GraphUnmute_Input

type GraphUnmute_Input struct {
	LexiconTypeID string `json:"$type,omitempty"`
	User          string `json:"user" cborgen:"user"`
}

type NotificationGetCount_Output

type NotificationGetCount_Output struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Count         int64  `json:"count" cborgen:"count"`
}

func NotificationGetCount

func NotificationGetCount(ctx context.Context, c *xrpc.Client) (*NotificationGetCount_Output, error)

type NotificationList_Notification

type NotificationList_Notification struct {
	LexiconTypeID string                  `json:"$type,omitempty"`
	Author        *ActorRef_WithInfo      `json:"author" cborgen:"author"`
	Cid           string                  `json:"cid" cborgen:"cid"`
	IndexedAt     string                  `json:"indexedAt" cborgen:"indexedAt"`
	IsRead        bool                    `json:"isRead" cborgen:"isRead"`
	Reason        string                  `json:"reason" cborgen:"reason"`
	ReasonSubject *string                 `json:"reasonSubject,omitempty" cborgen:"reasonSubject"`
	Record        util.LexiconTypeDecoder `json:"record" cborgen:"record"`
	Uri           string                  `json:"uri" cborgen:"uri"`
}

type NotificationList_Output

type NotificationList_Output struct {
	LexiconTypeID string                           `json:"$type,omitempty"`
	Cursor        *string                          `json:"cursor,omitempty" cborgen:"cursor"`
	Notifications []*NotificationList_Notification `json:"notifications" cborgen:"notifications"`
}

func NotificationList

func NotificationList(ctx context.Context, c *xrpc.Client, before string, limit int64) (*NotificationList_Output, error)

type NotificationUpdateSeen_Input

type NotificationUpdateSeen_Input struct {
	LexiconTypeID string `json:"$type,omitempty"`
	SeenAt        string `json:"seenAt" cborgen:"seenAt"`
}

type SystemDeclRef

type SystemDeclRef struct {
	LexiconTypeID string `json:"$type,omitempty"`
	ActorType     string `json:"actorType" cborgen:"actorType"`
	Cid           string `json:"cid" cborgen:"cid"`
}

type SystemDeclaration

type SystemDeclaration struct {
	LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.system.declaration"`
	ActorType     string `json:"actorType" cborgen:"actorType"`
}

RECORDTYPE: SystemDeclaration

func (*SystemDeclaration) MarshalCBOR

func (t *SystemDeclaration) MarshalCBOR(w io.Writer) error

func (*SystemDeclaration) UnmarshalCBOR

func (t *SystemDeclaration) UnmarshalCBOR(r io.Reader) (err error)

Jump to

Keyboard shortcuts

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