Demonstration bridge between ATproto and GraphQL. Generate schema types and interface with the ATmosphere via GraphQL queries. Includes a TypeScript server with IDE.
1# app.bsky.actor.defs#profileViewDetailed
2type Lexicon_app_bsky_actor_defs_profileViewDetailed {
3 did: ID!
4 avatar: String
5 banner: String
6 handle: ID!
7 labels: [Lexicon_com_atproto_label_defs_label!]
8 status: Lexicon_app_bsky_actor_defs_statusView
9 viewer: Lexicon_app_bsky_actor_defs_viewerState
10 website: String
11 pronouns: String
12 createdAt: String
13 indexedAt: String
14 associated: Lexicon_app_bsky_actor_defs_profileAssociated
15 pinnedPost: Lexicon_com_atproto_repo_strongRef
16 postsCount: Int
17 description: String
18 displayName: String
19 followsCount: Int
20 verification: Lexicon_app_bsky_actor_defs_verificationState
21 followersCount: Int
22 joinedViaStarterPack: Lexicon_app_bsky_graph_defs_starterPackViewBasic
23}
24
25
26
27# com.atproto.server.getSessionOutput
28type Lexicon_com_atproto_server_getSessionOutput {
29 did: ID!
30 email: String
31 active: Boolean
32 handle: ID!
33 status: String
34 emailConfirmed: Boolean
35 emailAuthFactor: Boolean
36}
37
38
39
40# com.atproto.label.defs#label
41type Lexicon_com_atproto_label_defs_label {
42 cid: String
43 cts: String!
44 exp: String
45 neg: Boolean
46 sig: String
47 src: ID!
48 uri: String!
49 val: String!
50 ver: Int
51}
52
53
54
55# app.bsky.actor.defs#statusView
56type Lexicon_app_bsky_actor_defs_statusView {
57 cid: String
58 uri: String
59 embed: Unknown
60 status: String!
61 isActive: Boolean
62 expiresAt: String
63 isDisabled: Boolean
64}
65
66
67
68# app.bsky.actor.defs#viewerState
69type Lexicon_app_bsky_actor_defs_viewerState {
70 muted: Boolean
71 blocking: String
72 blockedBy: Boolean
73 following: String
74 followedBy: String
75 mutedByList: Lexicon_app_bsky_graph_defs_listViewBasic
76 blockingByList: Lexicon_app_bsky_graph_defs_listViewBasic
77 knownFollowers: Lexicon_app_bsky_actor_defs_knownFollowers
78 activitySubscription: Lexicon_app_bsky_notification_defs_activitySubscription
79}
80
81
82
83# app.bsky.actor.defs#profileAssociated
84type Lexicon_app_bsky_actor_defs_profileAssociated {
85 chat: Lexicon_app_bsky_actor_defs_profileAssociatedChat
86 germ: Lexicon_app_bsky_actor_defs_profileAssociatedGerm
87 lists: Int
88 labeler: Boolean
89 feedgens: Int
90 starterPacks: Int
91 activitySubscription: Lexicon_app_bsky_actor_defs_profileAssociatedActivitySubscription
92}
93
94
95
96# com.atproto.repo.strongRef
97type Lexicon_com_atproto_repo_strongRef {
98 cid: String!
99 uri: String!
100}
101
102
103
104# app.bsky.actor.defs#verificationState
105type Lexicon_app_bsky_actor_defs_verificationState {
106 verifications: [Lexicon_app_bsky_actor_defs_verificationView!]!
107 verifiedStatus: String!
108 trustedVerifierStatus: String!
109}
110
111
112
113# app.bsky.graph.defs#starterPackViewBasic
114type Lexicon_app_bsky_graph_defs_starterPackViewBasic {
115 cid: String!
116 uri: String!
117 labels: [Lexicon_com_atproto_label_defs_label!]
118 creator: Lexicon_app_bsky_actor_defs_profileViewBasic!
119 indexedAt: String!
120 listItemCount: Int
121 joinedWeekCount: Int
122 joinedAllTimeCount: Int
123}
124
125
126
127# app.bsky.graph.defs#listViewBasic
128type Lexicon_app_bsky_graph_defs_listViewBasic {
129 cid: String!
130 uri: String!
131 name: String!
132 avatar: String
133 labels: [Lexicon_com_atproto_label_defs_label!]
134 viewer: Lexicon_app_bsky_graph_defs_listViewerState
135 purpose: Lexicon_app_bsky_graph_defs_listPurpose!
136 indexedAt: String
137 listItemCount: Int
138}
139
140
141
142# app.bsky.actor.defs#knownFollowers
143type Lexicon_app_bsky_actor_defs_knownFollowers {
144 count: Int!
145 followers: [Lexicon_app_bsky_actor_defs_profileViewBasic!]!
146}
147
148
149
150# app.bsky.notification.defs#activitySubscription
151type Lexicon_app_bsky_notification_defs_activitySubscription {
152 post: Boolean!
153 reply: Boolean!
154}
155
156
157
158# app.bsky.actor.defs#profileAssociatedChat
159type Lexicon_app_bsky_actor_defs_profileAssociatedChat {
160 allowIncoming: String!
161}
162
163
164
165# app.bsky.actor.defs#profileAssociatedGerm
166type Lexicon_app_bsky_actor_defs_profileAssociatedGerm {
167 messageMeUrl: String!
168 showButtonTo: String!
169}
170
171
172
173# app.bsky.actor.defs#profileAssociatedActivitySubscription
174type Lexicon_app_bsky_actor_defs_profileAssociatedActivitySubscription {
175 allowSubscriptions: String!
176}
177
178
179
180# app.bsky.actor.defs#verificationView
181type Lexicon_app_bsky_actor_defs_verificationView {
182 uri: String!
183 issuer: ID!
184 isValid: Boolean!
185 createdAt: String!
186}
187
188
189
190# app.bsky.actor.defs#profileViewBasic
191type Lexicon_app_bsky_actor_defs_profileViewBasic {
192 did: ID!
193 avatar: String
194 handle: ID!
195 labels: [Lexicon_com_atproto_label_defs_label!]
196 status: Lexicon_app_bsky_actor_defs_statusView
197 viewer: Lexicon_app_bsky_actor_defs_viewerState
198 pronouns: String
199 createdAt: String
200 associated: Lexicon_app_bsky_actor_defs_profileAssociated
201 displayName: String
202 verification: Lexicon_app_bsky_actor_defs_verificationState
203}
204
205
206
207# app.bsky.graph.defs#listViewerState
208type Lexicon_app_bsky_graph_defs_listViewerState {
209 muted: Boolean
210 blocked: String
211}
212
213
214
215# app.bsky.graph.defs#listPurpose
216enum Lexicon_app_bsky_graph_defs_listPurpose {
217 APP_BSKY_GRAPH_DEFS_MODLIST
218 APP_BSKY_GRAPH_DEFS_CURATELIST
219 APP_BSKY_GRAPH_DEFS_REFERENCELIST
220}
221
222
223
224type Lexicon_app_bsky_actor {
225 getProfile(actor: ID!): Lexicon_app_bsky_actor_defs_profileViewDetailed
226}
227
228
229type Lexicon_app_bsky {
230 actor: Lexicon_app_bsky_actor!
231}
232
233
234type Lexicon_app {
235 bsky: Lexicon_app_bsky!
236}
237
238
239type Lexicon_com_atproto_server {
240 getSession: Lexicon_com_atproto_server_getSessionOutput
241}
242
243
244type Lexicon_com_atproto {
245 server: Lexicon_com_atproto_server!
246}
247
248
249type Lexicon_com {
250 atproto: Lexicon_com_atproto!
251}
252
253
254type Lexicon {
255 app: Lexicon_app!
256 com: Lexicon_com!
257}
258