graphql.ts
1 /* eslint-disable */ 2 export type Maybe<T> = T | null; 3 export type InputMaybe<T> = Maybe<T>; 4 export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }; 5 export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> }; 6 export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> }; 7 export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never }; 8 export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; 9 /** All built-in and custom scalars, mapped to their actual values */ 10 export interface Scalars { 11 ID: { input: string; output: string; } 12 String: { input: string; output: string; } 13 Boolean: { input: boolean; output: boolean; } 14 Int: { input: number; output: number; } 15 Float: { input: number; output: number; } 16 ISO8601Date: { input: string; output: string; } 17 ISO8601DateTime: { input: string; output: string; } 18 JSON: { input: unknown; output: unknown; } 19 } 20 21 export enum AbuseReason { 22 AdultContent = 'ADULT_CONTENT', 23 Duplicate = 'DUPLICATE', 24 Explicit = 'EXPLICIT', 25 Offensive = 'OFFENSIVE', 26 Other = 'OTHER', 27 Sex = 'SEX', 28 Shock = 'SHOCK', 29 Spam = 'SPAM', 30 Violence = 'VIOLENCE', 31 WrongCommunity = 'WRONG_COMMUNITY' 32 } 33 34 export interface AbusedClipsFilters { 35 abuseReason?: InputMaybe<AbuseReason>; 36 createdAtFrom?: InputMaybe<Scalars['ISO8601Date']['input']>; 37 createdAtTo?: InputMaybe<Scalars['ISO8601Date']['input']>; 38 withoutAgeRestricted?: InputMaybe<Scalars['Boolean']['input']>; 39 withoutPopularBanned?: InputMaybe<Scalars['Boolean']['input']>; 40 } 41 42 export enum AbusedClipsOrder { 43 AbusedAtAsc = 'ABUSED_AT_ASC', 44 AbusedAtDesc = 'ABUSED_AT_DESC', 45 AbusesCountAsc = 'ABUSES_COUNT_ASC', 46 AbusesCountDesc = 'ABUSES_COUNT_DESC', 47 CreatedAtAsc = 'CREATED_AT_ASC', 48 CreatedAtDesc = 'CREATED_AT_DESC' 49 } 50 51 export enum Action { 52 AgeRestrict = 'AGE_RESTRICT', 53 Approve = 'APPROVE', 54 Ban = 'BAN', 55 PopularBan = 'POPULAR_BAN' 56 } 57 58 export interface Author { 59 avatar?: Maybe<Scalars['String']['output']>; 60 channelId?: Maybe<Scalars['String']['output']>; 61 name?: Maybe<Scalars['String']['output']>; 62 permalink?: Maybe<Scalars['String']['output']>; 63 } 64 65 export enum BanReason { 66 Advertising = 'ADVERTISING', 67 CopyrightOrDmca = 'COPYRIGHT_OR_DMCA', 68 Duplicate = 'DUPLICATE', 69 Hacking = 'HACKING', 70 LoudSound = 'LOUD_SOUND', 71 NegativeFeelings = 'NEGATIVE_FEELINGS', 72 PublicAuthoritiesClaim = 'PUBLIC_AUTHORITIES_CLAIM', 73 SexualContent = 'SEXUAL_CONTENT', 74 SpamOrFlood = 'SPAM_OR_FLOOD', 75 Static = 'STATIC', 76 SymbolsOrActions = 'SYMBOLS_OR_ACTIONS', 77 ThirdPartyLinks = 'THIRD_PARTY_LINKS', 78 ToxicOrHate = 'TOXIC_OR_HATE', 79 UserComplaints = 'USER_COMPLAINTS', 80 Violence = 'VIOLENCE', 81 Watermarks = 'WATERMARKS' 82 } 83 84 export interface Clip { 85 ageRestricted: Scalars['Boolean']['output']; 86 channel: ClipsChannel; 87 commentsCount: Scalars['Int']['output']; 88 commentsEnabled: Scalars['Boolean']['output']; 89 createdAt: Scalars['ISO8601DateTime']['output']; 90 description?: Maybe<Scalars['String']['output']>; 91 id: Scalars['Int']['output']; 92 isBookmarked: Scalars['Boolean']['output']; 93 isDisliked: Scalars['Boolean']['output']; 94 isLiked: Scalars['Boolean']['output']; 95 likesCount: Scalars['Int']['output']; 96 permalink: Scalars['String']['output']; 97 song?: Maybe<Scalars['Int']['output']>; 98 tags?: Maybe<Array<Scalars['String']['output']>>; 99 title?: Maybe<Scalars['String']['output']>; 100 titleDetectedLanguage?: Maybe<Scalars['String']['output']>; 101 titleTranslations?: Maybe<Scalars['JSON']['output']>; 102 uploadState?: Maybe<Scalars['String']['output']>; 103 viewsCount: Scalars['Int']['output']; 104 vodImageUrl?: Maybe<Scalars['String']['output']>; 105 vodVideoId: Scalars['String']['output']; 106 vodVideoMeta?: Maybe<Scalars['JSON']['output']>; 107 vodVideoUrl: Scalars['String']['output']; 108 } 109 110 export interface ClipPage { 111 channelId: Scalars['Int']['output']; 112 page: Scalars['Int']['output']; 113 } 114 115 export enum ClipUploadState { 116 Draft = 'DRAFT', 117 Public = 'PUBLIC' 118 } 119 120 export interface Clips { 121 clips: Array<Clip>; 122 meta: Meta; 123 } 124 125 export interface ClipsChannel { 126 avatar?: Maybe<Scalars['String']['output']>; 127 followersCount: Scalars['Int']['output']; 128 id: Scalars['String']['output']; 129 isFollowed: Scalars['Boolean']['output']; 130 name?: Maybe<Scalars['String']['output']>; 131 permalink: Scalars['String']['output']; 132 } 133 134 export interface ClipsChannels { 135 channels: Array<ClipsChannel>; 136 meta: Meta; 137 } 138 139 export enum ClipsOrder { 140 Newest = 'NEWEST', 141 Oldest = 'OLDEST', 142 Random = 'RANDOM' 143 } 144 145 export interface Comment { 146 author?: Maybe<Author>; 147 createdAt: Scalars['ISO8601DateTime']['output']; 148 hasChildren: Scalars['Boolean']['output']; 149 id: Scalars['Int']['output']; 150 isDeleted: Scalars['Boolean']['output']; 151 isEdited: Scalars['Boolean']['output']; 152 message?: Maybe<Scalars['String']['output']>; 153 parentCommentId?: Maybe<Scalars['Int']['output']>; 154 } 155 156 export interface Comments { 157 comments: Array<Comment>; 158 meta: Meta; 159 } 160 161 /** Autogenerated input type of CreateAbuse */ 162 export interface CreateAbuseInput { 163 claimText?: InputMaybe<Scalars['String']['input']>; 164 /** A unique identifier for the client performing the mutation. */ 165 clientMutationId?: InputMaybe<Scalars['String']['input']>; 166 clipId: Scalars['Int']['input']; 167 reason: AbuseReason; 168 } 169 170 /** Autogenerated return type of CreateAbuse. */ 171 export interface CreateAbusePayload { 172 /** A unique identifier for the client performing the mutation. */ 173 clientMutationId?: Maybe<Scalars['String']['output']>; 174 ok: Scalars['Boolean']['output']; 175 } 176 177 /** Autogenerated input type of CreateBookmark */ 178 export interface CreateBookmarkInput { 179 /** A unique identifier for the client performing the mutation. */ 180 clientMutationId?: InputMaybe<Scalars['String']['input']>; 181 clipId: Scalars['Int']['input']; 182 } 183 184 /** Autogenerated input type of CreateClipDislike */ 185 export interface CreateClipDislikeInput { 186 /** A unique identifier for the client performing the mutation. */ 187 clientMutationId?: InputMaybe<Scalars['String']['input']>; 188 clipId: Scalars['Int']['input']; 189 } 190 191 /** Autogenerated input type of CreateClip */ 192 export interface CreateClipInput { 193 ageRestricted?: InputMaybe<Scalars['Boolean']['input']>; 194 /** A unique identifier for the client performing the mutation. */ 195 clientMutationId?: InputMaybe<Scalars['String']['input']>; 196 commentsEnabled?: InputMaybe<Scalars['Boolean']['input']>; 197 description?: InputMaybe<Scalars['String']['input']>; 198 tags?: InputMaybe<Array<Scalars['String']['input']>>; 199 title?: InputMaybe<Scalars['String']['input']>; 200 uploadState?: InputMaybe<ClipUploadState>; 201 vodImageUrl?: InputMaybe<Scalars['String']['input']>; 202 vodVideoId: Scalars['String']['input']; 203 vodVideoMeta: Scalars['JSON']['input']; 204 vodVideoUrl: Scalars['String']['input']; 205 } 206 207 /** Autogenerated input type of CreateClipLike */ 208 export interface CreateClipLikeInput { 209 /** A unique identifier for the client performing the mutation. */ 210 clientMutationId?: InputMaybe<Scalars['String']['input']>; 211 clipId: Scalars['Int']['input']; 212 } 213 214 /** Autogenerated input type of CreateCommentReport */ 215 export interface CreateCommentReportInput { 216 /** A unique identifier for the client performing the mutation. */ 217 clientMutationId?: InputMaybe<Scalars['String']['input']>; 218 commentId: Scalars['ID']['input']; 219 } 220 221 /** Autogenerated input type of CreateEntityComment */ 222 export interface CreateEntityCommentInput { 223 channelId: Scalars['Int']['input']; 224 /** A unique identifier for the client performing the mutation. */ 225 clientMutationId?: InputMaybe<Scalars['String']['input']>; 226 entityId: Scalars['Int']['input']; 227 entityType: Entity; 228 message: Scalars['String']['input']; 229 parentCommentId?: InputMaybe<Scalars['Int']['input']>; 230 } 231 232 /** Autogenerated input type of EditorUpdateClip */ 233 export interface EditorUpdateClipInput { 234 actionType: Action; 235 banReason?: InputMaybe<BanReason>; 236 /** A unique identifier for the client performing the mutation. */ 237 clientMutationId?: InputMaybe<Scalars['String']['input']>; 238 clipId: Scalars['Int']['input']; 239 } 240 241 export enum Entity { 242 Clip = 'CLIP', 243 Coub = 'COUB', 244 Story = 'STORY' 245 } 246 247 export interface Meta { 248 page: Scalars['Int']['output']; 249 perPage: Scalars['Int']['output']; 250 totalPages?: Maybe<Scalars['Int']['output']>; 251 } 252 253 export interface Mutation { 254 createClip: Clip; 255 createClipAbuse?: Maybe<CreateAbusePayload>; 256 createClipBookmark: Clip; 257 createClipDislike: Clip; 258 createClipLike: Clip; 259 createCommentReport: Comment; 260 createEntityComment: Comment; 261 editorUpdateClip: Clip; 262 removeClip?: Maybe<RemoveClipPayload>; 263 removeClipBookmark: Clip; 264 removeClipDislike: Clip; 265 removeClipLike: Clip; 266 removeComment: RemovedComment; 267 updateClip: Clip; 268 updateComment: Comment; 269 } 270 271 272 export interface MutationCreateClipArgs { 273 input: CreateClipInput; 274 } 275 276 277 export interface MutationCreateClipAbuseArgs { 278 input: CreateAbuseInput; 279 } 280 281 282 export interface MutationCreateClipBookmarkArgs { 283 input: CreateBookmarkInput; 284 } 285 286 287 export interface MutationCreateClipDislikeArgs { 288 input: CreateClipDislikeInput; 289 } 290 291 292 export interface MutationCreateClipLikeArgs { 293 input: CreateClipLikeInput; 294 } 295 296 297 export interface MutationCreateCommentReportArgs { 298 input: CreateCommentReportInput; 299 } 300 301 302 export interface MutationCreateEntityCommentArgs { 303 input: CreateEntityCommentInput; 304 } 305 306 307 export interface MutationEditorUpdateClipArgs { 308 input: EditorUpdateClipInput; 309 } 310 311 312 export interface MutationRemoveClipArgs { 313 input: RemoveClipInput; 314 } 315 316 317 export interface MutationRemoveClipBookmarkArgs { 318 input: RemoveBookmarkInput; 319 } 320 321 322 export interface MutationRemoveClipDislikeArgs { 323 input: RemoveClipDislikeInput; 324 } 325 326 327 export interface MutationRemoveClipLikeArgs { 328 input: RemoveClipLikeInput; 329 } 330 331 332 export interface MutationRemoveCommentArgs { 333 input: RemoveCommentInput; 334 } 335 336 337 export interface MutationUpdateClipArgs { 338 input: UpdateClipInput; 339 } 340 341 342 export interface MutationUpdateCommentArgs { 343 input: UpdateCommentInput; 344 } 345 346 export interface Query { 347 /** Get user bookmarked clips */ 348 bookmarkedClips: Clips; 349 /** Get channel clips */ 350 channelClips: Clips; 351 /** Get clip page number */ 352 clipPage: ClipPage; 353 /** Get comment replies */ 354 commentReplies: Comments; 355 /** Get abused clips */ 356 editorAbusedClips: Clips; 357 /** Get entity comments */ 358 entityComments: Comments; 359 /** Find clip by id */ 360 findClipById: Clip; 361 /** Get followings clips */ 362 followingsClips: Clips; 363 /** Get channel liked clips */ 364 likedClips: Clips; 365 /** Search channels */ 366 searchChannels: ClipsChannels; 367 /** Search clips */ 368 searchClips: Clips; 369 /** Search tags */ 370 searchTags: Tags; 371 /** Get tag clips */ 372 tagClips: Clips; 373 } 374 375 376 export interface QueryBookmarkedClipsArgs { 377 order?: InputMaybe<ClipsOrder>; 378 page: Scalars['Int']['input']; 379 perPage?: InputMaybe<Scalars['Int']['input']>; 380 } 381 382 383 export interface QueryChannelClipsArgs { 384 channelId: Scalars['Int']['input']; 385 page: Scalars['Int']['input']; 386 perPage?: InputMaybe<Scalars['Int']['input']>; 387 } 388 389 390 export interface QueryClipPageArgs { 391 clipId: Scalars['Int']['input']; 392 perPage: Scalars['Int']['input']; 393 } 394 395 396 export interface QueryCommentRepliesArgs { 397 page: Scalars['Int']['input']; 398 parentCommentId: Scalars['Int']['input']; 399 perPage?: InputMaybe<Scalars['Int']['input']>; 400 } 401 402 403 export interface QueryEditorAbusedClipsArgs { 404 filters?: InputMaybe<AbusedClipsFilters>; 405 order?: InputMaybe<AbusedClipsOrder>; 406 page: Scalars['Int']['input']; 407 perPage?: InputMaybe<Scalars['Int']['input']>; 408 } 409 410 411 export interface QueryEntityCommentsArgs { 412 entityId: Scalars['Int']['input']; 413 entityType: Entity; 414 page: Scalars['Int']['input']; 415 perPage?: InputMaybe<Scalars['Int']['input']>; 416 } 417 418 419 export interface QueryFindClipByIdArgs { 420 clipId: Scalars['Int']['input']; 421 } 422 423 424 export interface QueryFollowingsClipsArgs { 425 page: Scalars['Int']['input']; 426 perPage?: InputMaybe<Scalars['Int']['input']>; 427 } 428 429 430 export interface QueryLikedClipsArgs { 431 order?: InputMaybe<ClipsOrder>; 432 page: Scalars['Int']['input']; 433 perPage?: InputMaybe<Scalars['Int']['input']>; 434 } 435 436 437 export interface QuerySearchChannelsArgs { 438 page: Scalars['Int']['input']; 439 perPage?: InputMaybe<Scalars['Int']['input']>; 440 query: Scalars['String']['input']; 441 } 442 443 444 export interface QuerySearchClipsArgs { 445 page: Scalars['Int']['input']; 446 perPage?: InputMaybe<Scalars['Int']['input']>; 447 query: Scalars['String']['input']; 448 } 449 450 451 export interface QuerySearchTagsArgs { 452 page: Scalars['Int']['input']; 453 perPage?: InputMaybe<Scalars['Int']['input']>; 454 query: Scalars['String']['input']; 455 } 456 457 458 export interface QueryTagClipsArgs { 459 page: Scalars['Int']['input']; 460 perPage?: InputMaybe<Scalars['Int']['input']>; 461 tagTitle: Scalars['String']['input']; 462 } 463 464 /** Autogenerated input type of RemoveBookmark */ 465 export interface RemoveBookmarkInput { 466 /** A unique identifier for the client performing the mutation. */ 467 clientMutationId?: InputMaybe<Scalars['String']['input']>; 468 clipId: Scalars['Int']['input']; 469 } 470 471 /** Autogenerated input type of RemoveClipDislike */ 472 export interface RemoveClipDislikeInput { 473 /** A unique identifier for the client performing the mutation. */ 474 clientMutationId?: InputMaybe<Scalars['String']['input']>; 475 clipId: Scalars['Int']['input']; 476 } 477 478 /** Autogenerated input type of RemoveClip */ 479 export interface RemoveClipInput { 480 /** A unique identifier for the client performing the mutation. */ 481 clientMutationId?: InputMaybe<Scalars['String']['input']>; 482 clipId: Scalars['Int']['input']; 483 } 484 485 /** Autogenerated input type of RemoveClipLike */ 486 export interface RemoveClipLikeInput { 487 /** A unique identifier for the client performing the mutation. */ 488 clientMutationId?: InputMaybe<Scalars['String']['input']>; 489 clipId: Scalars['Int']['input']; 490 } 491 492 /** Autogenerated return type of RemoveClip. */ 493 export interface RemoveClipPayload { 494 /** A unique identifier for the client performing the mutation. */ 495 clientMutationId?: Maybe<Scalars['String']['output']>; 496 ok: Scalars['Boolean']['output']; 497 } 498 499 /** Autogenerated input type of RemoveComment */ 500 export interface RemoveCommentInput { 501 /** A unique identifier for the client performing the mutation. */ 502 clientMutationId?: InputMaybe<Scalars['String']['input']>; 503 commentId: Scalars['Int']['input']; 504 } 505 506 export interface RemovedComment { 507 id: Scalars['Int']['output']; 508 } 509 510 export interface Tags { 511 meta: Meta; 512 tags: Array<Scalars['String']['output']>; 513 } 514 515 /** Autogenerated input type of UpdateClip */ 516 export interface UpdateClipInput { 517 ageRestricted?: InputMaybe<Scalars['Boolean']['input']>; 518 /** A unique identifier for the client performing the mutation. */ 519 clientMutationId?: InputMaybe<Scalars['String']['input']>; 520 clipId: Scalars['Int']['input']; 521 commentsEnabled?: InputMaybe<Scalars['Boolean']['input']>; 522 description?: InputMaybe<Scalars['String']['input']>; 523 tags?: InputMaybe<Array<Scalars['String']['input']>>; 524 title?: InputMaybe<Scalars['String']['input']>; 525 uploadState?: InputMaybe<ClipUploadState>; 526 } 527 528 /** Autogenerated input type of UpdateComment */ 529 export interface UpdateCommentInput { 530 /** A unique identifier for the client performing the mutation. */ 531 clientMutationId?: InputMaybe<Scalars['String']['input']>; 532 commentId: Scalars['Int']['input']; 533 message: Scalars['String']['input']; 534 } 535 536 export type CommentFieldsFragment = { 537 __typename: 'Comment', 538 id: number, 539 createdAt: string, 540 hasChildren: boolean, 541 isDeleted: boolean, 542 isEdited: boolean, 543 message?: string | null, 544 parentCommentId?: number | null, 545 author?: { 546 __typename: 'Author', 547 avatar?: string | null, 548 channelId?: string | null, 549 name?: string | null, 550 permalink?: string | null 551 } | null 552 }; 553 554 export type RepliesQueryVariables = Exact<{ 555 page: Scalars['Int']['input']; 556 parentCommentId: Scalars['Int']['input']; 557 perPage?: InputMaybe<Scalars['Int']['input']>; 558 }>; 559 560 561 export type RepliesQuery = { 562 commentReplies: { 563 __typename: 'Comments', 564 comments: Array<( 565 { 566 __typename: 'Comment' 567 } 568 & CommentFieldsFragment 569 )>, 570 meta: { 571 __typename: 'Meta', 572 page: number, 573 perPage: number, 574 totalPages?: number | null 575 } 576 } 577 }; 578 579 export type CommentsQueryVariables = Exact<{ 580 entityId: Scalars['Int']['input']; 581 entityType: Entity; 582 page: Scalars['Int']['input']; 583 perPage?: InputMaybe<Scalars['Int']['input']>; 584 }>; 585 586 587 export type CommentsQuery = { 588 entityComments: { 589 __typename: 'Comments', 590 comments: Array<( 591 { 592 __typename: 'Comment' 593 } 594 & CommentFieldsFragment 595 )>, 596 meta: { 597 __typename: 'Meta', 598 page: number, 599 perPage: number, 600 totalPages?: number | null 601 } 602 } 603 };