gitlab_schema.graphql 153 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
"""
Autogenerated input type of AddAwardEmoji
"""
input AddAwardEmojiInput {
  """
  The global id of the awardable resource
  """
  awardableId: ID!

  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The emoji name
  """
  name: String!
}

"""
Autogenerated return type of AddAwardEmoji
"""
type AddAwardEmojiPayload {
  """
  The award emoji after mutation
  """
  awardEmoji: AwardEmoji

  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!
}

41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
"""
Autogenerated input type of AdminSidekiqQueuesDeleteJobs
"""
input AdminSidekiqQueuesDeleteJobsInput {
  """
  Delete jobs matching caller_id in the context metadata
  """
  callerId: String

  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Delete jobs matching project in the context metadata
  """
  project: String

  """
  The name of the queue to delete jobs from
  """
  queueName: String!

65 66 67 68 69
  """
  Delete jobs matching related_class in the context metadata
  """
  relatedClass: String

70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
  """
  Delete jobs matching root_namespace in the context metadata
  """
  rootNamespace: String

  """
  Delete jobs matching subscription_plan in the context metadata
  """
  subscriptionPlan: String

  """
  Delete jobs matching user in the context metadata
  """
  user: String
}

"""
Autogenerated return type of AdminSidekiqQueuesDeleteJobs
"""
type AdminSidekiqQueuesDeleteJobsPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  Information about the status of the deletion request
  """
  result: DeleteJobsResponse
}

106 107 108
"""
An emoji awarded by a user.
"""
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
type AwardEmoji {
  """
  The emoji description
  """
  description: String!

  """
  The emoji as an icon
  """
  emoji: String!

  """
  The emoji name
  """
  name: String!

  """
  The emoji in unicode
  """
  unicode: String!

  """
  The unicode version for this emoji
  """
  unicodeVersion: String!

  """
  The user who awarded the emoji
  """
  user: User!
}

141 142 143 144 145 146 147 148 149 150 151 152
type BaseService implements Service {
  """
  Indicates if the service is active
  """
  active: Boolean

  """
  Class name of the service
  """
  type: String
}

153
type Blob implements Entry {
154 155 156
  """
  Flat path of the entry
  """
157
  flatPath: String!
158 159 160 161

  """
  ID of the entry
  """
162
  id: ID!
163 164 165 166

  """
  LFS ID of the blob
  """
167
  lfsOid: String
168 169 170 171

  """
  Name of the entry
  """
172
  name: String!
173 174 175 176

  """
  Path of the entry
  """
177
  path: String!
178 179

  """
180
  Last commit sha for the entry
181 182
  """
  sha: String!
183 184 185 186

  """
  Type of tree entry
  """
187
  type: EntryType!
188 189 190 191

  """
  Web URL of the blob
  """
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
  webUrl: String
}

"""
The connection type for Blob.
"""
type BlobConnection {
  """
  A list of edges.
  """
  edges: [BlobEdge]

  """
  A list of nodes.
  """
  nodes: [Blob]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type BlobEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Blob
}

230 231 232 233 234 235 236 237 238
"""
Types of blob viewers
"""
enum BlobViewersType {
  auxiliary
  rich
  simple
}

239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293
"""
Represents a project or group board
"""
type Board {
  """
  ID (global ID) of the board
  """
  id: ID!

  """
  Name of the board
  """
  name: String

  """
  Weight of the board
  """
  weight: Int
}

"""
The connection type for Board.
"""
type BoardConnection {
  """
  A list of edges.
  """
  edges: [BoardEdge]

  """
  A list of nodes.
  """
  nodes: [Board]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type BoardEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Board
}

294
type Commit {
295 296 297
  """
  Author of the commit
  """
298
  author: User
299

300 301 302 303 304
  """
  Commit authors gravatar
  """
  authorGravatar: String

305 306 307 308 309
  """
  Commit authors name
  """
  authorName: String

310 311 312
  """
  Timestamp of when the commit was authored
  """
313
  authoredDate: Time
314 315 316 317

  """
  Description of the commit message
  """
318
  description: String
319 320 321 322

  """
  ID (global ID) of the commit
  """
323 324 325
  id: ID!

  """
326
  Latest pipeline of the commit. Deprecated in 12.5: Use `pipelines`
327
  """
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342
  latestPipeline(
    """
    Filter pipelines by the ref they are run for
    """
    ref: String

    """
    Filter pipelines by the sha of the commit they are run for
    """
    sha: String

    """
    Filter pipelines by their status
    """
    status: PipelineStatusEnum
343
  ): Pipeline @deprecated(reason: "Use `pipelines`. Deprecated in 12.5")
344 345 346 347

  """
  Raw commit message
  """
348
  message: String
349

350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389
  """
  Pipelines of the commit ordered latest first
  """
  pipelines(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    Filter pipelines by the ref they are run for
    """
    ref: String

    """
    Filter pipelines by the sha of the commit they are run for
    """
    sha: String

    """
    Filter pipelines by their status
    """
    status: PipelineStatusEnum
  ): PipelineConnection

390 391 392
  """
  SHA1 ID of the commit
  """
393 394 395
  sha: String!

  """
396
  Rendered HTML of the commit signature
397 398
  """
  signatureHtml: String
399 400 401 402

  """
  Title of the commit message
  """
403
  title: String
404 405 406 407

  """
  Web URL of the commit
  """
408 409 410 411 412 413 414 415
  webUrl: String!
}

"""
Autogenerated input type of CreateDiffNote
"""
input CreateDiffNoteInput {
  """
416
  Content of the note
417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455
  """
  body: String!

  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The global id of the resource to add a note to
  """
  noteableId: ID!

  """
  The position of this note on a diff
  """
  position: DiffPositionInput!
}

"""
Autogenerated return type of CreateDiffNote
"""
type CreateDiffNotePayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The note after mutation
  """
  note: Note
}

456 457 458 459
"""
Autogenerated input type of CreateEpic
"""
input CreateEpicInput {
460 461 462 463 464
  """
  The IDs of labels to be added to the epic.
  """
  addLabelIds: [ID!]

465 466 467 468 469
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

470 471 472 473 474
  """
  Indicates if the epic is confidential. Will be ignored if `confidential_epics` feature flag is disabled
  """
  confidential: Boolean

475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494
  """
  The description of the epic
  """
  description: String

  """
  The end date of the epic
  """
  dueDateFixed: String

  """
  Indicates end date should be sourced from due_date_fixed field not the issue milestones
  """
  dueDateIsFixed: Boolean

  """
  The group the epic to mutate is in
  """
  groupPath: ID!

495 496 497 498 499
  """
  The IDs of labels to be removed from the epic.
  """
  removeLabelIds: [ID!]

500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535
  """
  The start date of the epic
  """
  startDateFixed: String

  """
  Indicates start date should be sourced from start_date_fixed field not the issue milestones
  """
  startDateIsFixed: Boolean

  """
  The title of the epic
  """
  title: String
}

"""
Autogenerated return type of CreateEpic
"""
type CreateEpicPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The created epic
  """
  epic: Epic

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!
}

536 537 538 539 540
"""
Autogenerated input type of CreateImageDiffNote
"""
input CreateImageDiffNoteInput {
  """
541
  Content of the note
542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585
  """
  body: String!

  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The global id of the resource to add a note to
  """
  noteableId: ID!

  """
  The position of this note on a diff
  """
  position: DiffImagePositionInput!
}

"""
Autogenerated return type of CreateImageDiffNote
"""
type CreateImageDiffNotePayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The note after mutation
  """
  note: Note
}

"""
Autogenerated input type of CreateNote
"""
input CreateNoteInput {
  """
586
  Content of the note
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625
  """
  body: String!

  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The global id of the discussion this note is in reply to
  """
  discussionId: ID

  """
  The global id of the resource to add a note to
  """
  noteableId: ID!
}

"""
Autogenerated return type of CreateNote
"""
type CreateNotePayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The note after mutation
  """
  note: Note
}

Jan Provaznik's avatar
Jan Provaznik committed
626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665
"""
Autogenerated input type of CreateRequirement
"""
input CreateRequirementInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The project full path the requirement is associated with
  """
  projectPath: ID!

  """
  Title of the requirement
  """
  title: String!
}

"""
Autogenerated return type of CreateRequirement
"""
type CreateRequirementPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The requirement after mutation
  """
  requirement: Requirement
}

666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725
"""
Autogenerated input type of CreateSnippet
"""
input CreateSnippetInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Content of the snippet
  """
  content: String!

  """
  Description of the snippet
  """
  description: String

  """
  File name of the snippet
  """
  fileName: String

  """
  The project full path the snippet is associated with
  """
  projectPath: ID

  """
  Title of the snippet
  """
  title: String!

  """
  The visibility level of the snippet
  """
  visibilityLevel: VisibilityLevelsEnum!
}

"""
Autogenerated return type of CreateSnippet
"""
type CreateSnippetPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The snippet after mutation
  """
  snippet: Snippet
}

726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745
"""
The response from the AdminSidekiqQueuesDeleteJobs mutation.
"""
type DeleteJobsResponse {
  """
  Whether or not the entire queue was processed in time; if not, retrying the same request is safe
  """
  completed: Boolean

  """
  The number of matching jobs deleted
  """
  deletedJobs: Int

  """
  The queue size after processing
  """
  queueSize: Int
}

746 747 748
"""
A single design
"""
749
type Design implements DesignFields & Noteable {
750
  """
751
  The diff refs for this design
752
  """
753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780
  diffRefs: DiffRefs!

  """
  All discussions on this noteable
  """
  discussions(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): DiscussionConnection!

  """
781
  How this design was changed in the current version
782 783
  """
  event: DesignVersionEvent!
784 785

  """
786
  The filename of the design
787
  """
788
  filename: String!
789 790

  """
791
  The full path to the design file
792
  """
793
  fullPath: String!
794 795

  """
796
  The ID of this design
797
  """
798
  id: ID!
799 800

  """
801
  The URL of the full-sized image
802
  """
803
  image: String!
804

805 806 807 808 809
  """
  The URL of the design resized to fit within the bounds of 432x230. This will be `null` if the image has not been generated
  """
  imageV432x230: String

810
  """
811
  The issue the design belongs to
812
  """
813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840
  issue: Issue!

  """
  All notes on this noteable
  """
  notes(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): NoteConnection!

  """
841
  The total count of user-created notes for this design
842 843
  """
  notesCount: Int!
844 845

  """
846
  The project the design belongs to
847
  """
848 849 850
  project: Project!

  """
851
  All versions related to this design ordered newest first
852 853 854 855 856 857 858 859 860 861 862 863
  """
  versions(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

864 865 866 867 868 869 870 871 872 873
    """
    The Global ID of the most recent acceptable version
    """
    earlierOrEqualToId: ID

    """
    The SHA256 of the most recent acceptable version
    """
    earlierOrEqualToSha: String

874 875 876 877 878 879 880 881 882 883 884 885
    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): DesignVersionConnection!
}

886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920
"""
A design pinned to a specific version. The image field reflects the design as of the associated version.
"""
type DesignAtVersion implements DesignFields {
  """
  The underlying design.
  """
  design: Design!

  """
  The diff refs for this design
  """
  diffRefs: DiffRefs!

  """
  How this design was changed in the current version
  """
  event: DesignVersionEvent!

  """
  The filename of the design
  """
  filename: String!

  """
  The full path to the design file
  """
  fullPath: String!

  """
  The ID of this design
  """
  id: ID!

  """
921
  The URL of the full-sized image
922 923 924
  """
  image: String!

925 926 927 928 929
  """
  The URL of the design resized to fit within the bounds of 432x230. This will be `null` if the image has not been generated
  """
  imageV432x230: String

930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985
  """
  The issue the design belongs to
  """
  issue: Issue!

  """
  The total count of user-created notes for this design
  """
  notesCount: Int!

  """
  The project the design belongs to
  """
  project: Project!

  """
  The version this design-at-versions is pinned to
  """
  version: DesignVersion!
}

"""
The connection type for DesignAtVersion.
"""
type DesignAtVersionConnection {
  """
  A list of edges.
  """
  edges: [DesignAtVersionEdge]

  """
  A list of nodes.
  """
  nodes: [DesignAtVersion]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type DesignAtVersionEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: DesignAtVersion
}

986 987 988
"""
A collection of designs.
"""
989
type DesignCollection {
990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014
  """
  Find a specific design
  """
  design(
    """
    Find a design by its filename
    """
    filename: String

    """
    Find a design by its ID
    """
    id: ID
  ): Design

  """
  Find a design as of a version
  """
  designAtVersion(
    """
    The Global ID of the design at this version
    """
    id: ID!
  ): DesignAtVersion

1015
  """
1016
  All designs for the design collection
1017 1018 1019 1020 1021 1022 1023 1024 1025
  """
  designs(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Filters designs to only those that existed at the version. If argument is
1026
    omitted or nil then all designs will reflect the latest version
1027 1028 1029 1030 1031 1032 1033 1034
    """
    atVersion: ID

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

1035 1036 1037 1038 1039
    """
    Filters designs by their filename
    """
    filenames: [String!]

1040 1041 1042 1043 1044
    """
    Returns the first _n_ elements from the list.
    """
    first: Int

1045
    """
1046
    Filters designs by their ID
1047 1048 1049
    """
    ids: [ID!]

1050 1051 1052 1053 1054
    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): DesignConnection!
1055 1056 1057 1058

  """
  Issue associated with the design collection
  """
1059
  issue: Issue!
1060 1061 1062 1063

  """
  Project associated with the design collection
  """
1064 1065
  project: Project!

1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080
  """
  A specific version
  """
  version(
    """
    The Global ID of the version
    """
    id: ID

    """
    The SHA256 of a specific version
    """
    sha: String
  ): DesignVersion

1081
  """
1082
  All versions related to all designs, ordered newest first
1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094
  """
  versions(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

1095 1096 1097 1098 1099 1100 1101 1102 1103 1104
    """
    The Global ID of the most recent acceptable version
    """
    earlierOrEqualToId: ID

    """
    The SHA256 of the most recent acceptable version
    """
    earlierOrEqualToSha: String

1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151
    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): DesignVersionConnection!
}

"""
The connection type for Design.
"""
type DesignConnection {
  """
  A list of edges.
  """
  edges: [DesignEdge]

  """
  A list of nodes.
  """
  nodes: [Design]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type DesignEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Design
}

1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178
interface DesignFields {
  """
  The diff refs for this design
  """
  diffRefs: DiffRefs!

  """
  How this design was changed in the current version
  """
  event: DesignVersionEvent!

  """
  The filename of the design
  """
  filename: String!

  """
  The full path to the design file
  """
  fullPath: String!

  """
  The ID of this design
  """
  id: ID!

  """
1179
  The URL of the full-sized image
1180 1181 1182
  """
  image: String!

1183 1184 1185 1186 1187
  """
  The URL of the design resized to fit within the bounds of 432x230. This will be `null` if the image has not been generated
  """
  imageV432x230: String

1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203
  """
  The issue the design belongs to
  """
  issue: Issue!

  """
  The total count of user-created notes for this design
  """
  notesCount: Int!

  """
  The project the design belongs to
  """
  project: Project!
}

1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225
type DesignManagement {
  """
  Find a design as of a version
  """
  designAtVersion(
    """
    The Global ID of the design at this version
    """
    id: ID!
  ): DesignAtVersion

  """
  Find a version
  """
  version(
    """
    The Global ID of the version
    """
    id: ID!
  ): DesignVersion
}

1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320
"""
Autogenerated input type of DesignManagementDelete
"""
input DesignManagementDeleteInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The filenames of the designs to delete
  """
  filenames: [String!]!

  """
  The iid of the issue to modify designs for
  """
  iid: ID!

  """
  The project where the issue is to upload designs for
  """
  projectPath: ID!
}

"""
Autogenerated return type of DesignManagementDelete
"""
type DesignManagementDeletePayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The new version in which the designs are deleted
  """
  version: DesignVersion
}

"""
Autogenerated input type of DesignManagementUpload
"""
input DesignManagementUploadInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The files to upload
  """
  files: [Upload!]!

  """
  The iid of the issue to modify designs for
  """
  iid: ID!

  """
  The project where the issue is to upload designs for
  """
  projectPath: ID!
}

"""
Autogenerated return type of DesignManagementUpload
"""
type DesignManagementUploadPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The designs that were uploaded by the mutation
  """
  designs: [Design!]!

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  Any designs that were skipped from the upload due to there being no change to their content since their last version
  """
  skippedDesigns: [Design!]!
}

1321 1322 1323
"""
A specific version in which designs were added, modified or deleted
"""
1324
type DesignVersion {
1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344
  """
  A particular design as of this version, provided it is visible at this version
  """
  designAtVersion(
    """
    The ID of a specific design
    """
    designId: ID

    """
    The filename of a specific design
    """
    filename: String

    """
    The ID of the DesignAtVersion
    """
    id: ID
  ): DesignAtVersion!

1345
  """
1346
  All designs that were changed in the version
1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368
  """
  designs(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): DesignConnection!
1369

1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404
  """
  All designs that are visible at this version, as of this version
  """
  designsAtVersion(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Filters designs by their filename
    """
    filenames: [String!]

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Filters designs by their ID
    """
    ids: [ID!]

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): DesignAtVersionConnection!

1405 1406 1407
  """
  ID of the design version
  """
1408
  id: ID!
1409 1410 1411 1412

  """
  SHA of the design version
  """
1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451
  sha: ID!
}

"""
The connection type for DesignVersion.
"""
type DesignVersionConnection {
  """
  A list of edges.
  """
  edges: [DesignVersionEdge]

  """
  A list of nodes.
  """
  nodes: [DesignVersion]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type DesignVersionEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: DesignVersion
}

"""
1452
Mutation event of a design within a version
1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510
"""
enum DesignVersionEvent {
  """
  A creation event
  """
  CREATION

  """
  A deletion event
  """
  DELETION

  """
  A modification event
  """
  MODIFICATION

  """
  No change
  """
  NONE
}

"""
Autogenerated input type of DestroyNote
"""
input DestroyNoteInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The global id of the note to destroy
  """
  id: ID!
}

