| 1 | # ------------------------------------------------------ |
| 2 | # THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY) |
| 3 | # ------------------------------------------------------ |
| 4 | |
| 5 | interface Actor { |
| 6 | avatarUrl: URI |
| 7 | login: String |
| 8 | resourcePath: URI |
| 9 | url: URI |
| 10 | } |
| 11 | |
| 12 | input AddAssigneesToAssignableInput { |
| 13 | assignableId: ID |
| 14 | assigneeIds: [ |
| 15 | clientMutationId: String |
| 16 | } |
| 17 | |
| 18 | type AddAssigneesToAssignablePayload { |
| 19 | assignable: Assignable |
| 20 | clientMutationId: String |
| 21 | } |
| 22 | |
| 23 | input AddCommentInput { |
| 24 | body: String |
| 25 | clientMutationId: String |
| 26 | subjectId: ID |
| 27 | } |
| 28 | |
| 29 | type AddCommentPayload { |
| 30 | clientMutationId: String |
| 31 | commentEdge: IssueCommentEdge |
| 32 | } |
| 33 | |
| 34 | input AddLabelsToLabelableInput { |
| 35 | clientMutationId: String |
| 36 | labelIds: [ |
| 37 | labelableId: ID |
| 38 | } |
| 39 | |
| 40 | type AddLabelsToLabelablePayload { |
| 41 | clientMutationId: String |
| 42 | labelable: Labelable |
| 43 | } |
| 44 | |
| 45 | interface Assignable { |
| 46 | assignees: UserConnection |
| 47 | } |
| 48 | |
| 49 | input CloseIssueInput { |
| 50 | clientMutationId: String |
| 51 | issueId: ID |
| 52 | stateReason: IssueClosedStateReason |
| 53 | } |
| 54 | |
| 55 | type CloseIssuePayload { |
| 56 | clientMutationId: String |
| 57 | issue: Issue |
| 58 | } |
| 59 | |
| 60 | enum CommentAuthorAssociation { |
| 61 | COLLABORATOR |
| 62 | CONTRIBUTOR |
| 63 | FIRST_TIMER |
| 64 | FIRST_TIME_CONTRIBUTOR |
| 65 | MANNEQUIN |
| 66 | MEMBER |
| 67 | NONE |
| 68 | OWNER |
| 69 | } |
| 70 | |
| 71 | input CreateIssueInput { |
| 72 | assigneeIds: [ |
| 73 | body: String |
| 74 | clientMutationId: String |
| 75 | issueTemplate: String |
| 76 | labelIds: [ |
| 77 | milestoneId: ID |
| 78 | projectIds: [ |
| 79 | repositoryId: ID |
| 80 | title: String |
| 81 | } |
| 82 | |
| 83 | type CreateIssuePayload { |
| 84 | clientMutationId: String |
| 85 | issue: Issue |
| 86 | } |
| 87 | |
| 88 | input CreateRepositoryInput { |
| 89 | clientMutationId: String |
| 90 | description: String |
| 91 | hasIssuesEnabled: Boolean |
| 92 | hasWikiEnabled: Boolean |
| 93 | homepageUrl: URI |
| 94 | name: String |
| 95 | ownerId: ID |
| 96 | teamId: ID |
| 97 | template: Boolean |
| 98 | visibility: RepositoryVisibility |
| 99 | } |
| 100 | |
| 101 | type CreateRepositoryPayload { |
| 102 | clientMutationId: String |
| 103 | repository: Repository |
| 104 | } |
| 105 | |
| 106 | """ |
| 107 | A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format. |
| 108 | """ |
| 109 | scalar DateTime |
| 110 | |
| 111 | """Git SSH string""" |
| 112 | scalar GitSSHRemote |
| 113 | |
| 114 | """A string containing HTML code.""" |
| 115 | scalar HTML |
| 116 | |
| 117 | type Issue implements |
| 118 | assignees(first |
| 119 | author: Actor |
| 120 | body: String |
| 121 | bodyHTML: HTML |
| 122 | bodyText: String |
| 123 | closed: Boolean |
| 124 | closedAt: DateTime |
| 125 | comments(after |
| 126 | createdAt: DateTime |
| 127 | databaseId: Int |
| 128 | id: ID |
| 129 | includesCreatedEdit: Boolean |
| 130 | isPinned: Boolean |
| 131 | issueType: IssueType |
| 132 | labels(first |
| 133 | locked: Boolean |
| 134 | milestone: Milestone |
| 135 | number: Int |
| 136 | parent: Issue |
| 137 | projectItems(after |
| 138 | reactionGroups: [ |
| 139 | repository: Repository |
| 140 | resourcePath: URI |
| 141 | state: IssueState |
| 142 | stateReason: IssueStateReason |
| 143 | subIssues(first |
| 144 | subIssuesSummary: SubIssuesSummary |
| 145 | title: String |
| 146 | updatedAt: DateTime |
| 147 | url: URI |
| 148 | viewerCanUpdate: Boolean |
| 149 | } |
| 150 | |
| 151 | enum IssueClosedStateReason { |
| 152 | COMPLETED |
| 153 | DUPLICATE |
| 154 | NOT_PLANNED |
| 155 | } |
| 156 | |
| 157 | type IssueComment implements |
| 158 | author: Actor |
| 159 | authorAssociation: CommentAuthorAssociation |
| 160 | body: String |
| 161 | createdAt: DateTime |
| 162 | id: ID |
| 163 | includesCreatedEdit: Boolean |
| 164 | isMinimized: Boolean |
| 165 | minimizedReason: String |
| 166 | reactionGroups: [ |
| 167 | resourcePath: URI |
| 168 | updatedAt: DateTime |
| 169 | url: URI |
| 170 | viewerDidAuthor: Boolean |
| 171 | } |
| 172 | |
| 173 | type IssueCommentConnection { |
| 174 | nodes: [ |
| 175 | pageInfo: PageInfo |
| 176 | totalCount: Int |
| 177 | } |
| 178 | |
| 179 | type IssueCommentEdge { |
| 180 | cursor: String |
| 181 | node: IssueComment |
| 182 | } |
| 183 | |
| 184 | type IssueConnection { |
| 185 | nodes: [ |
| 186 | pageInfo: PageInfo |
| 187 | totalCount: Int |
| 188 | } |
| 189 | |
| 190 | input IssueFilters { |
| 191 | assignee: String |
| 192 | createdBy: String |
| 193 | labels: [ |
| 194 | mentioned: String |
| 195 | states: [ |
| 196 | } |
| 197 | |
| 198 | union IssueOrPullRequest = Issue |
| 199 | |
| 200 | input IssueOrder { |
| 201 | direction: OrderDirection |
| 202 | field: IssueOrderField |
| 203 | } |
| 204 | |
| 205 | enum IssueOrderField { |
| 206 | COMMENTS |
| 207 | CREATED_AT |
| 208 | UPDATED_AT |
| 209 | } |
| 210 | |
| 211 | enum IssueState { |
| 212 | CLOSED |
| 213 | OPEN |
| 214 | } |
| 215 | |
| 216 | enum IssueStateReason { |
| 217 | COMPLETED |
| 218 | DUPLICATE |
| 219 | NOT_PLANNED |
| 220 | REOPENED |
| 221 | } |
| 222 | |
| 223 | type IssueType implements |
| 224 | color: IssueTypeColor |
| 225 | description: String |
| 226 | id: ID |
| 227 | name: String |
| 228 | } |
| 229 | |
| 230 | enum IssueTypeColor { |
| 231 | BLUE |
| 232 | GRAY |
| 233 | GREEN |
| 234 | ORANGE |
| 235 | PINK |
| 236 | PURPLE |
| 237 | RED |
| 238 | YELLOW |
| 239 | } |
| 240 | |
| 241 | type Label implements |
| 242 | color: String |
| 243 | createdAt: DateTime |
| 244 | description: String |
| 245 | id: ID |
| 246 | isDefault: Boolean |
| 247 | name: String |
| 248 | resourcePath: URI |
| 249 | updatedAt: DateTime |
| 250 | url: URI |
| 251 | } |
| 252 | |
| 253 | type LabelConnection { |
| 254 | nodes: [ |
| 255 | pageInfo: PageInfo |
| 256 | totalCount: Int |
| 257 | } |
| 258 | |
| 259 | input LabelOrder { |
| 260 | direction: OrderDirection |
| 261 | field: LabelOrderField |
| 262 | } |
| 263 | |
| 264 | enum LabelOrderField { |
| 265 | CREATED_AT |
| 266 | NAME |
| 267 | } |
| 268 | |
| 269 | interface Labelable { |
| 270 | labels: LabelConnection |
| 271 | } |
| 272 | |
| 273 | type Milestone { |
| 274 | description: String |
| 275 | dueOn: DateTime |
| 276 | id: ID |
| 277 | number: Int |
| 278 | title: String |
| 279 | } |
| 280 | |
| 281 | type Mutation { |
| 282 | addAssigneesToAssignable(input |
| 283 | addComment(input |
| 284 | addLabelsToLabelable(input |
| 285 | closeIssue(input |
| 286 | createIssue(input |
| 287 | createRepository(input |
| 288 | removeAssigneesFromAssignable(input |
| 289 | removeLabelsFromLabelable(input |
| 290 | reopenIssue(input |
| 291 | updateIssue(input |
| 292 | } |
| 293 | |
| 294 | interface Node { |
| 295 | id: ID |
| 296 | } |
| 297 | |
| 298 | enum OrderDirection { |
| 299 | ASC |
| 300 | DESC |
| 301 | } |
| 302 | |
| 303 | type Organization implements |
| 304 | avatarUrl: URI |
| 305 | databaseId: Int |
| 306 | id: ID |
| 307 | login: String |
| 308 | name: String |
| 309 | repository(name |
| 310 | resourcePath: URI |
| 311 | url: URI |
| 312 | } |
| 313 | |
| 314 | type PageInfo { |
| 315 | endCursor: String |
| 316 | hasNextPage: Boolean |
| 317 | hasPreviousPage: Boolean |
| 318 | startCursor: String |
| 319 | } |
| 320 | |
| 321 | type ProjectV2 { |
| 322 | id: ID |
| 323 | title: String |
| 324 | } |
| 325 | |
| 326 | type ProjectV2Item { |
| 327 | fieldValueByName(name |
| 328 | id: ID |
| 329 | project: ProjectV2 |
| 330 | } |
| 331 | |
| 332 | type ProjectV2ItemConnection { |
| 333 | nodes: [ |
| 334 | pageInfo: PageInfo |
| 335 | totalCount: Int |
| 336 | } |
| 337 | |
| 338 | type ProjectV2ItemFieldSingleSelectValue { |
| 339 | id: ID |
| 340 | name: String |
| 341 | optionId: String |
| 342 | } |
| 343 | |
| 344 | union ProjectV2ItemFieldValue = ProjectV2ItemFieldSingleSelectValue |
| 345 | |
| 346 | type PullRequest implements |
| 347 | assignees(first |
| 348 | author: Actor |
| 349 | body: String |
| 350 | bodyHTML: HTML |
| 351 | bodyText: String |
| 352 | closed: Boolean |
| 353 | closedAt: DateTime |
| 354 | comments(after |
| 355 | createdAt: DateTime |
| 356 | databaseId: Int |
| 357 | id: ID |
| 358 | includesCreatedEdit: Boolean |
| 359 | labels(first |
| 360 | locked: Boolean |
| 361 | milestone: Milestone |
| 362 | number: Int |
| 363 | projectItems(after |
| 364 | reactionGroups: [ |
| 365 | repository: Repository |
| 366 | resourcePath: URI |
| 367 | state: PullRequestState |
| 368 | title: String |
| 369 | updatedAt: DateTime |
| 370 | url: URI |
| 371 | viewerCanUpdate: Boolean |
| 372 | } |
| 373 | |
| 374 | enum PullRequestState { |
| 375 | CLOSED |
| 376 | MERGED |
| 377 | OPEN |
| 378 | } |
| 379 | |
| 380 | type Query { |
| 381 | node(id |
| 382 | nodes(ids |
| 383 | organization(login |
| 384 | repository(name |
| 385 | repositoryOwner(login |
| 386 | search(after |
| 387 | user(login |
| 388 | |
| 389 | """The currently authenticated user.""" |
| 390 | viewer: User |
| 391 | } |
| 392 | |
| 393 | type ReactingUserConnection { |
| 394 | totalCount: Int |
| 395 | } |
| 396 | |
| 397 | enum ReactionContent { |
| 398 | CONFUSED |
| 399 | EYES |
| 400 | HEART |
| 401 | HOORAY |
| 402 | LAUGH |
| 403 | ROCKET |
| 404 | THUMBS_DOWN |
| 405 | THUMBS_UP |
| 406 | } |
| 407 | |
| 408 | type ReactionGroup { |
| 409 | content: ReactionContent |
| 410 | users: ReactingUserConnection |
| 411 | } |
| 412 | |
| 413 | type Ref implements |
| 414 | id: ID |
| 415 | name: String |
| 416 | prefix: String |
| 417 | } |
| 418 | |
| 419 | input RemoveAssigneesFromAssignableInput { |
| 420 | assignableId: ID |
| 421 | assigneeIds: [ |
| 422 | clientMutationId: String |
| 423 | } |
| 424 | |
| 425 | type RemoveAssigneesFromAssignablePayload { |
| 426 | assignable: Assignable |
| 427 | clientMutationId: String |
| 428 | } |
| 429 | |
| 430 | input RemoveLabelsFromLabelableInput { |
| 431 | clientMutationId: String |
| 432 | labelIds: [ |
| 433 | labelableId: ID |
| 434 | } |
| 435 | |
| 436 | type RemoveLabelsFromLabelablePayload { |
| 437 | clientMutationId: String |
| 438 | labelable: Labelable |
| 439 | } |
| 440 | |
| 441 | input ReopenIssueInput { |
| 442 | clientMutationId: String |
| 443 | issueId: ID |
| 444 | } |
| 445 | |
| 446 | type ReopenIssuePayload { |
| 447 | clientMutationId: String |
| 448 | issue: Issue |
| 449 | } |
| 450 | |
| 451 | type Repository implements |
| 452 | assignableUsers(after |
| 453 | createdAt: DateTime |
| 454 | databaseId: Int |
| 455 | defaultBranchRef: Ref |
| 456 | description: String |
| 457 | hasIssuesEnabled: Boolean |
| 458 | hasProjectsEnabled: Boolean |
| 459 | hasWikiEnabled: Boolean |
| 460 | id: ID |
| 461 | isArchived: Boolean |
| 462 | isEmpty: Boolean |
| 463 | isFork: Boolean |
| 464 | isPrivate: Boolean |
| 465 | issue(number |
| 466 | issueOrPullRequest(number |
| 467 | issues(after |
| 468 | label(name |
| 469 | labels(after |
| 470 | mergeCommitAllowed: Boolean |
| 471 | name: String |
| 472 | nameWithOwner: String |
| 473 | owner: RepositoryOwner |
| 474 | parent: Repository |
| 475 | pushedAt: DateTime |
| 476 | rebaseMergeAllowed: Boolean |
| 477 | resourcePath: URI |
| 478 | squashMergeAllowed: Boolean |
| 479 | sshUrl: GitSSHRemote |
| 480 | updatedAt: DateTime |
| 481 | url: URI |
| 482 | viewerPermission: RepositoryPermission |
| 483 | visibility: RepositoryVisibility |
| 484 | } |
| 485 | |
| 486 | interface RepositoryOwner { |
| 487 | avatarUrl: URI |
| 488 | id: ID |
| 489 | login: String |
| 490 | repository(name |
| 491 | resourcePath: URI |
| 492 | url: URI |
| 493 | } |
| 494 | |
| 495 | enum RepositoryPermission { |
| 496 | ADMIN |
| 497 | MAINTAIN |
| 498 | READ |
| 499 | TRIAGE |
| 500 | WRITE |
| 501 | } |
| 502 | |
| 503 | enum RepositoryVisibility { |
| 504 | PRIVATE |
| 505 | PUBLIC |
| 506 | } |
| 507 | |
| 508 | union SearchResultItem = Issue |
| 509 | |
| 510 | type SearchResultItemConnection { |
| 511 | issueCount: Int |
| 512 | nodes: [ |
| 513 | pageInfo: PageInfo |
| 514 | } |
| 515 | |
| 516 | enum SearchType { |
| 517 | DISCUSSION |
| 518 | ISSUE |
| 519 | REPOSITORY |
| 520 | USER |
| 521 | } |
| 522 | |
| 523 | type SubIssuesSummary { |
| 524 | completed: Int |
| 525 | percentCompleted: Int |
| 526 | total: Int |
| 527 | } |
| 528 | |
| 529 | """An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI string.""" |
| 530 | scalar URI |
| 531 | |
| 532 | interface UniformResourceLocatable { |
| 533 | resourcePath: URI |
| 534 | url: URI |
| 535 | } |
| 536 | |
| 537 | input UpdateIssueInput { |
| 538 | assigneeIds: [ |
| 539 | body: String |
| 540 | clientMutationId: String |
| 541 | id: ID |
| 542 | labelIds: [ |
| 543 | milestoneId: ID |
| 544 | projectIds: [ |
| 545 | state: IssueState |
| 546 | title: String |
| 547 | } |
| 548 | |
| 549 | type UpdateIssuePayload { |
| 550 | clientMutationId: String |
| 551 | issue: Issue |
| 552 | } |
| 553 | |
| 554 | type User implements |
| 555 | avatarUrl: URI |
| 556 | createdAt: DateTime |
| 557 | databaseId: Int |
| 558 | id: ID |
| 559 | login: String |
| 560 | name: String |
| 561 | repository(name |
| 562 | resourcePath: URI |
| 563 | url: URI |
| 564 | } |
| 565 | |
| 566 | type UserConnection { |
| 567 | nodes: [ |
| 568 | pageInfo: PageInfo |
| 569 | totalCount: Int |
| 570 | } |