tiny 88x31 lexicon for atproto
1package lex
2
3import (
4 "github.com/bluesky-social/indigo/lex/util"
5)
6
7func init() {
8}
9
10type ButtonRecord struct {
11 LexiconTypeID string `json:"$type,const=org.xcvr.actor.profile" cborgen:"$type,const=org.xcvr.actor.profile"`
12 Href *string `json:"href,omitempty" cborgen:"href,omitempty"`
13 Title *string `json:"title,omitempty" cborgen:"title,omitempty"`
14 Alt *string `json:"alt,omitempty" cborgen:"alt,omitempty"`
15 Blob util.BlobSchema `json:"blob" cborgen:"blob"`
16 PostedAt string `json:"postedAt,omitempty" cborgen:"postedAt,omitEmpty" `
17}
18
19type LikeSubject struct {
20 URI string `json:"uri" cborgen:"uri"`
21 CID string `json:"cid" cborgen:"cid"`
22}
23
24type LikeRecord struct {
25 LexiconTypeID string `json:"$type,const=org.xcvr.feed.channel" cborgen:"$type,const=org.xcvr.feed.channel"`
26 Subject LikeSubject `json:"subject" cborgen:"subject"`
27 CreatedAt string `json:"postedAt,omitempty" cborgen:"postedAt,omitEmpty" `
28}