"""
Autogenerated return type of DestroyNote
"""
type DestroyNotePayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The note after mutation
  """
  note: Note
}

1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545
"""
Autogenerated input type of DestroySnippet
"""
input DestroySnippetInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The global id of the snippet to destroy
  """
  id: ID!
}

"""
Autogenerated return type of DestroySnippet
"""
type DestroySnippetPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The snippet after mutation
  """
  snippet: Snippet
}

1546
type DetailedStatus {
1547 1548 1549
  """
  Path of the details for the pipeline status
  """
1550
  detailsPath: String!
1551 1552 1553 1554

  """
  Favicon of the pipeline status
  """
1555
  favicon: String!
1556 1557 1558 1559

  """
  Group of the pipeline status
  """
1560
  group: String!
1561 1562 1563 1564

  """
  Indicates if the pipeline status has further details
  """
1565
  hasDetails: Boolean!
1566 1567 1568 1569

  """
  Icon of the pipeline status
  """
1570
  icon: String!
1571 1572 1573 1574

  """
  Label of the pipeline status
  """
1575
  label: String!
1576 1577 1578 1579

  """
  Text of the pipeline status
  """
1580
  text: String!
1581 1582 1583 1584

  """
  Tooltip associated with the pipeline status
  """
1585 1586 1587 1588 1589
  tooltip: String!
}

input DiffImagePositionInput {
  """
1590
  Merge base of the branch the comment was made on
1591 1592 1593 1594
  """
  baseSha: String

  """
1595
  SHA of the HEAD at the time the comment was made
1596 1597 1598 1599
  """
  headSha: String!

  """
1600
  Total height of the image
1601 1602 1603 1604 1605 1606 1607 1608 1609 1610
  """
  height: Int!

  """
  The paths of the file that was changed. Both of the properties of this input
  are optional, but at least one of them is required
  """
  paths: DiffPathsInput!

  """
1611
  SHA of the branch being compared against
1612 1613 1614 1615
  """
  startSha: String!

  """
1616
  Total width of the image
1617 1618 1619 1620
  """
  width: Int!

  """
1621
  X position of the note
1622 1623 1624 1625
  """
  x: Int!

  """
1626
  Y position of the note
1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643
  """
  y: Int!
}

input DiffPathsInput {
  """
  The path of the file on the head sha
  """
  newPath: String

  """
  The path of the file on the start sha
  """
  oldPath: String
}

type DiffPosition {
1644 1645 1646
  """
  Information about the branch, HEAD, and base at the time of commenting
  """
1647 1648 1649
  diffRefs: DiffRefs!

  """
1650
  Path of the file that was changed
1651 1652 1653 1654
  """
  filePath: String!

  """
1655
  Total height of the image
1656 1657 1658 1659
  """
  height: Int

  """
1660
  Line on HEAD SHA that was changed
1661 1662 1663 1664
  """
  newLine: Int

  """
1665
  Path of the file on the HEAD SHA
1666 1667 1668 1669
  """
  newPath: String

  """
1670
  Line on start SHA that was changed
1671 1672 1673 1674
  """
  oldLine: Int

  """
1675
  Path of the file on the start SHA
1676 1677
  """
  oldPath: String
1678 1679 1680 1681

  """
  Type of file the position refers to
  """
1682 1683 1684
  positionType: DiffPositionType!

  """
1685
  Total width of the image
1686 1687 1688 1689
  """
  width: Int

  """
1690
  X position of the note
1691 1692 1693 1694
  """
  x: Int

  """
1695
  Y position of the note
1696 1697 1698 1699 1700 1701
  """
  y: Int
}

input DiffPositionInput {
  """
1702
  Merge base of the branch the comment was made on
1703 1704 1705 1706
  """
  baseSha: String

  """
1707
  SHA of the HEAD at the time the comment was made
1708 1709 1710 1711
  """
  headSha: String!

  """
1712
  Line on HEAD SHA that was changed
1713 1714 1715 1716
  """
  newLine: Int!

  """
1717
  Line on start SHA that was changed
1718 1719 1720 1721 1722 1723 1724 1725 1726 1727
  """
  oldLine: Int

  """
  The paths of the file that was changed. Both of the properties of this input
  are optional, but at least one of them is required
  """
  paths: DiffPathsInput!

  """
1728
  SHA of the branch being compared against
1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742
  """
  startSha: String!
}

"""
Type of file the position refers to
"""
enum DiffPositionType {
  image
  text
}

type DiffRefs {
  """
1743
  Merge base of the branch the comment was made on
1744
  """
1745
  baseSha: String
1746 1747

  """
1748
  SHA of the HEAD at the time the comment was made
1749 1750 1751 1752
  """
  headSha: String!

  """
1753
  SHA of the branch being compared against
1754 1755 1756 1757 1758
  """
  startSha: String!
}

type Discussion {
1759 1760 1761
  """
  Timestamp of the discussion's creation
  """
1762
  createdAt: Time!
1763 1764 1765 1766

  """
  ID of this discussion
  """
1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794
  id: ID!

  """
  All notes in the discussion
  """
  notes(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): NoteConnection!

  """
1795
  ID used to reply to this discussion
1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835
  """
  replyId: ID!
}

"""
The connection type for Discussion.
"""
type DiscussionConnection {
  """
  A list of edges.
  """
  edges: [DiscussionEdge]

  """
  A list of nodes.
  """
  nodes: [Discussion]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type DiscussionEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Discussion
}

interface Entry {
1836 1837 1838
  """
  Flat path of the entry
  """
1839
  flatPath: String!
1840 1841 1842 1843

  """
  ID of the entry
  """
1844
  id: ID!
1845 1846 1847 1848

  """
  Name of the entry
  """
1849
  name: String!
1850 1851 1852 1853

  """
  Path of the entry
  """
1854
  path: String!
1855 1856

  """
1857
  Last commit sha for the entry
1858 1859
  """
  sha: String!
1860 1861 1862 1863

  """
  Type of tree entry
  """
1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875
  type: EntryType!
}

"""
Type of a tree entry
"""
enum EntryType {
  blob
  commit
  tree
}

1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888
"""
Describes where code is deployed for a project
"""
type Environment {
  """
  ID of the environment
  """
  id: ID!

  """
  Human-readable name of the environment
  """
  name: String!
1889 1890 1891 1892 1893

  """
  State of the environment, for example: available/stopped
  """
  state: String!
1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930
}

"""
The connection type for Environment.
"""
type EnvironmentConnection {
  """
  A list of edges.
  """
  edges: [EnvironmentEdge]

  """
  A list of nodes.
  """
  nodes: [Environment]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type EnvironmentEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Environment
}

1931 1932 1933
"""
Represents an epic.
"""
1934
type Epic implements Noteable {
1935 1936 1937
  """
  Author of the epic
  """
1938
  author: User!
1939 1940 1941 1942

  """
  Children (sub-epics) of the epic
  """
1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959
  children(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Filter epics by author
    """
    authorUsername: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
1960 1961
    List items within a time frame where items.end_date is between startDate and
    endDate parameters (startDate parameter must be present)
1962 1963 1964 1965 1966 1967 1968 1969 1970
    """
    endDate: Time

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
1971
    IID of the epic, e.g., "1"
1972 1973 1974
    """
    iid: ID

1975 1976 1977 1978 1979
    """
    Filter epics by iid for autocomplete
    """
    iidStartsWith: String

1980
    """
1981
    List of IIDs of epics, e.g., [1, 2]
1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005
    """
    iids: [ID!]

    """
    Filter epics by labels
    """
    labelName: [String!]

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    Filter epics by title and description
    """
    search: String

    """
    List epics by sort order
    """
    sort: EpicSort

    """
2006 2007
    List items within a time frame where items.start_date is between startDate
    and endDate parameters (endDate parameter must be present)
2008 2009 2010 2011 2012 2013 2014 2015
    """
    startDate: Time

    """
    Filter epics by state
    """
    state: EpicState
  ): EpicConnection
2016 2017 2018 2019

  """
  Timestamp of the epic's closure
  """
2020
  closedAt: Time
2021

2022 2023 2024 2025 2026
  """
  Indicates if the epic is confidential
  """
  confidential: Boolean

2027 2028 2029
  """
  Timestamp of the epic's creation
  """
2030
  createdAt: Time
2031 2032 2033 2034 2035

  """
  Number of open and closed descendant epics and issues
  """
  descendantCounts: EpicDescendantCount
2036

2037
  """
2038
  Total weight of open and closed issues in the epic and its descendants
2039 2040 2041
  """
  descendantWeightSum: EpicDescendantWeights

2042 2043 2044
  """
  Description of the epic
  """
2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070
  description: String

  """
  All discussions on this noteable
  """
  discussions(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): DiscussionConnection!
2071 2072 2073 2074 2075

  """
  Number of downvotes the epic has received
  """
  downvotes: Int!
2076 2077 2078 2079

  """
  Due date of the epic
  """
2080
  dueDate: Time
2081 2082 2083 2084

  """
  Fixed due date of the epic
  """
2085
  dueDateFixed: Time
2086 2087 2088 2089

  """
  Inherited due date of the epic from milestones
  """
2090
  dueDateFromMilestones: Time
2091 2092 2093 2094

  """
  Indicates if the due date has been manually set
  """
2095
  dueDateIsFixed: Boolean
2096 2097 2098 2099

  """
  Group to which the epic belongs
  """
2100
  group: Group!
2101 2102 2103 2104

  """
  Indicates if the epic has children
  """
2105
  hasChildren: Boolean!
2106 2107 2108 2109

  """
  Indicates if the epic has direct issues
  """
2110
  hasIssues: Boolean!
2111

2112 2113 2114 2115 2116
  """
  Current health status of the epic
  """
  healthStatus: EpicHealthStatus

2117 2118 2119
  """
  ID of the epic
  """
2120
  id: ID!
2121 2122 2123 2124

  """
  Internal ID of the epic
  """
2125
  iid: ID!
2126 2127 2128 2129

  """
  A list of issues associated with the epic
  """
2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151
  issues(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): EpicIssueConnection

2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176
  """
  Labels assigned to the epic
  """
  labels(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): LabelConnection

2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200
  """
  All notes on this noteable
  """
  notes(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): NoteConnection!
2201 2202 2203 2204

  """
  Parent epic of the epic
  """
2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230
  parent: Epic

  """
  List of participants for the epic
  """
  participants(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): UserConnection
2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244

  """
  Internal reference of the epic. Returned in shortened format by default
  """
  reference(
    """
    Indicates if the reference should be returned in full
    """
    full: Boolean = false
  ): String!

  """
  URI path of the epic-issue relationship
  """
2245 2246 2247
  relationPath: String

  """
2248
  The relative position of the epic in the epic tree
2249 2250
  """
  relativePosition: Int
2251 2252 2253 2254

  """
  Start date of the epic
  """
2255
  startDate: Time
2256 2257 2258 2259

  """
  Fixed start date of the epic
  """
2260
  startDateFixed: Time
2261 2262 2263 2264

  """
  Inherited start date of the epic from milestones
  """
2265
  startDateFromMilestones: Time
2266 2267 2268 2269

  """
  Indicates if the start date has been manually set
  """
2270
  startDateIsFixed: Boolean
2271 2272 2273 2274

  """
  State of the epic
  """
2275 2276 2277
  state: EpicState!

  """
2278
  Indicates the currently logged in user is subscribed to the epic
2279 2280
  """
  subscribed: Boolean!
2281 2282 2283 2284

  """
  Title of the epic
  """
2285
  title: String
2286 2287 2288 2289

  """
  Timestamp of the epic's last activity
  """
2290 2291
  updatedAt: Time

2292 2293 2294 2295 2296
  """
  Number of upvotes the epic has received
  """
  upvotes: Int!

2297 2298 2299 2300
  """
  Permissions for the current user on the resource
  """
  userPermissions: EpicPermissions!
2301 2302 2303 2304

  """
  Web path of the epic
  """
2305
  webPath: String!
2306 2307 2308 2309

  """
  Web URL of the epic
  """
2310 2311 2312
  webUrl: String!
}

2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367
"""
Autogenerated input type of EpicAddIssue
"""
input EpicAddIssueInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The group the epic to mutate belongs to
  """
  groupPath: ID!

  """
  The iid of the epic to mutate
  """
  iid: ID!

  """
  The iid of the issue to be added
  """
  issueIid: String!

  """
  The project the issue belongs to
  """
  projectPath: ID!
}

"""
Autogenerated return type of EpicAddIssue
"""
type EpicAddIssuePayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The epic after mutation
  """
  epic: Epic

  """
  The epic-issue relation
  """
  epicIssue: EpicIssue

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!
}

2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387
"""
The connection type for Epic.
"""
type EpicConnection {
  """
  A list of edges.
  """
  edges: [EpicEdge]

  """
  A list of nodes.
  """
  nodes: [Epic]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

2388 2389 2390
"""
Counts of descendent epics.
"""
2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412
type EpicDescendantCount {
  """
  Number of closed sub-epics
  """
  closedEpics: Int

  """
  Number of closed epic issues
  """
  closedIssues: Int

  """
  Number of opened sub-epics
  """
  openedEpics: Int

  """
  Number of opened epic issues
  """
  openedIssues: Int
}

2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425
"""
Total weight of open and closed descendant issues
"""
type EpicDescendantWeights {
  """
  Total weight of completed (closed) issues in this epic, including epic descendants
  """
  closedIssues: Int

  """
  Total weight of opened issues in this epic, including epic descendants
  """
  openedIssues: Int
2426 2427
}

2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442
"""
An edge in a connection.
"""
type EpicEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Epic
}

2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462
"""
Health status of child issues
"""
type EpicHealthStatus {
  """
  Number of issues at risk
  """
  issuesAtRisk: Int

  """
  Number of issues that need attention
  """
  issuesNeedingAttention: Int

  """
  Number of issues on track
  """
  issuesOnTrack: Int
}

2463 2464 2465
"""
Relationship between an epic and an issue
"""
2466
type EpicIssue implements Noteable {
2467 2468 2469
  """
  Assignees of the issue
  """
2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490
  assignees(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): UserConnection
2491 2492 2493 2494

  """
  User that created the issue
  """
2495
  author: User!
2496 2497 2498 2499

  """
  Timestamp of when the issue was closed
  """
2500
  closedAt: Time
2501 2502 2503 2504

  """
  Indicates the issue is confidential
  """
2505
  confidential: Boolean!
2506 2507 2508 2509

  """
  Timestamp of when the issue was created
  """
2510
  createdAt: Time!
2511 2512 2513 2514

  """
  Description of the issue
  """
2515 2516 2517 2518 2519 2520
  description: String

  """
  The GitLab Flavored Markdown rendering of `description`
  """
  descriptionHtml: String
2521 2522 2523 2524

  """
  Collection of design images associated with this issue
  """
2525
  designCollection: DesignCollection
2526 2527

  """
2528
  The designs associated with this issue. Deprecated in 12.2: Use `designCollection`
2529
  """
2530
  designs: DesignCollection @deprecated(reason: "Use `designCollection`. Deprecated in 12.2")
2531 2532 2533 2534

  """
  Indicates discussion is locked on the issue
  """
2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560
  discussionLocked: Boolean!

  """
  All discussions on this noteable
  """
  discussions(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): DiscussionConnection!
2561 2562 2563 2564

  """
  Number of downvotes the issue has received
  """
2565
  downvotes: Int!
2566 2567 2568 2569

  """
  Due date of the issue
  """
2570 2571 2572
  dueDate: Time

  """
2573
  Epic to which this issue belongs
2574 2575
  """
  epic: Epic
2576 2577 2578 2579

  """
  ID of the epic-issue relation
  """
2580 2581
  epicIssueId: ID!

2582
  """
2583
  Current health status. Returns null if `save_issuable_health_status` feature flag is disabled.
2584 2585 2586
  """
  healthStatus: HealthStatus

2587
  """
2588
  Global ID of the epic-issue relation
2589 2590
  """
  id: ID
2591 2592 2593 2594

  """
  Internal ID of the issue
  """
2595
  iid: ID!
2596 2597 2598 2599

  """
  Labels of the issue
  """
2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620
  labels(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): LabelConnection
2621 2622 2623 2624

  """
  Milestone of the issue
  """
2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652
  milestone: Milestone

  """
  All notes on this noteable
  """
  notes(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): NoteConnection!

  """
2653
  List of participants in the issue
2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675
  """
  participants(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): UserConnection
2676 2677 2678 2679 2680 2681 2682 2683 2684 2685

  """
  Internal reference of the issue. Returned in shortened format by default
  """
  reference(
    """
    Boolean option specifying whether the reference should be returned in full
    """
    full: Boolean = false
  ): String!
2686 2687 2688 2689

  """
  URI path of the epic-issue relation
  """
2690
  relationPath: String
2691 2692 2693 2694

  """
  Relative position of the issue (used for positioning in epic tree and issue boards)
  """
2695
  relativePosition: Int
2696 2697 2698 2699

  """
  State of the issue
  """
2700
  state: IssueState!
2701

Brian Kabiro's avatar
Brian Kabiro committed
2702
  """
2703
  Indicates the currently logged in user is subscribed to the issue
Brian Kabiro's avatar
Brian Kabiro committed
2704 2705 2706
  """
  subscribed: Boolean!

2707 2708 2709
  """
  Task completion status of the issue
  """
2710 2711 2712
  taskCompletionStatus: TaskCompletionStatus!

  """
2713
  Time estimate of the issue
2714 2715
  """
  timeEstimate: Int!
2716 2717 2718 2719

  """
  Title of the issue
  """
2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730
  title: String!

  """
  The GitLab Flavored Markdown rendering of `title`
  """
  titleHtml: String

  """
  Total time reported as spent on the issue
  """
  totalTimeSpent: Int!
2731 2732 2733 2734

  """
  Timestamp of when the issue was last updated
  """
2735
  updatedAt: Time!
2736 2737 2738 2739

  """
  Number of upvotes the issue has received
  """
2740
  upvotes: Int!
2741 2742 2743 2744

  """
  Number of user notes of the issue
  """
2745 2746 2747 2748 2749 2750
  userNotesCount: Int!

  """
  Permissions for the current user on the resource
  """
  userPermissions: IssuePermissions!
2751 2752 2753 2754

  """
  Web path of the issue
  """
2755
  webPath: String!
2756 2757 2758 2759

  """
  Web URL of the issue
  """
2760
  webUrl: String!
2761 2762 2763 2764

  """
  Weight of the issue
  """
2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807
  weight: Int
}

"""
The connection type for EpicIssue.
"""
type EpicIssueConnection {
  """
  A list of edges.
  """
  edges: [EpicIssueEdge]

  """
  A list of nodes.
  """
  nodes: [EpicIssue]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type EpicIssueEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: EpicIssue
}

"""
Check permissions for the current user on an epic
"""
type EpicPermissions {
  """
