-
Notifications
You must be signed in to change notification settings - Fork 154
/
types.ts
4388 lines (3929 loc) · 155 KB
/
types.ts
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
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = {
[K in keyof T]: T[K];
};
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
[SubKey in K]?: Maybe<T[SubKey]>;
};
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
[SubKey in K]: Maybe<T[SubKey]>;
};
export type MakeEmpty<
T extends { [key: string]: unknown },
K extends keyof T,
> = { [_ in K]?: never };
export type Incremental<T> =
| T
| {
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
};
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
String: { input: string; output: string };
Boolean: { input: boolean; output: boolean };
Int: { input: number; output: number };
Float: { input: number; output: number };
Date: { input: Date; output: Date };
ISO8601Date: { input: Date; output: Date };
ISO8601DateTime: { input: Date; output: Date };
JSON: { input: unknown; output: unknown };
Map: { input: Record<string, string>; output: Record<string, string> };
Upload: { input: any; output: any };
};
/** A user account on Kitsu */
export type Account = WithTimestamps & {
readonly __typename?: 'Account';
/** The country this user resides in */
readonly country?: Maybe<Scalars['String']['output']>;
readonly createdAt: Scalars['ISO8601DateTime']['output'];
/** The email addresses associated with this account */
readonly email: ReadonlyArray<Scalars['String']['output']>;
/** The features this user has access to */
readonly enabledFeatures: ReadonlyArray<Scalars['String']['output']>;
/** Facebook account linked to the account */
readonly facebookId?: Maybe<Scalars['String']['output']>;
readonly id: Scalars['ID']['output'];
/** Primary language for the account */
readonly language?: Maybe<Scalars['String']['output']>;
/** Longest period an account has had a PRO subscription for in seconds */
readonly maxProStreak?: Maybe<Scalars['Int']['output']>;
/** The PRO subscription for this account */
readonly proSubscription?: Maybe<ProSubscription>;
/** The profile for this account */
readonly profile: Profile;
/** Media rating system used for the account */
readonly ratingSystem: RatingSystemEnum;
/** Whether Not Safe For Work content is accessible */
readonly sfwFilter?: Maybe<Scalars['Boolean']['output']>;
/** The level of the SFW Filter */
readonly sfwFilterPreference?: Maybe<SfwFilterPreferenceEnum>;
/** The site-wide permissions this user has access to */
readonly sitePermissions: ReadonlyArray<SitePermissionEnum>;
/** Time zone of the account */
readonly timeZone?: Maybe<Scalars['String']['output']>;
/** Preferred language for media titles */
readonly titleLanguagePreference?: Maybe<TitleLanguagePreferenceEnum>;
/** Twitter account linked to the account */
readonly twitterId?: Maybe<Scalars['String']['output']>;
readonly updatedAt: Scalars['ISO8601DateTime']['output'];
};
export type AccountChangePasswordErrorsUnion =
| NotAuthenticatedError
| NotAuthorizedError
| ValidationError;
export type AccountChangePasswordInput = {
/** The new password to set */
readonly newPassword: Scalars['String']['input'];
/** The current, existing password for the account */
readonly oldPassword: Scalars['String']['input'];
};
/** Autogenerated return type of AccountChangePassword */
export type AccountChangePasswordPayload = {
readonly __typename?: 'AccountChangePasswordPayload';
readonly errors?: Maybe<ReadonlyArray<AccountChangePasswordErrorsUnion>>;
readonly result?: Maybe<Account>;
};
export type AccountCreateErrorsUnion = ValidationError;
export type AccountCreateInput = {
/** The email address to reset the password for */
readonly email: Scalars['String']['input'];
/** An external identity to associate with the account on creation */
readonly externalIdentity?: InputMaybe<AccountExternalIdentityInput>;
/** The name of the user */
readonly name: Scalars['String']['input'];
/** The password for the user */
readonly password: Scalars['String']['input'];
};
/** Autogenerated return type of AccountCreate */
export type AccountCreatePayload = {
readonly __typename?: 'AccountCreatePayload';
readonly errors?: Maybe<ReadonlyArray<AccountCreateErrorsUnion>>;
readonly result?: Maybe<Account>;
};
export type AccountExternalIdentityInput = {
readonly id: Scalars['String']['input'];
readonly provider: ExternalIdentityProviderEnum;
};
export type AccountMutations = {
readonly __typename?: 'AccountMutations';
/** Change your Kitsu account password */
readonly changePassword?: Maybe<AccountChangePasswordPayload>;
/** Send a password reset email */
readonly sendPasswordReset?: Maybe<AccountSendPasswordResetPayload>;
/** Update the account of the current user. */
readonly update?: Maybe<AccountUpdatePayload>;
};
export type AccountMutationsChangePasswordArgs = {
input: AccountChangePasswordInput;
};
export type AccountMutationsSendPasswordResetArgs = {
email: Scalars['String']['input'];
};
export type AccountMutationsUpdateArgs = {
input: AccountUpdateInput;
};
/** Autogenerated return type of AccountSendPasswordReset */
export type AccountSendPasswordResetPayload = {
readonly __typename?: 'AccountSendPasswordResetPayload';
readonly email: Scalars['String']['output'];
};
export type AccountUpdateErrorsUnion =
| NotAuthenticatedError
| NotAuthorizedError
| NotFoundError;
export type AccountUpdateInput = {
/** The country of the user */
readonly country?: InputMaybe<Scalars['String']['input']>;
/** How media titles will get visualized */
readonly preferredTitleLanguage?: InputMaybe<TitleLanguagePreferenceEnum>;
/** The preferred rating system */
readonly ratingSystem?: InputMaybe<RatingSystemEnum>;
/** The SFW Filter setting */
readonly sfwFilterPreference?: InputMaybe<SfwFilterPreferenceEnum>;
/** The theme displayed on Kitsu */
readonly siteTheme?: InputMaybe<SiteThemeEnum>;
/** The time zone of the user */
readonly timeZone?: InputMaybe<Scalars['String']['input']>;
};
/** Autogenerated return type of AccountUpdate */
export type AccountUpdatePayload = {
readonly __typename?: 'AccountUpdatePayload';
readonly errors?: Maybe<ReadonlyArray<AccountUpdateErrorsUnion>>;
readonly result?: Maybe<Account>;
};
export enum AgeRatingEnum {
/** Acceptable for all ages */
G = 'G',
/** Parental guidance suggested; should be safe for preteens and older */
Pg = 'PG',
/** Possible lewd or intense themes; should be safe for teens and older */
R = 'R',
/** Contains adult content or themes; should only be viewed by adults */
R18 = 'R18',
}
/** Generic Amount Consumed based on Media */
export type AmountConsumed = {
/** Total media completed atleast once. */
readonly completed: Scalars['Int']['output'];
readonly id: Scalars['ID']['output'];
/** Total amount of media. */
readonly media: Scalars['Int']['output'];
/** The profile related to the user for this stat. */
readonly profile: Profile;
/** Last time we fully recalculated this stat. */
readonly recalculatedAt: Scalars['ISO8601Date']['output'];
/** Total progress of library including reconsuming. */
readonly units: Scalars['Int']['output'];
};
export type Anime = Episodic &
Media &
WithTimestamps & {
readonly __typename?: 'Anime';
/** The recommended minimum age group for this media */
readonly ageRating?: Maybe<AgeRatingEnum>;
/** An explanation of why this received the age rating it did */
readonly ageRatingGuide?: Maybe<Scalars['String']['output']>;
/** The average rating of this media amongst all Kitsu users */
readonly averageRating?: Maybe<Scalars['Float']['output']>;
/** The rank of this media by rating */
readonly averageRatingRank?: Maybe<Scalars['Int']['output']>;
/** A large banner image for this media */
readonly bannerImage?: Maybe<Image>;
/** A list of categories for this media */
readonly categories: CategoryConnection;
/** The characters who starred in this media */
readonly characters: MediaCharacterConnection;
readonly createdAt: Scalars['ISO8601DateTime']['output'];
/** A brief (mostly spoiler free) summary or description of the media. */
readonly description: Scalars['Map']['output'];
/** the day that this media made its final release */
readonly endDate?: Maybe<Scalars['Date']['output']>;
/** The number of episodes in this series */
readonly episodeCount?: Maybe<Scalars['Int']['output']>;
/** The general length (in seconds) of each episode */
readonly episodeLength?: Maybe<Scalars['Int']['output']>;
/** Episodes for this media */
readonly episodes: EpisodeConnection;
/** The number of users with this in their favorites */
readonly favoritesCount?: Maybe<Scalars['Int']['output']>;
readonly id: Scalars['ID']['output'];
/** A list of mappings for this media */
readonly mappings: MappingConnection;
/** Your library entry related to this media. */
readonly myLibraryEntry?: Maybe<LibraryEntry>;
/** A list of your wiki submissions for this media */
readonly myWikiSubmissions: WikiSubmissionConnection;
/** The time of the next release of this media */
readonly nextRelease?: Maybe<Scalars['ISO8601DateTime']['output']>;
/** The countries in which the media was originally primarily produced */
readonly originCountries: ReadonlyArray<Scalars['String']['output']>;
/** The languages the media was originally produced in */
readonly originLanguages: ReadonlyArray<Scalars['String']['output']>;
/**
* The country in which the media was primarily produced
* @deprecated Replaced with originCountries and originLanguages
*/
readonly originalLocale?: Maybe<Scalars['String']['output']>;
/** The poster image of this media */
readonly posterImage?: Maybe<Image>;
/** All posts that tag this media. */
readonly posts: PostConnection;
/** The companies which helped to produce this media */
readonly productions: MediaProductionConnection;
/** A list of quotes from this media */
readonly quotes: QuoteConnection;
/** A list of reactions for this media */
readonly reactions: MediaReactionConnection;
/** The season this was released in */
readonly season?: Maybe<ReleaseSeasonEnum>;
/** Whether the media is Safe-for-Work */
readonly sfw: Scalars['Boolean']['output'];
/** The URL-friendly identifier of this media */
readonly slug: Scalars['String']['output'];
/** The staff members who worked on this media */
readonly staff: MediaStaffConnection;
/** The day that this media first released */
readonly startDate?: Maybe<Scalars['Date']['output']>;
/** The current releasing status of this media */
readonly status: ReleaseStatusEnum;
/** The stream links. */
readonly streamingLinks: StreamingLinkConnection;
/** A secondary type for categorizing Anime. */
readonly subtype: AnimeSubtypeEnum;
/** Description of when this media is expected to release */
readonly tba?: Maybe<Scalars['String']['output']>;
/** The titles for this media in various locales */
readonly titles: TitlesList;
/** The total length (in seconds) of the entire series */
readonly totalLength?: Maybe<Scalars['Int']['output']>;
/** Anime or Manga. */
readonly type: Scalars['String']['output'];
readonly updatedAt: Scalars['ISO8601DateTime']['output'];
/** The number of users with this in their library */
readonly userCount?: Maybe<Scalars['Int']['output']>;
/** The rank of this media by popularity */
readonly userCountRank?: Maybe<Scalars['Int']['output']>;
/** Video id for a trailer on YouTube */
readonly youtubeTrailerVideoId?: Maybe<Scalars['String']['output']>;
};
export type AnimeCategoriesArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
sort?: InputMaybe<ReadonlyArray<InputMaybe<MediaCategorySortOption>>>;
};
export type AnimeCharactersArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
sort?: InputMaybe<ReadonlyArray<InputMaybe<MediaCharacterSortOption>>>;
};
export type AnimeDescriptionArgs = {
locales?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
};
export type AnimeEpisodesArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
sort?: InputMaybe<ReadonlyArray<InputMaybe<EpisodeSortOption>>>;
};
export type AnimeMappingsArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
};
export type AnimeMyWikiSubmissionsArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
sort?: InputMaybe<ReadonlyArray<InputMaybe<WikiSubmissionSortOption>>>;
};
export type AnimePostsArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
sort?: InputMaybe<ReadonlyArray<InputMaybe<PostSortOption>>>;
};
export type AnimeProductionsArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
};
export type AnimeQuotesArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
};
export type AnimeReactionsArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
sort?: InputMaybe<ReadonlyArray<InputMaybe<MediaReactionSortOption>>>;
};
export type AnimeStaffArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
};
export type AnimeStreamingLinksArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
};
export type AnimeAmountConsumed = AmountConsumed & {
readonly __typename?: 'AnimeAmountConsumed';
/** Total media completed atleast once. */
readonly completed: Scalars['Int']['output'];
readonly id: Scalars['ID']['output'];
/** Total amount of media. */
readonly media: Scalars['Int']['output'];
/** The profile related to the user for this stat. */
readonly profile: Profile;
/** Last time we fully recalculated this stat. */
readonly recalculatedAt: Scalars['ISO8601Date']['output'];
/** Total time spent in minutes. */
readonly time: Scalars['Int']['output'];
/** Total progress of library including reconsuming. */
readonly units: Scalars['Int']['output'];
};
export type AnimeCategoryBreakdown = CategoryBreakdown & {
readonly __typename?: 'AnimeCategoryBreakdown';
/** A Map of category_id -> count for all categories present on the library entries */
readonly categories: Scalars['Map']['output'];
readonly id: Scalars['ID']['output'];
/** The profile related to the user for this stat. */
readonly profile: Profile;
/** Last time we fully recalculated this stat. */
readonly recalculatedAt: Scalars['ISO8601Date']['output'];
/** The total amount of library entries. */
readonly total: Scalars['Int']['output'];
};
/** The connection type for Anime. */
export type AnimeConnection = {
readonly __typename?: 'AnimeConnection';
/** A list of edges. */
readonly edges?: Maybe<ReadonlyArray<Maybe<AnimeEdge>>>;
/** A list of nodes. */
readonly nodes?: Maybe<ReadonlyArray<Maybe<Anime>>>;
/** Information to aid in pagination. */
readonly pageInfo: PageInfo;
/** The total amount of nodes. */
readonly totalCount: Scalars['Int']['output'];
};
export type AnimeCreateInput = {
readonly ageRating?: InputMaybe<AgeRatingEnum>;
readonly ageRatingGuide?: InputMaybe<Scalars['String']['input']>;
readonly bannerImage?: InputMaybe<Scalars['Upload']['input']>;
readonly description: Scalars['Map']['input'];
readonly endDate?: InputMaybe<Scalars['Date']['input']>;
readonly episodeCount?: InputMaybe<Scalars['Int']['input']>;
readonly episodeLength?: InputMaybe<Scalars['Int']['input']>;
readonly posterImage?: InputMaybe<Scalars['Upload']['input']>;
readonly startDate?: InputMaybe<Scalars['Date']['input']>;
readonly tba?: InputMaybe<Scalars['String']['input']>;
readonly titles: TitlesListInput;
readonly youtubeTrailerVideoId?: InputMaybe<Scalars['String']['input']>;
};
/** Autogenerated return type of AnimeCreate */
export type AnimeCreatePayload = {
readonly __typename?: 'AnimeCreatePayload';
readonly anime?: Maybe<Anime>;
readonly errors?: Maybe<ReadonlyArray<Error>>;
};
/** Autogenerated return type of AnimeDelete */
export type AnimeDeletePayload = {
readonly __typename?: 'AnimeDeletePayload';
readonly anime?: Maybe<GenericDelete>;
readonly errors?: Maybe<ReadonlyArray<Error>>;
};
/** An edge in a connection. */
export type AnimeEdge = {
readonly __typename?: 'AnimeEdge';
/** A cursor for use in pagination. */
readonly cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
readonly node?: Maybe<Anime>;
};
export type AnimeMutations = {
readonly __typename?: 'AnimeMutations';
/** Create an Anime. */
readonly create?: Maybe<AnimeCreatePayload>;
/** Delete an Anime. */
readonly delete?: Maybe<AnimeDeletePayload>;
/** Update an Anime. */
readonly update?: Maybe<AnimeUpdatePayload>;
};
export type AnimeMutationsCreateArgs = {
input: AnimeCreateInput;
};
export type AnimeMutationsDeleteArgs = {
input: GenericDeleteInput;
};
export type AnimeMutationsUpdateArgs = {
input: AnimeUpdateInput;
};
export enum AnimeSubtypeEnum {
Movie = 'MOVIE',
Music = 'MUSIC',
/** Original Net Animation (Web Anime). */
Ona = 'ONA',
/** Original Video Animation. Anime directly released to video market. */
Ova = 'OVA',
/** Spinoffs or Extras of the original. */
Special = 'SPECIAL',
Tv = 'TV',
}
export type AnimeUpdateInput = {
readonly ageRating?: InputMaybe<AgeRatingEnum>;
readonly ageRatingGuide?: InputMaybe<Scalars['String']['input']>;
readonly bannerImage?: InputMaybe<Scalars['Upload']['input']>;
readonly description?: InputMaybe<Scalars['Map']['input']>;
readonly endDate?: InputMaybe<Scalars['Date']['input']>;
readonly episodeCount?: InputMaybe<Scalars['Int']['input']>;
readonly episodeLength?: InputMaybe<Scalars['Int']['input']>;
readonly id: Scalars['ID']['input'];
readonly posterImage?: InputMaybe<Scalars['Upload']['input']>;
readonly startDate?: InputMaybe<Scalars['Date']['input']>;
readonly tba?: InputMaybe<Scalars['String']['input']>;
readonly titles?: InputMaybe<TitlesListInput>;
readonly youtubeTrailerVideoId?: InputMaybe<Scalars['String']['input']>;
};
/** Autogenerated return type of AnimeUpdate */
export type AnimeUpdatePayload = {
readonly __typename?: 'AnimeUpdatePayload';
readonly anime?: Maybe<Anime>;
readonly errors?: Maybe<ReadonlyArray<Error>>;
};
/** A blocked user entry of an Account. */
export type Block = WithTimestamps & {
readonly __typename?: 'Block';
/** User who got blocked. */
readonly blockedUser: Profile;
readonly createdAt: Scalars['ISO8601DateTime']['output'];
readonly id: Scalars['ID']['output'];
readonly updatedAt: Scalars['ISO8601DateTime']['output'];
/** User who blocked. */
readonly user: Profile;
};
/** The connection type for Block. */
export type BlockConnection = {
readonly __typename?: 'BlockConnection';
/** A list of edges. */
readonly edges?: Maybe<ReadonlyArray<Maybe<BlockEdge>>>;
/** A list of nodes. */
readonly nodes?: Maybe<ReadonlyArray<Maybe<Block>>>;
/** Information to aid in pagination. */
readonly pageInfo: PageInfo;
/** The total amount of nodes. */
readonly totalCount: Scalars['Int']['output'];
};
export type BlockCreateErrorsUnion =
| NotAuthenticatedError
| NotAuthorizedError
| NotFoundError;
export type BlockCreateInput = {
/** The id of the user to block. */
readonly blockedId: Scalars['ID']['input'];
};
/** Autogenerated return type of BlockCreate */
export type BlockCreatePayload = {
readonly __typename?: 'BlockCreatePayload';
readonly errors?: Maybe<ReadonlyArray<BlockCreateErrorsUnion>>;
readonly result?: Maybe<Block>;
};
export type BlockDeleteErrorsUnion =
| NotAuthenticatedError
| NotAuthorizedError
| NotFoundError;
export type BlockDeleteInput = {
/** The id of the block. */
readonly blockId: Scalars['ID']['input'];
};
/** Autogenerated return type of BlockDelete */
export type BlockDeletePayload = {
readonly __typename?: 'BlockDeletePayload';
readonly errors?: Maybe<ReadonlyArray<BlockDeleteErrorsUnion>>;
readonly result?: Maybe<Block>;
};
/** An edge in a connection. */
export type BlockEdge = {
readonly __typename?: 'BlockEdge';
/** A cursor for use in pagination. */
readonly cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
readonly node?: Maybe<Block>;
};
export type BlockMutations = {
readonly __typename?: 'BlockMutations';
/** Create a Block entry. */
readonly create?: Maybe<BlockCreatePayload>;
/** Delete a Block entry. */
readonly delete?: Maybe<BlockDeletePayload>;
};
export type BlockMutationsCreateArgs = {
input: BlockCreateInput;
};
export type BlockMutationsDeleteArgs = {
input: BlockDeleteInput;
};
/** Information about a specific Category */
export type Category = WithTimestamps & {
readonly __typename?: 'Category';
/** The child categories. */
readonly children?: Maybe<CategoryConnection>;
readonly createdAt: Scalars['ISO8601DateTime']['output'];
/** A brief summary or description of the catgory. */
readonly description: Scalars['Map']['output'];
readonly id: Scalars['ID']['output'];
/** Whether the category is Not-Safe-for-Work. */
readonly isNsfw: Scalars['Boolean']['output'];
/** The parent category. Each category can have one parent. */
readonly parent?: Maybe<Category>;
/** The top-level ancestor category */
readonly root?: Maybe<Category>;
/** The URL-friendly identifier of this Category. */
readonly slug: Scalars['String']['output'];
/** The name of the category. */
readonly title: Scalars['Map']['output'];
readonly updatedAt: Scalars['ISO8601DateTime']['output'];
};
/** Information about a specific Category */
export type CategoryChildrenArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
};
/** Information about a specific Category */
export type CategoryDescriptionArgs = {
locales?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
};
/** Information about a specific Category */
export type CategoryTitleArgs = {
locales?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
};
/** Generic Category Breakdown based on Media */
export type CategoryBreakdown = {
/** A Map of category_id -> count for all categories present on the library entries */
readonly categories: Scalars['Map']['output'];
readonly id: Scalars['ID']['output'];
/** The profile related to the user for this stat. */
readonly profile: Profile;
/** Last time we fully recalculated this stat. */
readonly recalculatedAt: Scalars['ISO8601Date']['output'];
/** The total amount of library entries. */
readonly total: Scalars['Int']['output'];
};
/** The connection type for Category. */
export type CategoryConnection = {
readonly __typename?: 'CategoryConnection';
/** A list of edges. */
readonly edges?: Maybe<ReadonlyArray<Maybe<CategoryEdge>>>;
/** A list of nodes. */
readonly nodes?: Maybe<ReadonlyArray<Maybe<Category>>>;
/** Information to aid in pagination. */
readonly pageInfo: PageInfo;
/** The total amount of nodes. */
readonly totalCount: Scalars['Int']['output'];
};
/** An edge in a connection. */
export type CategoryEdge = {
readonly __typename?: 'CategoryEdge';
/** A cursor for use in pagination. */
readonly cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
readonly node?: Maybe<Category>;
};
/** A single chapter of a manga */
export type Chapter = Unit &
WithTimestamps & {
readonly __typename?: 'Chapter';
readonly createdAt: Scalars['ISO8601DateTime']['output'];
/** A brief summary or description of the unit */
readonly description: Scalars['Map']['output'];
readonly id: Scalars['ID']['output'];
/** Number of pages in chapter. */
readonly length?: Maybe<Scalars['Int']['output']>;
/** The manga this chapter is in. */
readonly manga: Manga;
/** The sequence number of this unit */
readonly number: Scalars['Int']['output'];
/** When this chapter was released */
readonly releasedAt?: Maybe<Scalars['ISO8601Date']['output']>;
/** A thumbnail image for the unit */
readonly thumbnail?: Maybe<Image>;
/** The titles for this unit in various locales */
readonly titles: TitlesList;
readonly updatedAt: Scalars['ISO8601DateTime']['output'];
/** The volume this chapter is in. */
readonly volume?: Maybe<Volume>;
};
/** A single chapter of a manga */
export type ChapterDescriptionArgs = {
locales?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
};
/** The connection type for Chapter. */
export type ChapterConnection = {
readonly __typename?: 'ChapterConnection';
/** A list of edges. */
readonly edges?: Maybe<ReadonlyArray<Maybe<ChapterEdge>>>;
/** A list of nodes. */
readonly nodes?: Maybe<ReadonlyArray<Maybe<Chapter>>>;
/** Information to aid in pagination. */
readonly pageInfo: PageInfo;
/** The total amount of nodes. */
readonly totalCount: Scalars['Int']['output'];
};
/** An edge in a connection. */
export type ChapterEdge = {
readonly __typename?: 'ChapterEdge';
/** A cursor for use in pagination. */
readonly cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
readonly node?: Maybe<Chapter>;
};
export enum ChapterSortEnum {
CreatedAt = 'CREATED_AT',
Number = 'NUMBER',
UpdatedAt = 'UPDATED_AT',
}
export type ChapterSortOption = {
readonly direction: SortDirection;
readonly on: ChapterSortEnum;
};
/** Information about a Character in the Kitsu database */
export type Character = WithTimestamps & {
readonly __typename?: 'Character';
readonly createdAt: Scalars['ISO8601DateTime']['output'];
/** A brief summary or description of the character. */
readonly description: Scalars['Map']['output'];
readonly id: Scalars['ID']['output'];
/** An image of the character */
readonly image?: Maybe<Image>;
/** Media this character appears in. */
readonly media?: Maybe<MediaCharacterConnection>;
/** The name for this character in various locales */
readonly names?: Maybe<TitlesList>;
/** The original media this character showed up in */
readonly primaryMedia?: Maybe<Media>;
/** The URL-friendly identifier of this character */
readonly slug: Scalars['String']['output'];
readonly updatedAt: Scalars['ISO8601DateTime']['output'];
};
/** Information about a Character in the Kitsu database */
export type CharacterDescriptionArgs = {
locales?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
};
/** Information about a Character in the Kitsu database */
export type CharacterMediaArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
};
export enum CharacterRoleEnum {
/** A background character who generally only appears in a few episodes */
Background = 'BACKGROUND',
/** A character from a different franchise making a (usually brief) appearance */
Cameo = 'CAMEO',
/** A character who appears throughout a series and is a focal point of the media */
Main = 'MAIN',
/** A character who appears in multiple episodes but is not a main character */
Recurring = 'RECURRING',
}
/** Information about a VA (Person) voicing a Character in a Media */
export type CharacterVoice = WithTimestamps & {
readonly __typename?: 'CharacterVoice';
readonly createdAt: Scalars['ISO8601DateTime']['output'];
readonly id: Scalars['ID']['output'];
/** The company who hired this voice actor to play this role */
readonly licensor?: Maybe<Producer>;
/** The BCP47 locale tag for the voice acting role */
readonly locale: Scalars['String']['output'];
/** The MediaCharacter node */
readonly mediaCharacter: MediaCharacter;
/** The person who voice acted this role */
readonly person: Person;
readonly updatedAt: Scalars['ISO8601DateTime']['output'];
};
/** The connection type for CharacterVoice. */
export type CharacterVoiceConnection = {
readonly __typename?: 'CharacterVoiceConnection';
/** A list of edges. */
readonly edges?: Maybe<ReadonlyArray<Maybe<CharacterVoiceEdge>>>;
/** A list of nodes. */
readonly nodes?: Maybe<ReadonlyArray<Maybe<CharacterVoice>>>;
/** Information to aid in pagination. */
readonly pageInfo: PageInfo;
/** The total amount of nodes. */
readonly totalCount: Scalars['Int']['output'];
};
/** An edge in a connection. */
export type CharacterVoiceEdge = {
readonly __typename?: 'CharacterVoiceEdge';
/** A cursor for use in pagination. */
readonly cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
readonly node?: Maybe<CharacterVoice>;
};
export enum CharacterVoiceSortEnum {
CreatedAt = 'CREATED_AT',
UpdatedAt = 'UPDATED_AT',
}
export type CharacterVoiceSortOption = {
readonly direction: SortDirection;
readonly on: CharacterVoiceSortEnum;
};
/** A comment on a post */
export type Comment = WithTimestamps & {
readonly __typename?: 'Comment';
/** The user who created this comment for the parent post. */
readonly author: Profile;
/** Unmodified content. */
readonly content?: Maybe<Scalars['String']['output']>;
/** Html formatted content. */
readonly contentFormatted?: Maybe<Scalars['String']['output']>;
readonly createdAt: Scalars['ISO8601DateTime']['output'];
readonly id: Scalars['ID']['output'];
/** Users who liked this comment */
readonly likes: ProfileConnection;
/** The parent comment if this comment was a reply to another. */
readonly parent?: Maybe<Comment>;
/** The post that this comment is attached to. */
readonly post: Post;
/** Replies to this comment */
readonly replies: CommentConnection;
readonly updatedAt: Scalars['ISO8601DateTime']['output'];
};
/** A comment on a post */
export type CommentLikesArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
sort?: InputMaybe<ReadonlyArray<InputMaybe<CommentLikeSortOption>>>;
};
/** A comment on a post */
export type CommentRepliesArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
sort?: InputMaybe<ReadonlyArray<InputMaybe<CommentSortOption>>>;
};
/** The connection type for Comment. */
export type CommentConnection = {
readonly __typename?: 'CommentConnection';
/** A list of edges. */
readonly edges?: Maybe<ReadonlyArray<Maybe<CommentEdge>>>;
/** A list of nodes. */
readonly nodes?: Maybe<ReadonlyArray<Maybe<Comment>>>;
/** Information to aid in pagination. */
readonly pageInfo: PageInfo;
/** The total amount of nodes. */
readonly totalCount: Scalars['Int']['output'];
};
/** An edge in a connection. */
export type CommentEdge = {
readonly __typename?: 'CommentEdge';
/** A cursor for use in pagination. */
readonly cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
readonly node?: Maybe<Comment>;
};
export enum CommentLikeSortEnum {
CreatedAt = 'CREATED_AT',
Following = 'FOLLOWING',
}
export type CommentLikeSortOption = {
readonly direction: SortDirection;
readonly on: CommentLikeSortEnum;
};
export enum CommentSortEnum {
CreatedAt = 'CREATED_AT',
Following = 'FOLLOWING',
LikesCount = 'LIKES_COUNT',
}
export type CommentSortOption = {
readonly direction: SortDirection;
readonly on: CommentSortEnum;
};
/** An Episode of a Media */
export type Episode = Unit &
WithTimestamps & {
readonly __typename?: 'Episode';
/** The anime this episode is in */
readonly anime: Anime;
readonly createdAt: Scalars['ISO8601DateTime']['output'];
/** A brief summary or description of the unit */
readonly description: Scalars['Map']['output'];
readonly id: Scalars['ID']['output'];
/** The length of the episode in seconds */
readonly length?: Maybe<Scalars['Int']['output']>;
/** The sequence number of this unit */
readonly number: Scalars['Int']['output'];
/** When this episode aired */
readonly releasedAt?: Maybe<Scalars['ISO8601DateTime']['output']>;
/** A thumbnail image for the unit */
readonly thumbnail?: Maybe<Image>;
/** The titles for this unit in various locales */
readonly titles: TitlesList;
readonly updatedAt: Scalars['ISO8601DateTime']['output'];
};
/** An Episode of a Media */
export type EpisodeDescriptionArgs = {
locales?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
};
/** The connection type for Episode. */
export type EpisodeConnection = {
readonly __typename?: 'EpisodeConnection';
/** A list of edges. */
readonly edges?: Maybe<ReadonlyArray<Maybe<EpisodeEdge>>>;
/** A list of nodes. */
readonly nodes?: Maybe<ReadonlyArray<Maybe<Episode>>>;
/** Information to aid in pagination. */
readonly pageInfo: PageInfo;
/** The total amount of nodes. */
readonly totalCount: Scalars['Int']['output'];
};
export type EpisodeCreateInput = {
readonly description?: InputMaybe<Scalars['Map']['input']>;
readonly length?: InputMaybe<Scalars['Int']['input']>;
readonly mediaId: Scalars['ID']['input'];
readonly mediaType: MediaTypeEnum;
readonly number: Scalars['Int']['input'];
readonly releasedAt?: InputMaybe<Scalars['Date']['input']>;
readonly thumbnailImage?: InputMaybe<Scalars['Upload']['input']>;
readonly titles: TitlesListInput;
};
/** Autogenerated return type of EpisodeCreate */
export type EpisodeCreatePayload = {
readonly __typename?: 'EpisodeCreatePayload';
readonly episode?: Maybe<Episode>;
readonly errors?: Maybe<ReadonlyArray<Error>>;
};
/** Autogenerated return type of EpisodeDelete */
export type EpisodeDeletePayload = {
readonly __typename?: 'EpisodeDeletePayload';
readonly episode?: Maybe<GenericDelete>;
readonly errors?: Maybe<ReadonlyArray<Error>>;
};
/** An edge in a connection. */
export type EpisodeEdge = {
readonly __typename?: 'EpisodeEdge';
/** A cursor for use in pagination. */
readonly cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
readonly node?: Maybe<Episode>;
};
export type EpisodeMutations = {
readonly __typename?: 'EpisodeMutations';
/** Create an Episode. */
readonly create?: Maybe<EpisodeCreatePayload>;
/** Delete an Episode. */
readonly delete?: Maybe<EpisodeDeletePayload>;
/** Update an Episode. */
readonly update?: Maybe<EpisodeUpdatePayload>;
};
export type EpisodeMutationsCreateArgs = {
input: EpisodeCreateInput;
};