-
Notifications
You must be signed in to change notification settings - Fork 0
/
api-schema.graphql
696 lines (612 loc) Β· 15.7 KB
/
api-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
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
input AdminCreateCommunityMemberInput {
communityId: String!
role: CommunityMemberRole
userId: String!
}
input AdminCreateIdentityInput {
ownerId: String!
provider: IdentityProvider!
providerId: String!
}
input AdminCreateUserInput {
password: String
username: String!
}
input AdminFindManyCommunityInput {
limit: Int = 10
page: Int = 1
search: String
}
input AdminFindManyCommunityMemberInput {
communityId: String!
limit: Int = 10
page: Int = 1
role: CommunityMemberRole
search: String
}
input AdminFindManyIdentityInput {
ownerId: String
provider: IdentityProvider
}
input AdminFindManyUserInput {
limit: Int = 10
page: Int = 1
role: UserRole
search: String
status: UserStatus
}
input AdminUpdateCommunityInput {
description: String
iconUrl: String
logoUrl: String
name: String
}
input AdminUpdateCommunityMemberInput {
role: CommunityMemberRole
}
input AdminUpdateUserInput {
avatarUrl: String
developer: Boolean
name: String
role: UserRole
status: UserStatus
username: String
}
input AnonFindManyCommunityInput {
limit: Int = 10
page: Int = 1
search: String
}
type AppConfig {
authDiscordEnabled: Boolean!
authGithubEnabled: Boolean!
authGoogleEnabled: Boolean!
authPasswordEnabled: Boolean!
authRegisterEnabled: Boolean!
authSolanaEnabled: Boolean!
authTwitterEnabled: Boolean!
}
type Claim {
account: String!
amount: String!
avatarUrl: String
claimUrl: String!
community: Community
communityId: String!
createdAt: DateTime
id: String!
identity: Identity
minter: TokenGatorMinter
name: String!
provider: IdentityProvider!
providerId: String!
signature: String
status: ClaimStatus!
updatedAt: DateTime
}
input ClaimAdminCreateInput {
account: String!
amount: String
communityId: String!
provider: IdentityProvider!
providerId: String!
}
input ClaimAdminFindManyInput {
communityId: String!
limit: Int = 10
page: Int = 1
search: String
}
input ClaimAdminUpdateInput {
amount: String
signature: String
status: ClaimStatus
}
type ClaimPaging {
data: [Claim!]!
meta: PagingMeta!
}
enum ClaimStatus {
Claimed
Pending
}
input ClaimUserCreateInput {
account: String!
amount: String
avatarUrl: String
communityId: String!
provider: IdentityProvider!
providerId: String!
}
input ClaimUserFindManyInput {
account: String
communityId: String!
limit: Int = 10
page: Int = 1
provider: IdentityProvider
providerId: String
search: String
status: ClaimStatus
}
input ClaimUserUpdateInput {
amount: String
signature: String
status: ClaimStatus
}
type Community {
createdAt: DateTime
description: String!
iconUrl: String
id: String!
logoUrl: String
name: String!
publicUrl: String
slug: String!
updatedAt: DateTime
viewUrl: String
}
type CommunityMember {
communityId: String!
createdAt: DateTime
id: String!
role: CommunityMemberRole!
updatedAt: DateTime
user: User
userId: String!
}
type CommunityMemberPaging {
data: [CommunityMember!]!
meta: PagingMeta!
}
enum CommunityMemberRole {
Admin
Member
}
type CommunityPaging {
data: [Community!]!
meta: PagingMeta!
}
type Currency {
address: String!
decimals: Int!
id: String
name: String!
programId: String!
symbol: String!
}
"""
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
"""
scalar DateTime
type Identity {
challenges: [IdentityChallenge!]
createdAt: DateTime
expired: Boolean
id: String!
name: String
owner: User
profile: JSON
provider: IdentityProvider!
providerId: String!
updatedAt: DateTime
url: String
verified: Boolean
}
type IdentityChallenge {
challenge: String!
createdAt: DateTime!
id: String!
ip: String!
provider: IdentityProvider!
providerId: String!
signature: String
updatedAt: DateTime!
userAgent: String!
verified: Boolean!
}
enum IdentityProvider {
Discord
GitHub
Google
Solana
Twitter
}
"""
The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
"""
scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
input LinkIdentityInput {
provider: IdentityProvider!
providerId: String!
}
input LoginInput {
password: String!
username: String!
}
type Mutation {
adminCreateClaim(input: ClaimAdminCreateInput!): Claim
adminCreateCommunityMember(input: AdminCreateCommunityMemberInput!): CommunityMember
adminCreateIdentity(input: AdminCreateIdentityInput!): Identity
adminCreatePreset(input: PresetAdminCreateInput!): Preset
adminCreatePrice(input: PriceAdminCreateInput!): Price
adminCreateUser(input: AdminCreateUserInput!): User
adminCreateWallet(input: WalletAdminCreateInput!): Wallet
adminDeleteClaim(claimId: String!): Boolean
adminDeleteCommunity(communityId: String!): Boolean
adminDeleteCommunityMember(communityMemberId: String!): Boolean
adminDeleteIdentity(identityId: String!): Boolean
adminDeletePreset(presetId: String!): Boolean
adminDeletePrice(priceId: String!): Boolean
adminDeleteUser(userId: String!): Boolean
adminDeleteWallet(walletId: String!): Boolean
adminUpdateClaim(claimId: String!, input: ClaimAdminUpdateInput!): Claim
adminUpdateCommunity(communityId: String!, input: AdminUpdateCommunityInput!): Community
adminUpdateCommunityMember(communityMemberId: String!, input: AdminUpdateCommunityMemberInput!): CommunityMember
adminUpdatePreset(input: PresetAdminUpdateInput!, presetId: String!): Preset
adminUpdatePrice(input: PriceAdminUpdateInput!, priceId: String!): Price
adminUpdateUser(input: AdminUpdateUserInput!, userId: String!): User
adminUpdateWallet(input: WalletAdminUpdateInput!, walletId: String!): Wallet
anonVerifyIdentityChallenge(input: VerifyIdentityChallengeInput!): IdentityChallenge
createAssetActivity(account: String!, type: PresetActivity!): TokenGatorActivity
createAssetActivityEvent(account: String!, input: TokenGatorActivityEntryInput!, type: PresetActivity!): String
login(input: LoginInput!): User
logout: Boolean
register(input: RegisterInput!): User
solanaRequestAirdrop(account: String!): JSON
userAddMinterAuthority(account: String!, authority: String!, communitySlug: String!): String
userCreateClaim(input: ClaimUserCreateInput!): Claim
userCreateCommunity(input: UserCreateCommunityInput!): Community
userCreateCommunityMember(input: UserCreateCommunityMemberInput!): CommunityMember
userCreateMintFromMinter(input: PresetUserMintFromMinter!): String
userCreateMintFromPreset(input: PresetUserMintFromPreset!): String
userCreateWallet(input: WalletUserCreateInput!): Wallet
userDeleteClaim(claimId: String!): Boolean
userDeleteCommunity(communityId: String!): Boolean
userDeleteCommunityMember(communityMemberId: String!): Boolean
userDeleteIdentity(identityId: String!): Boolean
userDeleteMinter(account: String!, communitySlug: String!): String
userDeleteWallet(publicKey: String!): Boolean
userLinkIdentity(input: LinkIdentityInput!): Identity
userRemoveMinterAuthority(account: String!, authority: String!, communitySlug: String!): String
userSetWalletFeepayer(publicKey: String!): Wallet
userUpdateClaim(claimId: String!, input: ClaimUserUpdateInput!): Claim
userUpdateCommunity(communityId: String!, input: UserUpdateCommunityInput!): Community
userUpdateCommunityMember(communityMemberId: String!, input: UserUpdateCommunityMemberInput!): CommunityMember
userUpdateUser(input: UserUpdateUserInput!): User
userUpdateWallet(input: WalletUserUpdateInput!, publicKey: String!): Wallet
userVerifyIdentityChallenge(input: VerifyIdentityChallengeInput!): IdentityChallenge
}
type PagingMeta {
currentPage: Int!
isFirstPage: Boolean!
isLastPage: Boolean!
nextPage: Int
pageCount: Int
previousPage: Int
totalCount: Int
}
type Preset {
activities: [PresetActivity!]
color: String!
config: JSON
createdAt: DateTime
description: String
enabled: Boolean
id: String!
imageUrl: String
name: String!
updatedAt: DateTime
}
enum PresetActivity {
Payouts
Points
}
input PresetAdminCreateInput {
description: String
name: String!
}
input PresetAdminFindManyInput {
limit: Int = 10
page: Int = 1
search: String
}
input PresetAdminUpdateInput {
description: String
name: String
}
type PresetPaging {
data: [Preset!]!
meta: PagingMeta!
}
input PresetUserFindManyInput {
limit: Int = 10
page: Int = 1
search: String
}
input PresetUserMintFromMinter {
account: String!
communitySlug: String!
username: String!
}
input PresetUserMintFromPreset {
communitySlug: String!
presetId: String!
}
type Price {
active: Boolean!
assets: Int!
createdAt: DateTime
currency: Currency
currencyId: String
days: Int!
id: String!
name: String!
preset: Preset
presetId: String!
price: String!
updatedAt: DateTime
}
input PriceAdminCreateInput {
assets: Int!
days: Int!
name: String!
presetId: String!
price: String!
}
input PriceAdminFindManyInput {
presetId: String!
}
input PriceAdminUpdateInput {
active: Boolean
assets: Int!
days: Int!
name: String
price: String
}
input PriceUserFindManyInput {
presetId: String!
}
type Query {
adminFindManyClaim(input: ClaimAdminFindManyInput!): ClaimPaging!
adminFindManyCommunity(input: AdminFindManyCommunityInput!): CommunityPaging!
adminFindManyCommunityMember(input: AdminFindManyCommunityMemberInput!): CommunityMemberPaging!
adminFindManyIdentity(input: AdminFindManyIdentityInput!): [Identity!]
adminFindManyPreset(input: PresetAdminFindManyInput!): PresetPaging!
adminFindManyPrice(input: PriceAdminFindManyInput!): [Price!]!
adminFindManyUser(input: AdminFindManyUserInput!): UserPaging!
adminFindManyWallet(input: WalletAdminFindManyInput!): WalletPaging!
adminFindOneClaim(claimId: String!): Claim
adminFindOneCommunity(communityId: String!): Community
adminFindOneCommunityMember(communityMemberId: String!): CommunityMember
adminFindOnePreset(presetId: String!): Preset
adminFindOnePrice(priceId: String!): Price
adminFindOneUser(userId: String!): User
adminFindOneWallet(walletId: String!): Wallet
anonFindManyCommunity(input: AnonFindManyCommunityInput!): CommunityPaging!
anonFindOneCommunity(slug: String!): Community
anonRequestIdentityChallenge(input: RequestIdentityChallengeInput!): IdentityChallenge
appConfig: AppConfig!
currencies: [Currency!]!
getAsset(account: String!): TokenGatorAsset!
getAssetActivity(account: String!, type: PresetActivity!): TokenGatorActivity
me: User
metadataAll(account: String!): JSON
solanaGetBalance(account: String!): String
solanaGetTokenAccounts(account: String!): JSON
solanaGetTransactions(account: String!): JSON
uptime: Float!
userFindManyClaim(input: ClaimUserFindManyInput!): ClaimPaging!
userFindManyCommunity(input: UserFindManyCommunityInput!): CommunityPaging!
userFindManyCommunityMember(input: UserFindManyCommunityMemberInput!): CommunityMemberPaging!
userFindManyIdentity(input: UserFindManyIdentityInput!): [Identity!]
userFindManyPreset(input: PresetUserFindManyInput!): PresetPaging!
userFindManyPrice(input: PriceUserFindManyInput!): [Price!]!
userFindManyUser(input: UserFindManyUserInput!): UserPaging!
userFindManyWallet(input: WalletUserFindManyInput!): WalletPaging!
userFindOneClaim(claimId: String!): Claim
userFindOneCommunity(slug: String!): Community
userFindOneCommunityMember(communityMemberId: String!): CommunityMember
userFindOnePreset(presetId: String!): Preset
userFindOneUser(username: String!): User
userFindOneWallet(publicKey: String!): Wallet
userGetClaim(claimId: String!): Claim!
userGetClaims: [Claim!]!
userGetClaimsByProvider(provider: IdentityProvider!, providerId: String!): [Claim!]!
userGetMinter(account: String!): TokenGatorMinter!
userGetMinterAssets(account: String!): JSON!
userGetMinters: TokenGatorMinter!
userGetMintersByCommunity(communitySlug: String!): [TokenGatorMinter!]!
userRequestIdentityChallenge(input: RequestIdentityChallengeInput!): IdentityChallenge
}
input RegisterInput {
password: String!
username: String!
}
input RequestIdentityChallengeInput {
provider: IdentityProvider!
providerId: String!
}
type TokenGatorActivity {
account: String!
endDate: String
entries: [TokenGatorActivityEntry!]
label: String!
pointsLabel: String!
pointsTotal: Float!
startDate: String
type: PresetActivity!
}
type TokenGatorActivityEntry {
message: String!
points: Float
timestamp: DateTime!
url: String
}
input TokenGatorActivityEntryInput {
message: String!
points: Int
timestamp: DateTime
url: String
}
type TokenGatorAsset {
account: String!
activities: [PresetActivity!]!
attributes: [[String!]!]!
description: String!
image: String!
name: String!
}
type TokenGatorMinter {
authorities: [String!]!
bump: Float!
communityId: String!
description: String!
feePayer: String!
imageUrl: String!
minterConfig: TokenGatorMinterConfig!
name: String!
paymentConfig: TokenGatorMinterPaymentConfig!
publicKey: String!
}
type TokenGatorMinterApplicationConfig {
identities: [IdentityProvider!]!
paymentConfig: TokenGatorMinterPaymentConfig!
}
type TokenGatorMinterConfig {
applicationConfig: TokenGatorMinterApplicationConfig!
metadataConfig: TokenGatorMinterMetadataConfig!
mint: String!
}
type TokenGatorMinterMetadataConfig {
metadata: [[String!]!]!
name: String!
symbol: String!
uri: String!
}
type TokenGatorMinterPaymentConfig {
amount: Float!
days: Float!
expiresAt: String!
mint: String!
price: String!
}
type User {
avatarUrl: String
createdAt: DateTime
developer: Boolean
id: String!
identities: [Identity!]
name: String
profileUrl: String!
role: UserRole
status: UserStatus
updatedAt: DateTime
username: String
}
input UserCreateCommunityInput {
description: String!
iconUrl: String
logoUrl: String
name: String!
}
input UserCreateCommunityMemberInput {
communityId: String!
role: CommunityMemberRole
userId: String!
}
input UserFindManyCommunityInput {
limit: Int = 10
page: Int = 1
search: String
}
input UserFindManyCommunityMemberInput {
communityId: String!
limit: Int = 10
page: Int = 1
role: CommunityMemberRole
search: String
}
input UserFindManyIdentityInput {
username: String!
}
input UserFindManyUserInput {
limit: Int = 10
page: Int = 1
search: String
}
type UserPaging {
data: [User!]!
meta: PagingMeta!
}
enum UserRole {
Admin
User
}
enum UserStatus {
Active
Created
Inactive
}
input UserUpdateCommunityInput {
description: String
iconUrl: String
logoUrl: String
name: String
}
input UserUpdateCommunityMemberInput {
role: CommunityMemberRole
}
input UserUpdateUserInput {
avatarUrl: String
developer: Boolean
name: String
}
input VerifyIdentityChallengeInput {
challenge: String!
provider: IdentityProvider!
providerId: String!
signature: String!
useLedger: Boolean = false
}
type Wallet {
communityId: String
createdAt: DateTime
feePayer: Boolean!
id: String!
name: String!
publicKey: String!
updatedAt: DateTime
}
input WalletAdminCreateInput {
communityId: String!
secretKey: String
}
input WalletAdminFindManyInput {
communityId: String!
limit: Int = 10
page: Int = 1
search: String
}
input WalletAdminUpdateInput {
name: String
}
type WalletPaging {
data: [Wallet!]!
meta: PagingMeta!
}
input WalletUserCreateInput {
communityId: String!
secretKey: String
}
input WalletUserFindManyInput {
communityId: String!
limit: Int = 10
page: Int = 1
search: String
}
input WalletUserUpdateInput {
name: String
}