2808
  Indicates the user can perform `admin_epic` on this resource
2809 2810 2811 2812
  """
  adminEpic: Boolean!

  """
2813
  Indicates the user can perform `award_emoji` on this resource
2814 2815 2816 2817
  """
  awardEmoji: Boolean!

  """
2818
  Indicates the user can perform `create_epic` on this resource
2819 2820 2821 2822
  """
  createEpic: Boolean!

  """
2823
  Indicates the user can perform `create_note` on this resource
2824 2825 2826 2827
  """
  createNote: Boolean!

  """
2828
  Indicates the user can perform `destroy_epic` on this resource
2829 2830 2831 2832
  """
  destroyEpic: Boolean!

  """
2833
  Indicates the user can perform `read_epic` on this resource
2834 2835 2836 2837
  """
  readEpic: Boolean!

  """
2838
  Indicates the user can perform `read_epic_iid` on this resource
2839 2840 2841 2842
  """
  readEpicIid: Boolean!

  """
2843
  Indicates the user can perform `update_epic` on this resource
2844 2845 2846 2847
  """
  updateEpic: Boolean!
}

2848 2849 2850 2851 2852 2853 2854 2855 2856 2857
"""
Autogenerated input type of EpicSetSubscription
"""
input EpicSetSubscriptionInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
2858
  The group the epic to mutate belongs to
2859 2860 2861 2862
  """
  groupPath: ID!

  """
2863
  The iid of the epic to mutate
2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892
  """
  iid: ID!

  """
  The desired state of the subscription
  """
  subscribedState: Boolean!
}

"""
Autogenerated return type of EpicSetSubscription
"""
type EpicSetSubscriptionPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The epic after mutation
  """
  epic: Epic

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!
}

2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918
"""
Roadmap sort values
"""
enum EpicSort {
  """
  End date at ascending order
  """
  end_date_asc

  """
  End date at descending order
  """
  end_date_desc

  """
  Start date at ascending order
  """
  start_date_asc

  """
  Start date at descending order
  """
  start_date_desc
}

"""
2919
State of an epic.
2920 2921 2922 2923 2924 2925 2926 2927
"""
enum EpicState {
  all
  closed
  opened
}

"""
2928
State event of an epic
2929 2930 2931
"""
enum EpicStateEvent {
  """
2932
  Close the epic
2933 2934 2935 2936
  """
  CLOSE

  """
2937
  Reopen the epic
2938 2939 2940 2941
  """
  REOPEN
}

2942 2943 2944
"""
A node of an epic tree.
"""
2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996
input EpicTreeNodeFieldsInputType {
  """
  The id of the epic_issue or issue that the actual epic or issue is switched with
  """
  adjacentReferenceId: ID!

  """
  The id of the epic_issue or epic that is being moved
  """
  id: ID!

  """
  The type of the switch, after or before allowed
  """
  relativePosition: MoveType!
}

"""
Autogenerated input type of EpicTreeReorder
"""
input EpicTreeReorderInput {
  """
  The id of the base epic of the tree
  """
  baseEpicId: ID!

  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Parameters for updating the tree positions
  """
  moved: EpicTreeNodeFieldsInputType!
}

"""
Autogenerated return type of EpicTreeReorder
"""
type EpicTreeReorderPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!
}

2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093
type GeoNode {
  """
  The maximum concurrency of container repository sync for this secondary node
  """
  containerRepositoriesMaxCapacity: Int

  """
  Indicates whether this Geo node is enabled
  """
  enabled: Boolean

  """
  The maximum concurrency of LFS/attachment backfill for this secondary node
  """
  filesMaxCapacity: Int

  """
  ID of this GeoNode
  """
  id: ID!

  """
  The URL defined on the primary node that secondary nodes should use to contact it
  """
  internalUrl: String

  """
  The interval (in days) in which the repository verification is valid. Once expired, it will be reverified
  """
  minimumReverificationInterval: Int

  """
  The unique identifier for this Geo node
  """
  name: String

  """
  Indicates whether this Geo node is the primary
  """
  primary: Boolean

  """
  The maximum concurrency of repository backfill for this secondary node
  """
  reposMaxCapacity: Int

  """
  The namespaces that should be synced, if `selective_sync_type` == `namespaces`
  """
  selectiveSyncNamespaces(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): NamespaceConnection

  """
  The repository storages whose projects should be synced, if `selective_sync_type` == `shards`
  """
  selectiveSyncShards: [String!]

  """
  Indicates if syncing is limited to only specific groups, or shards
  """
  selectiveSyncType: String

  """
  Indicates if this secondary node will replicate blobs in Object Storage
  """
  syncObjectStorage: Boolean

  """
  The user-facing URL for this Geo node
  """
  url: String

  """
  The maximum concurrency of repository verification for this secondary node
  """
  verificationMaxCapacity: Int
}

3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115
type GrafanaIntegration {
  """
  Timestamp of the issue's creation
  """
  createdAt: Time!

  """
  Indicates whether Grafana integration is enabled
  """
  enabled: Boolean!

  """
  Url for the Grafana host for the Grafana integration
  """
  grafanaUrl: String!

  """
  Internal ID of the Grafana integration
  """
  id: ID!

  """
3116
  API token for the Grafana integration. Deprecated in 12.7: Plain text token has been masked for security reasons
3117
  """
3118
  token: String! @deprecated(reason: "Plain text token has been masked for security reasons. Deprecated in 12.7")
3119 3120 3121 3122 3123 3124 3125

  """
  Timestamp of the issue's last activity
  """
  updatedAt: Time!
}

3126
type Group {
3127 3128 3129 3130 3131
  """
  Indicates whether Auto DevOps is enabled for all projects within this group
  """
  autoDevopsEnabled: Boolean

3132 3133 3134
  """
  Avatar URL of the group
  """
3135
  avatarUrl: String
3136

3137 3138 3139 3140 3141 3142 3143 3144 3145 3146
  """
  A single board of the group
  """
  board(
    """
    Find a board by its ID
    """
    id: ID
  ): Board

3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165
  """
  Boards of the group
  """
  boards(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

3166 3167 3168 3169 3170
    """
    Find a board by its ID
    """
    id: ID

3171 3172 3173 3174 3175 3176
    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): BoardConnection

3177 3178 3179
  """
  Description of the namespace
  """
3180 3181 3182 3183 3184 3185
  description: String

  """
  The GitLab Flavored Markdown rendering of `description`
  """
  descriptionHtml: String
3186

3187 3188 3189 3190 3191
  """
  Indicates if a group has email notifications disabled
  """
  emailsDisabled: Boolean

3192 3193 3194
  """
  Find a single epic
  """
3195 3196 3197 3198 3199 3200 3201
  epic(
    """
    Filter epics by author
    """
    authorUsername: String

    """
3202 3203
    List items within a time frame where items.end_date is between startDate and
    endDate parameters (startDate parameter must be present)
3204 3205 3206 3207
    """
    endDate: Time

    """
3208
    IID of the epic, e.g., "1"
3209 3210 3211
    """
    iid: ID

3212 3213 3214 3215 3216
    """
    Filter epics by iid for autocomplete
    """
    iidStartsWith: String

3217
    """
3218
    List of IIDs of epics, e.g., [1, 2]
3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237
    """
    iids: [ID!]

    """
    Filter epics by labels
    """
    labelName: [String!]

    """
    Filter epics by title and description
    """
    search: String

    """
    List epics by sort order
    """
    sort: EpicSort

    """
3238 3239
    List items within a time frame where items.start_date is between startDate
    and endDate parameters (endDate parameter must be present)
3240 3241 3242 3243 3244 3245 3246 3247
    """
    startDate: Time

    """
    Filter epics by state
    """
    state: EpicState
  ): Epic
3248 3249 3250 3251

  """
  Find epics
  """
3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268
  epics(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Filter epics by author
    """
    authorUsername: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
3269 3270
    List items within a time frame where items.end_date is between startDate and
    endDate parameters (startDate parameter must be present)
3271 3272 3273 3274 3275 3276 3277 3278 3279
    """
    endDate: Time

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
3280
    IID of the epic, e.g., "1"
3281 3282 3283
    """
    iid: ID

3284 3285 3286 3287 3288
    """
    Filter epics by iid for autocomplete
    """
    iidStartsWith: String

3289
    """
3290
    List of IIDs of epics, e.g., [1, 2]
3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314
    """
    iids: [ID!]

    """
    Filter epics by labels
    """
    labelName: [String!]

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    Filter epics by title and description
    """
    search: String

    """
    List epics by sort order
    """
    sort: EpicSort

    """
3315 3316
    List items within a time frame where items.start_date is between startDate
    and endDate parameters (endDate parameter must be present)
3317 3318 3319 3320 3321 3322 3323 3324
    """
    startDate: Time

    """
    Filter epics by state
    """
    state: EpicState
  ): EpicConnection
3325 3326 3327 3328

  """
  Indicates if Epics are enabled for namespace
  """
3329
  epicsEnabled: Boolean
3330 3331 3332 3333

  """
  Full name of the namespace
  """
3334
  fullName: String!
3335 3336 3337 3338

  """
  Full path of the namespace
  """
3339
  fullPath: ID!
3340

3341 3342 3343 3344 3345
  """
  Indicates if Group timelogs are enabled for namespace
  """
  groupTimelogsEnabled: Boolean

3346 3347 3348
  """
  ID of the namespace
  """
3349
  id: ID!
3350

3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450
  """
  Issues of the group
  """
  issues(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    ID of a user assigned to the issues, "none" and "any" values supported
    """
    assigneeId: String

    """
    Username of a user assigned to the issues
    """
    assigneeUsername: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Issues closed after this date
    """
    closedAfter: Time

    """
    Issues closed before this date
    """
    closedBefore: Time

    """
    Issues created after this date
    """
    createdAfter: Time

    """
    Issues created before this date
    """
    createdBefore: Time

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    IID of the issue. For example, "1"
    """
    iid: String

    """
    List of IIDs of issues. For example, [1, 2]
    """
    iids: [String!]

    """
    Labels applied to this issue
    """
    labelName: [String]

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    Milestones applied to this issue
    """
    milestoneTitle: [String]

    """
    Search query for finding issues by title or description
    """
    search: String

    """
    Sort issues by this criteria
    """
    sort: IssueSort = created_desc

    """
    Current state of this issue
    """
    state: IssuableState

    """
    Issues updated after this date
    """
    updatedAfter: Time

    """
    Issues updated before this date
    """
    updatedBefore: Time
  ): IssueConnection

3451 3452 3453
  """
  Indicates if Large File Storage (LFS) is enabled for namespace
  """
3454
  lfsEnabled: Boolean
3455

3456 3457 3458 3459 3460
  """
  Indicates if a group is disabled from getting mentioned
  """
  mentionsDisabled: Boolean

3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502
  """
  Find milestones
  """
  milestones(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    List items within a time frame where items.end_date is between startDate and
    endDate parameters (startDate parameter must be present)
    """
    endDate: Time

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    List items within a time frame where items.start_date is between startDate
    and endDate parameters (endDate parameter must be present)
    """
    startDate: Time

    """
    Filter milestones by state
    """
    state: MilestoneStateEnum
  ): MilestoneConnection

3503 3504 3505
  """
  Name of the namespace
  """
3506
  name: String!
3507 3508 3509 3510

  """
  Parent group
  """
3511
  parent: Group
3512 3513 3514 3515

  """
  Path of the namespace
  """
3516
  path: String!
3517

3518 3519 3520 3521 3522
  """
  The permission level required to create projects in the group
  """
  projectCreationLevel: String

3523 3524 3525
  """
  Projects within this namespace
  """
3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551
  projects(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Include also subgroup projects
    """
    includeSubgroups: Boolean = false

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): ProjectConnection!
3552 3553 3554 3555

  """
  Indicates if users can request access to namespace
  """
3556 3557
  requestAccessEnabled: Boolean

3558 3559 3560 3561 3562
  """
  Indicates if all users in this group are required to set up two-factor authentication
  """
  requireTwoFactorAuthentication: Boolean

3563
  """
3564
  Aggregated storage statistics of the namespace. Only available for root namespaces
3565 3566 3567
  """
  rootStorageStatistics: RootStorageStatistics

3568 3569 3570 3571 3572 3573 3574 3575 3576 3577
  """
  Indicates if sharing a project with another group within this group is prevented
  """
  shareWithGroupLock: Boolean

  """
  The permission level required to create subgroups within the group
  """
  subgroupCreationLevel: String

3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612
  """
  Time logged in issues by group members
  """
  timelogs(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    List time logs within a time range where the logged date is before end_date parameter.
    """
    endDate: Time!

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    List time logs within a time range where the logged date is after start_date parameter.
    """
    startDate: Time!
  ): TimelogConnection!

3613 3614 3615 3616 3617
  """
  Time before two-factor authentication is enforced
  """
  twoFactorGracePeriod: Int

3618 3619 3620 3621
  """
  Permissions for the current user on the resource
  """
  userPermissions: GroupPermissions!
3622 3623 3624 3625

  """
  Visibility of the namespace
  """
3626
  visibility: String
3627

3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673
  """
  Vulnerabilities reported on the projects in the group and its subgroups.
  Available only when feature flag `first_class_vulnerabilities` is enabled
  """
  vulnerabilities(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    Filter vulnerabilities by project
    """
    projectId: [ID!]

    """
    Filter vulnerabilities by report type
    """
    reportType: [VulnerabilityReportType!]

    """
    Filter vulnerabilities by severity
    """
    severity: [VulnerabilitySeverity!]

    """
    Filter vulnerabilities by state
    """
    state: [VulnerabilityState!]
  ): VulnerabilityConnection

3674 3675 3676
  """
  Web URL of the group
  """
3677 3678 3679 3680 3681
  webUrl: String!
}

type GroupPermissions {
  """
3682
  Indicates the user can perform `read_group` on this resource
3683 3684 3685 3686
  """
  readGroup: Boolean!
}

3687 3688 3689 3690 3691 3692 3693 3694 3695
"""
Health status of an issue or epic
"""
enum HealthStatus {
  atRisk
  needsAttention
  onTrack
}

3696 3697 3698 3699 3700 3701 3702 3703 3704 3705
"""
State of a GitLab issue or merge request
"""
enum IssuableState {
  closed
  locked
  opened
}

type Issue implements Noteable {
3706 3707 3708
  """
  Assignees of the issue
  """
3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729
  assignees(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): UserConnection
3730 3731 3732 3733

  """
  User that created the issue
  """
3734
  author: User!
3735 3736 3737 3738

  """
  Timestamp of when the issue was closed
  """
3739
  closedAt: Time
3740 3741 3742 3743

  """
  Indicates the issue is confidential
  """
3744
  confidential: Boolean!
3745 3746 3747 3748

  """
  Timestamp of when the issue was created
  """
3749
  createdAt: Time!
3750 3751 3752 3753

  """
  Description of the issue
  """
3754 3755 3756 3757 3758 3759
  description: String

  """
  The GitLab Flavored Markdown rendering of `description`
  """
  descriptionHtml: String
3760 3761 3762 3763

  """
  Collection of design images associated with this issue
  """
3764
  designCollection: DesignCollection
3765 3766

  """
3767
  The designs associated with this issue. Deprecated in 12.2: Use `designCollection`
3768
  """
3769
  designs: DesignCollection @deprecated(reason: "Use `designCollection`. Deprecated in 12.2")
3770 3771 3772 3773

  """
  Indicates discussion is locked on the issue
  """
3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799
  discussionLocked: Boolean!

  """
  All discussions on this noteable
  """
  discussions(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): DiscussionConnection!
3800 3801 3802 3803

  """
  Number of downvotes the issue has received
  """
3804
  downvotes: Int!
3805 3806 3807 3808

  """
  Due date of the issue
  """
3809 3810 3811
  dueDate: Time

  """
3812
  Epic to which this issue belongs
3813 3814
  """
  epic: Epic
3815

3816
  """
3817
  Current health status. Returns null if `save_issuable_health_status` feature flag is disabled.
3818 3819 3820
  """
  healthStatus: HealthStatus

3821 3822 3823
  """
  Internal ID of the issue
  """
3824
  iid: ID!
3825 3826 3827 3828

  """
  Labels of the issue
  """
3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849
  labels(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): LabelConnection
3850 3851 3852 3853

  """
  Milestone of the issue
  """
3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881
  milestone: Milestone

  """
  All notes on this noteable
  """
  notes(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): NoteConnection!

  """
3882
  List of participants in the issue
3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904
  """
  participants(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): UserConnection
3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918

  """
  Internal reference of the issue. Returned in shortened format by default
  """
  reference(
    """
    Boolean option specifying whether the reference should be returned in full
    """
    full: Boolean = false
  ): String!

  """
  Relative position of the issue (used for positioning in epic tree and issue boards)
  """
3919
  relativePosition: Int
3920 3921 3922 3923

  """
  State of the issue
  """
3924
  state: IssueState!
3925

Brian Kabiro's avatar
Brian Kabiro committed
3926
  """
3927
  Indicates the currently logged in user is subscribed to the issue
Brian Kabiro's avatar
Brian Kabiro committed
3928 3929 3930
  """
  subscribed: Boolean!

3931 3932 3933
  """
  Task completion status of the issue
  """
3934 3935 3936
  taskCompletionStatus: TaskCompletionStatus!

  """
3937
  Time estimate of the issue
3938 3939
  """
  timeEstimate: Int!
3940 3941 3942 3943

  """
  Title of the issue
  """
3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954
  title: String!

  """
  The GitLab Flavored Markdown rendering of `title`
  """
  titleHtml: String

  """
  Total time reported as spent on the issue
  """
  totalTimeSpent: Int!
3955 3956 3957 3958

  """
  Timestamp of when the issue was last updated
  """
3959
  updatedAt: Time!
3960 3961 3962 3963

  """
  Number of upvotes the issue has received
  """
3964
  upvotes: Int!
3965 3966 3967 3968

  """
  Number of user notes of the issue
  """
3969 3970 3971 3972 3973 3974
  userNotesCount: Int!

  """
  Permissions for the current user on the resource
  """
  userPermissions: IssuePermissions!
3975 3976 3977 3978

  """
  Web path of the issue
  """
3979
  webPath: String!
3980 3981 3982 3983

  """
  Web URL of the issue
  """
3984
  webUrl: String!
3985 3986 3987 3988

  """
  Weight of the issue
  """
3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031
  weight: Int
}

