-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
747 lines (690 loc) · 17.8 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
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
mutation: Mutation
subscription: Subscription
}
interface ApplicationRecord {
created_at: Int
deleted_at: Int
id: ID
updated_at: Int
}
interface Paginated {
count: Int
currentPage: Int
offset: Int
perPage: Int
totalEntries: Int
totalPages: Int
}
interface Policy {
can_destroy: Boolean
can_edit: Boolean
}
"Various data attached to a particular moderation item"
union ModerationItem = Image
"Various data attached to a particular widget"
union WidgetData = Json | RichText | Youtube
type Activity implements ApplicationRecord {
character: Character
character_id: ID
comment: String
created_at: Int
deleted_at: Int
id: ID!
updated_at: Int
user: User
user_id: ID!
}
type ApiKey implements ApplicationRecord {
created_at: Int
deleted_at: Int
id: ID
name: String
read_only: Boolean
secret: String
updated_at: Int
user: User
}
type Artist implements ApplicationRecord {
avatar_url: String
commission_info: String
commission_info_markdown: String
commission_url: String
created_at: Int
deleted_at: Int
guid: ID!
id: ID!
locked: Boolean
media_count: Int
name: String!
profile: String
profile_markdown: String
slug: String!
updated_at: Int
user: User
website_url: String
}
type ArtistsCollection implements Paginated {
artists: [Artist]!
count: Int
currentPage: Int
offset: Int
perPage: Int
totalEntries: Int
totalPages: Int
}
type Attribute {
id: String!
name: String!
value: String
}
type Character implements ApplicationRecord {
avatar_url(style: String): String
can_edit: Boolean
cover_image_url(style: String): String
created_at: Int
custom_attributes: [Attribute]
deleted_at: Int
dislikes: String
dislikes_html: String
featured_image: Image
hidden: Boolean
id: ID
images: [Image]
likes: String
likes_html: String
lodestone_character: Lodestone_Character
marketplace_listing: MarketplaceListing
name: String!
nsfw: Boolean
path: String!
pending_transfer: Transfer
profile: String
profile_html: String
profile_image: Image
profile_sections: [ProfileSection]
shortcode: String
slug: String!
special_notes: String
special_notes_html: String
species: String
swatches: [Swatch]
theme: Theme
updated_at: Int
user: User
username: String!
version: Int
versions: [Version]
}
type CharactersCollection {
characters: [Character]!
count: Int
current_page: Int
total_entries: Int
total_pages: Int
}
type ChatCount {
unread: Int
}
type Conversation implements ApplicationRecord {
blocked: Boolean
created_at: Int
deleted_at: Int
guid: String!
id: ID!
lastMessage: Message
messages: [Message!]
recipient: User!
sender: User!
unreadCount: Int
updated_at: Int
user: User
}
type Forum implements ApplicationRecord {
created_at: Int
deleted_at: Int
description: String
discussion_count: Int
discussions(page: Int, query: String, sort: String, sticky: Boolean): ForumDiscussionCollection
id: ID
is_member: Boolean
is_open: Boolean
locked: Boolean
member_count: Int
name: String!
no_rp: Boolean
nsfw: Boolean
owner: User
prepost_message: String
rules: String
slug: String
summary: String
system_owned: Boolean
updated_at: Int
}
type ForumDiscussion implements ApplicationRecord & Policy {
admin_post: Boolean
can_destroy: Boolean
can_edit: Boolean
character: Character
content: String
content_html: String
created_at: Int
deleted_at: Int
forum: Forum
id: ID
karma_total: Int
last_post_at: Int
last_read_at: Int
locked: Boolean
moderator_post: Boolean
posts: [ForumPost]
preview: String
reply_count: Int
shortcode: String
slug: String
sticky: Boolean
topic: String
unread_posts_count: Int
updated_at: Int
user: User
}
type ForumDiscussionCollection implements Paginated {
count: Int
currentPage: Int
discussions: [ForumDiscussion]
offset: Int
perPage: Int
totalEntries: Int
totalPages: Int
}
type ForumPost implements ApplicationRecord & Policy {
admin_post: Boolean
can_destroy: Boolean
can_edit: Boolean
character: Character
content: String
content_html: String
created_at: Int
deleted_at: Int
discussion: ForumDiscussion
id: ID
is_edited: Boolean
karma_total: Int
moderator_post: Boolean
parent_post: ForumPost
updated_at: Int
user: User
}
type ForumPostsCollection implements Paginated {
count: Int
currentPage: Int
forumPosts: [ForumPost]!
offset: Int
perPage: Int
totalEntries: Int
totalPages: Int
}
type Geometry {
height: Int!
width: Int!
}
type Image implements ApplicationRecord {
aspect_ratio: Float
background_color: String
caption: String
caption_html: String
character: Character
character_id: ID
comments: [MediaComment]
comments_count: Int
created_at: Int
deleted_at: Int
download_link: String
favorites: [MediaFavorite]
favorites_count: Int
gravity: String
hashtags: [MediaHashtag]
height: Int
hidden: Boolean
id: ID
image_processing: Boolean
image_processing_error: String
is_favorite: Boolean
is_managed: Boolean
nsfw: Boolean
size: ImageSize
source_url: String
source_url_display: String
tags: [MediaTag]
title: String
updated_at: Int
url: ImageUrl
watermark: Boolean
width: Int
}
type ImageSize {
large: Geometry
large_square: Geometry
medium: Geometry
medium_square: Geometry
small: Geometry
small_square: Geometry
thumbnail: Geometry
}
type ImageUploadToken {
acl: String
key: String
policy: String
success_action_status: String
url: String
x_amz_algorithm: String
x_amz_credential: String
x_amz_date: String
x_amz_signature: String
}
type ImageUrl {
large: String
large_square: String
medium: String
medium_square: String
small: String
small_square: String
thumbnail: String
}
type Json {
json: String
}
type Lodestone_Character implements ApplicationRecord {
active_class_job: Lodestone_ClassJob
bio: String
class_jobs: [Lodestone_ClassJob]
created_at: Int
deleted_at: Int
diety: String
gc_name: String
gc_rank_name: String
id: ID
lodestone_id: String
name: String
nameday: String
portrait_url: String
race: Lodestone_Race
remote_updated_at: Int
server: Lodestone_Server
title: String
title_top: Boolean
town: String
tribe: String
updated_at: Int
}
type Lodestone_ClassJob implements ApplicationRecord {
class_abbr: String
class_icon_url: String
class_name: String
created_at: Int
deleted_at: Int
exp_level: Int
exp_level_max: Int
exp_level_togo: Int
id: ID
job_abbr: String
job_active: Boolean
job_name: String
level: Int
lodestone_character: Lodestone_Character
name: String
specialized: Boolean
updated_at: Int
}
type Lodestone_Race implements ApplicationRecord {
created_at: Int
deleted_at: Int
id: ID
lodestone_id: String
name: String
updated_at: Int
}
type Lodestone_Server implements ApplicationRecord {
created_at: Int
datacenter: String
deleted_at: Int
id: ID
lodestone_id: String
name: String
updated_at: Int
}
type MarketplaceListing implements ApplicationRecord {
amount_cents: Int
amount_currency: String
created_at: Int
deleted_at: Int
id: ID
title: String
updated_at: Int
}
type MediaComment implements ApplicationRecord {
comment: String!
created_at: Int
deleted_at: Int
id: ID
updated_at: Int
user: User
}
type MediaCommentCollection implements Paginated {
comments: [MediaComment]
count: Int
currentPage: Int
offset: Int
perPage: Int
totalEntries: Int
totalPages: Int
}
type MediaFavorite implements ApplicationRecord {
created_at: Int
deleted_at: Int
id: ID
updated_at: Int
user: User
}
type MediaHashtag implements ApplicationRecord {
count: Int
created_at: Int
deleted_at: Int
id: ID
media: Image
tag: String
updated_at: Int
}
type MediaTag implements ApplicationRecord {
character: Character
created_at: Int
deleted_at: Int
id: ID
media: Image
position_x: Int
position_y: Int
updated_at: Int
}
type Message implements ApplicationRecord {
conversation: Conversation
created_at: Int
deleted_at: Int
guid: String!
id: ID!
is_self: Boolean
message: String
read_at: Int
replyTo: Message
unread: Boolean
updated_at: Int
user: User!
}
type Moderation implements ApplicationRecord {
comment: String
created_at: Int
deleted_at: Int
dmcaSourceUrl: String
id: ID
item: ModerationItem
itemId: ID
itemType: String
sender: User
status: String
updated_at: Int
user: User
violationMessage: String
violationType: String
}
type Mutation {
addComment(comment: String!, mediaId: ID!): MediaComment
addFavorite(mediaId: ID!): MediaFavorite
banUser(id: ID!, moderation_ban: Boolean, moderation_reason: String): User
blockUser(username: String!): User
convertCharacter(id: ID!): Character
createActivity(character_id: ID, comment: String): Activity
createApiKey(name: String, read_only: Boolean): ApiKey
createColorScheme(characterId: ID, colorData: ThemeColorDataInput, name: String): Theme
createDiscussion(content: String!, forumId: String!, locked: Boolean, sticky: Boolean, topic: String!): ForumDiscussion
createForum: Forum
createLodestoneLink(characterId: ID!, lodestoneId: String!): Lodestone_Character
createProfileSection(characterId: ID!, createAfterSectionId: ID): ProfileSection
createProfileWidget(characterId: ID!, columnId: ID!, sectionId: ID!, type: String!): Widget
createSession(password: String!, remember: Boolean, username: String!): Session
deleteLodestoneLink(characterId: ID!): Lodestone_Character
deleteMedia(mediaId: ID!): Image
deleteProfileSection(id: ID!): ProfileSection
deleteProfileWidget(id: ID!): Widget
deleteUser(password: String!, username: String!): User
destroyCharacter(confirmation: String!, id: ID!): Character
destroyDiscussion(id: ID!): ForumDiscussion
destroySession: Session
editReply(content: String!, postId: ID!): ForumPost
markAllNotificationsAsRead: NotificationCollection
postReply(characterId: ID, content: String!, discussionId: ID!, parentPostId: ID): ForumPost
readNotification(id: ID!): Notification
removeComment(id: ID!, mediaId: ID!): MediaComment
removeFavorite(mediaId: ID!): MediaFavorite
sendKarma(discussionId: ID!, take: Boolean): ForumPost
sendMessage(conversationId: ID, message: String!, recipientId: ID): Message
setCharacterAvatarBlob(blob: String, id: ID!): Character
setCharacterCoverBlob(blob: String, id: ID!): Character
setUserAvatarBlob(blob: String, id: ID): User
sortGalleryImage(dropBefore: Boolean, sourceImageId: ID!, targetImageId: ID!): Character
transferCharacter(destination: String!, id: ID!): Character
udpateColorScheme(colorData: ThemeColorDataInput, id: ID!, name: String): Theme
unblockUser(username: String!): User
updateCharacter(color_scheme_id: ID, hidden: Boolean, id: ID!, name: String, nsfw: Boolean, shortcode: String, slug: String, special_notes: String, species: String): Character
updateConversation(conversation_id: ID!, read: Boolean): Conversation
updateDiscussion(content: String, id: ID!, locked: Boolean, sticky: Boolean, topic: String): ForumDiscussion
updateForum: Forum
updateImage(caption: String, characterId: ID, folder: String, gravity: String, hidden: Boolean, mediaId: ID, nsfw: Boolean, source_url: String, title: String, watermark: Boolean): Image
updateLodestoneLink(characterId: ID!): Lodestone_Character
updateModeration(id: ID!, resolution: String!): Moderation
updateProfileSection(id: ID!, row_order_position: String, title: String): ProfileSection
updateProfileWidget(column: Int, data: String, id: ID!, row_order_position: String, title: String): Widget
uploadImage(characterId: ID!, folder: String, key: String, location: String, nsfw: Boolean, title: String): Image
}
type Notification implements ApplicationRecord {
created_at: Int
deleted_at: Int
href: String
icon: String
id: ID
is_unread: Boolean
link: String
message: String
read_at: Int
tag: String
title: String
type: String
updated_at: Int
}
type NotificationCollection implements ApplicationRecord {
created_at: Int
deleted_at: Int
id: ID
notifications: [Notification]
unreadCount: Int
updated_at: Int
}
type ProfileSection {
columns: [Int]!
id: ID!
row_order: Int
title: String
widgets: [Widget]
}
type Query {
autocompleteCharacter(slug: String, username: String): [Character]
autocompleteHashtags(hashtag: String!): [MediaHashtag]
autocompleteUser(username: String): [User]
chatCounts: ChatCount
findUser(username: String!): User
getActivity(page: Int, since: Int, type: String): [Activity]
getArtist(slug: String!): Artist
getArtists(page: Int, perPage: Int): ArtistsCollection
getCharacter(id: ID!, shortcode: Boolean): Character
getCharacterByUrl(slug: String!, username: String!): Character
getCharacters(ascending: Boolean, ids: [ID], order: String, page: Int, query: String, with_deleted: Boolean): [Character]
getComments(mediaId: ID!, page: Int, perPage: Int, since: Int): MediaCommentCollection
getConversation(conversationId: ID!): Conversation
getConversations: [Conversation]
getDiscussion(forumId: String!, id: String!): ForumDiscussion
getForum(slug: String!): Forum
getForumPosts(discussionId: ID, page: Int, perPage: Int, userId: ID): ForumPostsCollection
getForums: [Forum]
getImageUploadToken(characterId: ID!): ImageUploadToken
getMedia(mediaId: ID!): Image
getMessages(conversationId: ID!): [Message]
getNextModeration: Moderation
getNotifications(page: Int): NotificationCollection
getSession: Session
getUser(id: ID, username: String): User
getUsers(ascending: Boolean, ids: [ID], order: String, page: Int, perPage: Int, query: String, with_deleted: Boolean): UsersCollection
getVersion: RefsheetMeta
searchForCharacter(page: Int, query: String!): CharactersCollection
}
type RefsheetMeta {
version: String
}
type RichText {
content: String
content_html: String
}
type Session {
currentUser: User
locale: String
nsfwOk: Boolean
sessionId: String
timeZone: String
}
type Subscription {
"Character information has changed"
characterChanged(id: String!): Character!
"Conversation counts changed"
chatCountsChanged: ChatCount
"Conversation changed somehow"
convChanged(convId: ID!): Conversation!
"Image processing complete"
imageProcessingComplete(imageId: ID!): Image
"New comment on media"
newComment(mediaId: ID!): MediaComment!
"Conversation changed somehow"
newConversation: Conversation!
"New favorite on media"
newFavorite(mediaId: ID!): MediaFavorite!
"New message published"
newMessage(conversationId: ID!): Message!
"New notifications go here"
newNotification: Notification!
}
type Swatch implements ApplicationRecord {
color: String
created_at: Int
deleted_at: Int
id: ID
name: String
notes: String
updated_at: Int
}
type Theme implements ApplicationRecord {
colors: ThemeColorData
created_at: Int
deleted_at: Int
id: ID
name: String
updated_at: Int
}
type ThemeColorData {
accent1: String
accent2: String
background: String
cardBackground: String
imageBackground: String
primary: String
text: String
textLight: String
textMedium: String
}
type Transfer implements ApplicationRecord {
created_at: Int
deleted_at: Int
id: ID!
updated_at: Int
}
type User implements ApplicationRecord {
apiKeys: [ApiKey]
avatar_url(style: String): String
blocks: Boolean
characters: [Character]
characters_count: String
created_at: Int
deleted_at: Int
email: String
email_confirmed_at: Int
id: ID
is_admin: Boolean
is_blocked: Boolean
is_followed: Boolean
is_managed: Boolean
is_moderator: Boolean
is_patron: Boolean
is_supporter: Boolean
link: String
name: String
profile: String
profile_html: String
profile_image_url: String
support_pledge_amount: Int
unconfirmed_email: String
updated_at: Int
username: String
}
type UsersCollection implements Paginated {
count: Int
currentPage: Int
offset: Int
perPage: Int
totalEntries: Int
totalPages: Int
users: [User]!
}
type Version implements ApplicationRecord {
created_at: Int
deleted_at: Int
event: String!
id: ID
index: Int
item_id: Int!
item_type: String!
object: String
object_changes: String
updated_at: Int
was_me: Boolean
whodunnit: User
}
type Widget {
column: Int!
data: WidgetData
id: ID!
row_order: Int
title: String
widget_type: String!
}
type Youtube {
url: String
}
input ThemeColorDataInput {
accent1: String
accent2: String
background: String
cardBackground: String
imageBackground: String
primary: String
text: String
textLight: String
textMedium: String
}