1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.graph.defs
6
7import (
8 comatprototypes "github.com/bluesky-social/indigo/api/atproto"
9 "github.com/bluesky-social/indigo/lex/util"
10)
11
12// GraphDefs_ListItemView is a "listItemView" in the app.bsky.graph.defs schema.
13type GraphDefs_ListItemView struct {
14 Subject *ActorDefs_ProfileView `json:"subject" cborgen:"subject"`
15 Uri string `json:"uri" cborgen:"uri"`
16}
17
18// GraphDefs_ListView is a "listView" in the app.bsky.graph.defs schema.
19//
20// RECORDTYPE: GraphDefs_ListView
21type GraphDefs_ListView struct {
22 LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#listView" cborgen:"$type,const=app.bsky.graph.defs#listView"`
23 Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
24 Cid string `json:"cid" cborgen:"cid"`
25 Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"`
26 Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
27 DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"`
28 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
29 Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"`
30 ListItemCount *int64 `json:"listItemCount,omitempty" cborgen:"listItemCount,omitempty"`
31 Name string `json:"name" cborgen:"name"`
32 Purpose *string `json:"purpose" cborgen:"purpose"`
33 Uri string `json:"uri" cborgen:"uri"`
34 Viewer *GraphDefs_ListViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
35}
36
37// GraphDefs_ListViewBasic is a "listViewBasic" in the app.bsky.graph.defs schema.
38type GraphDefs_ListViewBasic struct {
39 Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
40 Cid string `json:"cid" cborgen:"cid"`
41 IndexedAt *string `json:"indexedAt,omitempty" cborgen:"indexedAt,omitempty"`
42 Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"`
43 ListItemCount *int64 `json:"listItemCount,omitempty" cborgen:"listItemCount,omitempty"`
44 Name string `json:"name" cborgen:"name"`
45 Purpose *string `json:"purpose" cborgen:"purpose"`
46 Uri string `json:"uri" cborgen:"uri"`
47 Viewer *GraphDefs_ListViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
48}
49
50// GraphDefs_ListViewerState is a "listViewerState" in the app.bsky.graph.defs schema.
51type GraphDefs_ListViewerState struct {
52 Blocked *string `json:"blocked,omitempty" cborgen:"blocked,omitempty"`
53 Muted *bool `json:"muted,omitempty" cborgen:"muted,omitempty"`
54}
55
56// GraphDefs_NotFoundActor is a "notFoundActor" in the app.bsky.graph.defs schema.
57//
58// indicates that a handle or DID could not be resolved
59//
60// RECORDTYPE: GraphDefs_NotFoundActor
61type GraphDefs_NotFoundActor struct {
62 LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#notFoundActor" cborgen:"$type,const=app.bsky.graph.defs#notFoundActor"`
63 Actor string `json:"actor" cborgen:"actor"`
64 NotFound bool `json:"notFound" cborgen:"notFound"`
65}
66
67// GraphDefs_Relationship is a "relationship" in the app.bsky.graph.defs schema.
68//
69// lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)
70//
71// RECORDTYPE: GraphDefs_Relationship
72type GraphDefs_Relationship struct {
73 LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#relationship" cborgen:"$type,const=app.bsky.graph.defs#relationship"`
74 Did string `json:"did" cborgen:"did"`
75 // followedBy: if the actor is followed by this DID, contains the AT-URI of the follow record
76 FollowedBy *string `json:"followedBy,omitempty" cborgen:"followedBy,omitempty"`
77 // following: if the actor follows this DID, this is the AT-URI of the follow record
78 Following *string `json:"following,omitempty" cborgen:"following,omitempty"`
79}
80
81// GraphDefs_StarterPackView is a "starterPackView" in the app.bsky.graph.defs schema.
82type GraphDefs_StarterPackView struct {
83 Cid string `json:"cid" cborgen:"cid"`
84 Creator *ActorDefs_ProfileViewBasic `json:"creator" cborgen:"creator"`
85 Feeds []*FeedDefs_GeneratorView `json:"feeds,omitempty" cborgen:"feeds,omitempty"`
86 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
87 JoinedAllTimeCount *int64 `json:"joinedAllTimeCount,omitempty" cborgen:"joinedAllTimeCount,omitempty"`
88 JoinedWeekCount *int64 `json:"joinedWeekCount,omitempty" cborgen:"joinedWeekCount,omitempty"`
89 Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"`
90 List *GraphDefs_ListViewBasic `json:"list,omitempty" cborgen:"list,omitempty"`
91 ListItemsSample []*GraphDefs_ListItemView `json:"listItemsSample,omitempty" cborgen:"listItemsSample,omitempty"`
92 Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
93 Uri string `json:"uri" cborgen:"uri"`
94}
95
96// GraphDefs_StarterPackViewBasic is a "starterPackViewBasic" in the app.bsky.graph.defs schema.
97//
98// RECORDTYPE: GraphDefs_StarterPackViewBasic
99type GraphDefs_StarterPackViewBasic struct {
100 LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#starterPackViewBasic" cborgen:"$type,const=app.bsky.graph.defs#starterPackViewBasic"`
101 Cid string `json:"cid" cborgen:"cid"`
102 Creator *ActorDefs_ProfileViewBasic `json:"creator" cborgen:"creator"`
103 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
104 JoinedAllTimeCount *int64 `json:"joinedAllTimeCount,omitempty" cborgen:"joinedAllTimeCount,omitempty"`
105 JoinedWeekCount *int64 `json:"joinedWeekCount,omitempty" cborgen:"joinedWeekCount,omitempty"`
106 Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"`
107 ListItemCount *int64 `json:"listItemCount,omitempty" cborgen:"listItemCount,omitempty"`
108 Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
109 Uri string `json:"uri" cborgen:"uri"`
110}