"""
The connection type for Issue.
"""
type IssueConnection {
  """
  A list of edges.
  """
  edges: [IssueEdge]

  """
  A list of nodes.
  """
  nodes: [Issue]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type IssueEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Issue
}

"""
Check permissions for the current user on a issue
"""
type IssuePermissions {
  """
4032
  Indicates the user can perform `admin_issue` on this resource
4033 4034 4035 4036
  """
  adminIssue: Boolean!

  """
4037
  Indicates the user can perform `create_design` on this resource
4038 4039 4040 4041
  """
  createDesign: Boolean!

  """
4042
  Indicates the user can perform `create_note` on this resource
4043 4044 4045 4046
  """
  createNote: Boolean!

  """
4047
  Indicates the user can perform `destroy_design` on this resource
4048 4049 4050 4051
  """
  destroyDesign: Boolean!

  """
4052
  Indicates the user can perform `read_design` on this resource
4053 4054 4055 4056
  """
  readDesign: Boolean!

  """
4057
  Indicates the user can perform `read_issue` on this resource
4058 4059 4060 4061
  """
  readIssue: Boolean!

  """
4062
  Indicates the user can perform `reopen_issue` on this resource
4063 4064 4065 4066
  """
  reopenIssue: Boolean!

  """
4067
  Indicates the user can perform `update_issue` on this resource
4068 4069 4070 4071
  """
  updateIssue: Boolean!
}

4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088
"""
Autogenerated input type of IssueSetConfidential
"""
input IssueSetConfidentialInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Whether or not to set the issue as a confidential.
  """
  confidential: Boolean!

  """
  The iid of the issue to mutate
  """
Eugenia Grieff's avatar
Eugenia Grieff committed
4089
  iid: String!
4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116

  """
  The project the issue to mutate is in
  """
  projectPath: ID!
}

"""
Autogenerated return type of IssueSetConfidential
"""
type IssueSetConfidentialPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The issue after mutation
  """
  issue: Issue
}

4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133
"""
Autogenerated input type of IssueSetDueDate
"""
input IssueSetDueDateInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The desired due date for the issue
  """
  dueDate: Time!

  """
  The iid of the issue to mutate
  """
Eugenia Grieff's avatar
Eugenia Grieff committed
4134
  iid: String!
4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161

  """
  The project the issue to mutate is in
  """
  projectPath: ID!
}

"""
Autogenerated return type of IssueSetDueDate
"""
type IssueSetDueDatePayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The issue after mutation
  """
  issue: Issue
}

4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173
"""
Autogenerated input type of IssueSetWeight
"""
input IssueSetWeightInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The iid of the issue to mutate
  """
Eugenia Grieff's avatar
Eugenia Grieff committed
4174
  iid: String!
4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206

  """
  The project the issue to mutate is in
  """
  projectPath: ID!

  """
  The desired weight for the issue
  """
  weight: Int!
}

"""
Autogenerated return type of IssueSetWeight
"""
type IssueSetWeightPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The issue after mutation
  """
  issue: Issue
}

4207 4208 4209 4210
"""
Values for sorting issues
"""
enum IssueSort {
4211 4212 4213 4214 4215 4216 4217 4218 4219 4220
  """
  Due date by ascending order
  """
  DUE_DATE_ASC

  """
  Due date by descending order
  """
  DUE_DATE_DESC

4221 4222 4223 4224 4225
  """
  Relative position by ascending order
  """
  RELATIVE_POSITION_ASC

4226 4227 4228 4229 4230 4231 4232 4233 4234 4235
  """
  Weight by ascending order
  """
  WEIGHT_ASC

  """
  Weight by descending order
  """
  WEIGHT_DESC

4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265
  """
  Created at ascending order
  """
  created_asc

  """
  Created at descending order
  """
  created_desc

  """
  Updated at ascending order
  """
  updated_asc

  """
  Updated at descending order
  """
  updated_desc
}

"""
State of a GitLab issue
"""
enum IssueState {
  closed
  locked
  opened
}

4266 4267 4268 4269 4270
"""
Represents untyped JSON
"""
scalar JSON

4271 4272 4273 4274 4275 4276 4277
type JiraImport {
  """
  Project key for the imported Jira project
  """
  jiraProjectKey: String!

  """
4278
  Timestamp of when the Jira import was created
4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322
  """
  scheduledAt: Time

  """
  User that started the Jira import
  """
  scheduledBy: User
}

"""
The connection type for JiraImport.
"""
type JiraImportConnection {
  """
  A list of edges.
  """
  edges: [JiraImportEdge]

  """
  A list of nodes.
  """
  nodes: [JiraImport]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type JiraImportEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: JiraImport
}

4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367
"""
Autogenerated input type of JiraImportStart
"""
input JiraImportStartInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Project key of the importer Jira project
  """
  jiraProjectKey: String!

  """
  Project name of the importer Jira project
  """
  jiraProjectName: String

  """
  The project to import the Jira project into
  """
  projectPath: ID!
}

"""
Autogenerated return type of JiraImportStart
"""
type JiraImportStartPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The Jira import data after mutation
  """
  jiraImport: JiraImport
}

4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379
type JiraService implements Service {
  """
  Indicates if the service is active
  """
  active: Boolean

  """
  Class name of the service
  """
  type: String
}

4380
type Label {
4381 4382 4383
  """
  Background color of the label
  """
4384
  color: String!
4385 4386

  """
Marcel Amirault's avatar
Marcel Amirault committed
4387
  Description of the label (Markdown rendered as HTML for caching)
4388
  """
4389 4390 4391 4392 4393 4394
  description: String

  """
  The GitLab Flavored Markdown rendering of `description`
  """
  descriptionHtml: String
4395

Mario de la Ossa's avatar
Mario de la Ossa committed
4396 4397 4398 4399 4400
  """
  Label ID
  """
  id: ID!

4401 4402 4403
  """
  Text color of the label
  """
4404
  textColor: String!
4405 4406 4407 4408

  """
  Content of the label
  """
4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446
  title: String!
}

"""
The connection type for Label.
"""
type LabelConnection {
  """
  A list of edges.
  """
  edges: [LabelEdge]

  """
  A list of nodes.
  """
  nodes: [Label]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type LabelEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Label
}

4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481
"""
Autogenerated input type of MarkAsSpamSnippet
"""
input MarkAsSpamSnippetInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The global id of the snippet to update
  """
  id: ID!
}

"""
Autogenerated return type of MarkAsSpamSnippet
"""
type MarkAsSpamSnippetPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The snippet after mutation
  """
  snippet: Snippet
}

4482
type MergeRequest implements Noteable {
4483 4484 4485
  """
  Indicates if members of the target project can push to the fork
  """
4486 4487 4488
  allowCollaboration: Boolean

  """
4489
  Assignees of the merge request
4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511
  """
  assignees(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): UserConnection
4512 4513 4514 4515

  """
  Timestamp of when the merge request was created
  """
4516
  createdAt: Time!
4517 4518 4519 4520

  """
  Default merge commit message of the merge request
  """
4521
  defaultMergeCommitMessage: String
4522 4523

  """
Marcel Amirault's avatar
Marcel Amirault committed
4524
  Description of the merge request (Markdown rendered as HTML for caching)
4525
  """
4526 4527 4528 4529 4530 4531
  description: String

  """
  The GitLab Flavored Markdown rendering of `description`
  """
  descriptionHtml: String
4532 4533 4534 4535

  """
  Diff head SHA of the merge request
  """
4536
  diffHeadSha: String
4537 4538 4539 4540

  """
  References of the base SHA, the head SHA, and the start SHA for this merge request
  """
4541 4542 4543
  diffRefs: DiffRefs

  """
4544
  Indicates if comments on the merge request are locked to members only
4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571
  """
  discussionLocked: Boolean!

  """
  All discussions on this noteable
  """
  discussions(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): DiscussionConnection!
4572 4573 4574 4575

  """
  Number of downvotes for the merge request
  """
4576
  downvotes: Int!
4577 4578 4579 4580

  """
  Indicates if the project settings will lead to source branch deletion after merge
  """
4581
  forceRemoveSourceBranch: Boolean
4582 4583 4584 4585

  """
  The pipeline running on the branch HEAD of the merge request
  """
4586
  headPipeline: Pipeline
4587 4588 4589 4590

  """
  ID of the merge request
  """
4591
  id: ID!
4592 4593 4594 4595

  """
  Internal ID of the merge request
  """
Eugenia Grieff's avatar
Eugenia Grieff committed
4596
  iid: String!
4597 4598 4599 4600

  """
  Commit SHA of the merge request if merge is in progress
  """
4601 4602 4603
  inProgressMergeCommitSha: String

  """
4604
  Labels of the merge request
4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626
  """
  labels(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): LabelConnection
4627 4628

  """
4629
  Default merge commit message of the merge request. Deprecated in 11.8: Use `defaultMergeCommitMessage`
4630
  """
4631
  mergeCommitMessage: String @deprecated(reason: "Use `defaultMergeCommitMessage`. Deprecated in 11.8")
4632 4633 4634 4635

  """
  SHA of the merge request commit (set once merged)
  """
4636
  mergeCommitSha: String
4637 4638 4639 4640

  """
  Error message due to a merge error
  """
4641
  mergeError: String
4642 4643 4644 4645

  """
  Indicates if a merge is currently occurring
  """
4646
  mergeOngoing: Boolean!
4647 4648 4649 4650

  """
  Status of the merge request
  """
4651
  mergeStatus: String
4652 4653 4654 4655

  """
  Indicates if the merge has been set to be merged when its pipeline succeeds (MWPS)
  """
4656
  mergeWhenPipelineSucceeds: Boolean
4657 4658 4659 4660

  """
  Indicates if all discussions in the merge request have been resolved, allowing the merge request to be merged
  """
4661 4662 4663
  mergeableDiscussionsState: Boolean

  """
4664
  The milestone of the merge request
4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693
  """
  milestone: Milestone

  """
  All notes on this noteable
  """
  notes(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): NoteConnection!

  """
4694
  Participants in the merge request
4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716
  """
  participants(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): UserConnection
4717 4718 4719 4720

  """
  Pipelines for the merge request
  """
4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756
  pipelines(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    Filter pipelines by the ref they are run for
    """
    ref: String

    """
    Filter pipelines by the sha of the commit they are run for
    """
    sha: String

    """
    Filter pipelines by their status
    """
    status: PipelineStatusEnum
  ): PipelineConnection!
4757 4758 4759 4760

  """
  Alias for target_project
  """
4761
  project: Project!
4762 4763 4764 4765

  """
  ID of the merge request project
  """
4766
  projectId: Int!
4767 4768 4769 4770

  """
  Rebase commit SHA of the merge request
  """
4771
  rebaseCommitSha: String
4772 4773 4774 4775

  """
  Indicates if there is a rebase currently in progress for the merge request
  """
4776 4777 4778
  rebaseInProgress: Boolean!

  """
4779
  Internal reference of the merge request. Returned in shortened format by default
4780 4781 4782 4783 4784 4785 4786
  """
  reference(
    """
    Boolean option specifying whether the reference should be returned in full
    """
    full: Boolean = false
  ): String!
4787 4788 4789 4790

  """
  Indicates if the merge request will be rebased
  """
4791
  shouldBeRebased: Boolean!
4792 4793 4794 4795

  """
  Indicates if the source branch of the merge request will be deleted after merge
  """
4796
  shouldRemoveSourceBranch: Boolean
4797 4798 4799 4800

  """
  Source branch of the merge request
  """
4801
  sourceBranch: String!
4802 4803 4804 4805

  """
  Indicates if the source branch of the merge request exists
  """
4806
  sourceBranchExists: Boolean!
4807 4808 4809 4810

  """
  Source project of the merge request
  """
4811
  sourceProject: Project
4812 4813 4814 4815

  """
  ID of the merge request source project
  """
4816
  sourceProjectId: Int
4817 4818 4819 4820

  """
  State of the merge request
  """
4821 4822 4823
  state: MergeRequestState!

  """
4824
  Indicates if the currently logged in user is subscribed to this merge request
4825 4826
  """
  subscribed: Boolean!
4827 4828 4829 4830

  """
  Target branch of the merge request
  """
4831
  targetBranch: String!
4832 4833 4834 4835

  """
  Target project of the merge request
  """
4836
  targetProject: Project!
4837 4838 4839 4840

  """
  ID of the merge request target project
  """
4841
  targetProjectId: Int!
4842 4843 4844 4845

  """
  Completion status of tasks
  """
4846 4847 4848
  taskCompletionStatus: TaskCompletionStatus!

  """
4849
  Time estimate of the merge request
4850 4851
  """
  timeEstimate: Int!
4852 4853 4854 4855

  """
  Title of the merge request
  """
4856 4857 4858
  title: String!

  """
4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874
  The GitLab Flavored Markdown rendering of `title`
  """
  titleHtml: String

  """
  Total time reported as spent on the merge request
  """
  totalTimeSpent: Int!

  """
  Timestamp of when the merge request was last updated
  """
  updatedAt: Time!

  """
  Number of upvotes for the merge request
4875
  """
4876
  upvotes: Int!
4877 4878

  """
4879
  User notes count of the merge request
4880 4881 4882 4883 4884 4885 4886
  """
  userNotesCount: Int

  """
  Permissions for the current user on the resource
  """
  userPermissions: MergeRequestPermissions!
4887 4888 4889 4890

  """
  Web URL of the merge request
  """
4891
  webUrl: String
4892 4893 4894 4895

  """
  Indicates if the merge request is a work in progress (WIP)
  """
4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938
  workInProgress: Boolean!
}

"""
The connection type for MergeRequest.
"""
type MergeRequestConnection {
  """
  A list of edges.
  """
  edges: [MergeRequestEdge]

  """
  A list of nodes.
  """
  nodes: [MergeRequest]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type MergeRequestEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: MergeRequest
}

"""
Check permissions for the current user on a merge request
"""
type MergeRequestPermissions {
  """
4939
  Indicates the user can perform `admin_merge_request` on this resource
4940 4941 4942 4943
  """
  adminMergeRequest: Boolean!

  """
4944
  Indicates the user can perform `cherry_pick_on_current_merge_request` on this resource
4945 4946 4947 4948
  """
  cherryPickOnCurrentMergeRequest: Boolean!

  """
4949
  Indicates the user can perform `create_note` on this resource
4950 4951 4952 4953
  """
  createNote: Boolean!

  """
4954
  Indicates the user can perform `push_to_source_branch` on this resource
4955 4956 4957 4958
  """
  pushToSourceBranch: Boolean!

  """
4959
  Indicates the user can perform `read_merge_request` on this resource
4960 4961 4962 4963
  """
  readMergeRequest: Boolean!

  """
4964
  Indicates the user can perform `remove_source_branch` on this resource
4965 4966 4967 4968
  """
  removeSourceBranch: Boolean!

  """
4969
  Indicates the user can perform `revert_on_current_merge_request` on this resource
4970 4971 4972 4973
  """
  revertOnCurrentMergeRequest: Boolean!

  """
4974
  Indicates the user can perform `update_merge_request` on this resource
4975 4976 4977 4978
  """
  updateMergeRequest: Boolean!
}

4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995
"""
Autogenerated input type of MergeRequestSetAssignees
"""
input MergeRequestSetAssigneesInput {
  """
  The usernames to assign to the merge request. Replaces existing assignees by default.
  """
  assigneeUsernames: [String!]!

  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The iid of the merge request to mutate
  """
Eugenia Grieff's avatar
Eugenia Grieff committed
4996
  iid: String!
4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028

  """
  The operation to perform. Defaults to REPLACE.
  """
  operationMode: MutationOperationMode

  """
  The project the merge request to mutate is in
  """
  projectPath: ID!
}

"""
Autogenerated return type of MergeRequestSetAssignees
"""
type MergeRequestSetAssigneesPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The merge request after mutation
  """
  mergeRequest: MergeRequest
}

Mario de la Ossa's avatar
Mario de la Ossa committed
5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040
"""
Autogenerated input type of MergeRequestSetLabels
"""
input MergeRequestSetLabelsInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The iid of the merge request to mutate
  """
Eugenia Grieff's avatar
Eugenia Grieff committed
5041
  iid: String!
Mario de la Ossa's avatar
Mario de la Ossa committed
5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090

  """
  The Label IDs to set. Replaces existing labels by default.
  """
  labelIds: [ID!]!

  """
  Changes the operation mode. Defaults to REPLACE.
  """
  operationMode: MutationOperationMode

  """
  The project the merge request to mutate is in
  """
  projectPath: ID!
}

"""
Autogenerated return type of MergeRequestSetLabels
"""
type MergeRequestSetLabelsPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The merge request after mutation
  """
  mergeRequest: MergeRequest
}

"""
Autogenerated input type of MergeRequestSetLocked
"""
input MergeRequestSetLockedInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The iid of the merge request to mutate
  """
Eugenia Grieff's avatar
Eugenia Grieff committed
5091
  iid: String!
Mario de la Ossa's avatar
Mario de la Ossa committed
5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123

  """
  Whether or not to lock the merge request.
  """
  locked: Boolean!

  """
  The project the merge request to mutate is in
  """
  projectPath: ID!
}

