forked from gallery-so/gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
2304 lines (1866 loc) · 55.6 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
directive @defer(label: String, if: Boolean! = true) on FRAGMENT_SPREAD | INLINE_FRAGMENT
"""Exposes a URL that specifies the behavior of this scalar."""
directive @specifiedBy(
"""The URL that specifies the behavior of this scalar."""
url: String!
) on SCALAR
enum Action {
UserCreated
UserFollowedUsers
CollectorsNoteAddedtoToken
CollectionCreated
CollectorsNoteAddedToCollection
TokensAddedToCollection
}
scalar Address
union AddRolesToUserPayloadOrError = GalleryUser | ErrNotAuthorized
type AddUserWalletPayload {
viewer: Viewer
}
union AddUserWalletPayloadOrError = AddUserWalletPayload | ErrAuthenticationFailed | ErrNotAuthorized | ErrInvalidInput | ErrAddressOwnedByUser
input AdminAddWalletInput {
username: String!
chainAddress: ChainAddressInput!
walletType: WalletType!
}
type AdminAddWalletPayload {
user: GalleryUser
}
union AdminAddWalletPayloadOrError = AdminAddWalletPayload | ErrUserNotFound | ErrAddressOwnedByUser | ErrNotAuthorized
type Admire implements Node {
id: ID!
dbid: DBID!
creationTime: Time
lastUpdated: Time
admirer: GalleryUser
source: AdmireSource
}
type AdmireFeedEventPayload {
viewer: Viewer
admire: Admire
feedEvent: FeedEvent
}
union AdmireFeedEventPayloadOrError = AdmireFeedEventPayload | ErrAuthenticationFailed | ErrFeedEventNotFound | ErrInvalidInput | ErrAdmireAlreadyExists
type AdmirePostPayload {
viewer: Viewer
post: Post
admire: Admire
}
union AdmirePostPayloadOrError = AdmirePostPayload | ErrInvalidInput | ErrNotAuthorized
union AdmireSource = Post | FeedEvent
type AdmireTokenPayload {
viewer: Viewer
token: Token
admire: Admire
}
union AdmireTokenPayloadOrError = AdmireTokenPayload | ErrTokenNotFound | ErrInvalidInput | ErrNotAuthorized
type AudioMedia implements Media {
previewURLs: PreviewURLSet
mediaURL: String
mediaType: String
contentRenderURL: String
dimensions: MediaDimensions
fallbackMedia: FallbackMedia
}
input AuthMechanism {
eoa: EoaAuth
gnosisSafe: GnosisSafeAuth
debug: DebugAuth
magicLink: MagicLinkAuth
oneTimeLoginToken: OneTimeLoginTokenAuth
}
type AuthNonce {
nonce: String
userExists: Boolean
}
union AuthorizationError = ErrNoCookie | ErrInvalidToken | ErrSessionInvalidated | ErrDoesNotOwnRequiredToken
type Badge {
name: String
imageURL: String!
contract: Contract
}
type BanUserFromFeedPayload {
user: GalleryUser
}
union BanUserFromFeedPayloadOrError = BanUserFromFeedPayload | ErrNotAuthorized
enum Chain {
Ethereum
Arbitrum
Polygon
Optimism
Tezos
POAP
Zora
Base
}
type ChainAddress {
address: Address
chain: Chain
}
input ChainAddressInput {
address: Address!
chain: Chain!
}
input ChainAddressTokenInput {
chainAddress: ChainAddressInput!
"""
Refers to the id of the token in the contract either in decimal, or interpreted as hexadecimal when prefixed with '0x'
"""
tokenId: TokenId!
}
type ChainPubKey {
pubKey: PubKey
chain: Chain
}
input ChainPubKeyInput {
pubKey: PubKey!
chain: Chain!
}
type ChainTokens {
chain: Chain
tokens: [Token]
}
type ClearAllNotificationsPayload {
notifications: [Notification]
}
type Collection implements Node {
id: ID!
dbid: DBID!
version: Int
name: String
collectorsNote: String
gallery: Gallery
layout: CollectionLayout
hidden: Boolean
tokens(limit: Int): [CollectionToken]
}
union CollectionByIdOrError = Collection | ErrCollectionNotFound | ErrInvalidInput
type CollectionCreatedFeedEventData implements FeedEventData {
eventTime: Time
owner: GalleryUser
action: Action
collection: Collection
newTokens: [CollectionToken]
newCollectorsNote: String
}
type CollectionEdge {
node: Collection
cursor: String
}
type CollectionLayout {
sections: [Int]
sectionLayout: [CollectionSectionLayout]
}
input CollectionLayoutInput {
sections: [Int!]!
sectionLayout: [CollectionSectionLayoutInput!]!
}
type CollectionsConnection {
edges: [CollectionEdge]
pageInfo: PageInfo!
}
type CollectionSectionLayout {
columns: Int
whitespace: [Int]
}
input CollectionSectionLayoutInput {
columns: Int!
whitespace: [Int!]!
}
type CollectionToken implements Node {
id: ID!
token: Token
collection: Collection
tokenSettings: CollectionTokenSettings
}
union CollectionTokenByIdOrError = CollectionToken | ErrCollectionNotFound | ErrTokenNotFound
type CollectionTokenSettings {
renderLive: Boolean
highDefinition: Boolean
}
input CollectionTokenSettingsInput {
tokenId: DBID!
renderLive: Boolean!
highDefinition: Boolean!
}
type CollectionUpdatedFeedEventData implements FeedEventData {
eventTime: Time
owner: GalleryUser
action: Action
collection: Collection
newCollectorsNote: String
newTokens: [CollectionToken]
}
type CollectorsNoteAddedToCollectionFeedEventData implements FeedEventData {
eventTime: Time
owner: GalleryUser
action: Action
collection: Collection
newCollectorsNote: String
}
type CollectorsNoteAddedToTokenFeedEventData implements FeedEventData {
eventTime: Time
owner: GalleryUser
action: Action
token: CollectionToken
newCollectorsNote: String
}
type Comment implements Node {
id: ID!
dbid: DBID!
creationTime: Time
lastUpdated: Time
replyTo: Comment
commenter: GalleryUser
comment: String
mentions: [Mention]
replies(before: String, after: String, first: Int, last: Int): CommentsConnection
source: CommentSource
deleted: Boolean
}
type CommentEdge {
node: Comment
cursor: String
}
type CommentOnFeedEventPayload {
viewer: Viewer
comment: Comment
replyToComment: Comment
feedEvent: FeedEvent
}
union CommentOnFeedEventPayloadOrError = CommentOnFeedEventPayload | ErrAuthenticationFailed | ErrFeedEventNotFound | ErrInvalidInput
type CommentOnPostPayload {
viewer: Viewer
post: Post
comment: Comment
replyToComment: Comment
}
union CommentOnPostPayloadOrError = CommentOnPostPayload | ErrInvalidInput | ErrNotAuthorized
type CommentsConnection {
edges: [CommentEdge]
pageInfo: PageInfo!
}
union CommentSource = Post | FeedEvent
type CommunitiesConnection {
edges: [CommunityEdge]
pageInfo: PageInfo!
}
type Community implements Node {
dbid: DBID!
id: ID!
lastUpdated: Time
contract: Contract
contractAddress: ChainAddress
creatorAddress: ChainAddress
creator: GalleryUserOrAddress
chain: Chain
name: String
description: String
previewImage: String
profileImageURL: String
profileBannerURL: String
badgeURL: String
parentCommunity: CommunityLink
subCommunities(before: String, after: String, first: Int, last: Int): CommunitiesConnection
tokensInCommunity(before: String, after: String, first: Int, last: Int, onlyGalleryUsers: Boolean): TokensConnection
owners(before: String, after: String, first: Int, last: Int, onlyGalleryUsers: Boolean): TokenHoldersConnection
posts(before: String, after: String, first: Int, last: Int): PostsConnection
tmpPostsWithProjectID(projectID: Int!, before: String, after: String, first: Int, last: Int): PostsConnection
}
union CommunityByAddressOrError = Community | ErrCommunityNotFound | ErrInvalidInput
type CommunityEdge {
node: Community
cursor: String
}
type CommunityLink {
node: Community
}
type CommunitySearchResult {
community: Community
}
type ConnectSocialAccountPayload {
viewer: Viewer
}
union ConnectSocialAccountPayloadOrError = ConnectSocialAccountPayload | ErrInvalidInput | ErrNotAuthorized
type Contract implements Node {
id: ID!
dbid: DBID!
lastUpdated: Time
contractAddress: ChainAddress
creatorAddress: ChainAddress
chain: Chain
name: String
profileImageURL: String
profileBannerURL: String
badgeURL: String
isSpam: Boolean
}
input CreateCollectionInGalleryInput {
name: String!
collectorsNote: String!
tokens: [DBID!]!
layout: CollectionLayoutInput!
tokenSettings: [CollectionTokenSettingsInput!]!
hidden: Boolean!
givenID: DBID!
}
input CreateCollectionInput {
galleryId: DBID!
name: String!
collectorsNote: String!
tokens: [DBID!]!
layout: CollectionLayoutInput!
tokenSettings: [CollectionTokenSettingsInput!]!
caption: String
}
type CreateCollectionPayload {
collection: Collection
feedEvent: FeedEvent
}
union CreateCollectionPayloadOrError = CreateCollectionPayload | ErrNotAuthorized | ErrInvalidInput
input CreatedCommunitiesInput {
includeChains: [Chain!]
}
input CreateGalleryInput {
name: String
description: String
position: String!
}
type CreateGalleryPayload {
gallery: Gallery
}
union CreateGalleryPayloadOrError = CreateGalleryPayload | ErrInvalidInput | ErrNotAuthorized
input CreateUserInput {
username: String!
bio: String
email: Email
galleryName: String
galleryDescription: String
galleryPosition: String
}
type CreateUserPayload {
userId: DBID
galleryId: DBID
viewer: Viewer
}
union CreateUserPayloadOrError = CreateUserPayload | ErrAuthenticationFailed | ErrDoesNotOwnRequiredToken | ErrUserAlreadyExists | ErrUsernameNotAvailable | ErrInvalidInput | ErrEmailAlreadyUsed
scalar DBID
input DebugAuth {
asUsername: String
userId: DBID
chainAddresses: [ChainAddressInput!]
debugToolsPassword: String
}
input DebugSocialAuth {
provider: SocialAccountType!
id: String!
username: String!
debugToolsPassword: String
}
type DeleteCollectionPayload {
gallery: Gallery
}
union DeleteCollectionPayloadOrError = DeleteCollectionPayload | ErrNotAuthorized | ErrInvalidInput | ErrCollectionNotFound
type DeletedNode implements Node {
id: ID!
dbid: DBID!
}
type DeleteGalleryPayload {
deletedId: DeletedNode
}
union DeleteGalleryPayloadOrError = DeleteGalleryPayload | ErrInvalidInput | ErrNotAuthorized
type DeletePostPayload {
deletedId: DeletedNode
}
union DeletePostPayloadOrError = DeletePostPayload | ErrInvalidInput | ErrNotAuthorized
type DisconnectSocialAccountPayload {
viewer: Viewer
}
union DisconnectSocialAccountPayloadOrError = DisconnectSocialAccountPayload | ErrInvalidInput | ErrNotAuthorized | ErrNeedsToReconnectSocial
scalar Email
type EmailNotificationSettings {
unsubscribedFromAll: Boolean!
unsubscribedFromNotifications: Boolean!
}
enum EmailUnsubscriptionType {
All
Notifications
}
enum EmailVerificationStatus {
Unverified
Verified
Failed
Admin
}
type EnsProfileImage {
wallet: Wallet
profileImage: HTTPSProfileImage
token: Token
}
input EoaAuth {
chainPubKey: ChainPubKeyInput!
nonce: String!
signature: String!
}
type ErrAddressOwnedByUser implements Error {
message: String!
}
type ErrAdmireAlreadyExists implements Error {
message: String!
}
type ErrAdmireNotFound implements Error {
message: String!
}
type ErrAuthenticationFailed implements Error {
message: String!
}
type ErrCollectionNotFound implements Error {
message: String!
}
type ErrCommentNotFound implements Error {
message: String!
}
type ErrCommunityNotFound implements Error {
message: String!
}
type ErrDoesNotOwnRequiredToken implements Error {
message: String!
}
type ErrEmailAlreadyUsed implements Error {
message: String!
}
type ErrEmailUnverified implements Error {
message: String!
}
type ErrFeedEventNotFound implements Error {
message: String!
}
type ErrGalleryNotFound implements Error {
message: String!
}
type ErrInvalidInput implements Error {
message: String!
parameters: [String!]!
reasons: [String!]!
}
type ErrInvalidToken implements Error {
message: String!
}
type ErrNeedsToReconnectSocial implements Error {
socialAccountType: SocialAccountType!
message: String!
}
type ErrNoAvatarRecordSet implements Error {
message: String!
}
type ErrNoCookie implements Error {
message: String!
}
type ErrNotAuthorized implements Error {
message: String!
cause: AuthorizationError!
}
interface Error {
message: String!
}
type ErrPostNotFound implements Error {
message: String!
}
type ErrPushTokenBelongsToAnotherUser implements Error {
message: String!
}
type ErrSessionInvalidated implements Error {
message: String!
}
type ErrSyncFailed implements Error {
message: String!
}
type ErrTokenNotFound implements Error {
message: String!
}
type ErrUnknownAction implements Error {
message: String!
}
type ErrUserAlreadyExists implements Error {
message: String!
}
type ErrUsernameNotAvailable implements Error {
message: String!
}
type ErrUserNotFound implements Error {
message: String!
}
type FallbackMedia {
mediaURL: String
mediaType: String
}
input FarcasterAuth {
address: Address!
"""
withSigner will make a request to authenticate the user with an on chain
transaction that can be approved on their warpcast app.
the `FarcasterSocialAccount` type will return an `approvalURL` that will link the user to make the on chain transaction.
"""
withSigner: Boolean
}
type FarcasterSocialAccount implements SocialAccount {
type: SocialAccountType!
social_id: String!
name: String!
username: String!
profileImageURL: String!
bio: String!
display: Boolean!
approvalURL: String
signerStatus: String
}
type FeedConnection {
edges: [FeedEdge]
pageInfo: PageInfo!
}
type FeedEdge {
node: FeedEventOrError
cursor: String
}
type FeedEvent implements Node {
id: ID!
dbid: DBID!
eventData: FeedEventData
admires(before: String, after: String, first: Int, last: Int): FeedEventAdmiresConnection
comments(before: String, after: String, first: Int, last: Int): FeedEventCommentsConnection
caption: String
interactions(before: String, after: String, first: Int, last: Int): InteractionsConnection
viewerAdmire: Admire
hasViewerAdmiredEvent: Boolean
}
type FeedEventAdmireEdge {
node: Admire
cursor: String
}
type FeedEventAdmiresConnection {
edges: [FeedEventAdmireEdge]
pageInfo: PageInfo!
}
union FeedEventByIdOrError = FeedEvent | ErrFeedEventNotFound | ErrUnknownAction
type FeedEventCommentEdge {
node: Comment
cursor: String
}
type FeedEventCommentsConnection {
edges: [FeedEventCommentEdge]
pageInfo: PageInfo!
}
interface FeedEventData {
eventTime: Time
owner: GalleryUser
action: Action
}
"""Can return posts as well"""
union FeedEventOrError = FeedEvent | Post | ErrPostNotFound | ErrFeedEventNotFound | ErrUnknownAction
type FollowAllSocialConnectionsPayload {
viewer: Viewer
}
union FollowAllSocialConnectionsPayloadOrError = FollowAllSocialConnectionsPayload | ErrInvalidInput | ErrNotAuthorized | ErrNeedsToReconnectSocial
type FollowInfo {
user: GalleryUser
followedBack: Boolean
}
type FollowUserPayload {
viewer: Viewer
user: GalleryUser
}
union FollowUserPayloadOrError = FollowUserPayload | ErrAuthenticationFailed | ErrUserNotFound | ErrInvalidInput
type Gallery implements Node {
id: ID!
dbid: DBID!
name: String
description: String
position: String
hidden: Boolean
tokenPreviews: [PreviewURLSet]
owner: GalleryUser
collections: [Collection]
}
union GalleryByIdPayloadOrError = Gallery | ErrGalleryNotFound
type GalleryInfoUpdatedFeedEventData implements FeedEventData {
eventTime: Time
owner: GalleryUser
newName: String
newDescription: String
action: Action
}
input GalleryPositionInput {
galleryId: DBID!
position: String!
}
type GallerySearchResult {
gallery: Gallery
}
type GalleryUpdatedFeedEventData implements FeedEventData {
eventTime: Time
owner: GalleryUser
action: Action
gallery: Gallery
subEventDatas: [FeedEventData!]
newName: String
newDescription: String
}
type GalleryUser implements Node {
id: ID!
dbid: DBID!
username: String
profileImage: ProfileImage
potentialEnsProfileImage: EnsProfileImage
bio: String
traits: String
universal: Boolean
roles: [Role]
socialAccounts: SocialAccounts
tokens(ownershipFilter: [TokenOwnershipType!]): [Token]
wallets: [Wallet]
primaryWallet: Wallet
featuredGallery: Gallery
galleries: [Gallery]
badges: [Badge]
isAuthenticatedUser: Boolean
followers: [GalleryUser]
following: [GalleryUser]
feed(before: String, after: String, first: Int, last: Int): FeedConnection
sharedFollowers(before: String, after: String, first: Int, last: Int): UsersConnection
sharedCommunities(before: String, after: String, first: Int, last: Int): CommunitiesConnection
createdCommunities(input: CreatedCommunitiesInput!, before: String, after: String, first: Int, last: Int): CommunitiesConnection
isMemberOfCommunity(communityID: DBID!): Boolean!
}
union GalleryUserOrAddress = GalleryUser | ChainAddress
union GalleryUserOrWallet = GalleryUser | Wallet
type GenerateQRCodeLoginTokenPayload {
token: String!
}
union GenerateQRCodeLoginTokenPayloadOrError = GenerateQRCodeLoginTokenPayload | ErrNotAuthorized
union GetAuthNoncePayloadOrError = AuthNonce | ErrDoesNotOwnRequiredToken
type GIFMedia implements Media {
previewURLs: PreviewURLSet
staticPreviewURLs: PreviewURLSet
mediaURL: String
mediaType: String
contentRenderURL: String
dimensions: MediaDimensions
fallbackMedia: FallbackMedia
}
type GltfMedia implements Media {
previewURLs: PreviewURLSet
mediaURL: String
mediaType: String
contentRenderURL: String
dimensions: MediaDimensions
fallbackMedia: FallbackMedia
}
input GnosisSafeAuth {
address: Address!
nonce: String!
}
interface GroupedNotification {
id: ID!
seen: Boolean
creationTime: Time
updatedTime: Time
count: Int
}
type GroupNotificationUserEdge {
node: GalleryUser
cursor: String
}
type GroupNotificationUsersConnection {
edges: [GroupNotificationUserEdge]
pageInfo: PageInfo
}
type HtmlMedia implements Media {
previewURLs: PreviewURLSet
mediaURL: String
mediaType: String
contentRenderURL: String
dimensions: MediaDimensions
fallbackMedia: FallbackMedia
}
type HTTPSProfileImage {
previewURLs: PreviewURLSet
}
type ImageMedia implements Media {
previewURLs: PreviewURLSet
mediaURL: String
mediaType: String
contentRenderURL: String
dimensions: MediaDimensions
fallbackMedia: FallbackMedia
}
union Interaction = Admire | Comment
type InteractionsConnection {
edges: [InteractionsEdge]
pageInfo: PageInfo!
}
type InteractionsEdge {
node: Interaction
cursor: String
}
enum InteractionType {
Admire
Comment
}
type Interval {
start: Int!
length: Int!
}
input IntervalInput {
start: Int!
length: Int!
}
type InvalidMedia implements Media {
previewURLs: PreviewURLSet
mediaURL: String
mediaType: String
contentRenderURL: String
dimensions: MediaDimensions
fallbackMedia: FallbackMedia
}
type JsonMedia implements Media {
previewURLs: PreviewURLSet
mediaURL: String
mediaType: String
contentRenderURL: String
dimensions: MediaDimensions
fallbackMedia: FallbackMedia
}
input LensAuth {
address: Address!
"""
signature is the signed challenge provided by a GQL request to the lens endpoint
"""
signature: String
}
type LensSocialAccount implements SocialAccount {
type: SocialAccountType!
social_id: String!
name: String!
username: String!
profileImageURL: String!
bio: String!
display: Boolean!
signatureApproved: Boolean!
}
type LoginPayload {
userId: DBID
viewer: Viewer
}
union LoginPayloadOrError = LoginPayload | ErrUserNotFound | ErrAuthenticationFailed | ErrEmailUnverified | ErrDoesNotOwnRequiredToken
type LogoutPayload {
viewer: Viewer
}
input MagicLinkAuth {
token: String!
}
interface Media {
previewURLs: PreviewURLSet
mediaURL: String
mediaType: String
dimensions: MediaDimensions
fallbackMedia: FallbackMedia
}
type MediaDimensions {
width: Int
height: Int
aspectRatio: Float
}
union MediaSubtype = ImageMedia | GIFMedia | VideoMedia | AudioMedia | TextMedia | PdfMedia | HtmlMedia | JsonMedia | GltfMedia | UnknownMedia | SyncingMedia | InvalidMedia
type MembershipTier implements Node {
id: ID!
dbid: DBID!
name: String
assetUrl: String
tokenId: String
owners: [TokenHolder]
}
type Mention {
entity: MentionEntity
interval: Interval
}
union MentionEntity = GalleryUser | Community
input MentionInput {
interval: IntervalInput
userId: DBID
communityId: DBID
}
union MentionSource = Comment | Post
type MerchDiscountCode {
code: String!
tokenId: String
}
type MerchToken implements Node {
id: ID!
tokenId: String!
objectType: MerchType!
discountCode: String
redeemed: Boolean!
}
type MerchTokensPayload {
tokens: [MerchToken!]
}
union MerchTokensPayloadOrError = MerchTokensPayload | ErrInvalidInput
enum MerchType {
TShirt