diff --git a/api/atproto/cbor_gen.go b/api/atproto/cbor_gen.go index 9fbc2d905..275d8926b 100644 --- a/api/atproto/cbor_gen.go +++ b/api/atproto/cbor_gen.go @@ -3009,8 +3009,17 @@ func (t *LabelDefs_LabelValueDefinition) MarshalCBOR(w io.Writer) error { } cw := cbg.NewCborWriter(w) + fieldCount := 6 - if _, err := cw.Write([]byte{164}); err != nil { + if t.AdultOnly == nil { + fieldCount-- + } + + if t.DefaultSetting == nil { + fieldCount-- + } + + if _, err := cw.Write(cbg.CborEncodeMajorType(cbg.MajMap, uint64(fieldCount))); err != nil { return err } @@ -3086,6 +3095,31 @@ func (t *LabelDefs_LabelValueDefinition) MarshalCBOR(w io.Writer) error { return err } + // t.AdultOnly (bool) (bool) + if t.AdultOnly != nil { + + if len("adultOnly") > 1000000 { + return xerrors.Errorf("Value in field \"adultOnly\" was too long") + } + + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("adultOnly"))); err != nil { + return err + } + if _, err := cw.WriteString(string("adultOnly")); err != nil { + return err + } + + if t.AdultOnly == nil { + if _, err := cw.Write(cbg.CborNull); err != nil { + return err + } + } else { + if err := cbg.WriteBool(w, *t.AdultOnly); err != nil { + return err + } + } + } + // t.Identifier (string) (string) if len("identifier") > 1000000 { return xerrors.Errorf("Value in field \"identifier\" was too long") @@ -3108,6 +3142,38 @@ func (t *LabelDefs_LabelValueDefinition) MarshalCBOR(w io.Writer) error { if _, err := cw.WriteString(string(t.Identifier)); err != nil { return err } + + // t.DefaultSetting (string) (string) + if t.DefaultSetting != nil { + + if len("defaultSetting") > 1000000 { + return xerrors.Errorf("Value in field \"defaultSetting\" was too long") + } + + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("defaultSetting"))); err != nil { + return err + } + if _, err := cw.WriteString(string("defaultSetting")); err != nil { + return err + } + + if t.DefaultSetting == nil { + if _, err := cw.Write(cbg.CborNull); err != nil { + return err + } + } else { + if len(*t.DefaultSetting) > 1000000 { + return xerrors.Errorf("Value in field t.DefaultSetting was too long") + } + + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(*t.DefaultSetting))); err != nil { + return err + } + if _, err := cw.WriteString(string(*t.DefaultSetting)); err != nil { + return err + } + } + } return nil } @@ -3220,6 +3286,39 @@ func (t *LabelDefs_LabelValueDefinition) UnmarshalCBOR(r io.Reader) (err error) t.Severity = string(sval) } + // t.AdultOnly (bool) (bool) + case "adultOnly": + + { + b, err := cr.ReadByte() + if err != nil { + return err + } + if b != cbg.CborNull[0] { + if err := cr.UnreadByte(); err != nil { + return err + } + + maj, extra, err = cr.ReadHeader() + if err != nil { + return err + } + if maj != cbg.MajOther { + return fmt.Errorf("booleans must be major type 7") + } + + var val bool + switch extra { + case 20: + val = false + case 21: + val = true + default: + return fmt.Errorf("booleans are either major type 7, value 20 or 21 (got %d)", extra) + } + t.AdultOnly = &val + } + } // t.Identifier (string) (string) case "identifier": @@ -3231,6 +3330,27 @@ func (t *LabelDefs_LabelValueDefinition) UnmarshalCBOR(r io.Reader) (err error) t.Identifier = string(sval) } + // t.DefaultSetting (string) (string) + case "defaultSetting": + + { + b, err := cr.ReadByte() + if err != nil { + return err + } + if b != cbg.CborNull[0] { + if err := cr.UnreadByte(); err != nil { + return err + } + + sval, err := cbg.ReadStringWithMax(cr, 1000000) + if err != nil { + return err + } + + t.DefaultSetting = (*string)(&sval) + } + } default: // Field doesn't exist on this type, so ignore it diff --git a/api/atproto/labeldefs.go b/api/atproto/labeldefs.go index 01762ecdc..47ad31d3d 100644 --- a/api/atproto/labeldefs.go +++ b/api/atproto/labeldefs.go @@ -36,8 +36,12 @@ type LabelDefs_Label struct { // // Declares a label value and its expected interpertations and behaviors. type LabelDefs_LabelValueDefinition struct { + // adultOnly: Does the user need to have adult content enabled in order to configure this label? + AdultOnly *bool `json:"adultOnly,omitempty" cborgen:"adultOnly,omitempty"` // blurs: What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing. Blurs string `json:"blurs" cborgen:"blurs"` + // defaultSetting: The default setting for this label. + DefaultSetting *string `json:"defaultSetting,omitempty" cborgen:"defaultSetting,omitempty"` // identifier: The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). Identifier string `json:"identifier" cborgen:"identifier"` Locales []*LabelDefs_LabelValueDefinitionStrings `json:"locales" cborgen:"locales"` diff --git a/api/atproto/serverdescribeServer.go b/api/atproto/serverdescribeServer.go index e2d49973e..c6dfedbfe 100644 --- a/api/atproto/serverdescribeServer.go +++ b/api/atproto/serverdescribeServer.go @@ -10,6 +10,11 @@ import ( "github.com/bluesky-social/indigo/xrpc" ) +// ServerDescribeServer_Contact is a "contact" in the com.atproto.server.describeServer schema. +type ServerDescribeServer_Contact struct { + Email *string `json:"email,omitempty" cborgen:"email,omitempty"` +} + // ServerDescribeServer_Links is a "links" in the com.atproto.server.describeServer schema. type ServerDescribeServer_Links struct { PrivacyPolicy *string `json:"privacyPolicy,omitempty" cborgen:"privacyPolicy,omitempty"` @@ -20,7 +25,9 @@ type ServerDescribeServer_Links struct { type ServerDescribeServer_Output struct { // availableUserDomains: List of domain suffixes that can be used in account handles. AvailableUserDomains []string `json:"availableUserDomains" cborgen:"availableUserDomains"` - Did string `json:"did" cborgen:"did"` + // contact: Contact information + Contact *ServerDescribeServer_Contact `json:"contact,omitempty" cborgen:"contact,omitempty"` + Did string `json:"did" cborgen:"did"` // inviteCodeRequired: If true, an invite code must be supplied to create an account on this instance. InviteCodeRequired *bool `json:"inviteCodeRequired,omitempty" cborgen:"inviteCodeRequired,omitempty"` // links: URLs of service policy documents. diff --git a/api/atproto/syncgetRecord.go b/api/atproto/syncgetRecord.go index 9645a846b..c7321c5e8 100644 --- a/api/atproto/syncgetRecord.go +++ b/api/atproto/syncgetRecord.go @@ -13,7 +13,7 @@ import ( // SyncGetRecord calls the XRPC method "com.atproto.sync.getRecord". // -// commit: An optional past commit CID. +// commit: DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit // did: The DID of the repo. // rkey: Record Key func SyncGetRecord(ctx context.Context, c *xrpc.Client, collection string, commit string, did string, rkey string) ([]byte, error) { diff --git a/api/bsky/actordefs.go b/api/bsky/actordefs.go index f13dea80d..546dc5213 100644 --- a/api/bsky/actordefs.go +++ b/api/bsky/actordefs.go @@ -68,14 +68,14 @@ type ActorDefs_InterestsPref struct { Tags []string `json:"tags" cborgen:"tags"` } -// ActorDefs_ModPrefItem is a "modPrefItem" in the app.bsky.actor.defs schema. -type ActorDefs_ModPrefItem struct { +// ActorDefs_LabelerPrefItem is a "labelerPrefItem" in the app.bsky.actor.defs schema. +type ActorDefs_LabelerPrefItem struct { Did string `json:"did" cborgen:"did"` } -// ActorDefs_ModsPref is a "modsPref" in the app.bsky.actor.defs schema. -type ActorDefs_ModsPref struct { - Mods []*ActorDefs_ModPrefItem `json:"mods" cborgen:"mods"` +// ActorDefs_LabelersPref is a "labelersPref" in the app.bsky.actor.defs schema. +type ActorDefs_LabelersPref struct { + Labelers []*ActorDefs_LabelerPrefItem `json:"labelers" cborgen:"labelers"` } // ActorDefs_MutedWord is a "mutedWord" in the app.bsky.actor.defs schema. @@ -206,6 +206,7 @@ type ActorDefs_ProfileAssociated struct { // ActorDefs_ProfileView is a "profileView" in the app.bsky.actor.defs schema. type ActorDefs_ProfileView struct { + Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` Description *string `json:"description,omitempty" cborgen:"description,omitempty"` Did string `json:"did" cborgen:"did"` @@ -218,6 +219,7 @@ type ActorDefs_ProfileView struct { // ActorDefs_ProfileViewBasic is a "profileViewBasic" in the app.bsky.actor.defs schema. type ActorDefs_ProfileViewBasic struct { + Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` Did string `json:"did" cborgen:"did"` DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` @@ -253,6 +255,11 @@ type ActorDefs_SavedFeedsPref struct { TimelineIndex *int64 `json:"timelineIndex,omitempty" cborgen:"timelineIndex,omitempty"` } +// ActorDefs_SkeletonActor is a "skeletonActor" in the app.bsky.actor.defs schema. +type ActorDefs_SkeletonActor struct { + Did string `json:"did" cborgen:"did"` +} + // ActorDefs_ThreadViewPref is a "threadViewPref" in the app.bsky.actor.defs schema. // // RECORDTYPE: ActorDefs_ThreadViewPref diff --git a/api/bsky/actorgetSuggestionsSkeleton.go b/api/bsky/actorgetSuggestionsSkeleton.go new file mode 100644 index 000000000..2f656f52f --- /dev/null +++ b/api/bsky/actorgetSuggestionsSkeleton.go @@ -0,0 +1,35 @@ +// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. + +package bsky + +// schema: app.bsky.actor.getSuggestionsSkeleton + +import ( + "context" + + "github.com/bluesky-social/indigo/xrpc" +) + +// ActorGetSuggestionsSkeleton_Output is the output of a app.bsky.actor.getSuggestionsSkeleton call. +type ActorGetSuggestionsSkeleton_Output struct { + Actors []*ActorDefs_SkeletonActor `json:"actors" cborgen:"actors"` + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` +} + +// ActorGetSuggestionsSkeleton calls the XRPC method "app.bsky.actor.getSuggestionsSkeleton". +// +// viewer: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. +func ActorGetSuggestionsSkeleton(ctx context.Context, c *xrpc.Client, cursor string, limit int64, viewer string) (*ActorGetSuggestionsSkeleton_Output, error) { + var out ActorGetSuggestionsSkeleton_Output + + params := map[string]interface{}{ + "cursor": cursor, + "limit": limit, + "viewer": viewer, + } + if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.getSuggestionsSkeleton", params, nil, &out); err != nil { + return nil, err + } + + return &out, nil +} diff --git a/api/bsky/cbor_gen.go b/api/bsky/cbor_gen.go index 9ead4652e..134af64ff 100644 --- a/api/bsky/cbor_gen.go +++ b/api/bsky/cbor_gen.go @@ -4528,7 +4528,11 @@ func (t *FeedGenerator) MarshalCBOR(w io.Writer) error { } cw := cbg.NewCborWriter(w) - fieldCount := 8 + fieldCount := 9 + + if t.AcceptsInteractions == nil { + fieldCount-- + } if t.Avatar == nil { fieldCount-- @@ -4736,6 +4740,31 @@ func (t *FeedGenerator) MarshalCBOR(w io.Writer) error { } } + + // t.AcceptsInteractions (bool) (bool) + if t.AcceptsInteractions != nil { + + if len("acceptsInteractions") > 1000000 { + return xerrors.Errorf("Value in field \"acceptsInteractions\" was too long") + } + + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("acceptsInteractions"))); err != nil { + return err + } + if _, err := cw.WriteString(string("acceptsInteractions")); err != nil { + return err + } + + if t.AcceptsInteractions == nil { + if _, err := cw.Write(cbg.CborNull); err != nil { + return err + } + } else { + if err := cbg.WriteBool(w, *t.AcceptsInteractions); err != nil { + return err + } + } + } return nil } @@ -4931,6 +4960,39 @@ func (t *FeedGenerator) UnmarshalCBOR(r io.Reader) (err error) { } } + // t.AcceptsInteractions (bool) (bool) + case "acceptsInteractions": + + { + b, err := cr.ReadByte() + if err != nil { + return err + } + if b != cbg.CborNull[0] { + if err := cr.UnreadByte(); err != nil { + return err + } + + maj, extra, err = cr.ReadHeader() + if err != nil { + return err + } + if maj != cbg.MajOther { + return fmt.Errorf("booleans must be major type 7") + } + + var val bool + switch extra { + case 20: + val = false + case 21: + val = true + default: + return fmt.Errorf("booleans are either major type 7, value 20 or 21 (got %d)", extra) + } + t.AcceptsInteractions = &val + } + } default: // Field doesn't exist on this type, so ignore it diff --git a/api/bsky/embedrecord.go b/api/bsky/embedrecord.go index f742f59de..87acb9cbf 100644 --- a/api/bsky/embedrecord.go +++ b/api/bsky/embedrecord.go @@ -58,6 +58,9 @@ type EmbedRecord_ViewRecord struct { Embeds []*EmbedRecord_ViewRecord_Embeds_Elem `json:"embeds,omitempty" cborgen:"embeds,omitempty"` IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` + LikeCount *int64 `json:"likeCount,omitempty" cborgen:"likeCount,omitempty"` + ReplyCount *int64 `json:"replyCount,omitempty" cborgen:"replyCount,omitempty"` + RepostCount *int64 `json:"repostCount,omitempty" cborgen:"repostCount,omitempty"` Uri string `json:"uri" cborgen:"uri"` // value: The record data itself. Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"` diff --git a/api/bsky/feeddefs.go b/api/bsky/feeddefs.go index 1bd61672f..e184ab585 100644 --- a/api/bsky/feeddefs.go +++ b/api/bsky/feeddefs.go @@ -30,9 +30,11 @@ type FeedDefs_BlockedPost struct { // FeedDefs_FeedViewPost is a "feedViewPost" in the app.bsky.feed.defs schema. type FeedDefs_FeedViewPost struct { - Post *FeedDefs_PostView `json:"post" cborgen:"post"` - Reason *FeedDefs_FeedViewPost_Reason `json:"reason,omitempty" cborgen:"reason,omitempty"` - Reply *FeedDefs_ReplyRef `json:"reply,omitempty" cborgen:"reply,omitempty"` + // feedContext: Context provided by feed generator that may be passed back alongside interactions. + FeedContext *string `json:"feedContext,omitempty" cborgen:"feedContext,omitempty"` + Post *FeedDefs_PostView `json:"post" cborgen:"post"` + Reason *FeedDefs_FeedViewPost_Reason `json:"reason,omitempty" cborgen:"reason,omitempty"` + Reply *FeedDefs_ReplyRef `json:"reply,omitempty" cborgen:"reply,omitempty"` } type FeedDefs_FeedViewPost_Reason struct { @@ -66,18 +68,20 @@ func (t *FeedDefs_FeedViewPost_Reason) UnmarshalJSON(b []byte) error { // // RECORDTYPE: FeedDefs_GeneratorView type FeedDefs_GeneratorView struct { - LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#generatorView" cborgen:"$type,const=app.bsky.feed.defs#generatorView"` - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` - Cid string `json:"cid" cborgen:"cid"` - Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"` - Description *string `json:"description,omitempty" cborgen:"description,omitempty"` - DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"` - Did string `json:"did" cborgen:"did"` - DisplayName string `json:"displayName" cborgen:"displayName"` - IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` - LikeCount *int64 `json:"likeCount,omitempty" cborgen:"likeCount,omitempty"` - Uri string `json:"uri" cborgen:"uri"` - Viewer *FeedDefs_GeneratorViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` + LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#generatorView" cborgen:"$type,const=app.bsky.feed.defs#generatorView"` + AcceptsInteractions *bool `json:"acceptsInteractions,omitempty" cborgen:"acceptsInteractions,omitempty"` + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` + Cid string `json:"cid" cborgen:"cid"` + Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"` + Description *string `json:"description,omitempty" cborgen:"description,omitempty"` + DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"` + Did string `json:"did" cborgen:"did"` + DisplayName string `json:"displayName" cborgen:"displayName"` + IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` + Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` + LikeCount *int64 `json:"likeCount,omitempty" cborgen:"likeCount,omitempty"` + Uri string `json:"uri" cborgen:"uri"` + Viewer *FeedDefs_GeneratorViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` } // FeedDefs_GeneratorViewerState is a "generatorViewerState" in the app.bsky.feed.defs schema. @@ -85,6 +89,14 @@ type FeedDefs_GeneratorViewerState struct { Like *string `json:"like,omitempty" cborgen:"like,omitempty"` } +// FeedDefs_Interaction is a "interaction" in the app.bsky.feed.defs schema. +type FeedDefs_Interaction struct { + Event *string `json:"event,omitempty" cborgen:"event,omitempty"` + // feedContext: Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton. + FeedContext *string `json:"feedContext,omitempty" cborgen:"feedContext,omitempty"` + Item *string `json:"item,omitempty" cborgen:"item,omitempty"` +} + // FeedDefs_NotFoundPost is a "notFoundPost" in the app.bsky.feed.defs schema. // // RECORDTYPE: FeedDefs_NotFoundPost @@ -267,8 +279,10 @@ func (t *FeedDefs_ReplyRef_Root) UnmarshalJSON(b []byte) error { // FeedDefs_SkeletonFeedPost is a "skeletonFeedPost" in the app.bsky.feed.defs schema. type FeedDefs_SkeletonFeedPost struct { - Post string `json:"post" cborgen:"post"` - Reason *FeedDefs_SkeletonFeedPost_Reason `json:"reason,omitempty" cborgen:"reason,omitempty"` + // feedContext: Context that will be passed through to client and may be passed to feed generator back alongside interactions. + FeedContext *string `json:"feedContext,omitempty" cborgen:"feedContext,omitempty"` + Post string `json:"post" cborgen:"post"` + Reason *FeedDefs_SkeletonFeedPost_Reason `json:"reason,omitempty" cborgen:"reason,omitempty"` } type FeedDefs_SkeletonFeedPost_Reason struct { diff --git a/api/bsky/feedgenerator.go b/api/bsky/feedgenerator.go index f39eff875..27bf8589d 100644 --- a/api/bsky/feedgenerator.go +++ b/api/bsky/feedgenerator.go @@ -20,13 +20,15 @@ func init() { } // // RECORDTYPE: FeedGenerator type FeedGenerator struct { - LexiconTypeID string `json:"$type,const=app.bsky.feed.generator" cborgen:"$type,const=app.bsky.feed.generator"` - Avatar *util.LexBlob `json:"avatar,omitempty" cborgen:"avatar,omitempty"` - CreatedAt string `json:"createdAt" cborgen:"createdAt"` - Description *string `json:"description,omitempty" cborgen:"description,omitempty"` - DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"` - Did string `json:"did" cborgen:"did"` - DisplayName string `json:"displayName" cborgen:"displayName"` + LexiconTypeID string `json:"$type,const=app.bsky.feed.generator" cborgen:"$type,const=app.bsky.feed.generator"` + // acceptsInteractions: Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions + AcceptsInteractions *bool `json:"acceptsInteractions,omitempty" cborgen:"acceptsInteractions,omitempty"` + Avatar *util.LexBlob `json:"avatar,omitempty" cborgen:"avatar,omitempty"` + CreatedAt string `json:"createdAt" cborgen:"createdAt"` + Description *string `json:"description,omitempty" cborgen:"description,omitempty"` + DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"` + Did string `json:"did" cborgen:"did"` + DisplayName string `json:"displayName" cborgen:"displayName"` // labels: Self-label values Labels *FeedGenerator_Labels `json:"labels,omitempty" cborgen:"labels,omitempty"` } diff --git a/api/bsky/feedsendInteractions.go b/api/bsky/feedsendInteractions.go new file mode 100644 index 000000000..806bf890d --- /dev/null +++ b/api/bsky/feedsendInteractions.go @@ -0,0 +1,30 @@ +// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. + +package bsky + +// schema: app.bsky.feed.sendInteractions + +import ( + "context" + + "github.com/bluesky-social/indigo/xrpc" +) + +// FeedSendInteractions_Input is the input argument to a app.bsky.feed.sendInteractions call. +type FeedSendInteractions_Input struct { + Interactions []*FeedDefs_Interaction `json:"interactions" cborgen:"interactions"` +} + +// FeedSendInteractions_Output is the output of a app.bsky.feed.sendInteractions call. +type FeedSendInteractions_Output struct { +} + +// FeedSendInteractions calls the XRPC method "app.bsky.feed.sendInteractions". +func FeedSendInteractions(ctx context.Context, c *xrpc.Client, input *FeedSendInteractions_Input) (*FeedSendInteractions_Output, error) { + var out FeedSendInteractions_Output + if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.feed.sendInteractions", nil, input, &out); err != nil { + return nil, err + } + + return &out, nil +} diff --git a/api/bsky/graphdefs.go b/api/bsky/graphdefs.go index cfb9ce2a6..4431d00f2 100644 --- a/api/bsky/graphdefs.go +++ b/api/bsky/graphdefs.go @@ -4,6 +4,10 @@ package bsky // schema: app.bsky.graph.defs +import ( + comatprototypes "github.com/bluesky-social/indigo/api/atproto" +) + // GraphDefs_ListItemView is a "listItemView" in the app.bsky.graph.defs schema. type GraphDefs_ListItemView struct { Subject *ActorDefs_ProfileView `json:"subject" cborgen:"subject"` @@ -14,28 +18,30 @@ type GraphDefs_ListItemView struct { // // RECORDTYPE: GraphDefs_ListView type GraphDefs_ListView struct { - LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#listView" cborgen:"$type,const=app.bsky.graph.defs#listView"` - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` - Cid string `json:"cid" cborgen:"cid"` - Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"` - Description *string `json:"description,omitempty" cborgen:"description,omitempty"` - DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"` - IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` - Name string `json:"name" cborgen:"name"` - Purpose *string `json:"purpose" cborgen:"purpose"` - Uri string `json:"uri" cborgen:"uri"` - Viewer *GraphDefs_ListViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` + LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#listView" cborgen:"$type,const=app.bsky.graph.defs#listView"` + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` + Cid string `json:"cid" cborgen:"cid"` + Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"` + Description *string `json:"description,omitempty" cborgen:"description,omitempty"` + DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"` + IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` + Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` + Name string `json:"name" cborgen:"name"` + Purpose *string `json:"purpose" cborgen:"purpose"` + Uri string `json:"uri" cborgen:"uri"` + Viewer *GraphDefs_ListViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` } // GraphDefs_ListViewBasic is a "listViewBasic" in the app.bsky.graph.defs schema. type GraphDefs_ListViewBasic struct { - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` - Cid string `json:"cid" cborgen:"cid"` - IndexedAt *string `json:"indexedAt,omitempty" cborgen:"indexedAt,omitempty"` - Name string `json:"name" cborgen:"name"` - Purpose *string `json:"purpose" cborgen:"purpose"` - Uri string `json:"uri" cborgen:"uri"` - Viewer *GraphDefs_ListViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` + Cid string `json:"cid" cborgen:"cid"` + IndexedAt *string `json:"indexedAt,omitempty" cborgen:"indexedAt,omitempty"` + Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` + Name string `json:"name" cborgen:"name"` + Purpose *string `json:"purpose" cborgen:"purpose"` + Uri string `json:"uri" cborgen:"uri"` + Viewer *GraphDefs_ListViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` } // GraphDefs_ListViewerState is a "listViewerState" in the app.bsky.graph.defs schema.