"""
Autogenerated return type of MergeRequestSetLocked
"""
type MergeRequestSetLockedPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The merge request after mutation
  """
  mergeRequest: MergeRequest
}

Rémy Coutable's avatar
Rémy Coutable committed
5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135
"""
Autogenerated input type of MergeRequestSetMilestone
"""
input MergeRequestSetMilestoneInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The iid of the merge request to mutate
  """
Eugenia Grieff's avatar
Eugenia Grieff committed
5136
  iid: String!
Rémy Coutable's avatar
Rémy Coutable committed
5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168

  """
  The milestone to assign to the merge request.
  """
  milestoneId: ID

  """
  The project the merge request to mutate is in
  """
  projectPath: ID!
}

"""
Autogenerated return type of MergeRequestSetMilestone
"""
type MergeRequestSetMilestonePayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The merge request after mutation
  """
  mergeRequest: MergeRequest
}

Mario de la Ossa's avatar
Mario de la Ossa committed
5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180
"""
Autogenerated input type of MergeRequestSetSubscription
"""
input MergeRequestSetSubscriptionInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The iid of the merge request to mutate
  """
Eugenia Grieff's avatar
Eugenia Grieff committed
5181
  iid: String!
Mario de la Ossa's avatar
Mario de la Ossa committed
5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213

  """
  The project the merge request to mutate is in
  """
  projectPath: ID!

  """
  The desired state of the subscription
  """
  subscribedState: Boolean!
}

"""
Autogenerated return type of MergeRequestSetSubscription
"""
type MergeRequestSetSubscriptionPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The merge request after mutation
  """
  mergeRequest: MergeRequest
}

5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225
"""
Autogenerated input type of MergeRequestSetWip
"""
input MergeRequestSetWipInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The iid of the merge request to mutate
  """
Eugenia Grieff's avatar
Eugenia Grieff committed
5226
  iid: String!
5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269

  """
  The project the merge request to mutate is in
  """
  projectPath: ID!

  """
  Whether or not to set the merge request as a WIP.
  """
  wip: Boolean!
}

"""
Autogenerated return type of MergeRequestSetWip
"""
type MergeRequestSetWipPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The merge request after mutation
  """
  mergeRequest: MergeRequest
}

"""
State of a GitLab merge request
"""
enum MergeRequestState {
  closed
  locked
  merged
  opened
}

type Metadata {
5270 5271 5272
  """
  Revision
  """
5273
  revision: String!
5274 5275 5276 5277

  """
  Version
  """
5278 5279 5280
  version: String!
}

5281 5282 5283
"""
Represents a milestone.
"""
5284
type Milestone {
5285 5286 5287
  """
  Timestamp of milestone creation
  """
5288
  createdAt: Time!
5289 5290 5291 5292

  """
  Description of the milestone
  """
5293
  description: String
5294 5295 5296 5297

  """
  Timestamp of the milestone due date
  """
5298
  dueDate: Time
5299

Rémy Coutable's avatar
Rémy Coutable committed
5300 5301 5302 5303 5304
  """
  ID of the milestone
  """
  id: ID!

5305 5306 5307
  """
  Timestamp of the milestone start date
  """
5308
  startDate: Time
5309 5310 5311 5312

  """
  State of the milestone
  """
5313
  state: MilestoneStateEnum!
5314 5315 5316 5317

  """
  Title of the milestone
  """
5318
  title: String!
5319 5320 5321 5322

  """
  Timestamp of last milestone update
  """
5323
  updatedAt: Time!
5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368

  """
  Web path of the milestone
  """
  webPath: String!
}

"""
The connection type for Milestone.
"""
type MilestoneConnection {
  """
  A list of edges.
  """
  edges: [MilestoneEdge]

  """
  A list of nodes.
  """
  nodes: [Milestone]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type MilestoneEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Milestone
}

enum MilestoneStateEnum {
  active
  closed
5369 5370 5371
}

"""
5372
The position to which the adjacent object should be moved
5373 5374 5375
"""
enum MoveType {
  """
5376
  The adjacent object will be moved after the object that is being moved
5377 5378 5379 5380
  """
  after

  """
5381
  The adjacent object will be moved before the object that is being moved
5382 5383 5384 5385 5386 5387
  """
  before
}

type Mutation {
  addAwardEmoji(input: AddAwardEmojiInput!): AddAwardEmojiPayload
5388
  adminSidekiqQueuesDeleteJobs(input: AdminSidekiqQueuesDeleteJobsInput!): AdminSidekiqQueuesDeleteJobsPayload
5389
  createDiffNote(input: CreateDiffNoteInput!): CreateDiffNotePayload
5390
  createEpic(input: CreateEpicInput!): CreateEpicPayload
5391 5392
  createImageDiffNote(input: CreateImageDiffNoteInput!): CreateImageDiffNotePayload
  createNote(input: CreateNoteInput!): CreateNotePayload
Jan Provaznik's avatar
Jan Provaznik committed
5393
  createRequirement(input: CreateRequirementInput!): CreateRequirementPayload
5394
  createSnippet(input: CreateSnippetInput!): CreateSnippetPayload
5395 5396 5397
  designManagementDelete(input: DesignManagementDeleteInput!): DesignManagementDeletePayload
  designManagementUpload(input: DesignManagementUploadInput!): DesignManagementUploadPayload
  destroyNote(input: DestroyNoteInput!): DestroyNotePayload
5398
  destroySnippet(input: DestroySnippetInput!): DestroySnippetPayload
5399
  epicAddIssue(input: EpicAddIssueInput!): EpicAddIssuePayload
5400
  epicSetSubscription(input: EpicSetSubscriptionInput!): EpicSetSubscriptionPayload
5401
  epicTreeReorder(input: EpicTreeReorderInput!): EpicTreeReorderPayload
5402
  issueSetConfidential(input: IssueSetConfidentialInput!): IssueSetConfidentialPayload
5403
  issueSetDueDate(input: IssueSetDueDateInput!): IssueSetDueDatePayload
5404
  issueSetWeight(input: IssueSetWeightInput!): IssueSetWeightPayload
5405
  jiraImportStart(input: JiraImportStartInput!): JiraImportStartPayload
5406
  markAsSpamSnippet(input: MarkAsSpamSnippetInput!): MarkAsSpamSnippetPayload
5407
  mergeRequestSetAssignees(input: MergeRequestSetAssigneesInput!): MergeRequestSetAssigneesPayload
Mario de la Ossa's avatar
Mario de la Ossa committed
5408 5409
  mergeRequestSetLabels(input: MergeRequestSetLabelsInput!): MergeRequestSetLabelsPayload
  mergeRequestSetLocked(input: MergeRequestSetLockedInput!): MergeRequestSetLockedPayload
Rémy Coutable's avatar
Rémy Coutable committed
5410
  mergeRequestSetMilestone(input: MergeRequestSetMilestoneInput!): MergeRequestSetMilestonePayload
Mario de la Ossa's avatar
Mario de la Ossa committed
5411
  mergeRequestSetSubscription(input: MergeRequestSetSubscriptionInput!): MergeRequestSetSubscriptionPayload
5412 5413
  mergeRequestSetWip(input: MergeRequestSetWipInput!): MergeRequestSetWipPayload
  removeAwardEmoji(input: RemoveAwardEmojiInput!): RemoveAwardEmojiPayload
5414
  todoMarkDone(input: TodoMarkDoneInput!): TodoMarkDonePayload
5415
  todoRestore(input: TodoRestoreInput!): TodoRestorePayload
5416
  todoRestoreMany(input: TodoRestoreManyInput!): TodoRestoreManyPayload
5417
  todosMarkAllDone(input: TodosMarkAllDoneInput!): TodosMarkAllDonePayload
5418 5419
  toggleAwardEmoji(input: ToggleAwardEmojiInput!): ToggleAwardEmojiPayload
  updateEpic(input: UpdateEpicInput!): UpdateEpicPayload
5420 5421 5422 5423 5424 5425 5426

  """
  Updates a DiffNote on an image (a `Note` where the `position.positionType` is
  `"image"`). If the body of the Note contains only quick actions, the Note will
  be destroyed during the update, and no Note will be returned
  """
  updateImageDiffNote(input: UpdateImageDiffNoteInput!): UpdateImageDiffNotePayload
5427
  updateIssue(input: UpdateIssueInput!): UpdateIssuePayload
5428 5429 5430 5431 5432

  """
  Updates a Note. If the body of the Note contains only quick actions, the Note
  will be destroyed during the update, and no Note will be returned
  """
5433
  updateNote(input: UpdateNoteInput!): UpdateNotePayload
5434
  updateRequirement(input: UpdateRequirementInput!): UpdateRequirementPayload
5435
  updateSnippet(input: UpdateSnippetInput!): UpdateSnippetPayload
5436 5437
}

5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457
"""
Different toggles for changing mutator behavior.
"""
enum MutationOperationMode {
  """
  Performs an append operation
  """
  APPEND

  """
  Performs a removal operation
  """
  REMOVE

  """
  Performs a replace operation
  """
  REPLACE
}

5458
type Namespace {
5459 5460 5461
  """
  Description of the namespace
  """
5462 5463 5464 5465 5466 5467
  description: String

  """
  The GitLab Flavored Markdown rendering of `description`
  """
  descriptionHtml: String
5468 5469 5470 5471

  """
  Full name of the namespace
  """
5472
  fullName: String!
5473 5474 5475 5476

  """
  Full path of the namespace
  """
5477
  fullPath: ID!
5478 5479 5480 5481

  """
  ID of the namespace
  """
5482
  id: ID!
5483 5484 5485 5486

  """
  Indicates if Large File Storage (LFS) is enabled for namespace
  """
5487
  lfsEnabled: Boolean
5488 5489 5490 5491

  """
  Name of the namespace
  """
5492
  name: String!
5493 5494 5495 5496

  """
  Path of the namespace
  """
5497
  path: String!
5498 5499 5500 5501

  """
  Projects within this namespace
  """
5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527
  projects(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Include also subgroup projects
    """
    includeSubgroups: Boolean = false

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): ProjectConnection!
5528 5529 5530 5531

  """
  Indicates if users can request access to namespace
  """
5532 5533 5534
  requestAccessEnabled: Boolean

  """
5535
  Aggregated storage statistics of the namespace. Only available for root namespaces
5536 5537
  """
  rootStorageStatistics: RootStorageStatistics
5538 5539 5540 5541

  """
  Visibility of the namespace
  """
5542 5543 5544
  visibility: String
}

5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579
"""
The connection type for Namespace.
"""
type NamespaceConnection {
  """
  A list of edges.
  """
  edges: [NamespaceEdge]

  """
  A list of nodes.
  """
  nodes: [Namespace]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type NamespaceEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Namespace
}

5580 5581
type Note {
  """
5582
  User who wrote this note
5583 5584 5585 5586
  """
  author: User!

  """
5587
  Content of the note
5588 5589 5590 5591 5592 5593 5594
  """
  body: String!

  """
  The GitLab Flavored Markdown rendering of `note`
  """
  bodyHtml: String
5595

5596 5597 5598 5599 5600
  """
  Indicates if this note is confidential
  """
  confidential: Boolean

5601 5602 5603
  """
  Timestamp of the note creation
  """
5604 5605 5606 5607 5608 5609
  createdAt: Time!

  """
  The discussion this note is a part of
  """
  discussion: Discussion
5610 5611 5612 5613

  """
  ID of the note
  """
5614 5615 5616 5617 5618 5619 5620 5621
  id: ID!

  """
  The position of this note on a diff
  """
  position: DiffPosition

  """
5622
  Project associated with the note
5623 5624
  """
  project: Project
5625 5626 5627 5628

  """
  Indicates if this note can be resolved. That is, if it is a resolvable discussion or simply a standalone note
  """
5629 5630 5631
  resolvable: Boolean!

  """
5632
  Timestamp of the note's resolution
5633 5634 5635 5636
  """
  resolvedAt: Time

  """
5637
  User that resolved the discussion
5638 5639 5640 5641
  """
  resolvedBy: User

  """
5642
  Indicates whether this note was created by the system or by a user
5643 5644
  """
  system: Boolean!
5645 5646 5647 5648

  """
  Timestamp of the note's last activity
  """
5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693
  updatedAt: Time!

  """
  Permissions for the current user on the resource
  """
  userPermissions: NotePermissions!
}

"""
The connection type for Note.
"""
type NoteConnection {
  """
  A list of edges.
  """
  edges: [NoteEdge]

  """
  A list of nodes.
  """
  nodes: [Note]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type NoteEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Note
}

type NotePermissions {
  """
5694
  Indicates the user can perform `admin_note` on this resource
5695 5696 5697 5698
  """
  adminNote: Boolean!

  """
5699
  Indicates the user can perform `award_emoji` on this resource
5700 5701 5702 5703
  """
  awardEmoji: Boolean!

  """
5704
  Indicates the user can perform `create_note` on this resource
5705 5706 5707 5708
  """
  createNote: Boolean!

  """
5709
  Indicates the user can perform `read_note` on this resource
5710 5711 5712 5713
  """
  readNote: Boolean!

  """
5714
  Indicates the user can perform `resolve_note` on this resource
5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796
  """
  resolveNote: Boolean!
}

interface Noteable {
  """
  All discussions on this noteable
  """
  discussions(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): DiscussionConnection!

  """
  All notes on this noteable
  """
  notes(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): NoteConnection!
}

"""
Information about pagination in a connection.
"""
type PageInfo {
  """
  When paginating forwards, the cursor to continue.
  """
  endCursor: String

  """
  When paginating forwards, are there more items?
  """
  hasNextPage: Boolean!

  """
  When paginating backwards, are there more items?
  """
  hasPreviousPage: Boolean!

  """
  When paginating backwards, the cursor to continue.
  """
  startCursor: String
}

type Pipeline {
5797 5798 5799
  """
  Base SHA of the source branch
  """
5800
  beforeSha: String
5801 5802 5803 5804

  """
  Timestamp of the pipeline's commit
  """
5805 5806 5807 5808 5809 5810
  committedAt: Time

  """
  Coverage percentage
  """
  coverage: Float
5811 5812 5813 5814

  """
  Timestamp of the pipeline's creation
  """
5815
  createdAt: Time!
5816 5817 5818 5819

  """
  Detailed status of the pipeline
  """
5820 5821 5822 5823 5824 5825
  detailedStatus: DetailedStatus!

  """
  Duration of the pipeline in seconds
  """
  duration: Int
5826 5827 5828 5829

  """
  Timestamp of the pipeline's completion
  """
5830
  finishedAt: Time
5831 5832 5833 5834

  """
  ID of the pipeline
  """
5835
  id: ID!
5836 5837 5838 5839

  """
  Internal ID of the pipeline
  """
Eugenia Grieff's avatar
Eugenia Grieff committed
5840
  iid: String!
5841 5842 5843 5844

  """
  SHA of the pipeline's commit
  """
5845
  sha: String!
5846 5847 5848 5849

  """
  Timestamp when the pipeline was started
  """
5850
  startedAt: Time
5851 5852

  """
5853 5854
  Status of the pipeline (CREATED, WAITING_FOR_RESOURCE, PREPARING, PENDING,
  RUNNING, FAILED, SUCCESS, CANCELED, SKIPPED, MANUAL, SCHEDULED)
5855
  """
5856
  status: PipelineStatusEnum!
5857 5858 5859 5860

  """
  Timestamp of the pipeline's last activity
  """
5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905
  updatedAt: Time!

  """
  Permissions for the current user on the resource
  """
  userPermissions: PipelinePermissions!
}

"""
The connection type for Pipeline.
"""
type PipelineConnection {
  """
  A list of edges.
  """
  edges: [PipelineEdge]

  """
  A list of nodes.
  """
  nodes: [Pipeline]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type PipelineEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Pipeline
}

type PipelinePermissions {
  """
5906
  Indicates the user can perform `admin_pipeline` on this resource
5907 5908 5909 5910
  """
  adminPipeline: Boolean!

  """
5911
  Indicates the user can perform `destroy_pipeline` on this resource
5912 5913 5914 5915
  """
  destroyPipeline: Boolean!

  """
5916
  Indicates the user can perform `update_pipeline` on this resource
5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931
  """
  updatePipeline: Boolean!
}

enum PipelineStatusEnum {
  CANCELED
  CREATED
  FAILED
  MANUAL
  PENDING
  PREPARING
  RUNNING
  SCHEDULED
  SKIPPED
  SUCCESS
5932
  WAITING_FOR_RESOURCE
5933 5934 5935
}

