-
Notifications
You must be signed in to change notification settings - Fork 1
/
api-schema.graphql
1003 lines (895 loc) · 22.3 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
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
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
input AdminAddCommunityMemberInput {
admin: Boolean!
userId: String!
}
input AdminCreateBotInput {
clientId: String!
clientSecret: String!
communityId: String!
token: String!
}
input AdminCreateCommunityInput {
avatarUrl: String
description: String
discordUrl: String
githubUrl: String
name: String!
telegramUrl: String
twitterUrl: String
websiteUrl: String
}
input AdminCreateIdentityInput {
ownerId: String!
provider: IdentityProvider!
providerId: String!
}
input AdminCreateNetworkInput {
cluster: NetworkCluster!
endpoint: String!
name: String!
}
input AdminCreateNetworkTokenInput {
account: String!
cluster: NetworkCluster!
}
input AdminCreateRoleInput {
communityId: String!
name: String!
}
input AdminCreateSnapshotInput {
roleId: String!
}
input AdminFindManyBotInput {
communityId: String!
limit: Int = 10
page: Int = 1
search: String
}
input AdminFindManyCommunityInput {
limit: Int = 10
page: Int = 1
search: String
}
input AdminFindManyCommunityMemberInput {
admin: Boolean
communityId: String!
limit: Int = 10
page: Int = 1
search: String
}
input AdminFindManyIdentityInput {
ownerId: String
provider: IdentityProvider
}
input AdminFindManyLogInput {
botId: String
communityId: String
identityProvider: IdentityProvider
identityProviderId: String
level: LogLevel
limit: Int = 10
page: Int = 1
relatedId: String
relatedType: LogRelatedType
roleId: String
search: String
userId: String
}
input AdminFindManyNetworkAssetInput {
cluster: NetworkCluster!
limit: Int = 10
page: Int = 1
search: String
type: NetworkTokenType
}
input AdminFindManyNetworkInput {
limit: Int = 10
page: Int = 1
search: String
}
input AdminFindManyNetworkTokenInput {
cluster: NetworkCluster!
limit: Int = 10
page: Int = 1
search: String
}
input AdminFindManyRoleInput {
communityId: String!
limit: Int = 10
page: Int = 1
search: String
}
input AdminFindManySnapshotInput {
communityId: String!
limit: Int = 10
page: Int = 1
roleId: String
search: String
}
input AdminFindManyUserInput {
limit: Int = 10
page: Int = 1
role: UserRole
search: String
status: UserStatus
}
input AdminUpdateBotInput {
avatarUrl: String
clientId: String
clientSecret: String
communityId: String
name: String
token: String
}
input AdminUpdateCommunityInput {
avatarUrl: String
description: String
discordUrl: String
enableSync: Boolean
featured: Boolean
githubUrl: String
name: String
telegramUrl: String
twitterUrl: String
websiteUrl: String
}
input AdminUpdateCommunityMemberInput {
admin: Boolean!
}
input AdminUpdateNetworkInput {
enableSync: Boolean
endpoint: String
name: String
}
input AdminUpdateNetworkTokenInput {
name: String
vault: String
}
input AdminUpdateRoleInput {
name: String
}
input AdminUpdateUserInput {
avatarUrl: String
developer: Boolean
name: String
private: Boolean
role: UserRole
status: UserStatus
username: String
}
type AppConfig {
appLogoUrlDark: String
appLogoUrlLight: String
appThemeBackground: String
appThemeColor: String
authLinkProviders: [IdentityProvider!]
authLoginProviders: [IdentityProvider!]
features: [AppFeature!]!
resolvers: [NetworkResolver!]!
}
enum AppFeature {
AnonCommunities
CommunityCreate
CommunitySnapshots
IdentityCliVerification
IdentityGrants
PubkeyProtocol
}
type Bot {
application: JSON
avatarUrl: String
communityId: String!
createdAt: DateTime
developersUrl: String!
id: String!
inviteUrl: String!
name: String!
permissions: [BotRole!]
redirectUrl: String!
redirectUrlSet: Boolean
started: Boolean!
status: BotStatus!
updatedAt: DateTime
verificationUrl: String!
verificationUrlSet: Boolean
}
type BotPaging {
data: [Bot!]!
meta: PagingMeta!
}
type BotRole {
botId: String
createdAt: DateTime
id: String!
permissions: [Role!]
server: DiscordServer
serverId: String
serverRole: DiscordRole
serverRoleId: String
updatedAt: DateTime
}
type BotServer {
adminRoles: [String!]
botChannel: String
botId: String!
createdAt: DateTime
dryRun: Boolean
enableSync: Boolean
id: String!
serverId: String!
updatedAt: DateTime
verbose: Boolean
}
enum BotStatus {
Active
Inactive
}
type Community {
avatarUrl: String
createdAt: DateTime
description: String
discordUrl: String
enableSync: Boolean
featured: Boolean
githubUrl: String
id: String!
name: String!
roles: [Role!]
telegramUrl: String
twitterUrl: String
updatedAt: DateTime
websiteUrl: String
}
type CommunityMember {
admin: Boolean!
communityId: String!
createdAt: DateTime
id: String!
roles: [Role!]
updatedAt: DateTime
user: User
userId: String!
}
type CommunityMemberPaging {
data: [CommunityMember!]!
meta: PagingMeta!
}
type CommunityPaging {
data: [Community!]!
meta: PagingMeta!
}
"""
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
"""
scalar DateTime
type DiscordChannel {
id: String!
name: String!
parentId: String
type: String!
}
type DiscordRole {
color: Int!
id: String!
managed: Boolean!
name: String!
position: Int!
}
type DiscordServer {
icon: String
id: String!
name: String!
permissions: [String!]
}
type Identity {
avatarUrl: String
challenges: [IdentityChallenge!]
createdAt: DateTime
expired: Boolean
grants: [IdentityGrant!]
id: String!
name: String!
owner: User
ownerId: String
profile: JSON
provider: IdentityProvider!
providerId: String!
syncEnded: DateTime
syncStarted: DateTime
updatedAt: DateTime
url: String
verified: Boolean
}
type IdentityChallenge {
blockhash: String
challenge: String!
createdAt: DateTime!
id: String!
provider: IdentityProvider!
providerId: String!
signature: String
updatedAt: DateTime!
userAgent: String!
verified: Boolean!
}
type IdentityGrant {
createdAt: DateTime
grantee: User
granteeId: String!
id: String!
provider: IdentityProvider!
providerId: String!
updatedAt: DateTime
}
enum IdentityProvider {
Discord
Solana
}
"""
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 {
name: String
provider: IdentityProvider!
providerId: String!
}
type Log {
bot: Bot
botId: String
communityId: String
createdAt: DateTime
data: JSON
id: String!
identity: Identity
identityProvider: IdentityProvider
identityProviderId: String
level: LogLevel!
message: String!
networkAsset: NetworkAsset
networkAssetId: String
relatedId: String
relatedType: LogRelatedType
role: Role
roleId: String
updatedAt: DateTime
user: User
userId: String
}
enum LogLevel {
Error
Info
Verbose
Warning
}
type LogPaging {
data: [Log!]!
meta: PagingMeta!
}
enum LogRelatedType {
Bot
BotMember
Community
Identity
Role
User
}
type Mutation {
adminAddCommunityMember(communityId: String!, input: AdminAddCommunityMemberInput!): CommunityMember
adminCleanupNetworkAssets(cluster: NetworkCluster!): Boolean
adminCreateBackup: Boolean!
adminCreateBot(input: AdminCreateBotInput!): Bot
adminCreateCommunity(input: AdminCreateCommunityInput!): Community
adminCreateIdentity(input: AdminCreateIdentityInput!): Identity
adminCreateNetwork(input: AdminCreateNetworkInput!): Network
adminCreateNetworkToken(input: AdminCreateNetworkTokenInput!): NetworkToken
adminCreateRole(input: AdminCreateRoleInput!): Role
adminCreateSnapshot(input: AdminCreateSnapshotInput!): Snapshot
adminDeleteBackup(name: String!): Boolean!
adminDeleteBot(botId: String!): Boolean
adminDeleteCommunity(communityId: String!): Boolean
adminDeleteIdentity(identityId: String!): Boolean
adminDeleteLog(logId: String!): Boolean
adminDeleteNetwork(networkId: String!): Boolean
adminDeleteNetworkAsset(networkAssetId: String!): Boolean
adminDeleteNetworkToken(networkTokenId: String!): Boolean
adminDeleteRole(roleId: String!): Boolean
adminDeleteSnapshot(snapshotId: String!): Boolean
adminDeleteUser(userId: String!): Boolean
adminFetchBackup(url: String!): Boolean!
adminPurgeLogs: Boolean
adminRemoveCommunityMember(communityMemberId: String!): Boolean
adminRestoreBackup(name: String!): Boolean!
adminSetIdentityVerified(identityId: String!, verified: Boolean!): Boolean
adminSyncIdentity(identityId: String!): Boolean
adminSyncNetworkAssets: Boolean
adminUpdateBot(botId: String!, input: AdminUpdateBotInput!): Bot
adminUpdateCommunity(communityId: String!, input: AdminUpdateCommunityInput!): Community
adminUpdateCommunityMember(communityMemberId: String!, input: AdminUpdateCommunityMemberInput!): CommunityMember
adminUpdateNetwork(input: AdminUpdateNetworkInput!, networkId: String!): Network
adminUpdateNetworkToken(input: AdminUpdateNetworkTokenInput!, networkTokenId: String!): NetworkToken
adminUpdateNetworkTokenMetadata(networkTokenId: String!): NetworkToken
adminUpdateRole(input: AdminUpdateRoleInput!, roleId: String!): Role
adminUpdateUser(input: AdminUpdateUserInput!, userId: String!): User
adminVerifyNetworkAssets: Boolean
anonVerifyIdentityChallenge(input: VerifyIdentityChallengeInput!): IdentityChallenge
logout: Boolean
userAddCommunityMember(communityId: String!, input: UserAddCommunityMemberInput!): CommunityMember
userAddIdentityGrant(input: UserAddIdentityGrantInput!): Boolean
userCreateBot(input: UserCreateBotInput!): Bot
userCreateCommunity(input: UserCreateCommunityInput!): Community
userCreateRole(input: UserCreateRoleInput!): Role
userCreateRoleCondition(input: UserCreateRoleConditionInput!): RoleCondition
userCreateRolePermission(input: UserCreateRolePermissionInput!): RolePermission
userCreateSnapshot(input: UserCreateSnapshotInput!): Snapshot
userDeleteBot(botId: String!): Boolean
userDeleteCommunity(communityId: String!): Boolean
userDeleteIdentity(identityId: String!): Boolean
userDeleteRole(roleId: String!): Boolean
userDeleteRoleCondition(roleConditionId: String!): Boolean
userDeleteRolePermission(rolePermissionId: String!): Boolean
userDeleteSnapshot(snapshotId: String!): Boolean
userLeaveBotServer(botId: String!, serverId: String!): Boolean
userLinkIdentity(input: LinkIdentityInput!): Identity
userRefreshIdentity(identityId: String!): Boolean
userRemoveCommunityMember(communityMemberId: String!): Boolean
userRemoveIdentityGrant(input: UserRemoveIdentityGrantInput!): Boolean
userStartBot(botId: String!): Boolean
userStopBot(botId: String!): Boolean
userSyncBotServer(botId: String!, serverId: String!): Boolean
userSyncCommunityRoles(communityId: String!): JSON
userTestBotServerConfig(botId: String!, serverId: String!): BotServer
userUpdateBot(botId: String!, input: UserUpdateBotInput!): Bot
userUpdateBotServer(botId: String!, input: UserUpdateBotServerInput!, serverId: String!): BotServer
userUpdateCommunity(communityId: String!, input: UserUpdateCommunityInput!): Community
userUpdateCommunityMember(communityMemberId: String!, input: UserUpdateCommunityMemberInput!): CommunityMember
userUpdateIdentity(identityId: String!, input: UserUpdateIdentityInput!): Identity
userUpdateRole(input: UserUpdateRoleInput!, roleId: String!): Role
userUpdateRoleCondition(input: UserUpdateRoleConditionInput!, roleConditionId: String!): RoleCondition
userUpdateUser(input: UserUpdateUserInput!): User
userVerifyIdentityChallenge(input: VerifyIdentityChallengeInput!): IdentityChallenge
userVerifyIdentityChallengeCli(input: VerifyIdentityChallengeInput!): IdentityChallenge
}
type Network {
cluster: NetworkCluster!
createdAt: DateTime
decimals: Int!
enableSync: Boolean
endpoint: String!
explorerUrl: String!
id: String!
name: String!
symbol: String!
type: NetworkType!
updatedAt: DateTime
}
type NetworkAsset {
account: String!
attributes: JSON
balance: String
burnt: Boolean
cluster: NetworkCluster!
createdAt: DateTime
decimals: Int!
explorerUrl: String!
group: String
id: String!
imageUrl: String
metadata: JSON
mint: String!
name: String!
owner: String!
program: String
resolver: NetworkResolver!
symbol: String
type: NetworkTokenType!
updatedAt: DateTime
}
type NetworkAssetPaging {
data: [NetworkAsset!]!
meta: PagingMeta!
}
enum NetworkCluster {
SolanaCustom
SolanaDevnet
SolanaMainnet
SolanaTestnet
}
type NetworkPaging {
data: [Network!]!
meta: PagingMeta!
}
enum NetworkResolver {
Anybodies
SolanaFungible
SolanaNonFungible
SolanaValidator
}
type NetworkToken {
account: String!
cluster: NetworkCluster!
createdAt: DateTime
description: String
id: String!
imageUrl: String
metadataUrl: String
mintList: [String!]
name: String!
program: String!
raw: JSON
symbol: String
type: NetworkTokenType!
updatedAt: DateTime
vault: String
}
type NetworkTokenPaging {
data: [NetworkToken!]!
meta: PagingMeta!
}
enum NetworkTokenType {
Fungible
NonFungible
Validator
}
enum NetworkType {
Solana
}
type PagingMeta {
currentPage: Int!
isFirstPage: Boolean!
isLastPage: Boolean!
nextPage: Int
pageCount: Int
previousPage: Int
totalCount: Int
}
type Query {
adminFindManyBot(input: AdminFindManyBotInput!): BotPaging!
adminFindManyCommunity(input: AdminFindManyCommunityInput!): CommunityPaging!
adminFindManyCommunityMember(input: AdminFindManyCommunityMemberInput!): CommunityMemberPaging!
adminFindManyIdentity(input: AdminFindManyIdentityInput!): [Identity!]
adminFindManyLog(input: AdminFindManyLogInput!): LogPaging!
adminFindManyNetwork(input: AdminFindManyNetworkInput!): NetworkPaging!
adminFindManyNetworkAsset(input: AdminFindManyNetworkAssetInput!): NetworkAssetPaging!
adminFindManyNetworkToken(input: AdminFindManyNetworkTokenInput!): NetworkTokenPaging!
adminFindManyRole(input: AdminFindManyRoleInput!): RolePaging!
adminFindManySnapshot(input: AdminFindManySnapshotInput!): SnapshotPaging!
adminFindManyUser(input: AdminFindManyUserInput!): UserPaging!
adminFindOneBot(botId: String!): Bot
adminFindOneCommunity(communityId: String!): Community
adminFindOneCommunityMember(communityMemberId: String!): CommunityMember
adminFindOneLog(logId: String!): Log
adminFindOneNetwork(networkId: String!): Network
adminFindOneNetworkAsset(networkAssetId: String!): NetworkAsset
adminFindOneNetworkToken(networkTokenId: String!): NetworkToken
adminFindOneRole(roleId: String!): Role
adminFindOneSnapshot(snapshotId: String!): Snapshot
adminFindOneUser(userId: String!): User
adminFindUserByIdentity(provider: IdentityProvider!, providerId: String!): User
adminGetBackup(name: String!): JSON
adminGetBackups: [String!]!
adminGetVoteIdentities(networkId: String!): [String!]!
adminTableStats: [StatRecordGroup!]
anonGetCommunities: [Community!]!
anonRequestIdentityChallenge(input: RequestIdentityChallengeInput!): IdentityChallenge
appConfig: AppConfig!
me: User
uptime: Float!
userFindManyBotRoles(botId: String!, serverId: String!): [BotRole!]
userFindManyCommunity(input: UserFindManyCommunityInput!): CommunityPaging!
userFindManyCommunityMember(input: UserFindManyCommunityMemberInput!): CommunityMemberPaging!
userFindManyIdentity(input: UserFindManyIdentityInput!): [Identity!]
userFindManyLog(input: UserFindManyLogInput!): LogPaging!
userFindManyNetworkAsset(input: UserFindManyNetworkAssetInput!): NetworkAssetPaging!
userFindManyNetworkToken(input: UserFindManyNetworkTokenInput!): NetworkTokenPaging!
userFindManyRole(input: UserFindManyRoleInput!): RolePaging!
userFindManySnapshot(input: UserFindManySnapshotInput!): SnapshotPaging!
userFindManyUser(input: UserFindManyUserInput!): UserPaging!
userFindOneBot(communityId: String!): Bot
userFindOneBotServer(botId: String!, serverId: String!): BotServer
userFindOneCommunity(communityId: String!): Community
userFindOneCommunityMember(communityMemberId: String!): CommunityMember
userFindOneIdentity(provider: IdentityProvider!, providerId: String!): Identity
userFindOneLog(logId: String!): Log
userFindOneNetworkAsset(account: String!, cluster: NetworkCluster!): NetworkAsset
userFindOneRole(roleId: String!): Role
userFindOneSnapshot(snapshotId: String!): Snapshot
userFindOneUser(username: String!): User
userFindOneUserById(userId: String!): User
userGetBotChannels(botId: String!, serverId: String!): [DiscordChannel!]
userGetBotRoles(botId: String!, serverId: String!): [DiscordRole!]
userGetBotServer(botId: String!, serverId: String!): DiscordServer
userGetBotServers(botId: String!): [DiscordServer!]
userGetCommunities(username: String!): [Community!]!
userGetCommunityMember(communityId: String!): CommunityMember
userGetEnabledNetworkClusters: [NetworkCluster!]!
userGetTokenAccounts(account: String!, cluster: NetworkCluster!): JSON
userGetTokenMetadata(account: String!, cluster: NetworkCluster!): JSON
userRequestIdentityChallenge(input: RequestIdentityChallengeInput!): IdentityChallenge
userRequestIdentityChallengeCli(input: RequestIdentityChallengeInput!): IdentityChallenge
}
input RequestIdentityChallengeInput {
name: String
provider: IdentityProvider!
providerId: String!
}
type Role {
communityId: String!
conditions: [RoleCondition!]
createdAt: DateTime
id: String!
member: CommunityMember
name: String!
permissions: [RolePermission!]
updatedAt: DateTime
viewUrl: String
}
type RoleCondition {
amount: String
amountMax: String
asset: SolanaNetworkAsset
config: JSON
createdAt: DateTime
filters: JSON
id: String!
roleId: String
token: NetworkToken
tokenId: String
type: NetworkTokenType!
updatedAt: DateTime
valid: Boolean
}
type RolePaging {
data: [Role!]!
meta: PagingMeta!
}
type RolePermission {
botId: String
botRole: BotRole
createdAt: DateTime
id: String!
role: Role
roleId: String
updatedAt: DateTime
}
type Snapshot {
createdAt: DateTime
data: [SnapshotItem!]
id: String!
name: String!
role: Role
roleId: String!
updatedAt: DateTime
}
type SnapshotAsset {
account: String
balance: String
mint: String
owner: String
}
type SnapshotItem {
assets: [SnapshotAsset!]
balance: String
items: Int
owner: SnapshotOwner
}
type SnapshotOwner {
discordId: String
username: String
}
type SnapshotPaging {
data: [Snapshot!]!
meta: PagingMeta!
}
type SolanaNetworkAsset {
accounts: [String!]!
amount: String!
group: String
owner: String!
}
type StatRecord {
name: String!
value: String!
}
type StatRecordGroup {
name: String!
records: [StatRecord!]!
}
type User {
avatarUrl: String
createdAt: DateTime
developer: Boolean
id: String!
identities: [Identity!]
lastLogin: DateTime
name: String
private: Boolean
profileUrl: String!
role: UserRole
status: UserStatus
updatedAt: DateTime
username: String
}
input UserAddCommunityMemberInput {
admin: Boolean!
userId: String!
}
input UserAddIdentityGrantInput {
granteeId: String!
provider: IdentityProvider!
providerId: String!
}
input UserCreateBotInput {
clientId: String!
clientSecret: String!
communityId: String!
token: String!
}
input UserCreateCommunityInput {
avatarUrl: String
description: String
discordUrl: String
githubUrl: String
name: String!
telegramUrl: String
twitterUrl: String
websiteUrl: String
}
input UserCreateRoleConditionInput {
roleId: String!
tokenId: String!
}
input UserCreateRoleInput {
communityId: String!
name: String!
}
input UserCreateRolePermissionInput {
botId: String!
roleId: String!
serverId: String!
serverRoleId: String!
}
input UserCreateSnapshotInput {
roleId: String!
}
input UserFindManyCommunityInput {
limit: Int = 10
page: Int = 1
search: String
withRoles: Boolean
}
input UserFindManyCommunityMemberInput {
admin: Boolean
communityId: String!
limit: Int = 10
page: Int = 1
search: String
}
input UserFindManyIdentityInput {
provider: IdentityProvider
username: String!
}
input UserFindManyLogInput {
botId: String
communityId: String
identityProvider: IdentityProvider
identityProviderId: String
level: LogLevel
limit: Int = 10
networkAssetId: String
page: Int = 1
relatedId: String
relatedType: LogRelatedType
roleId: String
search: String
userId: String
}
input UserFindManyNetworkAssetInput {
cluster: NetworkCluster
group: String
limit: Int = 10
page: Int = 1
search: String
type: NetworkTokenType
username: String!
}
input UserFindManyNetworkTokenInput {
cluster: NetworkCluster
limit: Int = 10
page: Int = 1
search: String
type: NetworkTokenType
username: String
}
input UserFindManyRoleInput {
communityId: String!
limit: Int = 10
page: Int = 1
search: String
}
input UserFindManySnapshotInput {
communityId: String!
limit: Int = 10
page: Int = 1
roleId: String
search: String
}
input UserFindManyUserInput {
limit: Int = 10
page: Int = 1
search: String
}
type UserPaging {
data: [User!]!
meta: PagingMeta!
}
input UserRemoveIdentityGrantInput {
granteeId: String!
provider: IdentityProvider!
providerId: String!
}
enum UserRole {
Admin
User
}
enum UserStatus {
Active
Created
Inactive
}
input UserUpdateBotInput {
avatarUrl: String
clientId: String
clientSecret: String
name: String
token: String
}
input UserUpdateBotServerInput {
adminRoles: [String!]
botChannel: String
dryRun: Boolean
enableSync: Boolean
verbose: Boolean
}
input UserUpdateCommunityInput {
avatarUrl: String
description: String
discordUrl: String
enableSync: Boolean
githubUrl: String
name: String
telegramUrl: String
twitterUrl: String
websiteUrl: String
}
input UserUpdateCommunityMemberInput {
admin: Boolean!
}
input UserUpdateIdentityInput {
name: String
}
input UserUpdateRoleConditionInput {
amount: String
amountMax: String
config: JSON
filters: JSON
}
input UserUpdateRoleInput {
name: String
}
input UserUpdateUserInput {
avatarUrl: String
developer: Boolean
name: String
private: Boolean
}
input VerifyIdentityChallengeInput {
challenge: String!
message: String!
provider: IdentityProvider!