graphql.ts

   1import { gql } from '@apollo/client';
   2import * as Apollo from '@apollo/client';
   3import * as ApolloReactHooks from '@apollo/client/react';
   4export type Maybe<T> = T | null;
   5export type InputMaybe<T> = Maybe<T>;
   6export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
   7export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
   8export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
   9export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
  10export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
  11const defaultOptions = {} as const;
  12/** All built-in and custom scalars, mapped to their actual values */
  13export type Scalars = {
  14  ID: { input: string; output: string; }
  15  String: { input: string; output: string; }
  16  Boolean: { input: boolean; output: boolean; }
  17  Int: { input: number; output: number; }
  18  Float: { input: number; output: number; }
  19  CombinedId: { input: string; output: string; }
  20  Hash: { input: string; output: string; }
  21  Time: { input: string; output: string; }
  22};
  23
  24/** An object that has an author. */
  25export type Authored = {
  26  /** The author of this object. */
  27  author: Identity;
  28};
  29
  30export type Bug = Authored & Entity & {
  31  __typename?: 'Bug';
  32  /** The actors of the bug. Actors are Identity that have interacted with the bug. */
  33  actors: IdentityConnection;
  34  author: Identity;
  35  comments: BugCommentConnection;
  36  createdAt: Scalars['Time']['output'];
  37  /** The human version (truncated) identifier for this bug */
  38  humanId: Scalars['String']['output'];
  39  /** The identifier for this bug */
  40  id: Scalars['ID']['output'];
  41  labels: Array<Label>;
  42  lastEdit: Scalars['Time']['output'];
  43  operations: OperationConnection;
  44  /**
  45   * The participants of the bug. Participants are Identity that have created or
  46   * added a comment on the bug.
  47   */
  48  participants: IdentityConnection;
  49  status: Status;
  50  timeline: BugTimelineItemConnection;
  51  title: Scalars['String']['output'];
  52};
  53
  54
  55export type BugActorsArgs = {
  56  after?: InputMaybe<Scalars['String']['input']>;
  57  before?: InputMaybe<Scalars['String']['input']>;
  58  first?: InputMaybe<Scalars['Int']['input']>;
  59  last?: InputMaybe<Scalars['Int']['input']>;
  60};
  61
  62
  63export type BugCommentsArgs = {
  64  after?: InputMaybe<Scalars['String']['input']>;
  65  before?: InputMaybe<Scalars['String']['input']>;
  66  first?: InputMaybe<Scalars['Int']['input']>;
  67  last?: InputMaybe<Scalars['Int']['input']>;
  68};
  69
  70
  71export type BugOperationsArgs = {
  72  after?: InputMaybe<Scalars['String']['input']>;
  73  before?: InputMaybe<Scalars['String']['input']>;
  74  first?: InputMaybe<Scalars['Int']['input']>;
  75  last?: InputMaybe<Scalars['Int']['input']>;
  76};
  77
  78
  79export type BugParticipantsArgs = {
  80  after?: InputMaybe<Scalars['String']['input']>;
  81  before?: InputMaybe<Scalars['String']['input']>;
  82  first?: InputMaybe<Scalars['Int']['input']>;
  83  last?: InputMaybe<Scalars['Int']['input']>;
  84};
  85
  86
  87export type BugTimelineArgs = {
  88  after?: InputMaybe<Scalars['String']['input']>;
  89  before?: InputMaybe<Scalars['String']['input']>;
  90  first?: InputMaybe<Scalars['Int']['input']>;
  91  last?: InputMaybe<Scalars['Int']['input']>;
  92};
  93
  94export type BugAddCommentAndCloseInput = {
  95  /** A unique identifier for the client performing the mutation. */
  96  clientMutationId?: InputMaybe<Scalars['String']['input']>;
  97  /** The collection of file's hash required for the first message. */
  98  files?: InputMaybe<Array<Scalars['Hash']['input']>>;
  99  /** The message to be added to the bug. */
 100  message: Scalars['String']['input'];
 101  /** The bug ID's prefix. */
 102  prefix: Scalars['String']['input'];
 103  /** The name of the repository. If not set, the default repository is used. */
 104  repoRef?: InputMaybe<Scalars['String']['input']>;
 105};
 106
 107export type BugAddCommentAndClosePayload = {
 108  __typename?: 'BugAddCommentAndClosePayload';
 109  /** The affected bug. */
 110  bug: Bug;
 111  /** A unique identifier for the client performing the mutation. */
 112  clientMutationId?: Maybe<Scalars['String']['output']>;
 113  /** The resulting AddComment operation. */
 114  commentOperation: BugAddCommentOperation;
 115  /** The resulting SetStatusOperation. */
 116  statusOperation: BugSetStatusOperation;
 117};
 118
 119export type BugAddCommentAndReopenInput = {
 120  /** A unique identifier for the client performing the mutation. */
 121  clientMutationId?: InputMaybe<Scalars['String']['input']>;
 122  /** The collection of file's hash required for the first message. */
 123  files?: InputMaybe<Array<Scalars['Hash']['input']>>;
 124  /** The message to be added to the bug. */
 125  message: Scalars['String']['input'];
 126  /** The bug ID's prefix. */
 127  prefix: Scalars['String']['input'];
 128  /** The name of the repository. If not set, the default repository is used. */
 129  repoRef?: InputMaybe<Scalars['String']['input']>;
 130};
 131
 132export type BugAddCommentAndReopenPayload = {
 133  __typename?: 'BugAddCommentAndReopenPayload';
 134  /** The affected bug. */
 135  bug: Bug;
 136  /** A unique identifier for the client performing the mutation. */
 137  clientMutationId?: Maybe<Scalars['String']['output']>;
 138  /** The resulting AddComment operation. */
 139  commentOperation: BugAddCommentOperation;
 140  /** The resulting SetStatusOperation. */
 141  statusOperation: BugSetStatusOperation;
 142};
 143
 144export type BugAddCommentInput = {
 145  /** A unique identifier for the client performing the mutation. */
 146  clientMutationId?: InputMaybe<Scalars['String']['input']>;
 147  /** The collection of file's hash required for the first message. */
 148  files?: InputMaybe<Array<Scalars['Hash']['input']>>;
 149  /** The message to be added to the bug. */
 150  message: Scalars['String']['input'];
 151  /** The bug ID's prefix. */
 152  prefix: Scalars['String']['input'];
 153  /** The name of the repository. If not set, the default repository is used. */
 154  repoRef?: InputMaybe<Scalars['String']['input']>;
 155};
 156
 157export type BugAddCommentOperation = Authored & Operation & {
 158  __typename?: 'BugAddCommentOperation';
 159  /** The author of this object. */
 160  author: Identity;
 161  /** The datetime when this operation was issued. */
 162  date: Scalars['Time']['output'];
 163  files: Array<Scalars['Hash']['output']>;
 164  /** The identifier of the operation */
 165  id: Scalars['ID']['output'];
 166  message: Scalars['String']['output'];
 167};
 168
 169export type BugAddCommentPayload = {
 170  __typename?: 'BugAddCommentPayload';
 171  /** The affected bug. */
 172  bug: Bug;
 173  /** A unique identifier for the client performing the mutation. */
 174  clientMutationId?: Maybe<Scalars['String']['output']>;
 175  /** The resulting operation. */
 176  operation: BugAddCommentOperation;
 177};
 178
 179/** BugAddCommentTimelineItem is a BugTimelineItem that represent a BugComment and its edition history */
 180export type BugAddCommentTimelineItem = Authored & BugTimelineItem & {
 181  __typename?: 'BugAddCommentTimelineItem';
 182  author: Identity;
 183  createdAt: Scalars['Time']['output'];
 184  edited: Scalars['Boolean']['output'];
 185  files: Array<Scalars['Hash']['output']>;
 186  history: Array<BugCommentHistoryStep>;
 187  /** The identifier of the source operation */
 188  id: Scalars['CombinedId']['output'];
 189  lastEdit: Scalars['Time']['output'];
 190  message: Scalars['String']['output'];
 191  messageIsEmpty: Scalars['Boolean']['output'];
 192};
 193
 194export type BugChangeLabelInput = {
 195  /** The list of label to remove. */
 196  Removed?: InputMaybe<Array<Scalars['String']['input']>>;
 197  /** The list of label to add. */
 198  added?: InputMaybe<Array<Scalars['String']['input']>>;
 199  /** A unique identifier for the client performing the mutation. */
 200  clientMutationId?: InputMaybe<Scalars['String']['input']>;
 201  /** The bug ID's prefix. */
 202  prefix: Scalars['String']['input'];
 203  /** The name of the repository. If not set, the default repository is used. */
 204  repoRef?: InputMaybe<Scalars['String']['input']>;
 205};
 206
 207export type BugChangeLabelPayload = {
 208  __typename?: 'BugChangeLabelPayload';
 209  /** The affected bug. */
 210  bug: Bug;
 211  /** A unique identifier for the client performing the mutation. */
 212  clientMutationId?: Maybe<Scalars['String']['output']>;
 213  /** The resulting operation. */
 214  operation: BugLabelChangeOperation;
 215  /** The effect each source label had. */
 216  results: Array<Maybe<LabelChangeResult>>;
 217};
 218
 219/** Represents a comment on a bug. */
 220export type BugComment = Authored & {
 221  __typename?: 'BugComment';
 222  /** The author of this comment. */
 223  author: Identity;
 224  /** All media's hash referenced in this comment */
 225  files: Array<Scalars['Hash']['output']>;
 226  id: Scalars['CombinedId']['output'];
 227  /** The message of this comment. */
 228  message: Scalars['String']['output'];
 229};
 230
 231export type BugCommentConnection = {
 232  __typename?: 'BugCommentConnection';
 233  edges: Array<BugCommentEdge>;
 234  nodes: Array<BugComment>;
 235  pageInfo: PageInfo;
 236  totalCount: Scalars['Int']['output'];
 237};
 238
 239export type BugCommentEdge = {
 240  __typename?: 'BugCommentEdge';
 241  cursor: Scalars['String']['output'];
 242  node: BugComment;
 243};
 244
 245/** CommentHistoryStep hold one version of a message in the history */
 246export type BugCommentHistoryStep = {
 247  __typename?: 'BugCommentHistoryStep';
 248  date: Scalars['Time']['output'];
 249  message: Scalars['String']['output'];
 250};
 251
 252/** The connection type for Bug. */
 253export type BugConnection = {
 254  __typename?: 'BugConnection';
 255  /** A list of edges. */
 256  edges: Array<BugEdge>;
 257  nodes: Array<Bug>;
 258  /** Information to aid in pagination. */
 259  pageInfo: PageInfo;
 260  /** Identifies the total count of items in the connection. */
 261  totalCount: Scalars['Int']['output'];
 262};
 263
 264export type BugCreateInput = {
 265  /** A unique identifier for the client performing the mutation. */
 266  clientMutationId?: InputMaybe<Scalars['String']['input']>;
 267  /** The collection of file's hash required for the first message. */
 268  files?: InputMaybe<Array<Scalars['Hash']['input']>>;
 269  /** The first message of the new bug. */
 270  message: Scalars['String']['input'];
 271  /** The name of the repository. If not set, the default repository is used. */
 272  repoRef?: InputMaybe<Scalars['String']['input']>;
 273  /** The title of the new bug. */
 274  title: Scalars['String']['input'];
 275};
 276
 277export type BugCreateOperation = Authored & Operation & {
 278  __typename?: 'BugCreateOperation';
 279  /** The author of this object. */
 280  author: Identity;
 281  /** The datetime when this operation was issued. */
 282  date: Scalars['Time']['output'];
 283  files: Array<Scalars['Hash']['output']>;
 284  /** The identifier of the operation */
 285  id: Scalars['ID']['output'];
 286  message: Scalars['String']['output'];
 287  title: Scalars['String']['output'];
 288};
 289
 290export type BugCreatePayload = {
 291  __typename?: 'BugCreatePayload';
 292  /** The created bug. */
 293  bug: Bug;
 294  /** A unique identifier for the client performing the mutation. */
 295  clientMutationId?: Maybe<Scalars['String']['output']>;
 296  /** The resulting operation. */
 297  operation: BugCreateOperation;
 298};
 299
 300/** BugCreateTimelineItem is a BugTimelineItem that represent the creation of a bug and its message edition history */
 301export type BugCreateTimelineItem = Authored & BugTimelineItem & {
 302  __typename?: 'BugCreateTimelineItem';
 303  author: Identity;
 304  createdAt: Scalars['Time']['output'];
 305  edited: Scalars['Boolean']['output'];
 306  files: Array<Scalars['Hash']['output']>;
 307  history: Array<BugCommentHistoryStep>;
 308  /** The identifier of the source operation */
 309  id: Scalars['CombinedId']['output'];
 310  lastEdit: Scalars['Time']['output'];
 311  message: Scalars['String']['output'];
 312  messageIsEmpty: Scalars['Boolean']['output'];
 313};
 314
 315/** An edge in a connection. */
 316export type BugEdge = {
 317  __typename?: 'BugEdge';
 318  /** A cursor for use in pagination. */
 319  cursor: Scalars['String']['output'];
 320  /** The item at the end of the edge. */
 321  node: Bug;
 322};
 323
 324export type BugEditCommentInput = {
 325  /** A unique identifier for the client performing the mutation. */
 326  clientMutationId?: InputMaybe<Scalars['String']['input']>;
 327  /** The collection of file's hash required for the first message. */
 328  files?: InputMaybe<Array<Scalars['Hash']['input']>>;
 329  /** The new message to be set. */
 330  message: Scalars['String']['input'];
 331  /** The name of the repository. If not set, the default repository is used. */
 332  repoRef?: InputMaybe<Scalars['String']['input']>;
 333  /** A prefix of the CombinedId of the comment to be changed. */
 334  targetPrefix: Scalars['String']['input'];
 335};
 336
 337export type BugEditCommentOperation = Authored & Operation & {
 338  __typename?: 'BugEditCommentOperation';
 339  /** The author of this object. */
 340  author: Identity;
 341  /** The datetime when this operation was issued. */
 342  date: Scalars['Time']['output'];
 343  files: Array<Scalars['Hash']['output']>;
 344  /** The identifier of the operation */
 345  id: Scalars['ID']['output'];
 346  message: Scalars['String']['output'];
 347  target: Scalars['String']['output'];
 348};
 349
 350export type BugEditCommentPayload = {
 351  __typename?: 'BugEditCommentPayload';
 352  /** The affected bug. */
 353  bug: Bug;
 354  /** A unique identifier for the client performing the mutation. */
 355  clientMutationId?: Maybe<Scalars['String']['output']>;
 356  /** The resulting operation. */
 357  operation: BugEditCommentOperation;
 358};
 359
 360export type BugEvent = {
 361  __typename?: 'BugEvent';
 362  bug: Bug;
 363  type: EntityEventType;
 364};
 365
 366export type BugLabelChangeOperation = Authored & Operation & {
 367  __typename?: 'BugLabelChangeOperation';
 368  added: Array<Label>;
 369  /** The author of this object. */
 370  author: Identity;
 371  /** The datetime when this operation was issued. */
 372  date: Scalars['Time']['output'];
 373  /** The identifier of the operation */
 374  id: Scalars['ID']['output'];
 375  removed: Array<Label>;
 376};
 377
 378/** BugLabelChangeTimelineItem is a BugTimelineItem that represent a change in the labels of a bug */
 379export type BugLabelChangeTimelineItem = Authored & BugTimelineItem & {
 380  __typename?: 'BugLabelChangeTimelineItem';
 381  added: Array<Label>;
 382  author: Identity;
 383  date: Scalars['Time']['output'];
 384  /** The identifier of the source operation */
 385  id: Scalars['CombinedId']['output'];
 386  removed: Array<Label>;
 387};
 388
 389export type BugSetStatusOperation = Authored & Operation & {
 390  __typename?: 'BugSetStatusOperation';
 391  /** The author of this object. */
 392  author: Identity;
 393  /** The datetime when this operation was issued. */
 394  date: Scalars['Time']['output'];
 395  /** The identifier of the operation */
 396  id: Scalars['ID']['output'];
 397  status: Status;
 398};
 399
 400/** BugSetStatusTimelineItem is a BugTimelineItem that represent a change in the status of a bug */
 401export type BugSetStatusTimelineItem = Authored & BugTimelineItem & {
 402  __typename?: 'BugSetStatusTimelineItem';
 403  author: Identity;
 404  date: Scalars['Time']['output'];
 405  /** The identifier of the source operation */
 406  id: Scalars['CombinedId']['output'];
 407  status: Status;
 408};
 409
 410export type BugSetTitleInput = {
 411  /** A unique identifier for the client performing the mutation. */
 412  clientMutationId?: InputMaybe<Scalars['String']['input']>;
 413  /** The bug ID's prefix. */
 414  prefix: Scalars['String']['input'];
 415  /** The name of the repository. If not set, the default repository is used. */
 416  repoRef?: InputMaybe<Scalars['String']['input']>;
 417  /** The new title. */
 418  title: Scalars['String']['input'];
 419};
 420
 421export type BugSetTitleOperation = Authored & Operation & {
 422  __typename?: 'BugSetTitleOperation';
 423  /** The author of this object. */
 424  author: Identity;
 425  /** The datetime when this operation was issued. */
 426  date: Scalars['Time']['output'];
 427  /** The identifier of the operation */
 428  id: Scalars['ID']['output'];
 429  title: Scalars['String']['output'];
 430  was: Scalars['String']['output'];
 431};
 432
 433export type BugSetTitlePayload = {
 434  __typename?: 'BugSetTitlePayload';
 435  /** The affected bug. */
 436  bug: Bug;
 437  /** A unique identifier for the client performing the mutation. */
 438  clientMutationId?: Maybe<Scalars['String']['output']>;
 439  /** The resulting operation */
 440  operation: BugSetTitleOperation;
 441};
 442
 443/** BugLabelChangeTimelineItem is a BugTimelineItem that represent a change in the title of a bug */
 444export type BugSetTitleTimelineItem = Authored & BugTimelineItem & {
 445  __typename?: 'BugSetTitleTimelineItem';
 446  author: Identity;
 447  date: Scalars['Time']['output'];
 448  /** The identifier of the source operation */
 449  id: Scalars['CombinedId']['output'];
 450  title: Scalars['String']['output'];
 451  was: Scalars['String']['output'];
 452};
 453
 454export type BugStatusCloseInput = {
 455  /** A unique identifier for the client performing the mutation. */
 456  clientMutationId?: InputMaybe<Scalars['String']['input']>;
 457  /** The bug ID's prefix. */
 458  prefix: Scalars['String']['input'];
 459  /** The name of the repository. If not set, the default repository is used. */
 460  repoRef?: InputMaybe<Scalars['String']['input']>;
 461};
 462
 463export type BugStatusClosePayload = {
 464  __typename?: 'BugStatusClosePayload';
 465  /** The affected bug. */
 466  bug: Bug;
 467  /** A unique identifier for the client performing the mutation. */
 468  clientMutationId?: Maybe<Scalars['String']['output']>;
 469  /** The resulting operation. */
 470  operation: BugSetStatusOperation;
 471};
 472
 473export type BugStatusOpenInput = {
 474  /** A unique identifier for the client performing the mutation. */
 475  clientMutationId?: InputMaybe<Scalars['String']['input']>;
 476  /** The bug ID's prefix. */
 477  prefix: Scalars['String']['input'];
 478  /** The name of the repository. If not set, the default repository is used. */
 479  repoRef?: InputMaybe<Scalars['String']['input']>;
 480};
 481
 482export type BugStatusOpenPayload = {
 483  __typename?: 'BugStatusOpenPayload';
 484  /** The affected bug. */
 485  bug: Bug;
 486  /** A unique identifier for the client performing the mutation. */
 487  clientMutationId?: Maybe<Scalars['String']['output']>;
 488  /** The resulting operation. */
 489  operation: BugSetStatusOperation;
 490};
 491
 492/** An item in the timeline of bug events */
 493export type BugTimelineItem = {
 494  /** The identifier of the source operation */
 495  id: Scalars['CombinedId']['output'];
 496};
 497
 498/** The connection type for TimelineItem */
 499export type BugTimelineItemConnection = {
 500  __typename?: 'BugTimelineItemConnection';
 501  edges: Array<BugTimelineItemEdge>;
 502  nodes: Array<BugTimelineItem>;
 503  pageInfo: PageInfo;
 504  totalCount: Scalars['Int']['output'];
 505};
 506
 507/** Represent a TimelineItem */
 508export type BugTimelineItemEdge = {
 509  __typename?: 'BugTimelineItemEdge';
 510  cursor: Scalars['String']['output'];
 511  node: BugTimelineItem;
 512};
 513
 514/** Defines a color by red, green and blue components. */
 515export type Color = {
 516  __typename?: 'Color';
 517  /** Blue component of the color. */
 518  B: Scalars['Int']['output'];
 519  /** Green component of the color. */
 520  G: Scalars['Int']['output'];
 521  /** Red component of the color. */
 522  R: Scalars['Int']['output'];
 523};
 524
 525/** An entity (identity, bug, ...). */
 526export type Entity = {
 527  /** The human version (truncated) identifier for this entity */
 528  humanId: Scalars['String']['output'];
 529  /** The identifier for this entity */
 530  id: Scalars['ID']['output'];
 531};
 532
 533export type EntityEvent = {
 534  __typename?: 'EntityEvent';
 535  entity?: Maybe<Entity>;
 536  type: EntityEventType;
 537};
 538
 539export enum EntityEventType {
 540  Created = 'CREATED',
 541  Removed = 'REMOVED',
 542  Updated = 'UPDATED'
 543}
 544
 545/** The content of a git blob (file). */
 546export type GitBlob = {
 547  __typename?: 'GitBlob';
 548  /**
 549   * Git object hash. Can be used as a stable cache key or to construct a
 550   * raw download URL.
 551   */
 552  hash: Scalars['String']['output'];
 553  /**
 554   * True when the file contains null bytes and is treated as binary.
 555   * text will be null.
 556   */
 557  isBinary: Scalars['Boolean']['output'];
 558  /**
 559   * True when the file exceeds the maximum inline size and text has been
 560   * omitted. Use the raw download endpoint to retrieve the full content.
 561   */
 562  isTruncated: Scalars['Boolean']['output'];
 563  /** Path of the file relative to the repository root. */
 564  path: Scalars['String']['output'];
 565  /** Size in bytes. */
 566  size: Scalars['Int']['output'];
 567  /**
 568   * UTF-8 text content of the file. Null when isBinary is true or when
 569   * the file is too large to be returned inline (see isTruncated).
 570   */
 571  text?: Maybe<Scalars['String']['output']>;
 572};
 573
 574/** How a file was affected by a commit. */
 575export enum GitChangeStatus {
 576  /** File was created in this commit. */
 577  Added = 'ADDED',
 578  /** File was removed in this commit. */
 579  Deleted = 'DELETED',
 580  /** File content changed in this commit. */
 581  Modified = 'MODIFIED',
 582  /** File was moved or renamed in this commit. */
 583  Renamed = 'RENAMED'
 584}
 585
 586/** A file that was changed in a commit. */
 587export type GitChangedFile = {
 588  __typename?: 'GitChangedFile';
 589  /** Previous path, non-null only for renames. */
 590  oldPath?: Maybe<Scalars['String']['output']>;
 591  /** Path of the file in the new version of the commit. */
 592  path: Scalars['String']['output'];
 593  /** How the file was affected by the commit. */
 594  status: GitChangeStatus;
 595};
 596
 597export type GitChangedFileConnection = {
 598  __typename?: 'GitChangedFileConnection';
 599  nodes: Array<GitChangedFile>;
 600  pageInfo: PageInfo;
 601  totalCount: Scalars['Int']['output'];
 602};
 603
 604/** Metadata for a single git commit. */
 605export type GitCommit = {
 606  __typename?: 'GitCommit';
 607  /** Email address of the commit author. */
 608  authorEmail: Scalars['String']['output'];
 609  /** Name of the commit author. */
 610  authorName: Scalars['String']['output'];
 611  /** Timestamp from the author field (when the change was originally made). */
 612  date: Scalars['Time']['output'];
 613  /** Unified diff for a single file in this commit. */
 614  diff?: Maybe<GitFileDiff>;
 615  /**
 616   * Files changed relative to the first parent (or the empty tree for the
 617   * initial commit).
 618   */
 619  files: GitChangedFileConnection;
 620  /** Full commit message. */
 621  fullMessage: Scalars['String']['output'];
 622  /** Full SHA-1 commit hash. */
 623  hash: Scalars['String']['output'];
 624  /** First line of the commit message. */
 625  message: Scalars['String']['output'];
 626  /** Hashes of parent commits. Empty for the initial commit. */
 627  parents: Array<Scalars['String']['output']>;
 628  /** Abbreviated commit hash, typically 8 characters. */
 629  shortHash: Scalars['String']['output'];
 630};
 631
 632
 633/** Metadata for a single git commit. */
 634export type GitCommitDiffArgs = {
 635  path: Scalars['String']['input'];
 636};
 637
 638
 639/** Metadata for a single git commit. */
 640export type GitCommitFilesArgs = {
 641  after?: InputMaybe<Scalars['String']['input']>;
 642  before?: InputMaybe<Scalars['String']['input']>;
 643  first?: InputMaybe<Scalars['Int']['input']>;
 644  last?: InputMaybe<Scalars['Int']['input']>;
 645};
 646
 647/** Paginated list of commits. */
 648export type GitCommitConnection = {
 649  __typename?: 'GitCommitConnection';
 650  nodes: Array<GitCommit>;
 651  pageInfo: PageInfo;
 652  totalCount: Scalars['Int']['output'];
 653};
 654
 655/** A contiguous block of changes in a unified diff. */
 656export type GitDiffHunk = {
 657  __typename?: 'GitDiffHunk';
 658  /** Lines in this hunk, including context, additions, and deletions. */
 659  lines: Array<GitDiffLine>;
 660  /** Number of lines from the new file included in this hunk. */
 661  newLines: Scalars['Int']['output'];
 662  /** Starting line number in the new file. */
 663  newStart: Scalars['Int']['output'];
 664  /** Number of lines from the old file included in this hunk. */
 665  oldLines: Scalars['Int']['output'];
 666  /** Starting line number in the old file. */
 667  oldStart: Scalars['Int']['output'];
 668};
 669
 670/** A single line in a unified diff hunk. */
 671export type GitDiffLine = {
 672  __typename?: 'GitDiffLine';
 673  /** Raw line content, without the leading +/- prefix. */
 674  content: Scalars['String']['output'];
 675  /** Line number in the new file. 0 for deleted lines. */
 676  newLine: Scalars['Int']['output'];
 677  /** Line number in the old file. 0 for added lines. */
 678  oldLine: Scalars['Int']['output'];
 679  /** Whether this line is context, an addition, or a deletion. */
 680  type: GitDiffLineType;
 681};
 682
 683/** The role of a line within a unified diff hunk. */
 684export enum GitDiffLineType {
 685  /** A line added in the new version. */
 686  Added = 'ADDED',
 687  /** An unchanged line present in both old and new versions. */
 688  Context = 'CONTEXT',
 689  /** A line removed from the old version. */
 690  Deleted = 'DELETED'
 691}
 692
 693/** The diff for a single file in a commit. */
 694export type GitFileDiff = {
 695  __typename?: 'GitFileDiff';
 696  /** Contiguous blocks of changes. Empty for binary files. */
 697  hunks: Array<GitDiffHunk>;
 698  /** True when the file is binary and no textual diff is available. */
 699  isBinary: Scalars['Boolean']['output'];
 700  /** True when the file was deleted in this commit. */
 701  isDelete: Scalars['Boolean']['output'];
 702  /** True when the file was created in this commit. */
 703  isNew: Scalars['Boolean']['output'];
 704  /** Previous path, non-null only for renames. */
 705  oldPath?: Maybe<Scalars['String']['output']>;
 706  /** Path of the file in the new version. */
 707  path: Scalars['String']['output'];
 708};
 709
 710/** The last commit that touched each requested entry in a directory. */
 711export type GitLastCommit = {
 712  __typename?: 'GitLastCommit';
 713  /** Most recent commit that modified this entry. */
 714  commit: GitCommit;
 715  /** Entry name within the directory. */
 716  name: Scalars['String']['output'];
 717};
 718
 719/** The type of object a git tree entry points to. */
 720export enum GitObjectType {
 721  /** A regular or executable file. */
 722  Blob = 'BLOB',
 723  /** A git submodule. */
 724  Submodule = 'SUBMODULE',
 725  /** A symbolic link. */
 726  Symlink = 'SYMLINK',
 727  /** A directory. */
 728  Tree = 'TREE'
 729}
 730
 731/** A git branch or tag reference. */
 732export type GitRef = {
 733  __typename?: 'GitRef';
 734  /** Commit hash the reference points to. */
 735  hash: Scalars['String']['output'];
 736  /** True for the branch HEAD currently points to. */
 737  isDefault: Scalars['Boolean']['output'];
 738  /** Full reference name, e.g. refs/heads/main or refs/tags/v1.0. */
 739  name: Scalars['String']['output'];
 740  /** Short name, e.g. main or v1.0. */
 741  shortName: Scalars['String']['output'];
 742  /** Whether this reference is a branch or a tag. */
 743  type: GitRefType;
 744};
 745
 746export type GitRefConnection = {
 747  __typename?: 'GitRefConnection';
 748  nodes: Array<GitRef>;
 749  pageInfo: PageInfo;
 750  totalCount: Scalars['Int']['output'];
 751};
 752
 753/** The kind of git reference: a branch or a tag. */
 754export enum GitRefType {
 755  /** A local branch (refs/heads/*). */
 756  Branch = 'BRANCH',
 757  /** An annotated or lightweight tag (refs/tags/*). */
 758  Tag = 'TAG'
 759}
 760
 761/** An entry in a git tree (directory listing). */
 762export type GitTreeEntry = {
 763  __typename?: 'GitTreeEntry';
 764  /** Git object hash. */
 765  hash: Scalars['String']['output'];
 766  /** File or directory name within the parent tree. */
 767  name: Scalars['String']['output'];
 768  /** Whether this entry is a file, directory, symlink, or submodule. */
 769  type: GitObjectType;
 770};
 771
 772/** Represents an identity */
 773export type Identity = Entity & {
 774  __typename?: 'Identity';
 775  /** An url to an avatar */
 776  avatarUrl?: Maybe<Scalars['String']['output']>;
 777  /** A non-empty string to display, representing the identity, based on the non-empty values. */
 778  displayName: Scalars['String']['output'];
 779  /** The email of the person, if known. */
 780  email?: Maybe<Scalars['String']['output']>;
 781  /** The human version (truncated) identifier for this identity */
 782  humanId: Scalars['String']['output'];
 783  /** The identifier for this identity */
 784  id: Scalars['ID']['output'];
 785  /**
 786   * isProtected is true if the chain of git commits started to be signed.
 787   * If that's the case, only signed commit with a valid key for this identity can be added.
 788   */
 789  isProtected: Scalars['Boolean']['output'];
 790  /** The login of the person, if known. */
 791  login?: Maybe<Scalars['String']['output']>;
 792  /** The name of the person, if known. */
 793  name?: Maybe<Scalars['String']['output']>;
 794};
 795
 796export type IdentityConnection = {
 797  __typename?: 'IdentityConnection';
 798  edges: Array<IdentityEdge>;
 799  nodes: Array<Identity>;
 800  pageInfo: PageInfo;
 801  totalCount: Scalars['Int']['output'];
 802};
 803
 804export type IdentityEdge = {
 805  __typename?: 'IdentityEdge';
 806  cursor: Scalars['String']['output'];
 807  node: Identity;
 808};
 809
 810export type IdentityEvent = {
 811  __typename?: 'IdentityEvent';
 812  identity: Identity;
 813  type: EntityEventType;
 814};
 815
 816/** Label for a bug. */
 817export type Label = {
 818  __typename?: 'Label';
 819  /** Color of the label. */
 820  color: Color;
 821  /** The name of the label. */
 822  name: Scalars['String']['output'];
 823};
 824
 825export type LabelChangeResult = {
 826  __typename?: 'LabelChangeResult';
 827  /** The source label. */
 828  label: Label;
 829  /** The effect this label had. */
 830  status: LabelChangeStatus;
 831};
 832
 833export enum LabelChangeStatus {
 834  Added = 'ADDED',
 835  AlreadySet = 'ALREADY_SET',
 836  DoesntExist = 'DOESNT_EXIST',
 837  DuplicateInOp = 'DUPLICATE_IN_OP',
 838  Removed = 'REMOVED'
 839}
 840
 841export type LabelConnection = {
 842  __typename?: 'LabelConnection';
 843  edges: Array<LabelEdge>;
 844  nodes: Array<Label>;
 845  pageInfo: PageInfo;
 846  totalCount: Scalars['Int']['output'];
 847};
 848
 849export type LabelEdge = {
 850  __typename?: 'LabelEdge';
 851  cursor: Scalars['String']['output'];
 852  node: Label;
 853};
 854
 855export type Mutation = {
 856  __typename?: 'Mutation';
 857  /** Add a new comment to a bug */
 858  bugAddComment: BugAddCommentPayload;
 859  /** Add a new comment to a bug and close it */
 860  bugAddCommentAndClose: BugAddCommentAndClosePayload;
 861  /** Add a new comment to a bug and reopen it */
 862  bugAddCommentAndReopen: BugAddCommentAndReopenPayload;
 863  /** Add or remove a set of label on a bug */
 864  bugChangeLabels: BugChangeLabelPayload;
 865  /** Create a new bug */
 866  bugCreate: BugCreatePayload;
 867  /** Change a comment of a bug */
 868  bugEditComment: BugEditCommentPayload;
 869  /** Change a bug's title */
 870  bugSetTitle: BugSetTitlePayload;
 871  /** Change a bug's status to closed */
 872  bugStatusClose: BugStatusClosePayload;
 873  /** Change a bug's status to open */
 874  bugStatusOpen: BugStatusOpenPayload;
 875};
 876
 877
 878export type MutationBugAddCommentArgs = {
 879  input: BugAddCommentInput;
 880};
 881
 882
 883export type MutationBugAddCommentAndCloseArgs = {
 884  input: BugAddCommentAndCloseInput;
 885};
 886
 887
 888export type MutationBugAddCommentAndReopenArgs = {
 889  input: BugAddCommentAndReopenInput;
 890};
 891
 892
 893export type MutationBugChangeLabelsArgs = {
 894  input?: InputMaybe<BugChangeLabelInput>;
 895};
 896
 897
 898export type MutationBugCreateArgs = {
 899  input: BugCreateInput;
 900};
 901
 902
 903export type MutationBugEditCommentArgs = {
 904  input: BugEditCommentInput;
 905};
 906
 907
 908export type MutationBugSetTitleArgs = {
 909  input: BugSetTitleInput;
 910};
 911
 912
 913export type MutationBugStatusCloseArgs = {
 914  input: BugStatusCloseInput;
 915};
 916
 917
 918export type MutationBugStatusOpenArgs = {
 919  input: BugStatusOpenInput;
 920};
 921
 922/** An operation applied to an entity. */
 923export type Operation = {
 924  /** The operations author. */
 925  author: Identity;
 926  /** The datetime when this operation was issued. */
 927  date: Scalars['Time']['output'];
 928  /** The identifier of the operation */
 929  id: Scalars['ID']['output'];
 930};
 931
 932/** The connection type for an Operation */
 933export type OperationConnection = {
 934  __typename?: 'OperationConnection';
 935  edges: Array<OperationEdge>;
 936  nodes: Array<Operation>;
 937  pageInfo: PageInfo;
 938  totalCount: Scalars['Int']['output'];
 939};
 940
 941/** Represent an Operation */
 942export type OperationEdge = {
 943  __typename?: 'OperationEdge';
 944  cursor: Scalars['String']['output'];
 945  node: Operation;
 946};
 947
 948/** Information about pagination in a connection. */
 949export type PageInfo = {
 950  __typename?: 'PageInfo';
 951  /** When paginating forwards, the cursor to continue. */
 952  endCursor: Scalars['String']['output'];
 953  /** When paginating forwards, are there more items? */
 954  hasNextPage: Scalars['Boolean']['output'];
 955  /** When paginating backwards, are there more items? */
 956  hasPreviousPage: Scalars['Boolean']['output'];
 957  /** When paginating backwards, the cursor to continue. */
 958  startCursor: Scalars['String']['output'];
 959};
 960
 961export type Query = {
 962  __typename?: 'Query';
 963  /** List all registered repositories. */
 964  repositories: RepositoryConnection;
 965  /**
 966   * Access a repository by reference/name. If no ref is given, the default repository is returned if any.
 967   * Returns null if the referenced repository does not exist.
 968   */
 969  repository?: Maybe<Repository>;
 970  /** Server configuration and authentication mode. */
 971  serverConfig: ServerConfig;
 972};
 973
 974
 975export type QueryRepositoriesArgs = {
 976  after?: InputMaybe<Scalars['String']['input']>;
 977  before?: InputMaybe<Scalars['String']['input']>;
 978  first?: InputMaybe<Scalars['Int']['input']>;
 979  last?: InputMaybe<Scalars['Int']['input']>;
 980};
 981
 982
 983export type QueryRepositoryArgs = {
 984  ref?: InputMaybe<Scalars['String']['input']>;
 985};
 986
 987export type Repository = {
 988  __typename?: 'Repository';
 989  /** All the bugs */
 990  allBugs: BugConnection;
 991  /** All the identities */
 992  allIdentities: IdentityConnection;
 993  /**
 994   * Content of the file at path under ref. Null if the path does not exist
 995   * or resolves to a tree rather than a blob.
 996   */
 997  blob?: Maybe<GitBlob>;
 998  /** Look up a bug by id prefix. Returns null if no bug matches the prefix. */
 999  bug?: Maybe<Bug>;
1000  /** A single commit by hash. Returns null if the hash does not exist in the repository. */
1001  commit?: Maybe<GitCommit>;
1002  /**
1003   * Paginated commit log reachable from ref, optionally filtered to commits
1004   * touching path.
1005   */
1006  commits: GitCommitConnection;
1007  /** Look up an identity by id prefix. Returns null if no identity matches the prefix. */
1008  identity?: Maybe<Identity>;
1009  /**
1010   * The most recent commit that touched each of the named entries in the
1011   * directory at path under ref. Use this to populate last-commit info on a
1012   * tree listing without blocking the initial tree fetch.
1013   */
1014  lastCommits: Array<GitLastCommit>;
1015  /** The name of the repository. Null for the default (unnamed) repository in a single-repo setup. */
1016  name?: Maybe<Scalars['String']['output']>;
1017  /** All branches and tags, optionally filtered by type. */
1018  refs: GitRefConnection;
1019  /** Directory listing at path under ref. An empty path returns the root tree. */
1020  tree: Array<GitTreeEntry>;
1021  /** The identity created or selected by the user as its own */
1022  userIdentity?: Maybe<Identity>;
1023  /** List of valid labels. */
1024  validLabels: LabelConnection;
1025};
1026
1027
1028export type RepositoryAllBugsArgs = {
1029  after?: InputMaybe<Scalars['String']['input']>;
1030  before?: InputMaybe<Scalars['String']['input']>;
1031  first?: InputMaybe<Scalars['Int']['input']>;
1032  last?: InputMaybe<Scalars['Int']['input']>;
1033  query?: InputMaybe<Scalars['String']['input']>;
1034};
1035
1036
1037export type RepositoryAllIdentitiesArgs = {
1038  after?: InputMaybe<Scalars['String']['input']>;
1039  before?: InputMaybe<Scalars['String']['input']>;
1040  first?: InputMaybe<Scalars['Int']['input']>;
1041  last?: InputMaybe<Scalars['Int']['input']>;
1042};
1043
1044
1045export type RepositoryBlobArgs = {
1046  path: Scalars['String']['input'];
1047  ref: Scalars['String']['input'];
1048};
1049
1050
1051export type RepositoryBugArgs = {
1052  prefix: Scalars['String']['input'];
1053};
1054
1055
1056export type RepositoryCommitArgs = {
1057  hash: Scalars['String']['input'];
1058};
1059
1060
1061export type RepositoryCommitsArgs = {
1062  after?: InputMaybe<Scalars['String']['input']>;
1063  first?: InputMaybe<Scalars['Int']['input']>;
1064  path?: InputMaybe<Scalars['String']['input']>;
1065  ref: Scalars['String']['input'];
1066  since?: InputMaybe<Scalars['Time']['input']>;
1067  until?: InputMaybe<Scalars['Time']['input']>;
1068};
1069
1070
1071export type RepositoryIdentityArgs = {
1072  prefix: Scalars['String']['input'];
1073};
1074
1075
1076export type RepositoryLastCommitsArgs = {
1077  names: Array<Scalars['String']['input']>;
1078  path?: InputMaybe<Scalars['String']['input']>;
1079  ref: Scalars['String']['input'];
1080};
1081
1082
1083export type RepositoryRefsArgs = {
1084  after?: InputMaybe<Scalars['String']['input']>;
1085  before?: InputMaybe<Scalars['String']['input']>;
1086  first?: InputMaybe<Scalars['Int']['input']>;
1087  last?: InputMaybe<Scalars['Int']['input']>;
1088  type?: InputMaybe<GitRefType>;
1089};
1090
1091
1092export type RepositoryTreeArgs = {
1093  path?: InputMaybe<Scalars['String']['input']>;
1094  ref: Scalars['String']['input'];
1095};
1096
1097
1098export type RepositoryValidLabelsArgs = {
1099  after?: InputMaybe<Scalars['String']['input']>;
1100  before?: InputMaybe<Scalars['String']['input']>;
1101  first?: InputMaybe<Scalars['Int']['input']>;
1102  last?: InputMaybe<Scalars['Int']['input']>;
1103};
1104
1105export type RepositoryConnection = {
1106  __typename?: 'RepositoryConnection';
1107  edges: Array<RepositoryEdge>;
1108  nodes: Array<Repository>;
1109  pageInfo: PageInfo;
1110  totalCount: Scalars['Int']['output'];
1111};
1112
1113export type RepositoryEdge = {
1114  __typename?: 'RepositoryEdge';
1115  cursor: Scalars['String']['output'];
1116  node: Repository;
1117};
1118
1119/** Server-wide configuration, independent of any repository. */
1120export type ServerConfig = {
1121  __typename?: 'ServerConfig';
1122  /**
1123   * Authentication mode: 'local' (single user from git config),
1124   * 'external' (multi-user via OAuth/OIDC providers), or 'readonly'.
1125   */
1126  authMode: Scalars['String']['output'];
1127  /**
1128   * Names of the login providers enabled on this server, e.g. ['github'].
1129   * Empty when authMode is not 'external'.
1130   */
1131  loginProviders: Array<Scalars['String']['output']>;
1132};
1133
1134export enum Status {
1135  Closed = 'CLOSED',
1136  Open = 'OPEN'
1137}
1138
1139export type Subscription = {
1140  __typename?: 'Subscription';
1141  /** Subscribe to events on all entities. For events on a specific repo you can provide a repo reference. Without it, you get the unique default repo or all repo events. */
1142  allEvents: EntityEvent;
1143  /** Subscribe to bug entity events. For events on a specific repo you can provide a repo reference. Without it, you get the unique default repo or all repo events. */
1144  bugEvents: BugEvent;
1145  /** Subscribe to identity entity events. For events on a specific repo you can provide a repo reference. Without it, you get the unique default repo or all repo events. */
1146  identityEvents: IdentityEvent;
1147};
1148
1149
1150export type SubscriptionAllEventsArgs = {
1151  repoRef?: InputMaybe<Scalars['String']['input']>;
1152  typename?: InputMaybe<Scalars['String']['input']>;
1153};
1154
1155
1156export type SubscriptionBugEventsArgs = {
1157  repoRef?: InputMaybe<Scalars['String']['input']>;
1158};
1159
1160
1161export type SubscriptionIdentityEventsArgs = {
1162  repoRef?: InputMaybe<Scalars['String']['input']>;
1163};
1164
1165export type AllIdentitiesQueryVariables = Exact<{
1166  ref?: InputMaybe<Scalars['String']['input']>;
1167}>;
1168
1169
1170export type AllIdentitiesQuery = { __typename?: 'Query', repository?: { __typename?: 'Repository', allIdentities: { __typename?: 'IdentityConnection', nodes: Array<{ __typename?: 'Identity', id: string, humanId: string, name?: string | null, email?: string | null, login?: string | null, displayName: string, avatarUrl?: string | null }> } } | null };
1171
1172export type BugDetailQueryVariables = Exact<{
1173  ref?: InputMaybe<Scalars['String']['input']>;
1174  prefix: Scalars['String']['input'];
1175}>;
1176
1177
1178export type BugDetailQuery = { __typename?: 'Query', repository?: { __typename?: 'Repository', bug?: { __typename?: 'Bug', id: string, humanId: string, status: Status, title: string, createdAt: string, lastEdit: string, labels: Array<{ __typename?: 'Label', name: string, color: { __typename?: 'Color', R: number, G: number, B: number } }>, author: { __typename?: 'Identity', id: string, humanId: string, displayName: string, avatarUrl?: string | null }, participants: { __typename?: 'IdentityConnection', nodes: Array<{ __typename?: 'Identity', id: string, humanId: string, displayName: string, avatarUrl?: string | null }> }, timeline: { __typename?: 'BugTimelineItemConnection', nodes: Array<
1179          | { __typename: 'BugAddCommentTimelineItem', message: string, createdAt: string, lastEdit: string, edited: boolean, id: string, author: { __typename?: 'Identity', id: string, humanId: string, displayName: string, avatarUrl?: string | null } }
1180          | { __typename: 'BugCreateTimelineItem', message: string, createdAt: string, lastEdit: string, edited: boolean, id: string, author: { __typename?: 'Identity', id: string, humanId: string, displayName: string, avatarUrl?: string | null } }
1181          | { __typename: 'BugLabelChangeTimelineItem', date: string, id: string, author: { __typename?: 'Identity', humanId: string, displayName: string }, added: Array<{ __typename?: 'Label', name: string, color: { __typename?: 'Color', R: number, G: number, B: number } }>, removed: Array<{ __typename?: 'Label', name: string, color: { __typename?: 'Color', R: number, G: number, B: number } }> }
1182          | { __typename: 'BugSetStatusTimelineItem', date: string, status: Status, id: string, author: { __typename?: 'Identity', humanId: string, displayName: string } }
1183          | { __typename: 'BugSetTitleTimelineItem', date: string, title: string, was: string, id: string, author: { __typename?: 'Identity', humanId: string, displayName: string } }
1184        > } } | null } | null };
1185
1186export type BugListQueryVariables = Exact<{
1187  ref?: InputMaybe<Scalars['String']['input']>;
1188  openQuery: Scalars['String']['input'];
1189  closedQuery: Scalars['String']['input'];
1190  listQuery: Scalars['String']['input'];
1191  first?: InputMaybe<Scalars['Int']['input']>;
1192  after?: InputMaybe<Scalars['String']['input']>;
1193}>;
1194
1195
1196export type BugListQuery = { __typename?: 'Query', repository?: { __typename?: 'Repository', openCount: { __typename?: 'BugConnection', totalCount: number }, closedCount: { __typename?: 'BugConnection', totalCount: number }, bugs: { __typename?: 'BugConnection', totalCount: number, pageInfo: { __typename?: 'PageInfo', hasNextPage: boolean, endCursor: string }, nodes: Array<{ __typename?: 'Bug', id: string, humanId: string, status: Status, title: string, createdAt: string, labels: Array<{ __typename?: 'Label', name: string, color: { __typename?: 'Color', R: number, G: number, B: number } }>, author: { __typename?: 'Identity', id: string, humanId: string, displayName: string, avatarUrl?: string | null }, comments: { __typename?: 'BugCommentConnection', totalCount: number } }> } } | null };
1197
1198export type BugCreateMutationVariables = Exact<{
1199  input: BugCreateInput;
1200}>;
1201
1202
1203export type BugCreateMutation = { __typename?: 'Mutation', bugCreate: { __typename?: 'BugCreatePayload', bug: { __typename?: 'Bug', id: string, humanId: string } } };
1204
1205export type BugAddCommentMutationVariables = Exact<{
1206  input: BugAddCommentInput;
1207}>;
1208
1209
1210export type BugAddCommentMutation = { __typename?: 'Mutation', bugAddComment: { __typename?: 'BugAddCommentPayload', bug: { __typename?: 'Bug', id: string } } };
1211
1212export type BugAddCommentAndCloseMutationVariables = Exact<{
1213  input: BugAddCommentAndCloseInput;
1214}>;
1215
1216
1217export type BugAddCommentAndCloseMutation = { __typename?: 'Mutation', bugAddCommentAndClose: { __typename?: 'BugAddCommentAndClosePayload', bug: { __typename?: 'Bug', id: string } } };
1218
1219export type BugAddCommentAndReopenMutationVariables = Exact<{
1220  input: BugAddCommentAndReopenInput;
1221}>;
1222
1223
1224export type BugAddCommentAndReopenMutation = { __typename?: 'Mutation', bugAddCommentAndReopen: { __typename?: 'BugAddCommentAndReopenPayload', bug: { __typename?: 'Bug', id: string } } };
1225
1226export type BugEditCommentMutationVariables = Exact<{
1227  input: BugEditCommentInput;
1228}>;
1229
1230
1231export type BugEditCommentMutation = { __typename?: 'Mutation', bugEditComment: { __typename?: 'BugEditCommentPayload', bug: { __typename?: 'Bug', id: string } } };
1232
1233export type BugChangeLabelsMutationVariables = Exact<{
1234  input?: InputMaybe<BugChangeLabelInput>;
1235}>;
1236
1237
1238export type BugChangeLabelsMutation = { __typename?: 'Mutation', bugChangeLabels: { __typename?: 'BugChangeLabelPayload', bug: { __typename?: 'Bug', id: string, labels: Array<{ __typename?: 'Label', name: string, color: { __typename?: 'Color', R: number, G: number, B: number } }> } } };
1239
1240export type BugStatusOpenMutationVariables = Exact<{
1241  input: BugStatusOpenInput;
1242}>;
1243
1244
1245export type BugStatusOpenMutation = { __typename?: 'Mutation', bugStatusOpen: { __typename?: 'BugStatusOpenPayload', bug: { __typename?: 'Bug', id: string, status: Status } } };
1246
1247export type BugStatusCloseMutationVariables = Exact<{
1248  input: BugStatusCloseInput;
1249}>;
1250
1251
1252export type BugStatusCloseMutation = { __typename?: 'Mutation', bugStatusClose: { __typename?: 'BugStatusClosePayload', bug: { __typename?: 'Bug', id: string, status: Status } } };
1253
1254export type BugSetTitleMutationVariables = Exact<{
1255  input: BugSetTitleInput;
1256}>;
1257
1258
1259export type BugSetTitleMutation = { __typename?: 'Mutation', bugSetTitle: { __typename?: 'BugSetTitlePayload', bug: { __typename?: 'Bug', id: string, title: string } } };
1260
1261export type RepositoriesQueryVariables = Exact<{ [key: string]: never; }>;
1262
1263
1264export type RepositoriesQuery = { __typename?: 'Query', repositories: { __typename?: 'RepositoryConnection', totalCount: number, nodes: Array<{ __typename?: 'Repository', name?: string | null }> } };
1265
1266export type ServerConfigQueryVariables = Exact<{ [key: string]: never; }>;
1267
1268
1269export type ServerConfigQuery = { __typename?: 'Query', serverConfig: { __typename?: 'ServerConfig', authMode: string, loginProviders: Array<string> } };
1270
1271export type UserProfileQueryVariables = Exact<{
1272  ref?: InputMaybe<Scalars['String']['input']>;
1273  prefix: Scalars['String']['input'];
1274  openQuery: Scalars['String']['input'];
1275  closedQuery: Scalars['String']['input'];
1276  listQuery: Scalars['String']['input'];
1277  after?: InputMaybe<Scalars['String']['input']>;
1278}>;
1279
1280
1281export type UserProfileQuery = { __typename?: 'Query', repository?: { __typename?: 'Repository', identity?: { __typename?: 'Identity', id: string, humanId: string, name?: string | null, email?: string | null, login?: string | null, displayName: string, avatarUrl?: string | null, isProtected: boolean } | null, openCount: { __typename?: 'BugConnection', totalCount: number }, closedCount: { __typename?: 'BugConnection', totalCount: number }, bugs: { __typename?: 'BugConnection', totalCount: number, pageInfo: { __typename?: 'PageInfo', hasNextPage: boolean, endCursor: string }, nodes: Array<{ __typename?: 'Bug', id: string, humanId: string, status: Status, title: string, createdAt: string, labels: Array<{ __typename?: 'Label', name: string, color: { __typename?: 'Color', R: number, G: number, B: number } }>, comments: { __typename?: 'BugCommentConnection', totalCount: number } }> } } | null };
1282
1283export type ValidLabelsQueryVariables = Exact<{
1284  ref?: InputMaybe<Scalars['String']['input']>;
1285}>;
1286
1287
1288export type ValidLabelsQuery = { __typename?: 'Query', repository?: { __typename?: 'Repository', validLabels: { __typename?: 'LabelConnection', nodes: Array<{ __typename?: 'Label', name: string, color: { __typename?: 'Color', R: number, G: number, B: number } }> } } | null };
1289
1290
1291export const AllIdentitiesDocument = gql`
1292    query AllIdentities($ref: String) {
1293  repository(ref: $ref) {
1294    allIdentities(first: 1000) {
1295      nodes {
1296        id
1297        humanId
1298        name
1299        email
1300        login
1301        displayName
1302        avatarUrl
1303      }
1304    }
1305  }
1306}
1307    `;
1308
1309/**
1310 * __useAllIdentitiesQuery__
1311 *
1312 * To run a query within a React component, call `useAllIdentitiesQuery` and pass it any options that fit your needs.
1313 * When your component renders, `useAllIdentitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
1314 * you can use to render your UI.
1315 *
1316 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1317 *
1318 * @example
1319 * const { data, loading, error } = useAllIdentitiesQuery({
1320 *   variables: {
1321 *      ref: // value for 'ref'
1322 *   },
1323 * });
1324 */
1325export function useAllIdentitiesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<AllIdentitiesQuery, AllIdentitiesQueryVariables>) {
1326        const options = {...defaultOptions, ...baseOptions}
1327        return ApolloReactHooks.useQuery<AllIdentitiesQuery, AllIdentitiesQueryVariables>(AllIdentitiesDocument, options);
1328      }
1329export function useAllIdentitiesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<AllIdentitiesQuery, AllIdentitiesQueryVariables>) {
1330          const options = {...defaultOptions, ...baseOptions}
1331          return ApolloReactHooks.useLazyQuery<AllIdentitiesQuery, AllIdentitiesQueryVariables>(AllIdentitiesDocument, options);
1332        }
1333// @ts-ignore
1334export function useAllIdentitiesSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<AllIdentitiesQuery, AllIdentitiesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<AllIdentitiesQuery, AllIdentitiesQueryVariables>;
1335export function useAllIdentitiesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<AllIdentitiesQuery, AllIdentitiesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<AllIdentitiesQuery | undefined, AllIdentitiesQueryVariables>;
1336export function useAllIdentitiesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<AllIdentitiesQuery, AllIdentitiesQueryVariables>) {
1337          const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}
1338          return ApolloReactHooks.useSuspenseQuery<AllIdentitiesQuery, AllIdentitiesQueryVariables>(AllIdentitiesDocument, options);
1339        }
1340export type AllIdentitiesQueryHookResult = ReturnType<typeof useAllIdentitiesQuery>;
1341export type AllIdentitiesLazyQueryHookResult = ReturnType<typeof useAllIdentitiesLazyQuery>;
1342export type AllIdentitiesSuspenseQueryHookResult = ReturnType<typeof useAllIdentitiesSuspenseQuery>;
1343export type AllIdentitiesQueryResult = Apollo.QueryResult<AllIdentitiesQuery, AllIdentitiesQueryVariables>;
1344export const BugDetailDocument = gql`
1345    query BugDetail($ref: String, $prefix: String!) {
1346  repository(ref: $ref) {
1347    bug(prefix: $prefix) {
1348      id
1349      humanId
1350      status
1351      title
1352      labels {
1353        name
1354        color {
1355          R
1356          G
1357          B
1358        }
1359      }
1360      author {
1361        id
1362        humanId
1363        displayName
1364        avatarUrl
1365      }
1366      createdAt
1367      lastEdit
1368      participants(first: 20) {
1369        nodes {
1370          id
1371          humanId
1372          displayName
1373          avatarUrl
1374        }
1375      }
1376      timeline(first: 250) {
1377        nodes {
1378          __typename
1379          id
1380          ... on BugCreateTimelineItem {
1381            author {
1382              id
1383              humanId
1384              displayName
1385              avatarUrl
1386            }
1387            message
1388            createdAt
1389            lastEdit
1390            edited
1391          }
1392          ... on BugAddCommentTimelineItem {
1393            author {
1394              id
1395              humanId
1396              displayName
1397              avatarUrl
1398            }
1399            message
1400            createdAt
1401            lastEdit
1402            edited
1403          }
1404          ... on BugLabelChangeTimelineItem {
1405            author {
1406              humanId
1407              displayName
1408            }
1409            date
1410            added {
1411              name
1412              color {
1413                R
1414                G
1415                B
1416              }
1417            }
1418            removed {
1419              name
1420              color {
1421                R
1422                G
1423                B
1424              }
1425            }
1426          }
1427          ... on BugSetStatusTimelineItem {
1428            author {
1429              humanId
1430              displayName
1431            }
1432            date
1433            status
1434          }
1435          ... on BugSetTitleTimelineItem {
1436            author {
1437              humanId
1438              displayName
1439            }
1440            date
1441            title
1442            was
1443          }
1444        }
1445      }
1446    }
1447  }
1448}
1449    `;
1450
1451/**
1452 * __useBugDetailQuery__
1453 *
1454 * To run a query within a React component, call `useBugDetailQuery` and pass it any options that fit your needs.
1455 * When your component renders, `useBugDetailQuery` returns an object from Apollo Client that contains loading, error, and data properties
1456 * you can use to render your UI.
1457 *
1458 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1459 *
1460 * @example
1461 * const { data, loading, error } = useBugDetailQuery({
1462 *   variables: {
1463 *      ref: // value for 'ref'
1464 *      prefix: // value for 'prefix'
1465 *   },
1466 * });
1467 */
1468export function useBugDetailQuery(baseOptions: ApolloReactHooks.QueryHookOptions<BugDetailQuery, BugDetailQueryVariables> & ({ variables: BugDetailQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {
1469        const options = {...defaultOptions, ...baseOptions}
1470        return ApolloReactHooks.useQuery<BugDetailQuery, BugDetailQueryVariables>(BugDetailDocument, options);
1471      }
1472export function useBugDetailLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<BugDetailQuery, BugDetailQueryVariables>) {
1473          const options = {...defaultOptions, ...baseOptions}
1474          return ApolloReactHooks.useLazyQuery<BugDetailQuery, BugDetailQueryVariables>(BugDetailDocument, options);
1475        }
1476// @ts-ignore
1477export function useBugDetailSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<BugDetailQuery, BugDetailQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<BugDetailQuery, BugDetailQueryVariables>;
1478export function useBugDetailSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<BugDetailQuery, BugDetailQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<BugDetailQuery | undefined, BugDetailQueryVariables>;
1479export function useBugDetailSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<BugDetailQuery, BugDetailQueryVariables>) {
1480          const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}
1481          return ApolloReactHooks.useSuspenseQuery<BugDetailQuery, BugDetailQueryVariables>(BugDetailDocument, options);
1482        }
1483export type BugDetailQueryHookResult = ReturnType<typeof useBugDetailQuery>;
1484export type BugDetailLazyQueryHookResult = ReturnType<typeof useBugDetailLazyQuery>;
1485export type BugDetailSuspenseQueryHookResult = ReturnType<typeof useBugDetailSuspenseQuery>;
1486export type BugDetailQueryResult = Apollo.QueryResult<BugDetailQuery, BugDetailQueryVariables>;
1487export const BugListDocument = gql`
1488    query BugList($ref: String, $openQuery: String!, $closedQuery: String!, $listQuery: String!, $first: Int, $after: String) {
1489  repository(ref: $ref) {
1490    openCount: allBugs(query: $openQuery, first: 1) {
1491      totalCount
1492    }
1493    closedCount: allBugs(query: $closedQuery, first: 1) {
1494      totalCount
1495    }
1496    bugs: allBugs(query: $listQuery, first: $first, after: $after) {
1497      totalCount
1498      pageInfo {
1499        hasNextPage
1500        endCursor
1501      }
1502      nodes {
1503        id
1504        humanId
1505        status
1506        title
1507        labels {
1508          name
1509          color {
1510            R
1511            G
1512            B
1513          }
1514        }
1515        author {
1516          id
1517          humanId
1518          displayName
1519          avatarUrl
1520        }
1521        createdAt
1522        comments {
1523          totalCount
1524        }
1525      }
1526    }
1527  }
1528}
1529    `;
1530
1531/**
1532 * __useBugListQuery__
1533 *
1534 * To run a query within a React component, call `useBugListQuery` and pass it any options that fit your needs.
1535 * When your component renders, `useBugListQuery` returns an object from Apollo Client that contains loading, error, and data properties
1536 * you can use to render your UI.
1537 *
1538 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1539 *
1540 * @example
1541 * const { data, loading, error } = useBugListQuery({
1542 *   variables: {
1543 *      ref: // value for 'ref'
1544 *      openQuery: // value for 'openQuery'
1545 *      closedQuery: // value for 'closedQuery'
1546 *      listQuery: // value for 'listQuery'
1547 *      first: // value for 'first'
1548 *      after: // value for 'after'
1549 *   },
1550 * });
1551 */
1552export function useBugListQuery(baseOptions: ApolloReactHooks.QueryHookOptions<BugListQuery, BugListQueryVariables> & ({ variables: BugListQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {
1553        const options = {...defaultOptions, ...baseOptions}
1554        return ApolloReactHooks.useQuery<BugListQuery, BugListQueryVariables>(BugListDocument, options);
1555      }
1556export function useBugListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<BugListQuery, BugListQueryVariables>) {
1557          const options = {...defaultOptions, ...baseOptions}
1558          return ApolloReactHooks.useLazyQuery<BugListQuery, BugListQueryVariables>(BugListDocument, options);
1559        }
1560// @ts-ignore
1561export function useBugListSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<BugListQuery, BugListQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<BugListQuery, BugListQueryVariables>;
1562export function useBugListSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<BugListQuery, BugListQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<BugListQuery | undefined, BugListQueryVariables>;
1563export function useBugListSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<BugListQuery, BugListQueryVariables>) {
1564          const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}
1565          return ApolloReactHooks.useSuspenseQuery<BugListQuery, BugListQueryVariables>(BugListDocument, options);
1566        }
1567export type BugListQueryHookResult = ReturnType<typeof useBugListQuery>;
1568export type BugListLazyQueryHookResult = ReturnType<typeof useBugListLazyQuery>;
1569export type BugListSuspenseQueryHookResult = ReturnType<typeof useBugListSuspenseQuery>;
1570export type BugListQueryResult = Apollo.QueryResult<BugListQuery, BugListQueryVariables>;
1571export const BugCreateDocument = gql`
1572    mutation BugCreate($input: BugCreateInput!) {
1573  bugCreate(input: $input) {
1574    bug {
1575      id
1576      humanId
1577    }
1578  }
1579}
1580    `;
1581export type BugCreateMutationFn = Apollo.MutationFunction<BugCreateMutation, BugCreateMutationVariables>;
1582
1583/**
1584 * __useBugCreateMutation__
1585 *
1586 * To run a mutation, you first call `useBugCreateMutation` within a React component and pass it any options that fit your needs.
1587 * When your component renders, `useBugCreateMutation` returns a tuple that includes:
1588 * - A mutate function that you can call at any time to execute the mutation
1589 * - An object with fields that represent the current status of the mutation's execution
1590 *
1591 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1592 *
1593 * @example
1594 * const [bugCreateMutation, { data, loading, error }] = useBugCreateMutation({
1595 *   variables: {
1596 *      input: // value for 'input'
1597 *   },
1598 * });
1599 */
1600export function useBugCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<BugCreateMutation, BugCreateMutationVariables>) {
1601        const options = {...defaultOptions, ...baseOptions}
1602        return ApolloReactHooks.useMutation<BugCreateMutation, BugCreateMutationVariables>(BugCreateDocument, options);
1603      }
1604export type BugCreateMutationHookResult = ReturnType<typeof useBugCreateMutation>;
1605export type BugCreateMutationResult = Apollo.MutationResult<BugCreateMutation>;
1606export type BugCreateMutationOptions = Apollo.BaseMutationOptions<BugCreateMutation, BugCreateMutationVariables>;
1607export const BugAddCommentDocument = gql`
1608    mutation BugAddComment($input: BugAddCommentInput!) {
1609  bugAddComment(input: $input) {
1610    bug {
1611      id
1612    }
1613  }
1614}
1615    `;
1616export type BugAddCommentMutationFn = Apollo.MutationFunction<BugAddCommentMutation, BugAddCommentMutationVariables>;
1617
1618/**
1619 * __useBugAddCommentMutation__
1620 *
1621 * To run a mutation, you first call `useBugAddCommentMutation` within a React component and pass it any options that fit your needs.
1622 * When your component renders, `useBugAddCommentMutation` returns a tuple that includes:
1623 * - A mutate function that you can call at any time to execute the mutation
1624 * - An object with fields that represent the current status of the mutation's execution
1625 *
1626 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1627 *
1628 * @example
1629 * const [bugAddCommentMutation, { data, loading, error }] = useBugAddCommentMutation({
1630 *   variables: {
1631 *      input: // value for 'input'
1632 *   },
1633 * });
1634 */
1635export function useBugAddCommentMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<BugAddCommentMutation, BugAddCommentMutationVariables>) {
1636        const options = {...defaultOptions, ...baseOptions}
1637        return ApolloReactHooks.useMutation<BugAddCommentMutation, BugAddCommentMutationVariables>(BugAddCommentDocument, options);
1638      }
1639export type BugAddCommentMutationHookResult = ReturnType<typeof useBugAddCommentMutation>;
1640export type BugAddCommentMutationResult = Apollo.MutationResult<BugAddCommentMutation>;
1641export type BugAddCommentMutationOptions = Apollo.BaseMutationOptions<BugAddCommentMutation, BugAddCommentMutationVariables>;
1642export const BugAddCommentAndCloseDocument = gql`
1643    mutation BugAddCommentAndClose($input: BugAddCommentAndCloseInput!) {
1644  bugAddCommentAndClose(input: $input) {
1645    bug {
1646      id
1647    }
1648  }
1649}
1650    `;
1651export type BugAddCommentAndCloseMutationFn = Apollo.MutationFunction<BugAddCommentAndCloseMutation, BugAddCommentAndCloseMutationVariables>;
1652
1653/**
1654 * __useBugAddCommentAndCloseMutation__
1655 *
1656 * To run a mutation, you first call `useBugAddCommentAndCloseMutation` within a React component and pass it any options that fit your needs.
1657 * When your component renders, `useBugAddCommentAndCloseMutation` returns a tuple that includes:
1658 * - A mutate function that you can call at any time to execute the mutation
1659 * - An object with fields that represent the current status of the mutation's execution
1660 *
1661 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1662 *
1663 * @example
1664 * const [bugAddCommentAndCloseMutation, { data, loading, error }] = useBugAddCommentAndCloseMutation({
1665 *   variables: {
1666 *      input: // value for 'input'
1667 *   },
1668 * });
1669 */
1670export function useBugAddCommentAndCloseMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<BugAddCommentAndCloseMutation, BugAddCommentAndCloseMutationVariables>) {
1671        const options = {...defaultOptions, ...baseOptions}
1672        return ApolloReactHooks.useMutation<BugAddCommentAndCloseMutation, BugAddCommentAndCloseMutationVariables>(BugAddCommentAndCloseDocument, options);
1673      }
1674export type BugAddCommentAndCloseMutationHookResult = ReturnType<typeof useBugAddCommentAndCloseMutation>;
1675export type BugAddCommentAndCloseMutationResult = Apollo.MutationResult<BugAddCommentAndCloseMutation>;
1676export type BugAddCommentAndCloseMutationOptions = Apollo.BaseMutationOptions<BugAddCommentAndCloseMutation, BugAddCommentAndCloseMutationVariables>;
1677export const BugAddCommentAndReopenDocument = gql`
1678    mutation BugAddCommentAndReopen($input: BugAddCommentAndReopenInput!) {
1679  bugAddCommentAndReopen(input: $input) {
1680    bug {
1681      id
1682    }
1683  }
1684}
1685    `;
1686export type BugAddCommentAndReopenMutationFn = Apollo.MutationFunction<BugAddCommentAndReopenMutation, BugAddCommentAndReopenMutationVariables>;
1687
1688/**
1689 * __useBugAddCommentAndReopenMutation__
1690 *
1691 * To run a mutation, you first call `useBugAddCommentAndReopenMutation` within a React component and pass it any options that fit your needs.
1692 * When your component renders, `useBugAddCommentAndReopenMutation` returns a tuple that includes:
1693 * - A mutate function that you can call at any time to execute the mutation
1694 * - An object with fields that represent the current status of the mutation's execution
1695 *
1696 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1697 *
1698 * @example
1699 * const [bugAddCommentAndReopenMutation, { data, loading, error }] = useBugAddCommentAndReopenMutation({
1700 *   variables: {
1701 *      input: // value for 'input'
1702 *   },
1703 * });
1704 */
1705export function useBugAddCommentAndReopenMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<BugAddCommentAndReopenMutation, BugAddCommentAndReopenMutationVariables>) {
1706        const options = {...defaultOptions, ...baseOptions}
1707        return ApolloReactHooks.useMutation<BugAddCommentAndReopenMutation, BugAddCommentAndReopenMutationVariables>(BugAddCommentAndReopenDocument, options);
1708      }
1709export type BugAddCommentAndReopenMutationHookResult = ReturnType<typeof useBugAddCommentAndReopenMutation>;
1710export type BugAddCommentAndReopenMutationResult = Apollo.MutationResult<BugAddCommentAndReopenMutation>;
1711export type BugAddCommentAndReopenMutationOptions = Apollo.BaseMutationOptions<BugAddCommentAndReopenMutation, BugAddCommentAndReopenMutationVariables>;
1712export const BugEditCommentDocument = gql`
1713    mutation BugEditComment($input: BugEditCommentInput!) {
1714  bugEditComment(input: $input) {
1715    bug {
1716      id
1717    }
1718  }
1719}
1720    `;
1721export type BugEditCommentMutationFn = Apollo.MutationFunction<BugEditCommentMutation, BugEditCommentMutationVariables>;
1722
1723/**
1724 * __useBugEditCommentMutation__
1725 *
1726 * To run a mutation, you first call `useBugEditCommentMutation` within a React component and pass it any options that fit your needs.
1727 * When your component renders, `useBugEditCommentMutation` returns a tuple that includes:
1728 * - A mutate function that you can call at any time to execute the mutation
1729 * - An object with fields that represent the current status of the mutation's execution
1730 *
1731 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1732 *
1733 * @example
1734 * const [bugEditCommentMutation, { data, loading, error }] = useBugEditCommentMutation({
1735 *   variables: {
1736 *      input: // value for 'input'
1737 *   },
1738 * });
1739 */
1740export function useBugEditCommentMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<BugEditCommentMutation, BugEditCommentMutationVariables>) {
1741        const options = {...defaultOptions, ...baseOptions}
1742        return ApolloReactHooks.useMutation<BugEditCommentMutation, BugEditCommentMutationVariables>(BugEditCommentDocument, options);
1743      }
1744export type BugEditCommentMutationHookResult = ReturnType<typeof useBugEditCommentMutation>;
1745export type BugEditCommentMutationResult = Apollo.MutationResult<BugEditCommentMutation>;
1746export type BugEditCommentMutationOptions = Apollo.BaseMutationOptions<BugEditCommentMutation, BugEditCommentMutationVariables>;
1747export const BugChangeLabelsDocument = gql`
1748    mutation BugChangeLabels($input: BugChangeLabelInput) {
1749  bugChangeLabels(input: $input) {
1750    bug {
1751      id
1752      labels {
1753        name
1754        color {
1755          R
1756          G
1757          B
1758        }
1759      }
1760    }
1761  }
1762}
1763    `;
1764export type BugChangeLabelsMutationFn = Apollo.MutationFunction<BugChangeLabelsMutation, BugChangeLabelsMutationVariables>;
1765
1766/**
1767 * __useBugChangeLabelsMutation__
1768 *
1769 * To run a mutation, you first call `useBugChangeLabelsMutation` within a React component and pass it any options that fit your needs.
1770 * When your component renders, `useBugChangeLabelsMutation` returns a tuple that includes:
1771 * - A mutate function that you can call at any time to execute the mutation
1772 * - An object with fields that represent the current status of the mutation's execution
1773 *
1774 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1775 *
1776 * @example
1777 * const [bugChangeLabelsMutation, { data, loading, error }] = useBugChangeLabelsMutation({
1778 *   variables: {
1779 *      input: // value for 'input'
1780 *   },
1781 * });
1782 */
1783export function useBugChangeLabelsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<BugChangeLabelsMutation, BugChangeLabelsMutationVariables>) {
1784        const options = {...defaultOptions, ...baseOptions}
1785        return ApolloReactHooks.useMutation<BugChangeLabelsMutation, BugChangeLabelsMutationVariables>(BugChangeLabelsDocument, options);
1786      }
1787export type BugChangeLabelsMutationHookResult = ReturnType<typeof useBugChangeLabelsMutation>;
1788export type BugChangeLabelsMutationResult = Apollo.MutationResult<BugChangeLabelsMutation>;
1789export type BugChangeLabelsMutationOptions = Apollo.BaseMutationOptions<BugChangeLabelsMutation, BugChangeLabelsMutationVariables>;
1790export const BugStatusOpenDocument = gql`
1791    mutation BugStatusOpen($input: BugStatusOpenInput!) {
1792  bugStatusOpen(input: $input) {
1793    bug {
1794      id
1795      status
1796    }
1797  }
1798}
1799    `;
1800export type BugStatusOpenMutationFn = Apollo.MutationFunction<BugStatusOpenMutation, BugStatusOpenMutationVariables>;
1801
1802/**
1803 * __useBugStatusOpenMutation__
1804 *
1805 * To run a mutation, you first call `useBugStatusOpenMutation` within a React component and pass it any options that fit your needs.
1806 * When your component renders, `useBugStatusOpenMutation` returns a tuple that includes:
1807 * - A mutate function that you can call at any time to execute the mutation
1808 * - An object with fields that represent the current status of the mutation's execution
1809 *
1810 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1811 *
1812 * @example
1813 * const [bugStatusOpenMutation, { data, loading, error }] = useBugStatusOpenMutation({
1814 *   variables: {
1815 *      input: // value for 'input'
1816 *   },
1817 * });
1818 */
1819export function useBugStatusOpenMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<BugStatusOpenMutation, BugStatusOpenMutationVariables>) {
1820        const options = {...defaultOptions, ...baseOptions}
1821        return ApolloReactHooks.useMutation<BugStatusOpenMutation, BugStatusOpenMutationVariables>(BugStatusOpenDocument, options);
1822      }
1823export type BugStatusOpenMutationHookResult = ReturnType<typeof useBugStatusOpenMutation>;
1824export type BugStatusOpenMutationResult = Apollo.MutationResult<BugStatusOpenMutation>;
1825export type BugStatusOpenMutationOptions = Apollo.BaseMutationOptions<BugStatusOpenMutation, BugStatusOpenMutationVariables>;
1826export const BugStatusCloseDocument = gql`
1827    mutation BugStatusClose($input: BugStatusCloseInput!) {
1828  bugStatusClose(input: $input) {
1829    bug {
1830      id
1831      status
1832    }
1833  }
1834}
1835    `;
1836export type BugStatusCloseMutationFn = Apollo.MutationFunction<BugStatusCloseMutation, BugStatusCloseMutationVariables>;
1837
1838/**
1839 * __useBugStatusCloseMutation__
1840 *
1841 * To run a mutation, you first call `useBugStatusCloseMutation` within a React component and pass it any options that fit your needs.
1842 * When your component renders, `useBugStatusCloseMutation` returns a tuple that includes:
1843 * - A mutate function that you can call at any time to execute the mutation
1844 * - An object with fields that represent the current status of the mutation's execution
1845 *
1846 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1847 *
1848 * @example
1849 * const [bugStatusCloseMutation, { data, loading, error }] = useBugStatusCloseMutation({
1850 *   variables: {
1851 *      input: // value for 'input'
1852 *   },
1853 * });
1854 */
1855export function useBugStatusCloseMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<BugStatusCloseMutation, BugStatusCloseMutationVariables>) {
1856        const options = {...defaultOptions, ...baseOptions}
1857        return ApolloReactHooks.useMutation<BugStatusCloseMutation, BugStatusCloseMutationVariables>(BugStatusCloseDocument, options);
1858      }
1859export type BugStatusCloseMutationHookResult = ReturnType<typeof useBugStatusCloseMutation>;
1860export type BugStatusCloseMutationResult = Apollo.MutationResult<BugStatusCloseMutation>;
1861export type BugStatusCloseMutationOptions = Apollo.BaseMutationOptions<BugStatusCloseMutation, BugStatusCloseMutationVariables>;
1862export const BugSetTitleDocument = gql`
1863    mutation BugSetTitle($input: BugSetTitleInput!) {
1864  bugSetTitle(input: $input) {
1865    bug {
1866      id
1867      title
1868    }
1869  }
1870}
1871    `;
1872export type BugSetTitleMutationFn = Apollo.MutationFunction<BugSetTitleMutation, BugSetTitleMutationVariables>;
1873
1874/**
1875 * __useBugSetTitleMutation__
1876 *
1877 * To run a mutation, you first call `useBugSetTitleMutation` within a React component and pass it any options that fit your needs.
1878 * When your component renders, `useBugSetTitleMutation` returns a tuple that includes:
1879 * - A mutate function that you can call at any time to execute the mutation
1880 * - An object with fields that represent the current status of the mutation's execution
1881 *
1882 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1883 *
1884 * @example
1885 * const [bugSetTitleMutation, { data, loading, error }] = useBugSetTitleMutation({
1886 *   variables: {
1887 *      input: // value for 'input'
1888 *   },
1889 * });
1890 */
1891export function useBugSetTitleMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<BugSetTitleMutation, BugSetTitleMutationVariables>) {
1892        const options = {...defaultOptions, ...baseOptions}
1893        return ApolloReactHooks.useMutation<BugSetTitleMutation, BugSetTitleMutationVariables>(BugSetTitleDocument, options);
1894      }
1895export type BugSetTitleMutationHookResult = ReturnType<typeof useBugSetTitleMutation>;
1896export type BugSetTitleMutationResult = Apollo.MutationResult<BugSetTitleMutation>;
1897export type BugSetTitleMutationOptions = Apollo.BaseMutationOptions<BugSetTitleMutation, BugSetTitleMutationVariables>;
1898export const RepositoriesDocument = gql`
1899    query Repositories {
1900  repositories {
1901    nodes {
1902      name
1903    }
1904    totalCount
1905  }
1906}
1907    `;
1908
1909/**
1910 * __useRepositoriesQuery__
1911 *
1912 * To run a query within a React component, call `useRepositoriesQuery` and pass it any options that fit your needs.
1913 * When your component renders, `useRepositoriesQuery` returns an object from Apollo Client that contains loading, error, and data properties
1914 * you can use to render your UI.
1915 *
1916 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1917 *
1918 * @example
1919 * const { data, loading, error } = useRepositoriesQuery({
1920 *   variables: {
1921 *   },
1922 * });
1923 */
1924export function useRepositoriesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<RepositoriesQuery, RepositoriesQueryVariables>) {
1925        const options = {...defaultOptions, ...baseOptions}
1926        return ApolloReactHooks.useQuery<RepositoriesQuery, RepositoriesQueryVariables>(RepositoriesDocument, options);
1927      }
1928export function useRepositoriesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<RepositoriesQuery, RepositoriesQueryVariables>) {
1929          const options = {...defaultOptions, ...baseOptions}
1930          return ApolloReactHooks.useLazyQuery<RepositoriesQuery, RepositoriesQueryVariables>(RepositoriesDocument, options);
1931        }
1932// @ts-ignore
1933export function useRepositoriesSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<RepositoriesQuery, RepositoriesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<RepositoriesQuery, RepositoriesQueryVariables>;
1934export function useRepositoriesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<RepositoriesQuery, RepositoriesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<RepositoriesQuery | undefined, RepositoriesQueryVariables>;
1935export function useRepositoriesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<RepositoriesQuery, RepositoriesQueryVariables>) {
1936          const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}
1937          return ApolloReactHooks.useSuspenseQuery<RepositoriesQuery, RepositoriesQueryVariables>(RepositoriesDocument, options);
1938        }
1939export type RepositoriesQueryHookResult = ReturnType<typeof useRepositoriesQuery>;
1940export type RepositoriesLazyQueryHookResult = ReturnType<typeof useRepositoriesLazyQuery>;
1941export type RepositoriesSuspenseQueryHookResult = ReturnType<typeof useRepositoriesSuspenseQuery>;
1942export type RepositoriesQueryResult = Apollo.QueryResult<RepositoriesQuery, RepositoriesQueryVariables>;
1943export const ServerConfigDocument = gql`
1944    query ServerConfig {
1945  serverConfig {
1946    authMode
1947    loginProviders
1948  }
1949}
1950    `;
1951
1952/**
1953 * __useServerConfigQuery__
1954 *
1955 * To run a query within a React component, call `useServerConfigQuery` and pass it any options that fit your needs.
1956 * When your component renders, `useServerConfigQuery` returns an object from Apollo Client that contains loading, error, and data properties
1957 * you can use to render your UI.
1958 *
1959 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1960 *
1961 * @example
1962 * const { data, loading, error } = useServerConfigQuery({
1963 *   variables: {
1964 *   },
1965 * });
1966 */
1967export function useServerConfigQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<ServerConfigQuery, ServerConfigQueryVariables>) {
1968        const options = {...defaultOptions, ...baseOptions}
1969        return ApolloReactHooks.useQuery<ServerConfigQuery, ServerConfigQueryVariables>(ServerConfigDocument, options);
1970      }
1971export function useServerConfigLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<ServerConfigQuery, ServerConfigQueryVariables>) {
1972          const options = {...defaultOptions, ...baseOptions}
1973          return ApolloReactHooks.useLazyQuery<ServerConfigQuery, ServerConfigQueryVariables>(ServerConfigDocument, options);
1974        }
1975// @ts-ignore
1976export function useServerConfigSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<ServerConfigQuery, ServerConfigQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<ServerConfigQuery, ServerConfigQueryVariables>;
1977export function useServerConfigSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<ServerConfigQuery, ServerConfigQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<ServerConfigQuery | undefined, ServerConfigQueryVariables>;
1978export function useServerConfigSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<ServerConfigQuery, ServerConfigQueryVariables>) {
1979          const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}
1980          return ApolloReactHooks.useSuspenseQuery<ServerConfigQuery, ServerConfigQueryVariables>(ServerConfigDocument, options);
1981        }
1982export type ServerConfigQueryHookResult = ReturnType<typeof useServerConfigQuery>;
1983export type ServerConfigLazyQueryHookResult = ReturnType<typeof useServerConfigLazyQuery>;
1984export type ServerConfigSuspenseQueryHookResult = ReturnType<typeof useServerConfigSuspenseQuery>;
1985export type ServerConfigQueryResult = Apollo.QueryResult<ServerConfigQuery, ServerConfigQueryVariables>;
1986export const UserProfileDocument = gql`
1987    query UserProfile($ref: String, $prefix: String!, $openQuery: String!, $closedQuery: String!, $listQuery: String!, $after: String) {
1988  repository(ref: $ref) {
1989    identity(prefix: $prefix) {
1990      id
1991      humanId
1992      name
1993      email
1994      login
1995      displayName
1996      avatarUrl
1997      isProtected
1998    }
1999    openCount: allBugs(query: $openQuery, first: 1) {
2000      totalCount
2001    }
2002    closedCount: allBugs(query: $closedQuery, first: 1) {
2003      totalCount
2004    }
2005    bugs: allBugs(query: $listQuery, first: 25, after: $after) {
2006      totalCount
2007      pageInfo {
2008        hasNextPage
2009        endCursor
2010      }
2011      nodes {
2012        id
2013        humanId
2014        status
2015        title
2016        labels {
2017          name
2018          color {
2019            R
2020            G
2021            B
2022          }
2023        }
2024        createdAt
2025        comments {
2026          totalCount
2027        }
2028      }
2029    }
2030  }
2031}
2032    `;
2033
2034/**
2035 * __useUserProfileQuery__
2036 *
2037 * To run a query within a React component, call `useUserProfileQuery` and pass it any options that fit your needs.
2038 * When your component renders, `useUserProfileQuery` returns an object from Apollo Client that contains loading, error, and data properties
2039 * you can use to render your UI.
2040 *
2041 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
2042 *
2043 * @example
2044 * const { data, loading, error } = useUserProfileQuery({
2045 *   variables: {
2046 *      ref: // value for 'ref'
2047 *      prefix: // value for 'prefix'
2048 *      openQuery: // value for 'openQuery'
2049 *      closedQuery: // value for 'closedQuery'
2050 *      listQuery: // value for 'listQuery'
2051 *      after: // value for 'after'
2052 *   },
2053 * });
2054 */
2055export function useUserProfileQuery(baseOptions: ApolloReactHooks.QueryHookOptions<UserProfileQuery, UserProfileQueryVariables> & ({ variables: UserProfileQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {
2056        const options = {...defaultOptions, ...baseOptions}
2057        return ApolloReactHooks.useQuery<UserProfileQuery, UserProfileQueryVariables>(UserProfileDocument, options);
2058      }
2059export function useUserProfileLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<UserProfileQuery, UserProfileQueryVariables>) {
2060          const options = {...defaultOptions, ...baseOptions}
2061          return ApolloReactHooks.useLazyQuery<UserProfileQuery, UserProfileQueryVariables>(UserProfileDocument, options);
2062        }
2063// @ts-ignore
2064export function useUserProfileSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<UserProfileQuery, UserProfileQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<UserProfileQuery, UserProfileQueryVariables>;
2065export function useUserProfileSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<UserProfileQuery, UserProfileQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<UserProfileQuery | undefined, UserProfileQueryVariables>;
2066export function useUserProfileSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<UserProfileQuery, UserProfileQueryVariables>) {
2067          const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}
2068          return ApolloReactHooks.useSuspenseQuery<UserProfileQuery, UserProfileQueryVariables>(UserProfileDocument, options);
2069        }
2070export type UserProfileQueryHookResult = ReturnType<typeof useUserProfileQuery>;
2071export type UserProfileLazyQueryHookResult = ReturnType<typeof useUserProfileLazyQuery>;
2072export type UserProfileSuspenseQueryHookResult = ReturnType<typeof useUserProfileSuspenseQuery>;
2073export type UserProfileQueryResult = Apollo.QueryResult<UserProfileQuery, UserProfileQueryVariables>;
2074export const ValidLabelsDocument = gql`
2075    query ValidLabels($ref: String) {
2076  repository(ref: $ref) {
2077    validLabels {
2078      nodes {
2079        name
2080        color {
2081          R
2082          G
2083          B
2084        }
2085      }
2086    }
2087  }
2088}
2089    `;
2090
2091/**
2092 * __useValidLabelsQuery__
2093 *
2094 * To run a query within a React component, call `useValidLabelsQuery` and pass it any options that fit your needs.
2095 * When your component renders, `useValidLabelsQuery` returns an object from Apollo Client that contains loading, error, and data properties
2096 * you can use to render your UI.
2097 *
2098 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
2099 *
2100 * @example
2101 * const { data, loading, error } = useValidLabelsQuery({
2102 *   variables: {
2103 *      ref: // value for 'ref'
2104 *   },
2105 * });
2106 */
2107export function useValidLabelsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<ValidLabelsQuery, ValidLabelsQueryVariables>) {
2108        const options = {...defaultOptions, ...baseOptions}
2109        return ApolloReactHooks.useQuery<ValidLabelsQuery, ValidLabelsQueryVariables>(ValidLabelsDocument, options);
2110      }
2111export function useValidLabelsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<ValidLabelsQuery, ValidLabelsQueryVariables>) {
2112          const options = {...defaultOptions, ...baseOptions}
2113          return ApolloReactHooks.useLazyQuery<ValidLabelsQuery, ValidLabelsQueryVariables>(ValidLabelsDocument, options);
2114        }
2115// @ts-ignore
2116export function useValidLabelsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<ValidLabelsQuery, ValidLabelsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<ValidLabelsQuery, ValidLabelsQueryVariables>;
2117export function useValidLabelsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<ValidLabelsQuery, ValidLabelsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<ValidLabelsQuery | undefined, ValidLabelsQueryVariables>;
2118export function useValidLabelsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<ValidLabelsQuery, ValidLabelsQueryVariables>) {
2119          const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}
2120          return ApolloReactHooks.useSuspenseQuery<ValidLabelsQuery, ValidLabelsQueryVariables>(ValidLabelsDocument, options);
2121        }
2122export type ValidLabelsQueryHookResult = ReturnType<typeof useValidLabelsQuery>;
2123export type ValidLabelsLazyQueryHookResult = ReturnType<typeof useValidLabelsLazyQuery>;
2124export type ValidLabelsSuspenseQueryHookResult = ReturnType<typeof useValidLabelsSuspenseQuery>;
2125export type ValidLabelsQueryResult = Apollo.QueryResult<ValidLabelsQuery, ValidLabelsQueryVariables>;