type Project {
5936
  """
5937
  Indicates the archived status of the project
5938
  """
5939
  archived: Boolean
5940

5941 5942 5943 5944 5945
  """
  Indicates if issues referenced by merge requests and commits within the default branch are closed automatically
  """
  autocloseReferencedIssues: Boolean

5946 5947 5948
  """
  URL to avatar image file of the project
  """
5949
  avatarUrl: String
5950

5951 5952 5953 5954 5955 5956 5957 5958 5959 5960
  """
  A single board of the project
  """
  board(
    """
    Find a board by its ID
    """
    id: ID
  ): Board

5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979
  """
  Boards of the project
  """
  boards(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

5980 5981 5982 5983 5984
    """
    Find a board by its ID
    """
    id: ID

5985 5986 5987 5988 5989 5990
    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): BoardConnection

5991 5992 5993
  """
  Indicates if the project stores Docker container images in a container registry
  """
5994
  containerRegistryEnabled: Boolean
5995 5996 5997 5998

  """
  Timestamp of the project creation
  """
5999
  createdAt: Time
6000 6001 6002 6003

  """
  Short description of the project
  """
6004 6005 6006 6007 6008 6009
  description: String

  """
  The GitLab Flavored Markdown rendering of `description`
  """
  descriptionHtml: String
6010

6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043
  """
  Environments of the project
  """
  environments(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    Name of the environment
    """
    name: String

    """
    Search query
    """
    search: String
6044 6045 6046 6047 6048

    """
    States of environments that should be included in result
    """
    states: [String!]
6049 6050
  ): EnvironmentConnection

6051 6052 6053
  """
  Number of times the project has been forked
  """
6054
  forksCount: Int!
6055 6056 6057 6058

  """
  Full path of the project
  """
6059
  fullPath: ID!
6060

6061 6062 6063 6064 6065
  """
  Grafana integration details for the project
  """
  grafanaIntegration: GrafanaIntegration

6066 6067 6068
  """
  Group of the project
  """
6069
  group: Group
6070 6071 6072 6073

  """
  URL to connect to the project via HTTPS
  """
6074
  httpUrlToRepo: String
6075 6076 6077 6078

  """
  ID of the project
  """
6079
  id: ID!
6080 6081

  """
6082
  Status of import background job of the project
6083
  """
6084
  importStatus: String
6085 6086 6087 6088

  """
  A single issue of the project
  """
6089
  issue(
6090 6091 6092 6093 6094 6095 6096 6097 6098 6099
    """
    ID of a user assigned to the issues, "none" and "any" values supported
    """
    assigneeId: String

    """
    Username of a user assigned to the issues
    """
    assigneeUsername: String

6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120
    """
    Issues closed after this date
    """
    closedAfter: Time

    """
    Issues closed before this date
    """
    closedBefore: Time

    """
    Issues created after this date
    """
    createdAfter: Time

    """
    Issues created before this date
    """
    createdBefore: Time

    """
6121
    IID of the issue. For example, "1"
6122
    """
Eugenia Grieff's avatar
Eugenia Grieff committed
6123
    iid: String
6124 6125

    """
6126
    List of IIDs of issues. For example, [1, 2]
6127
    """
Eugenia Grieff's avatar
Eugenia Grieff committed
6128
    iids: [String!]
6129 6130

    """
6131
    Labels applied to this issue
6132 6133
    """
    labelName: [String]
6134

6135 6136 6137 6138 6139
    """
    Milestones applied to this issue
    """
    milestoneTitle: [String]

6140 6141 6142
    """
    Search query for finding issues by title or description
    """
6143 6144 6145 6146 6147 6148 6149 6150
    search: String

    """
    Sort issues by this criteria
    """
    sort: IssueSort = created_desc

    """
6151
    Current state of this issue
6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163
    """
    state: IssuableState

    """
    Issues updated after this date
    """
    updatedAfter: Time

    """
    Issues updated before this date
    """
    updatedBefore: Time
Brian Kabiro's avatar
Brian Kabiro committed
6164
  ): Issue
6165 6166 6167 6168

  """
  Issues of the project
  """
6169 6170 6171 6172 6173 6174
  issues(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

6175 6176 6177 6178 6179 6180 6181 6182 6183 6184
    """
    ID of a user assigned to the issues, "none" and "any" values supported
    """
    assigneeId: String

    """
    Username of a user assigned to the issues
    """
    assigneeUsername: String

6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215
    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Issues closed after this date
    """
    closedAfter: Time

    """
    Issues closed before this date
    """
    closedBefore: Time

    """
    Issues created after this date
    """
    createdAfter: Time

    """
    Issues created before this date
    """
    createdBefore: Time

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
6216
    IID of the issue. For example, "1"
6217
    """
Eugenia Grieff's avatar
Eugenia Grieff committed
6218
    iid: String
6219 6220

    """
6221
    List of IIDs of issues. For example, [1, 2]
6222
    """
Eugenia Grieff's avatar
Eugenia Grieff committed
6223
    iids: [String!]
6224 6225

    """
6226
    Labels applied to this issue
6227 6228 6229 6230 6231 6232 6233
    """
    labelName: [String]

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
6234

6235 6236 6237 6238 6239
    """
    Milestones applied to this issue
    """
    milestoneTitle: [String]

6240 6241 6242
    """
    Search query for finding issues by title or description
    """
6243 6244 6245 6246 6247 6248 6249 6250
    search: String

    """
    Sort issues by this criteria
    """
    sort: IssueSort = created_desc

    """
6251
    Current state of this issue
6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264
    """
    state: IssuableState

    """
    Issues updated after this date
    """
    updatedAfter: Time

    """
    Issues updated before this date
    """
    updatedBefore: Time
  ): IssueConnection
6265 6266

  """
6267
  Indicates if Issues are enabled for the current user
6268
  """
6269
  issuesEnabled: Boolean
6270

6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300
  """
  Status of Jira import background job of the project
  """
  jiraImportStatus: String

  """
  Jira imports into the project
  """
  jiraImports(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): JiraImportConnection

6301
  """
6302
  Indicates if CI/CD pipeline jobs are enabled for the current user
6303
  """
6304
  jobsEnabled: Boolean
6305 6306 6307 6308

  """
  Timestamp of the project last activity
  """
6309
  lastActivityAt: Time
6310 6311 6312 6313

  """
  Indicates if the project has Large File Storage (LFS) enabled
  """
6314
  lfsEnabled: Boolean
6315 6316 6317 6318

  """
  A single merge request of the project
  """
6319 6320
  mergeRequest(
    """
charlieablett's avatar
charlieablett committed
6321
    IID of the merge request, for example `1`
6322
    """
Eugenia Grieff's avatar
Eugenia Grieff committed
6323
    iid: String
6324 6325

    """
charlieablett's avatar
charlieablett committed
6326
    Array of IIDs of merge requests, for example `[1, 2]`
6327
    """
Eugenia Grieff's avatar
Eugenia Grieff committed
6328
    iids: [String!]
6329
  ): MergeRequest
6330 6331 6332 6333

  """
  Merge requests of the project
  """
6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350
  mergeRequests(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
charlieablett's avatar
charlieablett committed
6351
    IID of the merge request, for example `1`
6352
    """
Eugenia Grieff's avatar
Eugenia Grieff committed
6353
    iid: String
6354 6355

    """
charlieablett's avatar
charlieablett committed
6356
    Array of IIDs of merge requests, for example `[1, 2]`
6357
    """
Eugenia Grieff's avatar
Eugenia Grieff committed
6358
    iids: [String!]
6359 6360 6361 6362 6363 6364

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): MergeRequestConnection
6365 6366

  """
6367
  Indicates if Merge Requests are enabled for the current user
6368
  """
6369
  mergeRequestsEnabled: Boolean
6370 6371 6372 6373 6374 6375

  """
  Indicates if no merge commits should be created and all merges should instead
  be fast-forwarded, which means that merging is only allowed if the branch
  could be fast-forwarded.
  """
6376
  mergeRequestsFfOnlyEnabled: Boolean
6377 6378 6379 6380

  """
  Name of the project (without namespace)
  """
6381
  name: String!
6382 6383 6384 6385

  """
  Full name of the project with its namespace
  """
6386
  nameWithNamespace: String!
6387 6388 6389 6390

  """
  Namespace of the project
  """
6391
  namespace: Namespace
6392 6393 6394 6395

  """
  Indicates if merge requests of the project can only be merged when all the discussions are resolved
  """
6396
  onlyAllowMergeIfAllDiscussionsAreResolved: Boolean
6397 6398 6399 6400

  """
  Indicates if merge requests of the project can only be merged with successful jobs
  """
6401
  onlyAllowMergeIfPipelineSucceeds: Boolean
6402 6403 6404 6405

  """
  Number of open issues for the project
  """
6406
  openIssuesCount: Int
6407 6408 6409 6410

  """
  Path of the project
  """
6411
  path: String!
6412 6413 6414 6415

  """
  Build pipelines of the project
  """
6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451
  pipelines(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    Filter pipelines by the ref they are run for
    """
    ref: String

    """
    Filter pipelines by the sha of the commit they are run for
    """
    sha: String

    """
    Filter pipelines by their status
    """
    status: PipelineStatusEnum
  ): PipelineConnection
6452 6453 6454 6455 6456

  """
  Indicates if a link to create or view a merge request should display after a
  push to Git repositories of the project from the command line
  """
6457
  printingMergeRequestLinkEnabled: Boolean
6458 6459 6460 6461

  """
  Indicates if there is public access to pipelines and job details of the project, including output logs and artifacts
  """
6462
  publicJobs: Boolean
6463 6464 6465 6466 6467 6468 6469 6470 6471

  """
  Indicates if `Delete source branch` option should be enabled by default for all new merge requests of the project
  """
  removeSourceBranchAfterMerge: Boolean

  """
  Git repository of the project
  """
6472
  repository: Repository
6473 6474 6475 6476

  """
  Indicates if users can request member access to the project
  """
6477
  requestAccessEnabled: Boolean
6478

6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503
  """
  Find a single requirement. Available only when feature flag `requirements_management` is enabled.
  """
  requirement(
    """
    IID of the requirement, e.g., "1"
    """
    iid: ID

    """
    List of IIDs of requirements, e.g., [1, 2]
    """
    iids: [ID!]

    """
    List requirements by sort order
    """
    sort: Sort

    """
    Filter requirements by state
    """
    state: RequirementState
  ): Requirement

6504 6505 6506 6507 6508
  """
  Number of requirements for the project by their state
  """
  requirementStatesCount: RequirementStatesCount

6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553
  """
  Find requirements. Available only when feature flag `requirements_management` is enabled.
  """
  requirements(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    IID of the requirement, e.g., "1"
    """
    iid: ID

    """
    List of IIDs of requirements, e.g., [1, 2]
    """
    iids: [ID!]

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    List requirements by sort order
    """
    sort: Sort

    """
    Filter requirements by state
    """
    state: RequirementState
  ): RequirementConnection

6554 6555 6556 6557 6558 6559 6560 6561 6562 6563
  """
  Detailed version of a Sentry error on the project
  """
  sentryDetailedError(
    """
    ID of the Sentry issue
    """
    id: ID!
  ): SentryDetailedError

Sean Arnold's avatar
Sean Arnold committed
6564 6565 6566 6567 6568
  """
  Paginated collection of Sentry errors on the project
  """
  sentryErrors: SentryErrorCollection

6569 6570 6571 6572 6573 6574 6575 6576 6577 6578
  """
  E-mail address of the service desk.
  """
  serviceDeskAddress: String

  """
  Indicates if the project has service desk enabled.
  """
  serviceDeskEnabled: Boolean

6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613
  """
  Project services
  """
  services(
    """
    Indicates if the service is active
    """
    active: Boolean

    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    Class name of the service
    """
    type: ServiceType
  ): ServiceConnection

6614
  """
6615
  Indicates if Shared Runners are enabled for the project
6616
  """
6617
  sharedRunnersEnabled: Boolean
6618

6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653
  """
  Snippets of the project
  """
  snippets(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Array of global snippet ids, e.g., "gid://gitlab/ProjectSnippet/1"
    """
    ids: [ID!]

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    The visibility of the snippet
    """
    visibility: VisibilityScopesEnum
  ): SnippetConnection

6654
  """
6655
  Indicates if Snippets are enabled for the current user
6656
  """
6657
  snippetsEnabled: Boolean
6658 6659 6660 6661

  """
  URL to connect to the project via SSH
  """
6662
  sshUrlToRepo: String
6663 6664 6665 6666

  """
  Number of times the project has been starred
  """
6667
  starCount: Int!
6668 6669 6670 6671

  """
  Statistics of the project
  """
6672
  statistics: ProjectStatistics
6673

6674 6675 6676 6677 6678
  """
  The commit message used to apply merge request suggestions
  """
  suggestionCommitMessage: String

6679 6680 6681
  """
  List of project tags
  """
6682 6683 6684 6685 6686 6687
  tagList: String

  """
  Permissions for the current user on the resource
  """
  userPermissions: ProjectPermissions!
6688 6689 6690 6691

  """
  Visibility of the project
  """
6692
  visibility: String
6693

6694
  """
6695
  Vulnerabilities reported on the project. Available only when feature flag `first_class_vulnerabilities` is enabled
6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716
  """
  vulnerabilities(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
Avielle Wolfe's avatar
Avielle Wolfe committed
6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736

    """
    Filter vulnerabilities by project
    """
    projectId: [ID!]

    """
    Filter vulnerabilities by report type
    """
    reportType: [VulnerabilityReportType!]

    """
    Filter vulnerabilities by severity
    """
    severity: [VulnerabilitySeverity!]

    """
    Filter vulnerabilities by state
    """
    state: [VulnerabilityState!]
6737 6738
  ): VulnerabilityConnection

Avielle Wolfe's avatar
Avielle Wolfe committed
6739 6740 6741 6742 6743 6744
  """
  Counts for each severity of vulnerability of the project. Available only when
  feature flag `first_class_vulnerabilities` is enabled
  """
  vulnerabilitySeveritiesCount: VulnerabilitySeveritiesCount

6745 6746 6747
  """
  Web URL of the project
  """
6748
  webUrl: String
6749 6750

  """
6751
  Indicates if Wikis are enabled for the current user
6752
  """
6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792
  wikiEnabled: Boolean
}

"""
The connection type for Project.
"""
type ProjectConnection {
  """
  A list of edges.
  """
  edges: [ProjectEdge]

  """
  A list of nodes.
  """
  nodes: [Project]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type ProjectEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Project
}

type ProjectPermissions {
  """
6793
  Indicates the user can perform `admin_operations` on this resource
6794 6795 6796 6797
  """
  adminOperations: Boolean!

  """
6798
  Indicates the user can perform `admin_project` on this resource
6799 6800 6801 6802
  """
  adminProject: Boolean!

  """
6803
  Indicates the user can perform `admin_remote_mirror` on this resource
6804 6805 6806 6807
  """
  adminRemoteMirror: Boolean!

  """
6808
  Indicates the user can perform `admin_wiki` on this resource
6809 6810 6811 6812
  """
  adminWiki: Boolean!

  """
6813
  Indicates the user can perform `archive_project` on this resource
6814 6815 6816 6817
  """
  archiveProject: Boolean!

  """
6818
  Indicates the user can perform `change_namespace` on this resource
6819 6820 6821 6822
  """
  changeNamespace: Boolean!

  """
6823
  Indicates the user can perform `change_visibility_level` on this resource
6824 6825 6826 6827
  """
  changeVisibilityLevel: Boolean!

  """
6828
  Indicates the user can perform `create_deployment` on this resource
6829 6830 6831 6832
  """
  createDeployment: Boolean!

  """
6833
  Indicates the user can perform `create_design` on this resource
6834 6835 6836 6837
  """
  createDesign: Boolean!

  """
6838
  Indicates the user can perform `create_issue` on this resource
6839 6840 6841 6842
  """
  createIssue: Boolean!

  """
6843
  Indicates the user can perform `create_label` on this resource
6844 6845 6846 6847
  """
  createLabel: Boolean!

  """
6848
  Indicates the user can perform `create_merge_request_from` on this resource
6849 6850 6851 6852
  """
  createMergeRequestFrom: Boolean!

  """
6853
  Indicates the user can perform `create_merge_request_in` on this resource
6854 6855 6856 6857
  """
  createMergeRequestIn: Boolean!

  """
6858
  Indicates the user can perform `create_pages` on this resource
6859 6860 6861 6862
  """
  createPages: Boolean!

  """
6863
  Indicates the user can perform `create_pipeline` on this resource
6864 6865 6866 6867
  """
  createPipeline: Boolean!

  """
6868
  Indicates the user can perform `create_pipeline_schedule` on this resource
6869 6870 6871 6872
  """
  createPipelineSchedule: Boolean!

  """
6873
  Indicates the user can perform `create_snippet` on this resource
6874
  """
6875
  createSnippet: Boolean!
6876 6877

  """
6878
  Indicates the user can perform `create_wiki` on this resource
6879 6880 6881 6882
  """
  createWiki: Boolean!

  """
6883
  Indicates the user can perform `destroy_design` on this resource
6884 6885 6886 6887
  """
  destroyDesign: Boolean!

  """
6888
  Indicates the user can perform `destroy_pages` on this resource
6889 6890 6891 6892
  """
  destroyPages: Boolean!

  """
6893
  Indicates the user can perform `destroy_wiki` on this resource
6894 6895 6896 6897
  """
  destroyWiki: Boolean!

  """
6898
  Indicates the user can perform `download_code` on this resource
6899 6900 6901 6902
  """
  downloadCode: Boolean!

  """
6903
  Indicates the user can perform `download_wiki_code` on this resource
6904 6905 6906 6907
  """
  downloadWikiCode: Boolean!

  """
6908
  Indicates the user can perform `fork_project` on this resource
6909 6910 6911 6912
  """
  forkProject: Boolean!

  """
6913
  Indicates the user can perform `push_code` on this resource
6914 6915 6916 6917
  """
  pushCode: Boolean!

  """
6918
  Indicates the user can perform `push_to_delete_protected_branch` on this resource
6919 6920 6921 6922
  """
  pushToDeleteProtectedBranch: Boolean!

  """
6923
  Indicates the user can perform `read_commit_status` on this resource
6924 6925 6926 6927
  """
  readCommitStatus: Boolean!

  """
6928
  Indicates the user can perform `read_cycle_analytics` on this resource
6929 6930 6931 6932
  """
  readCycleAnalytics: Boolean!

  """
6933
  Indicates the user can perform `read_design` on this resource
6934 6935 6936
  """
  readDesign: Boolean!

6937 6938 6939 6940 6941
  """
  Indicates the user can perform `read_merge_request` on this resource
  """
  readMergeRequest: Boolean!

6942
  """
6943
  Indicates the user can perform `read_pages_content` on this resource
6944 6945 6946 6947
  """
  readPagesContent: Boolean!

  """
6948
  Indicates the user can perform `read_project` on this resource
6949 6950 6951 6952
  """
  readProject: Boolean!

  """
6953
  Indicates the user can perform `read_project_member` on this resource
6954 6955 6956 6957
  """
  readProjectMember: Boolean!

  """
6958
  Indicates the user can perform `read_wiki` on this resource
6959 6960 6961 6962
  """
  readWiki: Boolean!

  """
6963
  Indicates the user can perform `remove_fork_project` on this resource
6964 6965 6966 6967
  """
  removeForkProject: Boolean!

  """
6968
  Indicates the user can perform `remove_pages` on this resource
6969 6970 6971 6972
  """
  removePages: Boolean!

  """
6973
  Indicates the user can perform `remove_project` on this resource
6974 6975 6976 6977
  """
  removeProject: Boolean!

  """
6978
  Indicates the user can perform `rename_project` on this resource
6979 6980 6981 6982
  """
  renameProject: Boolean!

  """
6983
  Indicates the user can perform `request_access` on this resource
6984 6985 6986 6987
  """
  requestAccess: Boolean!

  """
6988
  Indicates the user can perform `update_pages` on this resource
6989 6990 6991 6992
  """
  updatePages: Boolean!

  """
6993
  Indicates the user can perform `update_wiki` on this resource
6994 6995 6996 6997
  """
  updateWiki: Boolean!

  """
6998
  Indicates the user can perform `upload_file` on this resource
6999 7000 7001 7002 7003
  """
  uploadFile: Boolean!
}

type ProjectStatistics {
7004 7005 7006
  """
  Build artifacts size of the project
  """
7007
  buildArtifactsSize: Float!
7008 7009 7010 7011

  """
  Commit count of the project
  """
7012
  commitCount: Float!
7013 7014 7015 7016

  """
  Large File Storage (LFS) object size of the project
  """
7017
  lfsObjectsSize: Float!
7018 7019 7020 7021

  """
  Packages size of the project
  """
7022
  packagesSize: Float!
7023 7024 7025 7026

  """
  Repository size of the project
  """
7027
  repositorySize: Float!
7028 7029 7030 7031

  """
  Storage size of the project
  """
7032
  storageSize: Float!
7033 7034 7035 7036

  """
  Wiki size of the project
  """
7037
  wikiSize: Float
7038 7039 7040 7041 7042 7043 7044 7045
}

type Query {
  """
  Get information about current user
  """
  currentUser: User

7046 7047 7048 7049 7050
  """
  Fields related to design management
  """
  designManagement: DesignManagement!

7051
  """
7052
  Text to echo back
7053
  """
7054 7055 7056 7057 7058 7059
  echo(
    """
    Text to echo back
    """
    text: String!
  ): String!
7060

7061 7062 7063 7064 7065 7066 7067 7068 7069 7070
  """
  Find a Geo node
  """
  geoNode(
    """
    The name of the Geo node. Defaults to the current Geo node name.
    """
    name: String
  ): GeoNode

7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104
  """
  Find a group
  """
  group(
    """
    The full path of the project, group or namespace, e.g., "gitlab-org/gitlab-foss"
    """
    fullPath: ID!
  ): Group

  """
  Metadata about GitLab
  """
  metadata: Metadata

  """
  Find a namespace
  """
  namespace(
    """
    The full path of the project, group or namespace, e.g., "gitlab-org/gitlab-foss"
    """
    fullPath: ID!
  ): Namespace

  """
  Find a project
  """
  project(
    """
    The full path of the project, group or namespace, e.g., "gitlab-org/gitlab-foss"
    """
    fullPath: ID!
  ): Project
7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159

  """
  Find Snippets visible to the current user
  """
  snippets(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    The ID of an author
    """
    authorId: ID

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Explore personal snippets
    """
    explore: Boolean

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Array of global snippet ids, e.g., "gid://gitlab/ProjectSnippet/1"
    """
    ids: [ID!]

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    The ID of a project
    """
    projectId: ID

    """
    The type of snippet
    """
    type: TypeEnum

    """
    The visibility of the snippet
    """
    visibility: VisibilityScopesEnum
  ): SnippetConnection
7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202
}

"""
Autogenerated input type of RemoveAwardEmoji
"""
input RemoveAwardEmojiInput {
  """
  The global id of the awardable resource
  """
  awardableId: ID!

  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The emoji name
  """
  name: String!
}

"""
Autogenerated return type of RemoveAwardEmoji
"""
type RemoveAwardEmojiPayload {
  """
  The award emoji after mutation
  """
  awardEmoji: AwardEmoji

  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!
}

type Repository {
7203 7204 7205
  """
  Indicates repository has no visible content
  """
7206
  empty: Boolean!
7207 7208 7209 7210

  """
  Indicates a corresponding Git repository exists on disk
  """
7211
  exists: Boolean!
7212 7213 7214 7215

  """
  Default branch of the repository
  """
7216
  rootRef: String
7217 7218 7219 7220

  """
  Tree of the repository
  """
7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238
  tree(
    """
    The path to get the tree for. Default value is the root of the repository
    """
    path: String = ""

    """
    Used to get a recursive tree. Default is false
    """
    recursive: Boolean = false

    """
    The commit ref to get the tree for. Default value is HEAD
    """
    ref: String = "head"
  ): Tree
}

Jan Provaznik's avatar
Jan Provaznik committed
7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288
"""
Represents a requirement.
"""
type Requirement {
  """
  Author of the requirement
  """
  author: User!

  """
  Timestamp of when the requirement was created
  """
  createdAt: Time!

  """
  ID of the requirement
  """
  id: ID!

  """
  Internal ID of the requirement
  """
  iid: ID!

  """
  Project to which the requirement belongs
  """
  project: Project!

  """
  State of the requirement
  """
  state: RequirementState!

  """
  Title of the requirement
  """
  title: String

  """
  Timestamp of when the requirement was last updated
  """
  updatedAt: Time!

  """
  Permissions for the current user on the resource
  """
  userPermissions: RequirementPermissions!
}

7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323
"""
The connection type for Requirement.
"""
type RequirementConnection {
  """
  A list of edges.
  """
  edges: [RequirementEdge]

  """
  A list of nodes.
  """
  nodes: [Requirement]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type RequirementEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Requirement
}

Jan Provaznik's avatar
Jan Provaznik committed
7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361
"""
Check permissions for the current user on a requirement
"""
type RequirementPermissions {
  """
  Indicates the user can perform `admin_requirement` on this resource
  """
  adminRequirement: Boolean!

  """
  Indicates the user can perform `create_requirement` on this resource
  """
  createRequirement: Boolean!

  """
  Indicates the user can perform `destroy_requirement` on this resource
  """
  destroyRequirement: Boolean!

  """
  Indicates the user can perform `read_requirement` on this resource
  """
  readRequirement: Boolean!

  """
  Indicates the user can perform `update_requirement` on this resource
  """
  updateRequirement: Boolean!
}

"""
State of a requirement
"""
enum RequirementState {
  ARCHIVED
  OPENED
}

7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376
"""
Counts of requirements by their state.
"""
type RequirementStatesCount {
  """
  Number of archived requirements
  """
  archived: Int

  """
  Number of opened requirements
  """
  opened: Int
}

7377 7378 7379 7380
type RootStorageStatistics {
  """
  The CI artifacts size in bytes
  """
7381
  buildArtifactsSize: Float!
7382 7383 7384 7385

  """
  The LFS objects size in bytes
  """
7386
  lfsObjectsSize: Float!
7387 7388 7389 7390

  """
  The packages size in bytes
  """
7391
  packagesSize: Float!
7392 7393

  """
Marcel Amirault's avatar
Marcel Amirault committed
7394
  The Git repository size in bytes
7395
  """
7396
  repositorySize: Float!
7397 7398 7399 7400

  """
  The total storage in bytes
  """
7401
  storageSize: Float!
7402 7403 7404 7405

  """
  The wiki size in bytes
  """
7406
  wikiSize: Float!
7407 7408
}

Sean Arnold's avatar
Sean Arnold committed
7409 7410 7411
"""
A Sentry error.
"""
7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422
type SentryDetailedError {
  """
  Count of occurrences
  """
  count: Int!

  """
  Culprit of the error
  """
  culprit: String!

7423 7424 7425 7426 7427
  """
  External Base URL of the Sentry Instance
  """
  externalBaseUrl: String!

7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452
  """
  External URL of the error
  """
  externalUrl: String!

  """
  Commit the error was first seen
  """
  firstReleaseLastCommit: String

  """
  Release version the error was first seen
  """
  firstReleaseShortVersion: String

  """
  Timestamp when the error was first seen
  """
  firstSeen: Time!

  """
  Last 24hr stats of the error
  """
  frequency: [SentryErrorFrequency!]!

7453 7454 7455 7456 7457
  """
  GitLab commit SHA attributed to the Error based on the release version
  """
  gitlabCommit: String

7458 7459 7460 7461 7462
  """
  Path to the GitLab page for the GitLab commit attributed to the error
  """
  gitlabCommitPath: String

7463 7464 7465 7466 7467
  """
  URL of GitLab Issue
  """
  gitlabIssuePath: String

7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522
  """
  ID (global ID) of the error
  """
  id: ID!

  """
  Commit the error was last seen
  """
  lastReleaseLastCommit: String

  """
  Release version the error was last seen
  """
  lastReleaseShortVersion: String

  """
  Timestamp when the error was last seen
  """
  lastSeen: Time!

  """
  Sentry metadata message of the error
  """
  message: String

  """
  ID (Sentry ID) of the error
  """
  sentryId: String!

  """
  ID of the project (Sentry project)
  """
  sentryProjectId: ID!

  """
  Name of the project affected by the error
  """
  sentryProjectName: String!

  """
  Slug of the project affected by the error
  """
  sentryProjectSlug: String!

  """
  Short ID (Sentry ID) of the error
  """
  shortId: String!

  """
  Status of the error
  """
  status: SentryErrorStatus!

7523 7524 7525 7526 7527
  """
  Tags associated with the Sentry Error
  """
  tags: SentryErrorTags!

7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543
  """
  Title of the error
  """
  title: String!

  """
  Type of the error
  """
  type: String!

  """
  Count of users affected by the error
  """
  userCount: Int!
}

Sean Arnold's avatar
Sean Arnold committed
7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647
"""
A Sentry error. A simplified version of SentryDetailedError.
"""
type SentryError {
  """
  Count of occurrences
  """
  count: Int!

  """
  Culprit of the error
  """
  culprit: String!

  """
  External URL of the error
  """
  externalUrl: String!

  """
  Timestamp when the error was first seen
  """
  firstSeen: Time!

  """
  Last 24hr stats of the error
  """
  frequency: [SentryErrorFrequency!]!

  """
  ID (global ID) of the error
  """
  id: ID!

  """
  Timestamp when the error was last seen
  """
  lastSeen: Time!

  """
  Sentry metadata message of the error
  """
  message: String

  """
  ID (Sentry ID) of the error
  """
  sentryId: String!

  """
  ID of the project (Sentry project)
  """
  sentryProjectId: ID!

  """
  Name of the project affected by the error
  """
  sentryProjectName: String!

  """
  Slug of the project affected by the error
  """
  sentryProjectSlug: String!

  """
  Short ID (Sentry ID) of the error
  """
  shortId: String!

  """
  Status of the error
  """
  status: SentryErrorStatus!

  """
  Title of the error
  """
  title: String!

  """
  Type of the error
  """
  type: String!

  """
  Count of users affected by the error
  """
  userCount: Int!
}

"""
An object containing a collection of Sentry errors, and a detailed error.
"""
type SentryErrorCollection {
  """
  Detailed version of a Sentry error on the project
  """
  detailedError(
    """
    ID of the Sentry issue
    """
    id: ID!
  ): SentryDetailedError

Sean Arnold's avatar
Sean Arnold committed
7648 7649 7650 7651 7652 7653 7654 7655 7656 7657
  """
  Stack Trace of Sentry Error
  """
  errorStackTrace(
    """
    ID of the Sentry issue
    """
    id: ID!
  ): SentryErrorStackTrace

Sean Arnold's avatar
Sean Arnold committed
7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733
  """
  Collection of Sentry Errors
  """
  errors(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    Search term for the Sentry error.
    """
    searchTerm: String

    """
    Attribute to sort on. Options are frequency, first_seen, last_seen. last_seen is default.
    """
    sort: String
  ): SentryErrorConnection

  """
  External URL for Sentry
  """
  externalUrl: String
}

"""
The connection type for SentryError.
"""
type SentryErrorConnection {
  """
  A list of edges.
  """
  edges: [SentryErrorEdge]

  """
  A list of nodes.
  """
  nodes: [SentryError]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type SentryErrorEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: SentryError
}

7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745
type SentryErrorFrequency {
  """
  Count of errors received since the previously recorded time
  """
  count: Int!

  """
  Time the error frequency stats were recorded
  """
  time: Time!
}

Sean Arnold's avatar
Sean Arnold committed
7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810
"""
An object containing a stack trace entry for a Sentry error.
"""
type SentryErrorStackTrace {
  """
  Time the stack trace was received by Sentry
  """
  dateReceived: String!

  """
  ID of the Sentry error
  """
  issueId: String!

  """
  Stack trace entries for the Sentry error
  """
  stackTraceEntries: [SentryErrorStackTraceEntry!]!
}

"""
An object context for a Sentry error stack trace
"""
type SentryErrorStackTraceContext {
  """
  Code number of the context
  """
  code: String!

  """
  Line number of the context
  """
  line: Int!
}

"""
An object containing a stack trace entry for a Sentry error.
"""
type SentryErrorStackTraceEntry {
  """
  Function in which the Sentry error occurred
  """
  col: String

  """
  File in which the Sentry error occurred
  """
  fileName: String

  """
  Function in which the Sentry error occurred
  """
  function: String

  """
  Function in which the Sentry error occurred
  """
  line: String

  """
  Context of the Sentry error
  """
  traceContext: [SentryErrorStackTraceContext!]
}

7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835
"""
State of a Sentry error
"""
enum SentryErrorStatus {
  """
  Error has been ignored
  """
  IGNORED

  """
  Error has been resolved
  """
  RESOLVED

  """
  Error has been ignored until next release
  """
  RESOLVED_IN_NEXT_RELEASE

  """
  Error is unresolved
  """
  UNRESOLVED
}

7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850
"""
State of a Sentry error
"""
type SentryErrorTags {
  """
  Severity level of the Sentry Error
  """
  level: String

  """
  Logger of the Sentry Error
  """
  logger: String
}

7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934
interface Service {
  """
  Indicates if the service is active
  """
  active: Boolean

  """
  Class name of the service
  """
  type: String
}

"""
The connection type for Service.
"""
type ServiceConnection {
  """
  A list of edges.
  """
  edges: [ServiceEdge]

  """
  A list of nodes.
  """
  nodes: [Service]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type ServiceEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Service
}

enum ServiceType {
  ALERTS_SERVICE
  ASANA_SERVICE
  ASSEMBLA_SERVICE
  BAMBOO_SERVICE
  BUGZILLA_SERVICE
  BUILDKITE_SERVICE
  CAMPFIRE_SERVICE
  CUSTOM_ISSUE_TRACKER_SERVICE
  DISCORD_SERVICE
  DRONE_CI_SERVICE
  EMAILS_ON_PUSH_SERVICE
  EXTERNAL_WIKI_SERVICE
  FLOWDOCK_SERVICE
  GITHUB_SERVICE
  HANGOUTS_CHAT_SERVICE
  HIPCHAT_SERVICE
  IRKER_SERVICE
  JENKINS_DEPRECATED_SERVICE
  JENKINS_SERVICE
  JIRA_SERVICE
  MATTERMOST_SERVICE
  MATTERMOST_SLASH_COMMANDS_SERVICE
  MICROSOFT_TEAMS_SERVICE
  PACKAGIST_SERVICE
  PIPELINES_EMAIL_SERVICE
  PIVOTALTRACKER_SERVICE
  PROMETHEUS_SERVICE
  PUSHOVER_SERVICE
  REDMINE_SERVICE
  SLACK_SERVICE
  SLACK_SLASH_COMMANDS_SERVICE
  TEAMCITY_SERVICE
  UNIFY_CIRCUIT_SERVICE
  YOUTRACK_SERVICE
}

7935 7936 7937 7938 7939 7940 7941 7942 7943 7944
"""
Represents a snippet entry
"""
type Snippet implements Noteable {
  """
  The owner of the snippet
  """
  author: User!

  """
7945
  Snippet blob
7946
  """
7947
  blob: SnippetBlob!
7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993

  """
  Timestamp this snippet was created
  """
  createdAt: Time!

  """
  Description of the snippet
  """
  description: String

  """
  The GitLab Flavored Markdown rendering of `description`
  """
  descriptionHtml: String

  """
  All discussions on this noteable
  """
  discussions(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): DiscussionConnection!

  """
  File Name of the snippet
  """
  fileName: String

7994 7995 7996 7997 7998
  """
  HTTP URL to the snippet repository
  """
  httpUrlToRepo: String

7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038
  """
  Id of the snippet
  """
  id: ID!

  """
  All notes on this noteable
  """
  notes(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): NoteConnection!

  """
  The project the snippet is associated with
  """
  project: Project

  """
  Raw URL of the snippet
  """
  rawUrl: String!

8039 8040 8041 8042 8043
  """
  SSH URL to the snippet repository
  """
  sshUrlToRepo: String

8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059
  """
  Title of the snippet
  """
  title: String!

  """
  Timestamp this snippet was updated
  """
  updatedAt: Time!

  """
  Permissions for the current user on the resource
  """
  userPermissions: SnippetPermissions!

  """
8060
  Visibility Level of the snippet
8061
  """
8062
  visibilityLevel: VisibilityLevelsEnum!
8063 8064 8065 8066 8067 8068 8069

  """
  Web URL of the snippet
  """
  webUrl: String!
}

8070 8071 8072 8073 8074 8075 8076 8077 8078
"""
Represents the snippet blob
"""
type SnippetBlob {
  """
  Shows whether the blob is binary
  """
  binary: Boolean!

8079 8080 8081 8082 8083
  """
  Blob mode
  """
  mode: String

8084 8085 8086 8087 8088 8089 8090 8091 8092 8093
  """
  Blob name
  """
  name: String

  """
  Blob path
  """
  path: String

8094 8095 8096
  """
  Blob plain highlighted data
  """
8097
  plainData: String
8098

8099 8100 8101 8102 8103
  """
  Blob raw content endpoint path
  """
  rawPath: String!

8104 8105 8106 8107 8108
  """
  Blob highlighted data
  """
  richData: String

8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164
  """
  Blob content rich viewer
  """
  richViewer: SnippetBlobViewer

  """
  Blob content simple viewer
  """
  simpleViewer: SnippetBlobViewer!

  """
  Blob size
  """
  size: Int!
}

"""
Represents how the blob content should be displayed
"""
type SnippetBlobViewer {
  """
  Shows whether the blob should be displayed collapsed
  """
  collapsed: Boolean!

  """
  Content file type
  """
  fileType: String!

  """
  Shows whether the blob content is loaded async
  """
  loadAsync: Boolean!

  """
  Loading partial name
  """
  loadingPartialName: String!

  """
  Error rendering the blob content
  """
  renderError: String

  """
  Shows whether the blob too large to be displayed
  """
  tooLarge: Boolean!

  """
  Type of blob viewer
  """
  type: BlobViewersType!
}

8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201
"""
The connection type for Snippet.
"""
type SnippetConnection {
  """
  A list of edges.
  """
  edges: [SnippetEdge]

  """
  A list of nodes.
  """
  nodes: [Snippet]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type SnippetEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Snippet
}

type SnippetPermissions {
  """
8202
  Indicates the user can perform `admin_snippet` on this resource
8203 8204 8205 8206
  """
  adminSnippet: Boolean!

  """
8207
  Indicates the user can perform `award_emoji` on this resource
8208 8209 8210 8211
  """
  awardEmoji: Boolean!

  """
8212
  Indicates the user can perform `create_note` on this resource
8213 8214 8215 8216
  """
  createNote: Boolean!

  """
8217
  Indicates the user can perform `read_snippet` on this resource
8218 8219 8220
  """
  readSnippet: Boolean!

8221
  """
8222
  Indicates the user can perform `report_snippet` on this resource
8223 8224 8225
  """
  reportSnippet: Boolean!

8226
  """
8227
  Indicates the user can perform `update_snippet` on this resource
8228 8229 8230 8231
  """
  updateSnippet: Boolean!
}

8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256
"""
Common sort values
"""
enum Sort {
  """
  Created at ascending order
  """
  created_asc

  """
  Created at descending order
  """
  created_desc

  """
  Updated at ascending order
  """
  updated_asc

  """
  Updated at descending order
  """
  updated_desc
}

8257
type Submodule implements Entry {
8258 8259 8260
  """
  Flat path of the entry
  """
8261
  flatPath: String!
8262 8263 8264 8265

  """
  ID of the entry
  """
8266
  id: ID!
8267 8268 8269 8270

  """
  Name of the entry
  """
8271
  name: String!
8272 8273 8274 8275

  """
  Path of the entry
  """
8276
  path: String!
8277 8278

  """
8279
  Last commit sha for the entry
8280 8281
  """
  sha: String!
8282 8283 8284 8285

  """
  Tree URL for the sub-module
  """
8286
  treeUrl: String
8287 8288 8289 8290

  """
  Type of tree entry
  """
8291
  type: EntryType!
8292 8293 8294 8295

  """
  Web URL for the sub-module
  """
8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337
  webUrl: String
}

"""
The connection type for Submodule.
"""
type SubmoduleConnection {
  """
  A list of edges.
  """
  edges: [SubmoduleEdge]

  """
  A list of nodes.
  """
  nodes: [Submodule]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type SubmoduleEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Submodule
}

"""
Completion status of tasks
"""
type TaskCompletionStatus {
8338 8339 8340
  """
  Number of completed tasks
  """
8341
  completedCount: Int!
8342 8343 8344 8345

  """
  Number of total tasks
  """
8346 8347 8348 8349 8350 8351 8352 8353
  count: Int!
}

"""
Time represented in ISO 8601
"""
scalar Time

8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410
type Timelog {
  """
  The date when the time tracked was spent at
  """
  date: Time!

  """
  The issue that logged time was added to
  """
  issue: Issue

  """
  The time spent displayed in seconds
  """
  timeSpent: Int!

  """
  The user that logged the time
  """
  user: User!
}

"""
The connection type for Timelog.
"""
type TimelogConnection {
  """
  A list of edges.
  """
  edges: [TimelogEdge]

  """
  A list of nodes.
  """
  nodes: [Timelog]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type TimelogEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Timelog
}

8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505
"""
Representing a todo entry
"""
type Todo {
  """
  Action of the todo
  """
  action: TodoActionEnum!

  """
  The owner of this todo
  """
  author: User!

  """
  Body of the todo
  """
  body: String!

  """
  Timestamp this todo was created
  """
  createdAt: Time!

  """
  Group this todo is associated with
  """
  group: Group

  """
  Id of the todo
  """
  id: ID!

  """
  The project this todo is associated with
  """
  project: Project

  """
  State of the todo
  """
  state: TodoStateEnum!

  """
  Target type of the todo
  """
  targetType: TodoTargetEnum!
}

enum TodoActionEnum {
  approval_required
  assigned
  build_failed
  directly_addressed
  marked
  mentioned
  unmergeable
}

"""
The connection type for Todo.
"""
type TodoConnection {
  """
  A list of edges.
  """
  edges: [TodoEdge]

  """
  A list of nodes.
  """
  nodes: [Todo]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type TodoEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Todo
}

8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540
"""
Autogenerated input type of TodoMarkDone
"""
input TodoMarkDoneInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The global id of the todo to mark as done
  """
  id: ID!
}

"""
Autogenerated return type of TodoMarkDone
"""
type TodoMarkDonePayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The requested todo
  """
  todo: Todo!
}

8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555
"""
Autogenerated input type of TodoRestore
"""
input TodoRestoreInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The global id of the todo to restore
  """
  id: ID!
}

8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590
"""
Autogenerated input type of TodoRestoreMany
"""
input TodoRestoreManyInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The global ids of the todos to restore (a maximum of 50 is supported at once)
  """
  ids: [ID!]!
}

"""
Autogenerated return type of TodoRestoreMany
"""
type TodoRestoreManyPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The ids of the updated todo items
  """
  updatedIds: [ID!]!
}

8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610
"""
Autogenerated return type of TodoRestore
"""
type TodoRestorePayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The requested todo
  """
  todo: Todo!
}

8611 8612 8613 8614 8615 8616
enum TodoStateEnum {
  done
  pending
}

enum TodoTargetEnum {
8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640
  """
  A Commit
  """
  COMMIT

  """
  A Design
  """
  DESIGN

  """
  An Epic
  """
  EPIC

  """
  An Issue
  """
  ISSUE

  """
  A MergeRequest
  """
  MERGEREQUEST
8641 8642
}

8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672
"""
Autogenerated input type of TodosMarkAllDone
"""
input TodosMarkAllDoneInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String
}

"""
Autogenerated return type of TodosMarkAllDone
"""
type TodosMarkAllDonePayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  Ids of the updated todos
  """
  updatedIds: [ID!]!
}

8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712
"""
Autogenerated input type of ToggleAwardEmoji
"""
input ToggleAwardEmojiInput {
  """
  The global id of the awardable resource
  """
  awardableId: ID!

  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The emoji name
  """
  name: String!
}

"""
Autogenerated return type of ToggleAwardEmoji
"""
type ToggleAwardEmojiPayload {
  """
  The award emoji after mutation
  """
  awardEmoji: AwardEmoji

  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
8713
  Indicates the status of the emoji. True if the toggle awarded the emoji, and false if the toggle removed the emoji.
8714 8715 8716 8717 8718
  """
  toggledOn: Boolean!
}

type Tree {
8719 8720 8721
  """
  Blobs of the tree
  """
8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747
  blobs(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): BlobConnection!

  """
  Last commit for the tree
  """
  lastCommit: Commit
8748 8749 8750 8751

  """
  Sub-modules of the tree
  """
8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772
  submodules(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): SubmoduleConnection!
8773 8774 8775 8776

  """
  Trees of the tree
  """
8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803
  trees(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Returns the last _n_ elements from the list.
    """
    last: Int
  ): TreeEntryConnection!
}

"""
Represents a directory
"""
type TreeEntry implements Entry {
8804 8805 8806
  """
  Flat path of the entry
  """
8807
  flatPath: String!
8808 8809 8810 8811

  """
  ID of the entry
  """
8812
  id: ID!
8813 8814 8815 8816

  """
  Name of the entry
  """
8817
  name: String!
8818 8819 8820 8821

  """
  Path of the entry
  """
8822
  path: String!
8823 8824

  """
8825
  Last commit sha for the entry
8826 8827
  """
  sha: String!
8828 8829 8830 8831

  """
  Type of tree entry
  """
8832
  type: EntryType!
8833 8834 8835 8836

  """
  Web URL for the tree entry (directory)
  """
8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874
  webUrl: String
}

"""
The connection type for TreeEntry.
"""
type TreeEntryConnection {
  """
  A list of edges.
  """
  edges: [TreeEntryEdge]

  """
  A list of nodes.
  """
  nodes: [TreeEntry]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type TreeEntryEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: TreeEntry
}

8875 8876 8877 8878 8879
enum TypeEnum {
  personal
  project
}

8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901
input UpdateDiffImagePositionInput {
  """
  Total height of the image
  """
  height: Int

  """
  Total width of the image
  """
  width: Int

  """
  X position of the note
  """
  x: Int

  """
  Y position of the note
  """
  y: Int
}

8902 8903 8904 8905
"""
Autogenerated input type of UpdateEpic
"""
input UpdateEpicInput {
8906 8907 8908 8909 8910
  """
  The IDs of labels to be added to the epic.
  """
  addLabelIds: [ID!]

8911 8912 8913 8914 8915
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

8916 8917 8918 8919 8920
  """
  Indicates if the epic is confidential. Will be ignored if `confidential_epics` feature flag is disabled
  """
  confidential: Boolean

8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943
  """
  The description of the epic
  """
  description: String

  """
  The end date of the epic
  """
  dueDateFixed: String

  """
  Indicates end date should be sourced from due_date_fixed field not the issue milestones
  """
  dueDateIsFixed: Boolean

  """
  The group the epic to mutate is in
  """
  groupPath: ID!

  """
  The iid of the epic to mutate
  """
8944
  iid: ID!
8945

8946 8947 8948 8949 8950
  """
  The IDs of labels to be removed from the epic.
  """
  removeLabelIds: [ID!]

8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991
  """
  The start date of the epic
  """
  startDateFixed: String

  """
  Indicates start date should be sourced from start_date_fixed field not the issue milestones
  """
  startDateIsFixed: Boolean

  """
  State event for the epic
  """
  stateEvent: EpicStateEvent

  """
  The title of the epic
  """
  title: String
}

"""
Autogenerated return type of UpdateEpic
"""
type UpdateEpicPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The epic after mutation
  """
  epic: Epic

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!
}

8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036
"""
Autogenerated input type of UpdateImageDiffNote
"""
input UpdateImageDiffNoteInput {
  """
  Content of the note
  """
  body: String

  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The global id of the note to update
  """
  id: ID!

  """
  The position of this note on a diff
  """
  position: UpdateDiffImagePositionInput
}

"""
Autogenerated return type of UpdateImageDiffNote
"""
type UpdateImageDiffNotePayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The note after mutation
  """
  note: Note
}

9037 9038 9039 9040 9041 9042 9043 9044 9045
"""
Autogenerated input type of UpdateIssue
"""
input UpdateIssueInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

9046 9047 9048
  """
  Indicates the issue is confidential
  """
9049
  confidential: Boolean
9050 9051 9052 9053 9054 9055 9056 9057 9058

  """
  Description of the issue
  """
  description: String

  """
  Due date of the issue
  """
9059
  dueDate: Time
9060

9061 9062 9063 9064 9065 9066 9067 9068
  """
  The desired health status
  """
  healthStatus: HealthStatus

  """
  The iid of the issue to mutate
  """
Eugenia Grieff's avatar
Eugenia Grieff committed
9069
  iid: String!
9070 9071 9072 9073 9074

  """
  The project the issue to mutate is in
  """
  projectPath: ID!
9075 9076 9077 9078 9079

  """
  Title of the issue
  """
  title: String
9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101
}

"""
Autogenerated return type of UpdateIssue
"""
type UpdateIssuePayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The issue after mutation
  """
  issue: Issue
}

9102 9103 9104 9105 9106
"""
Autogenerated input type of UpdateNote
"""
input UpdateNoteInput {
  """
9107
  Content of the note
9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141
  """
  body: String!

  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The global id of the note to update
  """
  id: ID!
}

"""
Autogenerated return type of UpdateNote
"""
type UpdateNotePayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The note after mutation
  """
  note: Note
}

9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191
"""
Autogenerated input type of UpdateRequirement
"""
input UpdateRequirementInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  The iid of the requirement to update
  """
  iid: String!

  """
  The project full path the requirement is associated with
  """
  projectPath: ID!

  """
  State of the requirement
  """
  state: RequirementState

  """
  Title of the requirement
  """
  title: String
}

"""
Autogenerated return type of UpdateRequirement
"""
type UpdateRequirementPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The requirement after mutation
  """
  requirement: Requirement
}

9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251
"""
Autogenerated input type of UpdateSnippet
"""
input UpdateSnippetInput {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Content of the snippet
  """
  content: String

  """
  Description of the snippet
  """
  description: String

  """
  File name of the snippet
  """
  fileName: String

  """
  The global id of the snippet to update
  """
  id: ID!

  """
  Title of the snippet
  """
  title: String

  """
  The visibility level of the snippet
  """
  visibilityLevel: VisibilityLevelsEnum
}

"""
Autogenerated return type of UpdateSnippet
"""
type UpdateSnippetPayload {
  """
  A unique identifier for the client performing the mutation.
  """
  clientMutationId: String

  """
  Reasons why the mutation failed.
  """
  errors: [String!]!

  """
  The snippet after mutation
  """
  snippet: Snippet
}

9252 9253 9254
scalar Upload

type User {
9255 9256 9257
  """
  URL of the user's avatar
  """
9258
  avatarUrl: String
9259 9260 9261 9262

  """
  Human-readable name of the user
  """
9263 9264
  name: String!

9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304
  """
  Snippets authored by the user
  """
  snippets(
    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    Array of global snippet ids, e.g., "gid://gitlab/ProjectSnippet/1"
    """
    ids: [ID!]

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    The type of snippet
    """
    type: TypeEnum

    """
    The visibility of the snippet
    """
    visibility: VisibilityScopesEnum
  ): SnippetConnection

9305
  """
9306
  Todos of the user
9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358
  """
  todos(
    """
    The action to be filtered
    """
    action: [TodoActionEnum!]

    """
    Returns the elements in the list that come after the specified cursor.
    """
    after: String

    """
    The ID of an author
    """
    authorId: [ID!]

    """
    Returns the elements in the list that come before the specified cursor.
    """
    before: String

    """
    Returns the first _n_ elements from the list.
    """
    first: Int

    """
    The ID of a group
    """
    groupId: [ID!]

    """
    Returns the last _n_ elements from the list.
    """
    last: Int

    """
    The ID of a project
    """
    projectId: [ID!]

    """
    The state of the todo
    """
    state: [TodoStateEnum!]

    """
    The type of the todo
    """
    type: [TodoTargetEnum!]
  ): TodoConnection!
9359

9360 9361 9362 9363 9364
  """
  Permissions for the current user on the resource
  """
  userPermissions: UserPermissions!

9365 9366 9367
  """
  Username of the user. Unique within this instance of GitLab
  """
9368
  username: String!
9369 9370 9371 9372

  """
  Web URL of the user
  """
9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408
  webUrl: String!
}

"""
The connection type for User.
"""
type UserConnection {
  """
  A list of edges.
  """
  edges: [UserEdge]

  """
  A list of nodes.
  """
  nodes: [User]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type UserEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: User
9409 9410 9411 9412
}

type UserPermissions {
  """
9413
  Indicates the user can perform `create_snippet` on this resource
9414 9415 9416 9417
  """
  createSnippet: Boolean!
}

9418 9419 9420 9421 9422 9423
enum VisibilityLevelsEnum {
  internal
  private
  public
}

9424 9425 9426 9427
enum VisibilityScopesEnum {
  internal
  private
  public
9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520
}

"""
Represents a vulnerability.
"""
type Vulnerability {
  """
  Description of the vulnerability
  """
  description: String

  """
  GraphQL ID of the vulnerability
  """
  id: ID!

  """
  The JSON location metadata for the vulnerability. Its format depends on the
  type of the security scan that found the vulnerability
  """
  location: JSON

  """
  Type of the security report that found the vulnerability (SAST, DEPENDENCY_SCANNING, CONTAINER_SCANNING, DAST)
  """
  reportType: VulnerabilityReportType

  """
  Severity of the vulnerability (INFO, UNKNOWN, LOW, MEDIUM, HIGH, CRITICAL)
  """
  severity: VulnerabilitySeverity

  """
  State of the vulnerability (DETECTED, DISMISSED, RESOLVED, CONFIRMED)
  """
  state: VulnerabilityState

  """
  Title of the vulnerability
  """
  title: String

  """
  URL to the vulnerability's details page
  """
  vulnerabilityPath: String
}

"""
The connection type for Vulnerability.
"""
type VulnerabilityConnection {
  """
  A list of edges.
  """
  edges: [VulnerabilityEdge]

  """
  A list of nodes.
  """
  nodes: [Vulnerability]

  """
  Information to aid in pagination.
  """
  pageInfo: PageInfo!
}

"""
An edge in a connection.
"""
type VulnerabilityEdge {
  """
  A cursor for use in pagination.
  """
  cursor: String!

  """
  The item at the end of the edge.
  """
  node: Vulnerability
}

"""
The type of the security scan that found the vulnerability.
"""
enum VulnerabilityReportType {
  CONTAINER_SCANNING
  DAST
  DEPENDENCY_SCANNING
  SAST
}

Avielle Wolfe's avatar
Avielle Wolfe committed
9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555
"""
Represents vulnerability counts by severity
"""
type VulnerabilitySeveritiesCount {
  """
  Number of vulnerabilities of CRITICAL severity of the project
  """
  critical: Int

  """
  Number of vulnerabilities of HIGH severity of the project
  """
  high: Int

  """
  Number of vulnerabilities of INFO severity of the project
  """
  info: Int

  """
  Number of vulnerabilities of LOW severity of the project
  """
  low: Int

  """
  Number of vulnerabilities of MEDIUM severity of the project
  """
  medium: Int

  """
  Number of vulnerabilities of UNKNOWN severity of the project
  """
  unknown: Int
}

9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575
"""
The severity of the vulnerability.
"""
enum VulnerabilitySeverity {
  CRITICAL
  HIGH
  INFO
  LOW
  MEDIUM
  UNKNOWN
}

"""
The state of the vulnerability.
"""
enum VulnerabilityState {
  CONFIRMED
  DETECTED
  DISMISSED
  RESOLVED
9576
}