{
  "swagger": "2.0",
  "info": {
    "title": "SourceCraft API",
    "description": "Bleeding edge of Public REST API of SourceCraft",
    "version": "0.0.1",
    "contact": {
      "email": "info@sourcecraft.dev"
    }
  },
  "schemes": [
    "http",
    "https"
  ],
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "paths": {
    "/issue_comments/id:{issue_comment_id}": {
      "get": {
        "summary": "Get Comment",
        "operationId": "GetIssueComment",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueComment"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_comment_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Comments"
        ]
      },
      "delete": {
        "summary": "Delete Comment",
        "description": "Permanently deletes a comment from an issue. This action cannot be undone.",
        "operationId": "DeleteIssueComment",
        "responses": {
          "204": {
            "description": "A successful response."
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_comment_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Comments"
        ]
      },
      "patch": {
        "summary": "Update Comment",
        "description": "Update a comment",
        "operationId": "UpdateIssueComment",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueComment"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_comment_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdateIssueCommentBody"
            }
          },
          {
            "name": "silent",
            "description": "do not notify subscribers",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Comments"
        ]
      }
    },
    "/issue_comments/id:{issue_comment_id}/attachments": {
      "get": {
        "summary": "List attachments",
        "description": "Retrieves all attachments from an issue",
        "operationId": "ListIssueCommentAttachments",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/AttachmentsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_comment_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Comments | Attachments"
        ]
      },
      "post": {
        "summary": "Upload attachment",
        "description": "Uploads attachment to an issue",
        "operationId": "UploadIssueCommentAttachment",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "The file to upload"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Attachment"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_comment_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Comments | Attachments"
        ]
      }
    },
    "/issue_comments/id:{issue_comment_id}/attachments/{attachment_id}": {
      "get": {
        "summary": "Get attachment",
        "description": "Gets attachment details and download URL",
        "operationId": "GetIssueCommentAttachment",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/AttachmentDownloadable"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_comment_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "attachment_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Comments | Attachments"
        ]
      },
      "delete": {
        "summary": "Remove attachment",
        "description": "Permanently removes an attachment from a comment. The file will be deleted and cannot be reused.",
        "operationId": "DeleteIssueCommentAttachment",
        "responses": {
          "204": {
            "description": "A successful response."
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_comment_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "attachment_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Comments | Attachments"
        ]
      }
    },
    "/issue_comments/id:{issue_comment_id}/reactions": {
      "delete": {
        "summary": "Remove Reaction",
        "description": "Remove a reaction from an issue comment",
        "operationId": "RemoveReaction",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Reactions"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_comment_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyReactionBody"
            }
          }
        ],
        "tags": [
          "Issues | Comments | Reactions"
        ]
      },
      "post": {
        "summary": "Add Reaction",
        "description": "Adds a reaction to an issue comment",
        "operationId": "AddReaction",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Reactions"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_comment_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyReactionBody"
            }
          }
        ],
        "tags": [
          "Issues | Comments | Reactions"
        ]
      }
    },
    "/issue_links/id:{issue_link_id}": {
      "delete": {
        "summary": "Delete Link (By Link ID)",
        "description": "Removes links between issues by ID",
        "operationId": "DeleteIssueLink",
        "responses": {
          "204": {
            "description": "A successful response."
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_link_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Linked Issues"
        ]
      }
    },
    "/issue_statuses": {
      "get": {
        "summary": "List system statuses",
        "description": "Lists Issue Statuses available for any issue",
        "operationId": "ListIssueStatus",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListIssueStatusesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "tags": [
          "Issues | Statuses"
        ]
      }
    },
    "/issues/id:{issue_id}": {
      "get": {
        "summary": "Get Issue (By ID)",
        "operationId": "GetIssueByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Issue"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Issues"
        ]
      },
      "delete": {
        "summary": "Delete Issue (By Issue ID)",
        "operationId": "DeleteIssueByID",
        "responses": {
          "204": {
            "description": "A successful response."
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "silent",
            "description": "do not notify subscribers",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues"
        ]
      },
      "patch": {
        "summary": "Update Issue (By Issue ID)",
        "operationId": "UpdateIssueByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Issue"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdateIssueBody"
            }
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues"
        ]
      }
    },
    "/issues/id:{issue_id}/attachments": {
      "get": {
        "summary": "List attachments (By Issue ID)",
        "description": "Retrieves all attachments from an issue",
        "operationId": "ListIssueAttachmentsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/AttachmentsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Attachments"
        ]
      }
    },
    "/issues/id:{issue_id}/attachments/{attachment_id}": {
      "get": {
        "summary": "Get attachment (By Issue ID)",
        "description": "Gets attachment details and download URL",
        "operationId": "GetIssueAttachmentByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/AttachmentDownloadable"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "attachment_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Attachments"
        ]
      },
      "delete": {
        "summary": "Remove attachment (by Issue ID)",
        "description": "Permanently removes an attachment from an issue. The file will be deleted and cannot be reused.",
        "operationId": "DeleteIssueAttachmentByID",
        "responses": {
          "204": {
            "description": "A successful response."
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "attachment_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "silent",
            "description": "creation options (query)",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Attachments"
        ]
      }
    },
    "/issues/id:{issue_id}/comments": {
      "get": {
        "summary": "List Comments (by ID)",
        "description": "Retrieves comments for an issue",
        "operationId": "ListIssueCommentsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListIssueCommentsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of issues to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Comments"
        ]
      },
      "post": {
        "summary": "Create comment (by Issue ID)",
        "operationId": "CreateIssueCommentByID",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueComment"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateIssueCommentBody"
            }
          },
          {
            "name": "silent",
            "description": "do not notify subscribers",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Comments"
        ]
      }
    },
    "/issues/id:{issue_id}/issue_links": {
      "get": {
        "summary": "List Issue Links (By Issue ID)",
        "description": "Retrieves links between this issue and other issues",
        "operationId": "ListIssueLinksByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListLinksResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of issues to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Linked Issues"
        ]
      },
      "post": {
        "summary": "Create Link between Issues (By Issue ID)",
        "description": "Creates a two-way relation from source issue to target issue of a specific type. Only one link can exist between two given issues.",
        "operationId": "CreateIssueLinkByID",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueLink"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateLinkBody"
            }
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Linked Issues"
        ]
      }
    },
    "/issues/id:{issue_id}/labels": {
      "get": {
        "summary": "List Labels (By Issue ID)",
        "description": "Retrieves all labels that are linked to the specified issue.",
        "operationId": "GetLabelsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueLabelsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Labels"
        ]
      },
      "delete": {
        "summary": "Remove labels (By Issue ID)",
        "description": "Removes one or more labels from a specific issue. Returns resulting collection.",
        "operationId": "RemoveLabelsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueLabelsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyLabelCollectionRequest"
            }
          },
          {
            "name": "silent",
            "description": "creation options (query)",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Labels"
        ]
      },
      "post": {
        "summary": "Add Labels (By Issue ID)",
        "description": "Associates one or more labels with a specific issue. Returns resulting collection.",
        "operationId": "AddLabelsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueLabelsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyLabelCollectionRequest"
            }
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Labels"
        ]
      },
      "put": {
        "summary": "Replace Labels (By Issue ID)",
        "description": "Completely replaces the current set of labels on an issue with the provided set.",
        "operationId": "ReplaceLabelsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueLabelsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyLabelCollectionRequest"
            }
          },
          {
            "name": "silent",
            "description": "creation options (query)",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Labels"
        ]
      }
    },
    "/issues/id:{issue_id}/linked_prs": {
      "get": {
        "summary": "List Linked PRs (By Issue ID)",
        "description": "Retrieves all pull requests that are linked to the specified issue.",
        "operationId": "GetLinkedPRsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueLinkedPRsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Linked PRs"
        ]
      },
      "delete": {
        "summary": "Remove linked PRs (by ID)",
        "description": "Removes one or more pull requests with a specific issue. Returns resulting collection",
        "operationId": "RemoveLinkedPRsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueLinkedPRsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyPullRequestCollectionRequest"
            }
          },
          {
            "name": "silent",
            "description": "creation options (query)",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Linked PRs"
        ]
      },
      "post": {
        "summary": "Add linked PRs (By ID)",
        "description": "Associates one or more pull requests with a specific issue. Returns resulting collection",
        "operationId": "AddLinkedPRsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueLinkedPRsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyPullRequestCollectionRequest"
            }
          },
          {
            "name": "silent",
            "description": "creation options (query)",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Linked PRs"
        ]
      }
    },
    "/labels/id:{label_id}": {
      "get": {
        "summary": "Get Label (By Label ID)",
        "operationId": "GetLabelByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1.Label"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "label_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Labels"
        ]
      },
      "delete": {
        "summary": "Delete label (By Label ID)",
        "operationId": "DeleteLabelByID",
        "responses": {
          "204": {
            "description": "A successful response."
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "label_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | Labels"
        ]
      },
      "patch": {
        "summary": "Update Label (By Label ID)",
        "operationId": "UpdateLabelByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1.Label"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "label_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdateLabelBody"
            }
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | Labels"
        ]
      }
    },
    "/me/issues": {
      "get": {
        "summary": "My Issues",
        "description": "Returns a list of issues that are either assigned to or created by the currently authenticated user.",
        "operationId": "ListIssuesAssignedToAuthenticatedUser",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListIssuesAssignedToAuthenticatedUserResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "filter",
            "description": "Filter using QL language.\n\nSupported fields:\n- title: Issue title (string, prefix match)\n- priority: Issue priority (enum: low, normal, high, critical)\n- status: Issue status (enum: open, in_progress, closed)\n- assignee_id: Assignee ID\n- assignee_slug: Assignee username\n- milestone_id: Milestone ID\n- milestone_slug: Milestone slug\n- label_id: Label ID\n- label_slug: Label slug\n- author_id: Author ID\n- author_slug: Author username\n- visibility: Issue visibility (enum: public, private)\n- created_at: Creation timestamp (RFC3339 format)\n- updated_at: Last update timestamp (RFC3339 format)\n\nExamples:\n- status=open and priority=critical\n- author_id=\"550e8400-e29b-41d4-a716-446655440000\"\n- created_at>\"2024-01-01T00:00:00Z\"",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Issues"
        ]
      }
    },
    "/me/pulls": {
      "get": {
        "summary": "My Pull Requests",
        "description": "Returns a list of pull requests related to the currently authenticated user.",
        "operationId": "ListMyPullRequests",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListRepositoryPullRequestsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "role",
            "description": "Role by which PRs should be selected: author, reviewer or any",
            "in": "query",
            "required": false,
            "type": "string",
            "enum": [
              "author",
              "reviewer",
              "any"
            ]
          },
          {
            "name": "page_size",
            "description": "The maximum number of pull requests to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: title, created_at, updated_at",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "User | PullRequest"
        ]
      }
    },
    "/milestones/id:{milestone_id}": {
      "get": {
        "summary": "Get a Milestone (By ID)",
        "operationId": "GetMilestoneByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Milestone"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "milestone_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Milestones"
        ]
      },
      "delete": {
        "summary": "Delete a Milestone (By ID)",
        "operationId": "DeleteMilestoneByID",
        "responses": {
          "204": {
            "description": "A successful response."
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "milestone_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | Milestones"
        ]
      },
      "patch": {
        "summary": "Update a Milestone (By ID)",
        "operationId": "UpdateMilestoneByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Milestone"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "milestone_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdateMilestoneBody"
            }
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | Milestones"
        ]
      }
    },
    "/operations/create-invites/id:{operation_id}": {
      "get": {
        "summary": "Get invitation creation operation status (By Operation ID)",
        "operationId": "GetOrganizationInvitesOperationByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/CreateOrganizationInvitesOperation"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "operation_id",
            "description": "Operation ID",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Organization | Operation"
        ]
      }
    },
    "/operations/merge/id:{operation_id}": {
      "get": {
        "summary": "Get pull request merge operation status (By Operation ID)",
        "operationId": "GetPullRequestMergeOperationByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/MergePullRequestOperation"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "operation_id",
            "description": "Operation ID",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest | Operation"
        ]
      }
    },
    "/operations/secrets/id:{operation_id}": {
      "get": {
        "summary": "Get secret operation status (By Operation ID)",
        "operationId": "GetSecretOperationByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/SecretsOperation"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "operation_id",
            "description": "Operation ID",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Secrets | Operation"
        ]
      }
    },
    "/orgs/id:{org_id}": {
      "get": {
        "summary": "Get Organization (By ID)",
        "operationId": "GetOrganizationByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Organization"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Organization"
        ]
      }
    },
    "/orgs/id:{org_id}/code-assist-workplaces": {
      "get": {
        "summary": "Get code assist workplaces information for an organization (By ID)",
        "operationId": "GetCodeAssistWorkplacesByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/CodeAssistWorkplacesInfo"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "CodeAssistWorkplaces"
        ]
      },
      "put": {
        "summary": "Set the number of code assist workplaces for an organization (By ID)",
        "operationId": "SetCodeAssistWorkplacesByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/SetCodeAssistWorkplacesBody"
            }
          }
        ],
        "tags": [
          "CodeAssistWorkplaces"
        ]
      }
    },
    "/orgs/id:{org_id}/code-assist-workplaces/occupied": {
      "get": {
        "summary": "List users occupying code assist workplaces in an organization (By ID)",
        "operationId": "ListOccupiedCodeAssistWorkplacesByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListOccupiedCodeAssistWorkplacesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "CodeAssistWorkplaces"
        ]
      }
    },
    "/orgs/id:{org_id}/code-assist-workplaces/occupy-bulk": {
      "post": {
        "summary": "Occupy code assist workplaces for multiple users in bulk (By ID)",
        "operationId": "OccupyCodeAssistWorkplacesBulkByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/OccupyCodeAssistWorkplacesBulkBody"
            }
          }
        ],
        "tags": [
          "CodeAssistWorkplaces"
        ]
      }
    },
    "/orgs/id:{org_id}/code-assist-workplaces/release-bulk": {
      "post": {
        "summary": "Release code assist workplaces for multiple users in bulk (By ID)",
        "operationId": "ReleaseCodeAssistWorkplacesBulkByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ReleaseCodeAssistWorkplacesBulkBody"
            }
          }
        ],
        "tags": [
          "CodeAssistWorkplaces"
        ]
      }
    },
    "/orgs/id:{org_id}/code-assist-workplaces/transfer": {
      "post": {
        "summary": "Transfer a code assist workplace from one user to another (By ID)",
        "operationId": "TransferCodeAssistWorkplaceByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/TransferCodeAssistWorkplaceBody"
            }
          }
        ],
        "tags": [
          "CodeAssistWorkplaces"
        ]
      }
    },
    "/orgs/id:{org_id}/invites": {
      "get": {
        "summary": "List Organization Invitations (By Organization ID)",
        "operationId": "ListOrganizationInvitesByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListOrganizationInvitesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of repositories to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Organization | Invites"
        ]
      },
      "post": {
        "summary": "Create Organization Invitations (By Organization ID)",
        "description": "Creates invitations asynchronously. Poll operation status at the returned status_url.",
        "operationId": "CreateOrganizationInvitesByID",
        "responses": {
          "202": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/CreateOrganizationInvitesOperation"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateOrganizationInvitesBody"
            }
          }
        ],
        "tags": [
          "Organization | Invites"
        ]
      }
    },
    "/orgs/id:{org_id}/invites/{invite_id}": {
      "get": {
        "summary": "Get Organization Invite (By ID)",
        "operationId": "GetOrganizationInviteByOrgID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Invite"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "invite_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Organization | Invites"
        ]
      }
    },
    "/orgs/id:{org_id}/quotas": {
      "get": {
        "summary": "List quotas for an organization (By ID)",
        "operationId": "ListQuotasByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListQuotasResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Quota"
        ]
      }
    },
    "/orgs/id:{org_id}/repos": {
      "get": {
        "summary": "List Organization Repositories (By Organization ID)",
        "operationId": "ListOrganizationRepositoriesByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListOrganizationRepositoriesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of repositories to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Organization"
        ]
      },
      "post": {
        "summary": "Create Repository in Organization (By Organization ID)",
        "operationId": "CreateRepositoryByID",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Repository"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateRepositoryBody"
            }
          }
        ],
        "tags": [
          "Repository"
        ]
      }
    },
    "/orgs/id:{org_id}/roles": {
      "get": {
        "summary": "List Organization Roles (By ID)",
        "description": "Requires IAM-token for authorization.",
        "operationId": "ListOrganizationRolesByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListOrganizationRolesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of total roles to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields.\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"foo, -bar\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: name",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Organization | Roles"
        ]
      },
      "post": {
        "summary": "Add Organization Roles (By ID)",
        "description": "Requires IAM-token for authorization.",
        "operationId": "AddOrganizationRolesByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/AddOrganizationRolesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AddOrganizationRolesBody"
            }
          }
        ],
        "tags": [
          "Organization | Roles"
        ]
      }
    },
    "/orgs/id:{org_id}/roles/remove": {
      "post": {
        "summary": "Remove Organization Roles (By ID)",
        "description": "Requires IAM-token for authorization.",
        "operationId": "RemoveOrganizationRolesByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/RemoveOrganizationRolesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/RemoveOrganizationRolesBody"
            }
          }
        ],
        "tags": [
          "Organization | Roles"
        ]
      }
    },
    "/orgs/id:{org_id}/stats/neurocredits": {
      "get": {
        "summary": "Get Organization Neurocredits Usage (By ID)",
        "operationId": "GetOrganizationNeurocreditsUsageByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/GetOrganizationNeurocreditsUsageResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "start_date",
            "description": "Start date in YYYY-MM-DD format",
            "in": "query",
            "required": true,
            "type": "string"
          },
          {
            "name": "end_date",
            "description": "End date in YYYY-MM-DD format. Defaults to today.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of items to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Organization"
        ]
      }
    },
    "/orgs/{org_slug}": {
      "get": {
        "summary": "Get Organization",
        "operationId": "GetOrganization",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Organization"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Organization"
        ]
      }
    },
    "/orgs/{org_slug}/code-assist-workplaces": {
      "get": {
        "summary": "Get code assist workplaces information for an organization",
        "operationId": "GetCodeAssistWorkplaces",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/CodeAssistWorkplacesInfo"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "CodeAssistWorkplaces"
        ]
      },
      "put": {
        "summary": "Set the number of code assist workplaces for an organization",
        "operationId": "SetCodeAssistWorkplaces",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/SetCodeAssistWorkplacesBody"
            }
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "CodeAssistWorkplaces"
        ]
      }
    },
    "/orgs/{org_slug}/code-assist-workplaces/occupied": {
      "get": {
        "summary": "List users occupying code assist workplaces in an organization",
        "operationId": "ListOccupiedCodeAssistWorkplaces",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListOccupiedCodeAssistWorkplacesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "CodeAssistWorkplaces"
        ]
      }
    },
    "/orgs/{org_slug}/code-assist-workplaces/occupy-bulk": {
      "post": {
        "summary": "Occupy code assist workplaces for multiple users in bulk",
        "operationId": "OccupyCodeAssistWorkplacesBulk",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/OccupyCodeAssistWorkplacesBulkBody"
            }
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "CodeAssistWorkplaces"
        ]
      }
    },
    "/orgs/{org_slug}/code-assist-workplaces/release-bulk": {
      "post": {
        "summary": "Release code assist workplaces for multiple users in bulk",
        "operationId": "ReleaseCodeAssistWorkplacesBulk",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ReleaseCodeAssistWorkplacesBulkBody"
            }
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "CodeAssistWorkplaces"
        ]
      }
    },
    "/orgs/{org_slug}/code-assist-workplaces/transfer": {
      "post": {
        "summary": "Transfer a code assist workplace from one user to another",
        "operationId": "TransferCodeAssistWorkplace",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/TransferCodeAssistWorkplaceBody"
            }
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "CodeAssistWorkplaces"
        ]
      }
    },
    "/orgs/{org_slug}/invites": {
      "get": {
        "summary": "List Organization Invitations",
        "operationId": "ListOrganizationInvites",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListOrganizationInvitesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of repositories to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Organization | Invites"
        ]
      },
      "post": {
        "summary": "Create Organization Invitations",
        "description": "Creates invitations asynchronously. Poll operation status at the returned status_url.",
        "operationId": "CreateOrganizationInvites",
        "responses": {
          "202": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/CreateOrganizationInvitesOperation"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateOrganizationInvitesBody"
            }
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Organization | Invites"
        ]
      }
    },
    "/orgs/{org_slug}/invites/{invite_id}": {
      "get": {
        "summary": "Get Organization Invite",
        "operationId": "GetOrganizationInvite",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Invite"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "invite_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Organization | Invites"
        ]
      }
    },
    "/orgs/{org_slug}/quotas": {
      "get": {
        "summary": "List quotas for an organization",
        "operationId": "ListQuotas",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListQuotasResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Quota"
        ]
      }
    },
    "/orgs/{org_slug}/repos": {
      "get": {
        "summary": "List Organization Repositories",
        "operationId": "ListOrganizationRepositories",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListOrganizationRepositoriesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of repositories to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Organization"
        ]
      },
      "post": {
        "summary": "Create Repository in Organization",
        "operationId": "CreateRepository",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Repository"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateRepositoryBody"
            }
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository"
        ]
      }
    },
    "/orgs/{org_slug}/roles": {
      "get": {
        "summary": "List Organization Roles",
        "description": "Requires IAM-token for authorization.",
        "operationId": "ListOrganizationRoles",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListOrganizationRolesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of total roles to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields.\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"foo, -bar\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: name",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Organization | Roles"
        ]
      },
      "post": {
        "summary": "Add Organization Roles",
        "description": "Requires IAM-token for authorization.",
        "operationId": "AddOrganizationRoles",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/AddOrganizationRolesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AddOrganizationRolesBody"
            }
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Organization | Roles"
        ]
      }
    },
    "/orgs/{org_slug}/roles/remove": {
      "post": {
        "summary": "Remove Organization Roles",
        "description": "Requires IAM-token for authorization.",
        "operationId": "RemoveOrganizationRoles",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/RemoveOrganizationRolesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/RemoveOrganizationRolesBody"
            }
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Organization | Roles"
        ]
      }
    },
    "/orgs/{org_slug}/stats/neurocredits": {
      "get": {
        "summary": "Get Organization Neurocredits Usage",
        "operationId": "GetOrganizationNeurocreditsUsage",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/GetOrganizationNeurocreditsUsageResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "org_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "start_date",
            "description": "Start date in YYYY-MM-DD format",
            "in": "query",
            "required": true,
            "type": "string"
          },
          {
            "name": "end_date",
            "description": "End date in YYYY-MM-DD format. Defaults to today.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of items to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Organization"
        ]
      }
    },
    "/pull_comments/id:{pull_request_comment_id}": {
      "get": {
        "summary": "Get Comment",
        "operationId": "GetPullRequestComment",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequestComment"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_comment_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest | Comments"
        ]
      },
      "delete": {
        "summary": "Delete Comment",
        "description": "Permanently deletes a pull request comment. This action cannot be undone.",
        "operationId": "DeletePullRequestComment",
        "responses": {
          "204": {
            "description": "A successful response."
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_comment_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest | Comments"
        ]
      },
      "patch": {
        "summary": "Update Comment",
        "description": "Updates a pull request comment. Supports updating the comment body,\nresolution state, and publishing draft comments.",
        "operationId": "UpdatePullRequestComment",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequestComment"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_comment_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdatePullRequestCommentBody"
            }
          },
          {
            "name": "silent",
            "description": "do not notify subscribers",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest | Comments"
        ]
      }
    },
    "/pulls/id:{pull_request_id}": {
      "get": {
        "summary": "Get PullRequest (By ID)",
        "operationId": "GetPullRequestByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequest"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      },
      "patch": {
        "summary": "Update PullRequest (By ID)",
        "operationId": "UpdatePullRequestByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequest"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdatePullRequestBody"
            }
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/pulls/id:{pull_request_id}/comments": {
      "get": {
        "summary": "List Comments (by ID)",
        "operationId": "ListPullRequestCommentsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListPullRequestCommentsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "iteration",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "only_drafts",
            "description": "Only drafts (unpublished) comments",
            "in": "query",
            "required": false,
            "type": "boolean"
          },
          {
            "name": "page_size",
            "description": "The maximum number of comments to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: iteration, author_id, parent_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest | Comments"
        ]
      },
      "post": {
        "summary": "Create comment (by PullRequest ID)",
        "operationId": "CreatePullRequestCommentByID",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequestComment"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreatePullRequestCommentBody"
            }
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "description": "do not notify subscribers",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest | Comments"
        ]
      }
    },
    "/pulls/id:{pull_request_id}/comments/publish-drafts": {
      "post": {
        "summary": "Publish Drafts (by ID)",
        "operationId": "PublishPullRequestCommentsDraftsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PublishPullRequestCommentsDraftsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublishPullRequestCommentsDraftsByIDBody"
            }
          }
        ],
        "tags": [
          "Repository | PullRequest | Comments"
        ]
      }
    },
    "/pulls/id:{pull_request_id}/decision": {
      "post": {
        "summary": "Set Decision (By ID)",
        "operationId": "SetDecisionByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/SetDecisionResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/SetDecisionBody"
            }
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest | Reviewers"
        ]
      }
    },
    "/pulls/id:{pull_request_id}/discard": {
      "post": {
        "summary": "Discard PullRequest (By ID)",
        "operationId": "DiscardPullRequestByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequest"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/pulls/id:{pull_request_id}/draft": {
      "post": {
        "summary": "Draft PullRequest (By ID)",
        "operationId": "DraftPullRequestByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequest"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/pulls/id:{pull_request_id}/files": {
      "get": {
        "summary": "List Pull Request Files (By ID)",
        "description": "Returns the list of files changed in a pull request with diff patches.",
        "operationId": "ListPullRequestFilesByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListPullRequestFilesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of files to return. The service may return fewer than\nthis value.",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/pulls/id:{pull_request_id}/labels": {
      "get": {
        "summary": "List Labels (By Pull Request ID)",
        "description": "Retrieves all labels that are linked to the specified pull request.",
        "operationId": "GetPullRequestLabelsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequestLabelsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "PullRequest | Labels"
        ]
      },
      "delete": {
        "summary": "Remove Labels (By Pull Request ID)",
        "description": "Removes one or more labels from a specific pull request. Returns resulting collection.",
        "operationId": "RemovePullRequestLabelsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequestLabelsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyLabelCollectionRequest"
            }
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "description": "creation options (query)",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "PullRequest | Labels"
        ]
      },
      "post": {
        "summary": "Add Labels (By Pull Request ID)",
        "description": "Associates one or more labels with a specific pull request. Returns resulting collection.",
        "operationId": "AddPullRequestLabelsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequestLabelsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyLabelCollectionRequest"
            }
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "description": "creation options (query)",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "PullRequest | Labels"
        ]
      },
      "put": {
        "summary": "Replace Labels (By Pull Request ID)",
        "description": "Completely replaces the current set of labels on a pull request with the provided set.",
        "operationId": "ReplacePullRequestLabelsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequestLabelsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyLabelCollectionRequest"
            }
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "description": "creation options (query)",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "PullRequest | Labels"
        ]
      }
    },
    "/pulls/id:{pull_request_id}/merge": {
      "post": {
        "summary": "Merge PullRequest (By ID)",
        "description": "Merges a pull request asynchronously by ID. Poll operation status at the returned status_url.",
        "operationId": "MergePullRequestByID",
        "responses": {
          "202": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/MergePullRequestOperation"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/MergePullRequestBody"
            }
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/pulls/id:{pull_request_id}/merge-checks": {
      "get": {
        "summary": "Get Merge Checks (By ID)",
        "description": "Returns comprehensive information about merge requirements:\n- Code review status and approval rules\n- Merge conflicts detection\n- CI workflow execution status\n- Configuration validation results",
        "operationId": "GetMergeChecksByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/MergeChecks"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/pulls/id:{pull_request_id}/publish": {
      "post": {
        "summary": "Publish PullRequest (By ID)",
        "operationId": "PublishPullRequestByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequest"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/pulls/id:{pull_request_id}/reopen": {
      "post": {
        "summary": "Reopen PullRequest (By ID)",
        "operationId": "ReopenPullRequestByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequest"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/pulls/id:{pull_request_id}/reviewers": {
      "get": {
        "summary": "List Reviewers (By ID)",
        "operationId": "ListReviewersByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListReviewersResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of reviewers to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\n\nAvailable columns: created_at, decision",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest | Reviewers"
        ]
      },
      "post": {
        "summary": "Update Reviewers (By ID)",
        "operationId": "UpdateReviewersByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/UpdateReviewersResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdateReviewersBody"
            }
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest | Reviewers"
        ]
      }
    },
    "/pulls/id:{pull_request_id}/reviewers/auto": {
      "post": {
        "summary": "Automatically assign reviewers to meet review requirements (By ID)",
        "operationId": "AutoAssignByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/AutoAssignResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "pull_request_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AutoAssignBody"
            }
          },
          {
            "name": "pull_request_slug",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest | Reviewers"
        ]
      }
    },
    "/releases/id:{release_id}": {
      "get": {
        "summary": "Get Release (By ID)",
        "operationId": "GetByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Release"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "release_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "release_tag",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      },
      "delete": {
        "summary": "Delete Release (By ID)",
        "operationId": "DeleteByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "release_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "release_tag",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      },
      "patch": {
        "summary": "Update Release (By ID)",
        "description": "Can update title and release notes. For status updates, see 'Publish Release' and\n'Discard Release'",
        "operationId": "UpdateByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Release"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "release_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdateReleaseBody"
            }
          },
          {
            "name": "release_tag",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      }
    },
    "/releases/id:{release_id}/discard": {
      "post": {
        "summary": "Discard Release (By ID)",
        "description": "Only 'published' releases may be discarded, drafts can only be deleted or published.\nContrary to deleted releases, discarded releases are still visible to maintainers.",
        "operationId": "DiscardByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Release"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "release_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "release_tag",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      }
    },
    "/releases/id:{release_id}/publish": {
      "post": {
        "summary": "Publish Release (By ID)",
        "description": "Only 'draft' releases may be published",
        "operationId": "PublishByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Release"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "release_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "release_tag",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      }
    },
    "/repos/id:{repo_id}": {
      "get": {
        "summary": "Get Repository (By ID)",
        "operationId": "GetRepositoryByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Repository"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Repository"
        ]
      },
      "delete": {
        "summary": "Delete Repository (By Repository ID)",
        "operationId": "DeleteRepositoryByID",
        "responses": {
          "204": {
            "description": "A successful response."
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "silent",
            "description": "Flag for deleting without any notifications. NOT IMPLEMENTED YET.",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository"
        ]
      },
      "patch": {
        "summary": "Update Repository (By Repo ID)",
        "operationId": "UpdateRepositoryByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Repository"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdateRepositoryBody"
            }
          },
          {
            "name": "silent",
            "description": "Flag for update without any notifications. NOT IMPLEMENTED YET.",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository"
        ]
      }
    },
    "/repos/id:{repo_id}/branches": {
      "get": {
        "summary": "List Repository Branches (By Repo ID)",
        "operationId": "ListBranchesByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListBranchesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "filter",
            "description": "Filter branches by name contains",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields.\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"foo, -bar\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: name",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of branches to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository"
        ]
      }
    },
    "/repos/id:{repo_id}/ci_workflows/{workflow_name}/trigger": {
      "post": {
        "summary": "Run Workflow in Repository (By Repo ID)",
        "description": "Endpoint is deprecated, please use `POST /repos/id:{repo_id}/cicd/runs` instead",
        "operationId": "RunWorkflowByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/RunCIWorkflowResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "workflow_name",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/RunCIBody"
            }
          }
        ],
        "tags": [
          "Withdrawn"
        ],
        "deprecated": true
      }
    },
    "/repos/id:{repo_id}/cicd/runs": {
      "get": {
        "summary": "List CI Runs in Repository (By Repo ID)",
        "operationId": "ListRunsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListRunsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of runs to return. The service may return fewer than this value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "CI/CD"
        ]
      },
      "post": {
        "summary": "Run Workflows in Repository (By Repo ID)",
        "operationId": "RunWorkflowsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Run"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/RunWorkflowsBody"
            }
          }
        ],
        "tags": [
          "CI/CD"
        ]
      }
    },
    "/repos/id:{repo_id}/fork": {
      "post": {
        "summary": "Fork Repository (By ID)",
        "operationId": "ForkRepositoryByID",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Repository"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ForkRepositoryBody"
            }
          }
        ],
        "tags": [
          "Repository"
        ]
      }
    },
    "/repos/id:{repo_id}/issues": {
      "get": {
        "summary": "List Repository Issues (By Repo ID)",
        "operationId": "ListRepositoryIssuesByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListRepositoryIssuesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of issues to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "filter",
            "description": "Filter using QL language.\n\nSupported fields:\n- title: Issue title (string, prefix match)\n- priority: Issue priority (enum: low, normal, high, critical)\n- status: Issue status (enum: open, in_progress, closed)\n- assignee_id: Assignee ID\n- assignee_slug: Assignee username\n- milestone_id: Milestone ID\n- milestone_slug: Milestone slug\n- label_id: Label ID\n- label_slug: Label slug\n- author_id: Author ID\n- author_slug: Author username\n- visibility: Issue visibility (enum: public, private)\n- created_at: Creation timestamp (RFC3339 format)\n- updated_at: Last update timestamp (RFC3339 format)\n\nExamples:\n- status=open and priority=critical\n- author_id=\"550e8400-e29b-41d4-a716-446655440000\"\n- created_at>\"2024-01-01T00:00:00Z\"",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Issues"
        ]
      },
      "post": {
        "summary": "Create Issue in Repository (By Repo ID)",
        "operationId": "CreateIssueByID",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Issue"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateIssueBody"
            }
          },
          {
            "name": "silent",
            "description": "do not notify subscribers",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues"
        ]
      }
    },
    "/repos/id:{repo_id}/labels": {
      "get": {
        "summary": "List labels (By ID)",
        "operationId": "ListLabelsForRepositoryByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListLabelsForRepositoryResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Labels"
        ]
      },
      "post": {
        "summary": "Create Label (By ID)",
        "operationId": "CreateLabelByID",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1.Label"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateLabelBody"
            }
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | Labels"
        ]
      }
    },
    "/repos/id:{repo_id}/milestones": {
      "get": {
        "summary": "List Repository Milestones (By Repo ID)",
        "operationId": "ListMilestonesForRepositoryByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListMilestonesForRepositoryResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Milestones"
        ]
      },
      "post": {
        "summary": "Create a Milestone (By Repo ID)",
        "operationId": "CreateMilestoneByID",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Milestone"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateMilestoneBody"
            }
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | Milestones"
        ]
      }
    },
    "/repos/id:{repo_id}/pulls": {
      "get": {
        "summary": "List Repository Pull Requests (By Repo ID)",
        "description": "Retrieves all pull requests from an repository",
        "operationId": "ListRepositoryPullRequestsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListRepositoryPullRequestsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of pull requests to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: title, created_at, updated_at",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "filter",
            "description": "Filter using QL language.\n\nSupported fields:\n- author_id: PR author ID\n- status: PR status (enum: draft, open, discarded, merging, merged)\n- source_branch: Source branch name (string)\n- target_branch: Target branch name (string)\n\nExamples:\n- status=open\n- status=open and source_branch=\"feature/xyz\"\n- author_id=\"550e8400-e29b-41d4-a716-446655440000\"",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      },
      "post": {
        "summary": "Create PullRequest in Repository (By Repo ID)",
        "operationId": "CreatePullRequestByID",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequest"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreatePullRequestBody"
            }
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/repos/id:{repo_id}/releases": {
      "get": {
        "summary": "List Releases in Repository (By Repo ID)",
        "operationId": "ListByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListReleasesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of releases to return. The service may return fewer than this value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: created_at, released_at",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      },
      "post": {
        "summary": "Create Release in Repository (By Repo ID)",
        "operationId": "CreateByID",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Release"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateReleaseBody"
            }
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      }
    },
    "/repos/id:{repo_id}/releases/generate-notes": {
      "post": {
        "summary": "Generate Release Notes Preview (By Repo ID)",
        "operationId": "GenerateReleaseNotesByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/GenerateReleaseNotesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/GenerateReleaseNotesBody"
            }
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      }
    },
    "/repos/id:{repo_id}/releases/latest": {
      "get": {
        "summary": "Get Latest Release (By Repo ID)",
        "description": "Retrieves a release marked as latest (by default, last published release)",
        "operationId": "GetLatestByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Release"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      }
    },
    "/repos/id:{repo_id}/roles": {
      "get": {
        "summary": "List Repository Roles (By ID)",
        "operationId": "ListRepoRolesByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListRepoRolesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of repo roles to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields.\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"foo, -bar\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: name",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Roles"
        ]
      },
      "post": {
        "summary": "Add Repository Roles (By ID)",
        "operationId": "AddRepoRolesByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/AddRepoRolesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AddRepoRolesBody"
            }
          }
        ],
        "tags": [
          "Repository | Roles"
        ]
      }
    },
    "/repos/id:{repo_id}/roles/remove": {
      "post": {
        "summary": "Remove Repository Roles (By ID)",
        "operationId": "RemoveRepoRolesByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/RemoveRepoRolesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/RemoveRepoRolesBody"
            }
          }
        ],
        "tags": [
          "Repository | Roles"
        ]
      }
    },
    "/repos/id:{repo_id}/secrets": {
      "get": {
        "summary": "List secret entries (By Repo ID)",
        "operationId": "ListSecretsByRepoID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListSecretsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "secret_group",
            "description": "Optional: name of the secret group. Defaults to \"default\".",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "keys",
            "description": "Optional: filter by specific keys. If empty, all entries are returned.",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          }
        ],
        "tags": [
          "Secrets"
        ]
      }
    },
    "/repos/id:{repo_id}/secrets/{key}": {
      "delete": {
        "summary": "Delete a secret entry (By Repo ID)",
        "description": "Deletes a secret entry asynchronously. Poll operation status at the returned status_url.",
        "operationId": "DeleteSecretByRepoID",
        "responses": {
          "202": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/SecretsOperation"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "secret_group",
            "description": "Optional: name of the secret group. Defaults to \"default\".",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Secrets"
        ]
      },
      "put": {
        "summary": "Create or update a secret entry (By Repo ID)",
        "description": "Creates or updates a secret entry asynchronously. Poll operation status at the returned status_url.",
        "operationId": "SetSecretByRepoID",
        "responses": {
          "202": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/SecretsOperation"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/SetSecretBody"
            }
          },
          {
            "name": "secret_group",
            "description": "Optional: name of the secret group. Defaults to \"default\".",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Secrets"
        ]
      }
    },
    "/repos/id:{repo_id}/tags": {
      "get": {
        "summary": "List Repository Tags (By Repo ID)",
        "operationId": "ListTagsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListTagsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "filter",
            "description": "Filter tags by name contains",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields.\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"foo, -bar\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: name",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of tags to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository"
        ]
      }
    },
    "/repos/id:{repo_id}/trees": {
      "get": {
        "summary": "List Repository File Tree (By Repo ID)",
        "operationId": "ListTreeByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListTreeResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "revision",
            "description": "Git reference (branch, tag, or commit SHA). If empty, the default branch (usually main) will be used.\nExamples: `mybranch`, `tags:v1.0.0`",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "path",
            "description": "Path within repository to get the tree for. If not specified, returns the root tree",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "recursive",
            "description": "Whether to retrieve tree entries recursively. If false, only immediate children are returned",
            "in": "query",
            "required": false,
            "type": "boolean"
          },
          {
            "name": "page_size",
            "description": "The maximum number of tree entries to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}": {
      "get": {
        "summary": "Get Repository",
        "operationId": "GetRepository",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Repository"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Repository"
        ]
      },
      "delete": {
        "summary": "Delete Repository",
        "operationId": "DeleteRepository",
        "responses": {
          "204": {
            "description": "A successful response."
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "silent",
            "description": "Flag for deleting without any notifications. NOT IMPLEMENTED YET.",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository"
        ]
      },
      "patch": {
        "summary": "Update Repository",
        "operationId": "UpdateRepository",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Repository"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdateRepositoryBody"
            }
          },
          {
            "name": "silent",
            "description": "Flag for update without any notifications. NOT IMPLEMENTED YET.",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/branches": {
      "get": {
        "summary": "List Repository Branches",
        "operationId": "ListBranches",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListBranchesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "filter",
            "description": "Filter branches by name contains",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields.\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"foo, -bar\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: name",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of branches to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/cicd/artifacts/{run_slug}/{workflow_slug}/{task_slug}/{cube_slug}": {
      "get": {
        "summary": "Get Artifacts from a CI Run",
        "operationId": "GetCubeArtifacts",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/GetCubeArtifactsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "run_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "workflow_slug",
            "description": "Workflow name as defined in the config.",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "task_slug",
            "description": "Task name as defined in the config.",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "cube_slug",
            "description": "Cube name as defined in the config.",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "CI/CD"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/cicd/logs/{run_slug}/{workflow_slug}/{task_slug}/{cube_slug}": {
      "get": {
        "summary": "Get Logs from a Running CI Cube in Repository",
        "operationId": "GetCubeLogs",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/GetCubeLogsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "run_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "workflow_slug",
            "description": "Workflow name as defined in the config.",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "task_slug",
            "description": "Task name as defined in the config.",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "cube_slug",
            "description": "Cube name as defined in the config.",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page",
            "description": "Page number to fetch, by default 1.\n\nLogs are split into pages; pages are not guaranteed to be the same size and are intended to be read\nin order. When one page is finished, the subsequent one starts being written.",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          }
        ],
        "tags": [
          "CI/CD"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/cicd/runs": {
      "get": {
        "summary": "List CI Runs in Repository",
        "operationId": "ListRuns",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListRunsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of runs to return. The service may return fewer than this value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "CI/CD"
        ]
      },
      "post": {
        "summary": "Run Workflows in Repository",
        "operationId": "RunWorkflows",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Run"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/RunWorkflowsBody"
            }
          }
        ],
        "tags": [
          "CI/CD"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/cicd/runs/{run_slug}": {
      "get": {
        "summary": "Get CI Run in Repository",
        "operationId": "GetRun",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Run"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "run_slug",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "CI/CD"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/cicd/runs/{run_slug}/{workflow_slug}": {
      "get": {
        "summary": "Get Running CI Workflow in Repository",
        "operationId": "GetWorkflow",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Workflow"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "run_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "workflow_slug",
            "description": "Workflow name as defined in the config.",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "CI/CD"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/fork": {
      "post": {
        "summary": "Fork Repository",
        "operationId": "ForkRepository",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Repository"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ForkRepositoryBody"
            }
          }
        ],
        "tags": [
          "Repository"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/issues": {
      "get": {
        "summary": "List Repository Issues",
        "operationId": "ListRepositoryIssues",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListRepositoryIssuesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of issues to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "filter",
            "description": "Filter using QL language.\n\nSupported fields:\n- title: Issue title (string, prefix match)\n- priority: Issue priority (enum: low, normal, high, critical)\n- status: Issue status (enum: open, in_progress, closed)\n- assignee_id: Assignee ID\n- assignee_slug: Assignee username\n- milestone_id: Milestone ID\n- milestone_slug: Milestone slug\n- label_id: Label ID\n- label_slug: Label slug\n- author_id: Author ID\n- author_slug: Author username\n- visibility: Issue visibility (enum: public, private)\n- created_at: Creation timestamp (RFC3339 format)\n- updated_at: Last update timestamp (RFC3339 format)\n\nExamples:\n- status=open and priority=critical\n- author_id=\"550e8400-e29b-41d4-a716-446655440000\"\n- created_at>\"2024-01-01T00:00:00Z\"",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Issues"
        ]
      },
      "post": {
        "summary": "Create Issue in Repository",
        "operationId": "CreateIssue",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Issue"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateIssueBody"
            }
          },
          {
            "name": "silent",
            "description": "do not notify subscribers",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/issues/{issue_slug}": {
      "get": {
        "summary": "Get Issue",
        "operationId": "GetIssue",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Issue"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Issues"
        ]
      },
      "delete": {
        "summary": "Delete Issue",
        "operationId": "DeleteIssue",
        "responses": {
          "204": {
            "description": "A successful response."
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "silent",
            "description": "do not notify subscribers",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues"
        ]
      },
      "patch": {
        "summary": "Update Issue",
        "operationId": "UpdateIssue",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Issue"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdateIssueBody"
            }
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/issues/{issue_slug}/attachments": {
      "get": {
        "summary": "List attachments",
        "description": "Retrieves all attachments from an issue",
        "operationId": "ListIssueAttachments",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/AttachmentsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Attachments"
        ]
      },
      "post": {
        "summary": "Upload attachment",
        "description": "Uploads attachment to an issue",
        "operationId": "UploadIssueAttachment",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "The file to upload"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Attachment"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Attachments"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/issues/{issue_slug}/attachments/{attachment_id}": {
      "get": {
        "summary": "Get attachment",
        "description": "Gets attachment details and download URL",
        "operationId": "GetIssueAttachment",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/AttachmentDownloadable"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "attachment_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Attachments"
        ]
      },
      "delete": {
        "summary": "Remove attachment",
        "description": "Permanently removes an attachment from an issue. The file will be deleted and cannot be reused.",
        "operationId": "DeleteIssueAttachment",
        "responses": {
          "204": {
            "description": "A successful response."
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "attachment_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "silent",
            "description": "creation options (query)",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Attachments"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/issues/{issue_slug}/comments": {
      "get": {
        "summary": "List Comments",
        "description": "Retrieves comments for an issue",
        "operationId": "ListIssueComments",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListIssueCommentsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of issues to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Comments"
        ]
      },
      "post": {
        "summary": "Create comment",
        "operationId": "CreateIssueComment",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueComment"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateIssueCommentBody"
            }
          },
          {
            "name": "silent",
            "description": "do not notify subscribers",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Comments"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/issues/{issue_slug}/issue_links": {
      "get": {
        "summary": "List Issue Links",
        "description": "Retrieves links between this issue and other issues",
        "operationId": "ListIssueLinks",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListLinksResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of issues to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Linked Issues"
        ]
      },
      "post": {
        "summary": "Create Link between Issues",
        "description": "Creates a two-way relation from source issue to target issue of a specific type. Only one link can exist between two given issues.",
        "operationId": "CreateIssueLink",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueLink"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateLinkBody"
            }
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Linked Issues"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/issues/{issue_slug}/labels": {
      "get": {
        "summary": "List Labels",
        "description": "Retrieves all labels that are linked to the specified issue.",
        "operationId": "GetLabels",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueLabelsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "depending on which route is used, either parent or repoId is filled",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Labels"
        ]
      },
      "delete": {
        "summary": "Remove labels",
        "description": "Removes one or more labels from a specific issue. Returns resulting collection.",
        "operationId": "RemoveLabels",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueLabelsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "depending on which route is used, either parent or repoId is filled",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyLabelCollectionRequest"
            }
          },
          {
            "name": "silent",
            "description": "creation options (query)",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Labels"
        ]
      },
      "post": {
        "summary": "Add Labels",
        "description": "Associates one or more labels with a specific issue. Returns resulting collection.",
        "operationId": "AddLabels",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueLabelsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "depending on which route is used, either parent or repoId is filled",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyLabelCollectionRequest"
            }
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Labels"
        ]
      },
      "put": {
        "summary": "Replace Labels",
        "description": "Completely replaces the current set of labels on an issue with the provided set.",
        "operationId": "ReplaceLabels",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueLabelsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyLabelCollectionRequest"
            }
          },
          {
            "name": "silent",
            "description": "creation options (query)",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Labels"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/issues/{issue_slug}/linked_prs": {
      "get": {
        "summary": "List Linked PRs",
        "description": "Retrieves all pull requests that are linked to the specified issue.",
        "operationId": "GetLinkedPRs",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueLinkedPRsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "depending on which route is used, either parent or repoId is filled",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Issues | Linked PRs"
        ]
      },
      "delete": {
        "summary": "Remove linked PRs",
        "description": "Removes one or more pull requests with a specific issue. Returns resulting collection",
        "operationId": "RemoveLinkedPRs",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueLinkedPRsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "depending on which route is used, either parent or repoId is filled",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyPullRequestCollectionRequest"
            }
          },
          {
            "name": "silent",
            "description": "creation options (query)",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Linked PRs"
        ]
      },
      "post": {
        "summary": "Add Linked PRs",
        "description": "Associates one or more pull requests with a specific issue. Returns resulting collection",
        "operationId": "AddLinkedPRs",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/IssueLinkedPRsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "depending on which route is used, either parent or repoId is filled",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "issue_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyPullRequestCollectionRequest"
            }
          },
          {
            "name": "silent",
            "description": "creation options (query)",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Issues | Linked PRs"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/labels": {
      "get": {
        "summary": "List labels",
        "operationId": "ListLabelsForRepository",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListLabelsForRepositoryResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "Path parameters for different routes",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Labels"
        ]
      },
      "post": {
        "summary": "Create Label",
        "operationId": "CreateLabel",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1.Label"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "Path parameters for different routes",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateLabelBody"
            }
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | Labels"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/labels/{label_slug}": {
      "get": {
        "summary": "Get Label (By Slug)",
        "operationId": "GetLabel",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1.Label"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "Path parameters for different routes",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "label_slug",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Labels"
        ]
      },
      "delete": {
        "summary": "Delete label (By Slug)",
        "operationId": "DeleteLabel",
        "responses": {
          "204": {
            "description": "A successful response."
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "Path parameters for different routes",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "label_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | Labels"
        ]
      },
      "patch": {
        "summary": "Update Label (By Slug)",
        "operationId": "UpdateLabel",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1.Label"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "Path parameters for different routes",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "label_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdateLabelBody"
            }
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | Labels"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/milestones": {
      "get": {
        "summary": "List Repository Milestones",
        "operationId": "ListMilestonesForRepository",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListMilestonesForRepositoryResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "Path parameters for different routes",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Milestones"
        ]
      },
      "post": {
        "summary": "Create a Milestone",
        "operationId": "CreateMilestone",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Milestone"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "Path parameters for different routes",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateMilestoneBody"
            }
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | Milestones"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/milestones/{milestone_slug}": {
      "get": {
        "summary": "Get a Milestone (By Slug)",
        "operationId": "GetMilestone",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Milestone"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "Path parameters for different routes",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "milestone_slug",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Milestones"
        ]
      },
      "delete": {
        "summary": "Delete a Milestone (By Slug)",
        "operationId": "DeleteMilestone",
        "responses": {
          "204": {
            "description": "A successful response."
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "Path parameters for different routes",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "milestone_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | Milestones"
        ]
      },
      "patch": {
        "summary": "Update a Milestone (By Slug)",
        "operationId": "UpdateMilestone",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Milestone"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "Path parameters for different routes",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "milestone_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdateMilestoneBody"
            }
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | Milestones"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/pulls": {
      "get": {
        "summary": "List Repository Pull Requests",
        "description": "Retrieves all pull requests from an repository",
        "operationId": "ListRepositoryPullRequests",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListRepositoryPullRequestsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of pull requests to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: title, created_at, updated_at",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "filter",
            "description": "Filter using QL language.\n\nSupported fields:\n- author_id: PR author ID\n- status: PR status (enum: draft, open, discarded, merging, merged)\n- source_branch: Source branch name (string)\n- target_branch: Target branch name (string)\n\nExamples:\n- status=open\n- status=open and source_branch=\"feature/xyz\"\n- author_id=\"550e8400-e29b-41d4-a716-446655440000\"",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      },
      "post": {
        "summary": "Create PullRequest in Repository",
        "operationId": "CreatePullRequest",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequest"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreatePullRequestBody"
            }
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/pulls/{pull_request_slug}": {
      "get": {
        "summary": "Get PullRequest",
        "operationId": "GetPullRequest",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequest"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      },
      "patch": {
        "summary": "Update PullRequest",
        "operationId": "UpdatePullRequest",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequest"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdatePullRequestBody"
            }
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/pulls/{pull_request_slug}/comments": {
      "get": {
        "summary": "List Comments",
        "operationId": "ListPullRequestComments",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListPullRequestCommentsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "iteration",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "only_drafts",
            "description": "Only drafts (unpublished) comments",
            "in": "query",
            "required": false,
            "type": "boolean"
          },
          {
            "name": "page_size",
            "description": "The maximum number of comments to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: iteration, author_id, parent_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest | Comments"
        ]
      },
      "post": {
        "summary": "Create comment",
        "operationId": "CreatePullRequestComment",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequestComment"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreatePullRequestCommentBody"
            }
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "description": "do not notify subscribers",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest | Comments"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/pulls/{pull_request_slug}/comments/publish-drafts": {
      "post": {
        "summary": "Publish Drafts",
        "description": "Publishes all draft (unpublished) comments authored by the current user\non a pull request. Returns the number of comments published.",
        "operationId": "PublishPullRequestCommentsDrafts",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PublishPullRequestCommentsDraftsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublishPullRequestCommentsDraftsBody"
            }
          }
        ],
        "tags": [
          "Repository | PullRequest | Comments"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/pulls/{pull_request_slug}/decision": {
      "post": {
        "summary": "Set Decision",
        "operationId": "SetDecision",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/SetDecisionResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/SetDecisionBody"
            }
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest | Reviewers"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/pulls/{pull_request_slug}/discard": {
      "post": {
        "summary": "Discard PullRequest",
        "operationId": "DiscardPullRequest",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequest"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/pulls/{pull_request_slug}/draft": {
      "post": {
        "summary": "Draft PullRequest",
        "operationId": "DraftPullRequest",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequest"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/pulls/{pull_request_slug}/files": {
      "get": {
        "summary": "List Pull Request Files",
        "description": "Returns the list of files changed in a pull request with diff patches.",
        "operationId": "ListPullRequestFiles",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListPullRequestFilesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of files to return. The service may return fewer than\nthis value.",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/pulls/{pull_request_slug}/labels": {
      "get": {
        "summary": "List Labels",
        "description": "Retrieves all labels that are linked to the specified pull request.",
        "operationId": "GetPullRequestLabels",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequestLabelsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "depending on which route is used, either parent or repoId is filled",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "PullRequest | Labels"
        ]
      },
      "delete": {
        "summary": "Remove Labels",
        "description": "Removes one or more labels from a specific pull request. Returns resulting collection.",
        "operationId": "RemovePullRequestLabels",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequestLabelsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "depending on which route is used, either parent or repoId is filled",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyLabelCollectionRequest"
            }
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "description": "creation options (query)",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "PullRequest | Labels"
        ]
      },
      "post": {
        "summary": "Add Labels",
        "description": "Associates one or more labels with a specific pull request. Returns resulting collection.",
        "operationId": "AddPullRequestLabels",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequestLabelsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "depending on which route is used, either parent or repoId is filled",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyLabelCollectionRequest"
            }
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "description": "creation options (query)",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "PullRequest | Labels"
        ]
      },
      "put": {
        "summary": "Replace Labels",
        "description": "Completely replaces the current set of labels on a pull request with the provided set.",
        "operationId": "ReplacePullRequestLabels",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequestLabelsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "description": "depending on which route is used, either parent or repoId is filled",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ModifyLabelCollectionRequest"
            }
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "description": "creation options (query)",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "PullRequest | Labels"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/pulls/{pull_request_slug}/merge": {
      "post": {
        "summary": "Merge PullRequest",
        "description": "Merges a pull request asynchronously. Poll operation status at the returned status_url.",
        "operationId": "MergePullRequest",
        "responses": {
          "202": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/MergePullRequestOperation"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/MergePullRequestBody"
            }
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/pulls/{pull_request_slug}/merge-checks": {
      "get": {
        "summary": "Get Merge Checks",
        "description": "Returns comprehensive information about merge requirements:\n- Code review status and approval rules\n- Merge conflicts detection\n- CI workflow execution status\n- Configuration validation results",
        "operationId": "GetMergeChecks",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/MergeChecks"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/pulls/{pull_request_slug}/publish": {
      "post": {
        "summary": "Publish PullRequest (change status to open)",
        "operationId": "PublishPullRequest",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequest"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/pulls/{pull_request_slug}/reopen": {
      "post": {
        "summary": "Reopen PullRequest",
        "operationId": "ReopenPullRequest",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/PullRequest"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "silent",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Repository | PullRequest"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/pulls/{pull_request_slug}/reviewers": {
      "get": {
        "summary": "List Reviewers",
        "operationId": "ListReviewers",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListReviewersResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of reviewers to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\n\nAvailable columns: created_at, decision",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest | Reviewers"
        ]
      },
      "post": {
        "summary": "Update Reviewers",
        "operationId": "UpdateReviewers",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/UpdateReviewersResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdateReviewersBody"
            }
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest | Reviewers"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/pulls/{pull_request_slug}/reviewers/auto": {
      "post": {
        "summary": "Automatically assign reviewers to meet review requirements",
        "operationId": "AutoAssign",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/AutoAssignResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "pull_request_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AutoAssignBody"
            }
          },
          {
            "name": "pull_request_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | PullRequest | Reviewers"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/releases": {
      "get": {
        "summary": "List Releases in Repository",
        "operationId": "List",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListReleasesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of releases to return. The service may return fewer than this value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: created_at, released_at",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      },
      "post": {
        "summary": "Create Release in Repository",
        "operationId": "Create",
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Release"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateReleaseBody"
            }
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/releases/generate-notes": {
      "post": {
        "summary": "Generate Release Notes Preview",
        "description": "Returns auto-generated markdown release notes for the commit range between\n`previous_tag` (or the latest prior release) and `tag`, without creating\na release. Use to preview the body before calling `Create`.",
        "operationId": "GenerateReleaseNotes",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/GenerateReleaseNotesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/GenerateReleaseNotesBody"
            }
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/releases/latest": {
      "get": {
        "summary": "Get Latest Release",
        "description": "Retrieves a release marked as latest (by default, last published release)",
        "operationId": "GetLatest",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Release"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/releases/tag/{release_tag}": {
      "get": {
        "summary": "Get Release (By Tag)",
        "operationId": "GetByTag",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Release"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "release_tag",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "release_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      },
      "delete": {
        "summary": "Delete Release (By Tag)",
        "operationId": "DeleteByTag",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "release_tag",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "release_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      },
      "patch": {
        "summary": "Update Release (By Tag)",
        "description": "Can update title and release notes. For status updates, see 'Publish Release' and\n'Discard Release'",
        "operationId": "UpdateByTag",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Release"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "release_tag",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdateReleaseBody"
            }
          },
          {
            "name": "release_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/releases/tag/{release_tag}/discard": {
      "post": {
        "summary": "Discard Release (By Tag)",
        "description": "Only 'published' releases may be discarded, drafts can only be deleted or published.\nContrary to deleted releases, discarded releases are still visible to maintainers.",
        "operationId": "DiscardByTag",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Release"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "release_tag",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "release_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/releases/tag/{release_tag}/publish": {
      "post": {
        "summary": "Publish Release (By Tag)",
        "description": "Only 'draft' releases may be published",
        "operationId": "PublishByTag",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Release"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "release_tag",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "release_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Releases"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/roles": {
      "get": {
        "summary": "List Repository Roles",
        "operationId": "ListRepoRoles",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListRepoRolesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of repo roles to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields.\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"foo, -bar\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: name",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository | Roles"
        ]
      },
      "post": {
        "summary": "Add Repository Roles",
        "operationId": "AddRepoRoles",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/AddRepoRolesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AddRepoRolesBody"
            }
          }
        ],
        "tags": [
          "Repository | Roles"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/roles/remove": {
      "post": {
        "summary": "Remove Repository Roles",
        "operationId": "RemoveRepoRoles",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/RemoveRepoRolesResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/RemoveRepoRolesBody"
            }
          }
        ],
        "tags": [
          "Repository | Roles"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/secrets": {
      "get": {
        "summary": "List secret entries (key-value pairs)",
        "operationId": "ListSecrets",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListSecretsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "secret_group",
            "description": "Optional: name of the secret group. Defaults to \"default\".",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "keys",
            "description": "Optional: filter by specific keys. If empty, all entries are returned.",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          }
        ],
        "tags": [
          "Secrets"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/secrets/{key}": {
      "delete": {
        "summary": "Delete a secret entry",
        "description": "Deletes a secret entry asynchronously. Poll operation status at the returned status_url.",
        "operationId": "DeleteSecret",
        "responses": {
          "202": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/SecretsOperation"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "secret_group",
            "description": "Optional: name of the secret group. Defaults to \"default\".",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Secrets"
        ]
      },
      "put": {
        "summary": "Create or update a secret entry",
        "description": "Creates or updates a secret entry asynchronously. Poll operation status at the returned status_url.",
        "operationId": "SetSecret",
        "responses": {
          "202": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/SecretsOperation"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/SetSecretBody"
            }
          },
          {
            "name": "secret_group",
            "description": "Optional: name of the secret group. Defaults to \"default\".",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Secrets"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/tags": {
      "get": {
        "summary": "List Repository Tags",
        "operationId": "ListTags",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListTagsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "filter",
            "description": "Filter tags by name contains",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields.\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"foo, -bar\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: name",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of tags to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository"
        ]
      }
    },
    "/repos/{org_slug}/{repo_slug}/trees": {
      "get": {
        "summary": "List Repository File Tree",
        "operationId": "ListTree",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListTreeResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "revision",
            "description": "Git reference (branch, tag, or commit SHA). If empty, the default branch (usually main) will be used.\nExamples: `mybranch`, `tags:v1.0.0`",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "path",
            "description": "Path within repository to get the tree for. If not specified, returns the root tree",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "recursive",
            "description": "Whether to retrieve tree entries recursively. If false, only immediate children are returned",
            "in": "query",
            "required": false,
            "type": "boolean"
          },
          {
            "name": "page_size",
            "description": "The maximum number of tree entries to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Repository"
        ]
      }
    },
    "/user": {
      "get": {
        "summary": "Get authenticated user profile",
        "operationId": "GetMyProfile",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/UserProfile"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "tags": [
          "User"
        ]
      }
    },
    "/user/code-assist-billing-org": {
      "get": {
        "summary": "Get CodeAssist billing organization for the authenticated user",
        "operationId": "GetMyCodeAssistBillingOrg",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Organization"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "tags": [
          "User"
        ]
      }
    },
    "/users/cloud-id:{cloud_id}": {
      "get": {
        "summary": "Get User Profile (By Cloud ID)",
        "operationId": "GetProfileByCloudID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/UserProfile"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "cloud_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "user_slug",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "User"
        ]
      }
    },
    "/users/id:{user_id}": {
      "get": {
        "summary": "Get User Profile (By ID)",
        "operationId": "GetProfileByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/UserProfile"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "user_slug",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "cloud_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "User"
        ]
      }
    },
    "/users/id:{user_id}/pulls": {
      "get": {
        "summary": "List User Pull Requests (By User ID)",
        "description": "Lists pull requests related to a user identified by UUID.",
        "operationId": "ListUserPullRequestsByID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListRepositoryPullRequestsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "user_slug",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "role",
            "description": "Role by which PRs should be selected: author, reviewer or any",
            "in": "query",
            "required": false,
            "type": "string",
            "enum": [
              "author",
              "reviewer",
              "any"
            ]
          },
          {
            "name": "page_size",
            "description": "The maximum number of pull requests to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: title, created_at, updated_at",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "User | PullRequest"
        ]
      }
    },
    "/users/{user_slug}": {
      "get": {
        "summary": "Get User Profile",
        "operationId": "GetProfile",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/UserProfile"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "user_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "cloud_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "User"
        ]
      }
    },
    "/users/{user_slug}/pulls": {
      "get": {
        "summary": "List User Pull Requests",
        "description": "Lists pull requests related to a user identified by user slug.",
        "operationId": "ListUserPullRequests",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListRepositoryPullRequestsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "user_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "role",
            "description": "Role by which PRs should be selected: author, reviewer or any",
            "in": "query",
            "required": false,
            "type": "string",
            "enum": [
              "author",
              "reviewer",
              "any"
            ]
          },
          {
            "name": "page_size",
            "description": "The maximum number of pull requests to return. The service may return fewer than\nthis value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_by",
            "description": "Ordering options: comma separated list of fields. For example: \"name, created_at\"\nDefault sorting order is ascending. To specify descending order for a field,\nappend a \"-\" prefix; for example: \"name, -created_at\"\nRedundant space characters in the syntax are insignificant. \"foo, -bar\", \" foo , -bar\", and \"foo,bar\"\nare all equivalent.\nAvailable fields: title, created_at, updated_at",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "User | PullRequest"
        ]
      }
    },
    "/{org_slug}/{repo_slug}": {
      "delete": {
        "summary": "Delete Repository",
        "description": "Endpoint is deprecated, please use `DELETE /repos/{org_slug}/{repo_slug}` instead",
        "operationId": "DeleteRepositoryDeprecated",
        "responses": {
          "204": {
            "description": "A successful response."
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "silent",
            "description": "Flag for deleting without any notifications. NOT IMPLEMENTED YET.",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Withdrawn"
        ],
        "deprecated": true
      },
      "patch": {
        "summary": "Update Repository",
        "description": "Endpoint is deprecated, please use `PATCH /repos/{org_slug}/{repo_slug}` instead",
        "operationId": "UpdateRepositoryDeprecated",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Repository"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdateRepositoryBody"
            }
          },
          {
            "name": "silent",
            "description": "Flag for update without any notifications. NOT IMPLEMENTED YET.",
            "in": "query",
            "required": false,
            "type": "boolean"
          }
        ],
        "tags": [
          "Withdrawn"
        ],
        "deprecated": true
      }
    },
    "/{org_slug}/{repo_slug}/ci_workflows/{workflow_name}/trigger": {
      "post": {
        "summary": "Run Workflow in Repository",
        "description": "Endpoint is deprecated, please use `POST /repos/{org_slug}/{repo_slug}/cicd/runs` instead",
        "operationId": "RunWorkflow",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/RunCIWorkflowResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "workflow_name",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/RunCIBody"
            }
          }
        ],
        "tags": [
          "Withdrawn"
        ],
        "deprecated": true
      }
    },
    "/{org_slug}/{repo_slug}/cicd/artifacts/{run_slug}/{workflow_slug}/{task_slug}/{cube_slug}": {
      "get": {
        "summary": "Get Artifacts from a CI Run",
        "description": "Endpoint is deprecated, please use `GET /repos/{org_slug}/{repo_slug}/cicd/artifacts/{run_slug}/{workflow_slug}/{task_slug}/{cube_slug}` instead",
        "operationId": "GetCubeArtifactsDeprecated",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/GetCubeArtifactsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "run_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "workflow_slug",
            "description": "Workflow name as defined in the config.",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "task_slug",
            "description": "Task name as defined in the config.",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "cube_slug",
            "description": "Cube name as defined in the config.",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Withdrawn"
        ],
        "deprecated": true
      }
    },
    "/{org_slug}/{repo_slug}/cicd/logs/{run_slug}/{workflow_slug}/{task_slug}/{cube_slug}": {
      "get": {
        "summary": "Get Logs from a Running CI Cube in Repository",
        "description": "Endpoint is deprecated, please use `GET /repos/{org_slug}/{repo_slug}/cicd/logs/{run_slug}/{workflow_slug}/{task_slug}/{cube_slug}` instead",
        "operationId": "GetCubeLogsDeprecated",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/GetCubeLogsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "run_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "workflow_slug",
            "description": "Workflow name as defined in the config.",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "task_slug",
            "description": "Task name as defined in the config.",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "cube_slug",
            "description": "Cube name as defined in the config.",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page",
            "description": "Page number to fetch, by default 1.\n\nLogs are split into pages; pages are not guaranteed to be the same size and are intended to be read\nin order. When one page is finished, the subsequent one starts being written.",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          }
        ],
        "tags": [
          "Withdrawn"
        ],
        "deprecated": true
      }
    },
    "/{org_slug}/{repo_slug}/cicd/runs": {
      "get": {
        "summary": "List CI Runs in Repository",
        "description": "Endpoint is deprecated, please use `GET /repos/{org_slug}/{repo_slug}/cicd/runs` instead",
        "operationId": "ListRunsDeprecated",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ListRunsResponse"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "page_size",
            "description": "The maximum number of runs to return. The service may return fewer than this value",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "page_token",
            "description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters must match\nthe call that provided the page token.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Withdrawn"
        ],
        "deprecated": true
      },
      "post": {
        "summary": "Run Workflows in Repository",
        "description": "Endpoint is deprecated, please use `POST /repos/{org_slug}/{repo_slug}/cicd/runs` instead",
        "operationId": "RunWorkflowsDeprecated",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Run"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/RunWorkflowsBody"
            }
          }
        ],
        "tags": [
          "Withdrawn"
        ],
        "deprecated": true
      }
    },
    "/{org_slug}/{repo_slug}/cicd/runs/{run_slug}": {
      "get": {
        "summary": "Get CI Run in Repository",
        "description": "Endpoint is deprecated, please use `GET /repos/{org_slug}/{repo_slug}/cicd/runs/{run_slug}` instead",
        "operationId": "GetRunDeprecated",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Run"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "run_slug",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Withdrawn"
        ],
        "deprecated": true
      }
    },
    "/{org_slug}/{repo_slug}/cicd/runs/{run_slug}/{workflow_slug}": {
      "get": {
        "summary": "Get Running CI Workflow in Repository",
        "description": "Endpoint is deprecated, please use `GET /repos/{org_slug}/{repo_slug}/cicd/runs/{run_slug}/{workflow_slug}` instead",
        "operationId": "GetWorkflowDeprecated",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/Workflow"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "run_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "workflow_slug",
            "description": "Workflow name as defined in the config.",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Withdrawn"
        ],
        "deprecated": true
      }
    },
    "/repos/{org_slug}/{repo_slug}/releases/tag/{release_tag}/attachments": {
      "post": {
        "summary": "Upload Attachment As Release Asset (By Release Tag)",
        "description": "Uploads attachment to a release and adds it as an asset",
        "operationId": "AddReleaseAssetAttachment",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "file"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The intended name of the asset"
                  },
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "The file to upload"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ReleaseAsset"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "repo_slug",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "release_tag",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Release | Attachments"
        ]
      }
    },
    "/releases/id:{release_id}/attachments": {
      "post": {
        "summary": "Upload Attachment As Release Asset (By Release ID)",
        "description": "Uploads attachment to a release and adds it as an asset",
        "operationId": "AddReleaseAssetAttachmentByID",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "The file to upload"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/ReleaseAsset"
            }
          },
          "default": {
            "description": "Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme",
            "schema": {
              "$ref": "#/definitions/ApiErrorResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "release_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Release | Attachments"
        ]
      }
    }
  },
  "definitions": {
    "AIProduct": {
      "type": "string",
      "enum": [
        "vscode_plugin",
        "jb_plugin",
        "cli",
        "neuro_features",
        "sourcecraft_web_chat"
      ]
    },
    "AddOrganizationRolesBody": {
      "type": "object",
      "properties": {
        "repo_subject_roles": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/SubjectRole"
          },
          "description": "List of repository roles that will be set on the organization level. These roles are inherited by all repositories in the organization."
        }
      }
    },
    "AddOrganizationRolesResponse": {
      "type": "object"
    },
    "AddRepoRolesBody": {
      "type": "object",
      "properties": {
        "subject_roles": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/SubjectRole"
          }
        }
      },
      "title": "The request body specifies the users and their respective roles to be added to the repository"
    },
    "AddRepoRolesResponse": {
      "type": "object",
      "properties": {
        "subject_roles": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/SubjectRole"
          }
        },
        "next_page_token": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages."
        }
      },
      "title": "The response returns all roles and users from the repository"
    },
    "Anchor": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string"
        },
        "position": {
          "$ref": "#/definitions/DiffPos"
        },
        "hunk": {
          "$ref": "#/definitions/Hunk"
        }
      }
    },
    "ApiErrorResponse": {
      "type": "object",
      "properties": {
        "error_code": {
          "type": "string",
          "title": "Error code that can be used for error handling. For example: \"ValidationError\""
        },
        "message": {
          "type": "string",
          "title": "Human-readable message"
        },
        "request_id": {
          "type": "string",
          "title": "Request ID"
        },
        "details": {
          "title": "Optional details. Exact structure depends on error_code"
        }
      }
    },
    "ArchiveType": {
      "type": "string",
      "enum": [
        "tar_gz"
      ]
    },
    "Artifact": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "title": "CI/CD entities don't have public IDs at this stage; they will be added later"
        },
        "local_path": {
          "type": "string",
          "description": "Artifacts do not have a slug as we define it.\nInstead they are differentiated by context (workflow, task, cube) and `local_path`.\nThis is a local path for the artifact as defined in the CI configuration file."
        },
        "dates": {
          "$ref": "#/definitions/ArtifactDates"
        },
        "status": {
          "$ref": "#/definitions/ArtifactStatus"
        },
        "download_url": {
          "type": "string",
          "description": "A temporary download URL, will be valid for a short period of time after acquisition."
        }
      }
    },
    "ArtifactDates": {
      "type": "object",
      "properties": {
        "registered_at": {
          "type": "string",
          "format": "date-time"
        },
        "obtained_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "ArtifactStatus": {
      "type": "string",
      "enum": [
        "registered",
        "success",
        "failed",
        "missing"
      ]
    },
    "Attachment": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "mime_type": {
          "type": "string"
        },
        "file_type": {
          "$ref": "#/definitions/FileType"
        },
        "size": {
          "type": "string",
          "format": "int64"
        }
      }
    },
    "AttachmentDownloadable": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "mime_type": {
          "type": "string"
        },
        "file_type": {
          "$ref": "#/definitions/FileType"
        },
        "size": {
          "type": "string",
          "format": "int64"
        },
        "url": {
          "type": "string",
          "title": "temporary download url"
        }
      }
    },
    "AttachmentEmbedded": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      }
    },
    "AttachmentsResponse": {
      "type": "object",
      "properties": {
        "attachments": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Attachment"
          }
        }
      }
    },
    "AutoAssignBody": {
      "type": "object",
      "properties": {
        "silent": {
          "type": "boolean"
        }
      }
    },
    "AutoAssignResponse": {
      "type": "object",
      "properties": {
        "reviewers_delta": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/AutoAssignResponse.ReviewerDelta"
          }
        }
      },
      "title": "AutoAssignResponse contains information about all the reviewers of pull request"
    },
    "AutoAssignResponse.ReviewerDelta": {
      "type": "object",
      "properties": {
        "action": {
          "$ref": "#/definitions/DeltaAction"
        },
        "user": {
          "$ref": "#/definitions/UserEmbedded"
        }
      }
    },
    "Branch": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "commit": {
          "$ref": "#/definitions/Commit"
        }
      }
    },
    "CIWorkflowCheck": {
      "type": "object",
      "properties": {
        "status": {
          "$ref": "#/definitions/Run.Status"
        },
        "disabled": {
          "type": "boolean"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "run_id": {
          "type": "string",
          "title": "CI/CD entities don't have public IDs at this stage; they will be added later"
        },
        "run_slug": {
          "type": "string",
          "title": "Run counter"
        },
        "workflow_id": {
          "type": "string",
          "title": "CI/CD entities don't have public IDs at this stage; they will be added later"
        },
        "workflow_slug": {
          "type": "string",
          "title": "A name of the workflow as defined in the config"
        }
      },
      "description": "Different CI workflows may have different corresponding CI runs due to restarts.\nTo get detailed information about each workflow, use `/{org_slug}/{repo_slug}/cicd/runs/{run_slug}/{workflow_slug}`.",
      "title": "CI workflow execution status"
    },
    "CloneURL": {
      "type": "object",
      "properties": {
        "https": {
          "type": "string"
        },
        "ssh": {
          "type": "string"
        }
      }
    },
    "CodeArchive": {
      "type": "object",
      "properties": {
        "archive_type": {
          "$ref": "#/definitions/ArchiveType"
        },
        "link": {
          "type": "string"
        }
      }
    },
    "CodeAssistWorkplacesInfo": {
      "type": "object",
      "properties": {
        "purchased_workplaces": {
          "type": "integer",
          "format": "int32"
        },
        "prepaid_workplaces": {
          "type": "integer",
          "format": "int32"
        },
        "occupied_workplaces": {
          "type": "integer",
          "format": "int32"
        }
      },
      "description": "CodeAssistWorkplacesInfo contains information about code assist workplaces for an organization."
    },
    "CodeReviewCheck": {
      "type": "object",
      "properties": {
        "status": {
          "$ref": "#/definitions/MergeChecks.Status"
        },
        "disabled": {
          "type": "boolean"
        },
        "total_approves": {
          "type": "integer",
          "format": "int32",
          "title": "Total number of approvals received"
        },
        "need_approves": {
          "type": "integer",
          "format": "int32",
          "title": "Number of approves required to pass"
        },
        "rules": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/ReviewRule"
          },
          "title": "Individual review rules and their status"
        }
      },
      "title": "Code review approval status"
    },
    "Commit": {
      "type": "object",
      "properties": {
        "hash": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "author": {
          "$ref": "#/definitions/Signature",
          "title": "Author of the commit"
        },
        "committer": {
          "$ref": "#/definitions/Signature",
          "title": "Committer of the commit (may differ from author)"
        },
        "tree_hash": {
          "type": "string",
          "title": "Hash of the tree object"
        },
        "parent_hashes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Hashes of parent commits"
        },
        "merge_tag": {
          "type": "string",
          "title": "Embedded merge tag (if present)"
        },
        "file_changes": {
          "$ref": "#/definitions/CommitFileChanges",
          "title": "File changes in this commit"
        },
        "author_user": {
          "$ref": "#/definitions/UserEmbedded",
          "description": "Resolved user for the commit author, if any."
        },
        "committer_user": {
          "$ref": "#/definitions/UserEmbedded",
          "description": "Resolved user for the commit committer, if any."
        },
        "signature_verification": {
          "$ref": "#/definitions/SignatureVerification",
          "description": "SSH signature verification result, if the commit is SSH-signed."
        }
      }
    },
    "CommitFileChanges": {
      "type": "object",
      "properties": {
        "added": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Files that were added in this commit.\nLimited to 1000 files maximum. Empty list means no files were added."
        },
        "modified": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Files that were modified in this commit.\nLimited to 1000 files maximum. Empty list means no files were modified."
        },
        "removed": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Files that were removed in this commit.\nLimited to 1000 files maximum. Empty list means no files were removed."
        }
      }
    },
    "ConfigValidationCheck": {
      "type": "object",
      "properties": {
        "status": {
          "$ref": "#/definitions/MergeChecks.Status"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "file_path": {
          "type": "string",
          "title": "Path to the configuration file being validated"
        },
        "error_message": {
          "type": "string",
          "title": "Error message if validation failed"
        }
      },
      "title": "Configuration file validation status"
    },
    "Conflict": {
      "type": "object",
      "properties": {
        "conflict_type": {
          "type": "string",
          "title": "Type of conflict (e.g., \"content\", \"delete/modify\")"
        },
        "path": {
          "type": "string",
          "title": "File path where conflict occurred"
        },
        "message": {
          "type": "string",
          "title": "Human-readable conflict description"
        }
      }
    },
    "ConflictsCheck": {
      "type": "object",
      "properties": {
        "status": {
          "$ref": "#/definitions/MergeChecks.Status"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "conflicts": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Conflict"
          },
          "title": "List of detected conflicts"
        },
        "error": {
          "type": "string",
          "title": "Error message if conflict detection failed"
        }
      },
      "title": "Merge conflicts detection status"
    },
    "CreateIssueBody": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "title": "Issue title (up to 1024 characters)"
        },
        "description": {
          "type": "string",
          "title": "Issue description (up to 10Mb)"
        },
        "status_slug": {
          "type": "string",
          "title": "Status. System-wide statuses: open, inProgress, paused, closed, declined, duplicate"
        },
        "priority": {
          "$ref": "#/definitions/Priority",
          "title": "Priority"
        },
        "assignee_id": {
          "type": "string"
        },
        "milestone_id": {
          "type": "string"
        },
        "milestone_slug": {
          "type": "string"
        },
        "visibility": {
          "$ref": "#/definitions/Issue.Visibility"
        },
        "label_ids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "IDs of labels from this repository which are to be linked to the issue. Cannot be used with label_slugs"
        },
        "label_slugs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Slugs of labels from this repository which are to be linked to the issue. Cannot be used with label_ids"
        },
        "linked_pr_ids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "IDs of PRs from this repository which are to be linked to the issue. Cannot be used with linked_pr_slugs"
        },
        "linked_pr_slugs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Slugs to PRs from this repository which are to be linked to the issue. Cannot be used with linked_pr_id. For example [\"1\", \"2\", \"10\"]"
        },
        "deadline": {
          "type": "string",
          "format": "date-time",
          "title": "User-defined deadline for the issue"
        }
      },
      "required": [
        "title"
      ]
    },
    "CreateIssueCommentBody": {
      "type": "object",
      "properties": {
        "parent_id": {
          "type": "string"
        },
        "body": {
          "type": "string"
        }
      }
    },
    "CreateLabelBody": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "title": "label name"
        },
        "slug": {
          "type": "string",
          "title": "optional, default slug is generated from name"
        },
        "color": {
          "type": "string",
          "title": "optional, default color is gray"
        }
      },
      "required": [
        "name"
      ]
    },
    "CreateLinkBody": {
      "type": "object",
      "properties": {
        "target_issue_id": {
          "type": "string"
        },
        "target_issue_slug": {
          "type": "string"
        },
        "link_type": {
          "$ref": "#/definitions/IssueLink.LinkType"
        }
      }
    },
    "CreateMilestoneBody": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "title": "milestone name"
        },
        "slug": {
          "type": "string",
          "title": "optional, default slug is generated from name"
        },
        "description": {
          "type": "string",
          "title": "optional, milestone description"
        },
        "start_date": {
          "type": "string",
          "format": "date-time",
          "title": "optional, milestone start date"
        },
        "deadline": {
          "type": "string",
          "format": "date-time",
          "title": "optional, milestone deadline (end date)"
        }
      },
      "required": [
        "name"
      ]
    },
    "CreateOrganizationInvitesBody": {
      "type": "object",
      "properties": {
        "invitees": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/InviteeInput"
          },
          "title": "List of invitees"
        },
        "ttl_in_days": {
          "type": "integer",
          "format": "int64",
          "title": "Time-to-live in days (1 to 30, empty means default: 14)"
        }
      }
    },
    "CreateOrganizationInvitesOperation": {
      "type": "object",
      "properties": {
        "operation_id": {
          "type": "string",
          "title": "Operation ID"
        },
        "status_url": {
          "type": "string",
          "title": "URL to poll for operation status"
        },
        "status": {
          "$ref": "#/definitions/OperationStatus"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Timestamp when operation was created"
        },
        "modified_at": {
          "type": "string",
          "format": "date-time",
          "title": "Timestamp when operation was last modified"
        },
        "response": {
          "$ref": "#/definitions/CreateOrganizationInvitesOperationResult",
          "description": "Operation result. Present when status is \"success\"."
        },
        "error": {
          "$ref": "#/definitions/OperationError",
          "description": "Operation-level error. Present only when the entire operation failed\ndue to a fatal error (e.g., permission denied, invalid request, system error).\nIf some invites succeeded and some failed, the operation is considered successful."
        }
      },
      "x-ogen-name": "CreateOrganizationInvitesOperationResponse"
    },
    "CreateOrganizationInvitesOperationResult": {
      "type": "object",
      "properties": {
        "invites": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Invite"
          },
          "description": "Invites that were successfully created and are waiting for acceptance."
        },
        "errors": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/InviteError"
          },
          "description": "Per-invite errors. Each error identifies which invitee failed and why."
        }
      }
    },
    "CreatePullRequestBody": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "title": "Pull request title (up to 1024 characters)"
        },
        "description": {
          "type": "string",
          "title": "Optional. Pull request description (up to 10Mb)"
        },
        "source_branch": {
          "type": "string",
          "title": "Source branch name"
        },
        "target_branch": {
          "type": "string",
          "title": "Target branch name"
        },
        "fork_repo_id": {
          "type": "string",
          "title": "Optional. Fork repository ID if creating PR from another repository"
        },
        "reviewer_ids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. List of user IDs to assign as reviewers."
        },
        "publish": {
          "type": "boolean",
          "title": "Whether to publish the PR immediately (default: false = draft)"
        }
      }
    },
    "CreatePullRequestCommentBody": {
      "type": "object",
      "properties": {
        "parent_id": {
          "type": "string"
        },
        "body": {
          "type": "string"
        },
        "anchor": {
          "$ref": "#/definitions/ShortAnchor",
          "title": "Optional anchor for code comments"
        },
        "need_resolution": {
          "type": "boolean",
          "title": "Indicates an issue in PR that must be resolved before merge"
        },
        "publish": {
          "type": "boolean",
          "title": "publish immediately (defaults to true)"
        },
        "iteration": {
          "type": "string",
          "title": "Optional iteration specification (defaults to latest iteration)"
        }
      }
    },
    "CreateReleaseBody": {
      "type": "object",
      "properties": {
        "tag": {
          "type": "string"
        },
        "target_branch": {
          "type": "string",
          "title": "If provided, tag creation will be attempted on publish; will fail on existing tag"
        },
        "title": {
          "type": "string"
        },
        "release_notes": {
          "type": "string"
        },
        "publish": {
          "type": "boolean",
          "title": "Determines whether the release is to be created as draft or published immediately"
        }
      }
    },
    "CreateRepositoryBody": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "title": "Repository name (up to 256 characters)"
        },
        "slug": {
          "type": "string",
          "title": "Repository slug (up to 256 characters)"
        },
        "description": {
          "type": "string",
          "title": "Repository description (up to 10Mb)"
        },
        "visibility": {
          "$ref": "#/definitions/Repository.Visibility",
          "title": "Repository visibility. Available values: public, private"
        },
        "init_settings": {
          "$ref": "#/definitions/InitSettings",
          "title": "Repository initialization settings"
        },
        "templating_options": {
          "$ref": "#/definitions/TemplatingOptions",
          "description": "Create repo from template. If template is chosen, init_settings are ignored."
        }
      },
      "required": [
        "name",
        "slug"
      ]
    },
    "Cube": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "title": "CI/CD entities don't have public IDs at this stage; they will be added later"
        },
        "slug": {
          "type": "string",
          "title": "A name of the cube as defined in the config"
        },
        "dates": {
          "$ref": "#/definitions/DatesByStage"
        },
        "status": {
          "$ref": "#/definitions/Run.Status"
        },
        "artifacts": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Artifact"
          }
        },
        "relations": {
          "$ref": "#/definitions/Relations"
        }
      }
    },
    "DatesByStage": {
      "type": "object",
      "properties": {
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "started_at": {
          "type": "string",
          "format": "date-time"
        },
        "finished_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "DeltaAction": {
      "type": "string",
      "enum": [
        "add",
        "remove"
      ]
    },
    "Dependency": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      }
    },
    "DiffEntry": {
      "type": "object",
      "properties": {
        "filename": {
          "type": "string",
          "description": "Current file path."
        },
        "previous_filename": {
          "type": "string",
          "description": "Previous file path (only set for renamed files)."
        },
        "status": {
          "$ref": "#/definitions/DiffEntry.Status",
          "description": "File change type."
        },
        "additions": {
          "type": "string",
          "format": "int64",
          "description": "Number of added lines."
        },
        "deletions": {
          "type": "string",
          "format": "int64",
          "description": "Number of deleted lines."
        },
        "changes": {
          "type": "string",
          "format": "int64",
          "description": "Total changed lines (additions + deletions)."
        },
        "patch": {
          "type": "string",
          "description": "Unified diff hunks starting with @@. Empty for binary files."
        },
        "patch_error": {
          "$ref": "#/definitions/PatchError",
          "description": "Reason why patch could not be computed. Set only when patch is empty due to an error."
        }
      },
      "description": "A single file entry in a pull request diff."
    },
    "DiffEntry.Status": {
      "type": "string",
      "enum": [
        "added",
        "removed",
        "modified",
        "renamed"
      ]
    },
    "DiffPos": {
      "type": "object",
      "properties": {
        "from": {
          "type": "integer",
          "format": "int32",
          "description": "Start of commented region, line number (1-based)."
        },
        "to": {
          "type": "integer",
          "format": "int32",
          "description": "End of commented region, line number (1-based)."
        },
        "side": {
          "$ref": "#/definitions/Side"
        },
        "outdated": {
          "type": "boolean",
          "description": "Indicates whether commented region has changed after initial comment publishing."
        }
      }
    },
    "EventHeader": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "title": "Unique identifier for this event instance"
        },
        "type": {
          "type": "string",
          "title": "Event type"
        },
        "occurred_at": {
          "type": "string",
          "format": "date-time",
          "title": "When the event occurred"
        },
        "aggregate_id": {
          "type": "string",
          "title": "ID of the primary entity this event is about"
        },
        "aggregate_type": {
          "type": "string",
          "title": "Type of the primary entity (derived from event_type)"
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "title": "Public metadata"
        },
        "organization_id": {
          "type": "string",
          "title": "Organization context"
        },
        "repository_id": {
          "type": "string",
          "title": "Repository context"
        },
        "triggered_by": {
          "$ref": "#/definitions/UserEmbedded",
          "title": "User that triggered event"
        },
        "correlation_id": {
          "type": "string",
          "description": "Correlation ID for tracking event chains back to the original request.\nUses request_id from the originating gRPC/HTTP request when available,\nfalls back to trace_id or the root event's ID."
        },
        "causation_id": {
          "type": "string",
          "description": "Causation ID is the ID of the event that directly caused this event.\nEmpty for root events (events triggered directly by user actions).\nUsed to reconstruct the event tree within a correlation chain."
        }
      },
      "title": "Common header included in all public events"
    },
    "EventType": {
      "type": "string",
      "enum": [
        "push",
        "pr_update",
        "manual",
        "restart",
        "schedule"
      ]
    },
    "FileType": {
      "type": "string",
      "enum": [
        "image",
        "document",
        "video",
        "container"
      ]
    },
    "ForkRepositoryBody": {
      "type": "object",
      "properties": {
        "org_slug": {
          "type": "string",
          "title": "Organization slug where the fork will be created (use either org_slug or org_id)"
        },
        "org_id": {
          "type": "string",
          "title": "Organization ID where the fork will be created (use either org_slug or org_id)"
        },
        "slug": {
          "type": "string",
          "title": "Slug for the forked repository (up to 256 characters). If not specified, uses the source repository slug"
        },
        "default_branch_only": {
          "type": "boolean",
          "title": "Copy only the default branch. If false, all branches will be copied"
        }
      }
    },
    "GenerateReleaseNotesBody": {
      "type": "object",
      "properties": {
        "tag": {
          "type": "string",
          "description": "Target tag of the release. May or may not exist yet."
        },
        "target_branch": {
          "type": "string",
          "description": "Branch, ref or SHA used to resolve `tag` when it doesn't exist yet."
        },
        "previous_tag": {
          "type": "string",
          "description": "The name of the previous tag to use as the starting point for the release notes.\nUse to manually specify the range of changes considered as part of this release.\nIf empty, the latest prior release is used."
        },
        "path_filters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Restricts generated notes to PRs that touched any of the given paths."
        }
      }
    },
    "GenerateReleaseNotesResponse": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "description": "Suggested release title."
        },
        "release_notes": {
          "type": "string",
          "description": "Rendered markdown body."
        }
      }
    },
    "GetCubeArtifactsResponse": {
      "type": "object",
      "properties": {
        "artifacts": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Artifact"
          },
          "description": "List of artifacts filtered by specified workflow/task/cube.\nEach item contains info about the artifact and a temporary download URL."
        }
      }
    },
    "GetCubeLogsResponse": {
      "type": "object",
      "properties": {
        "logs": {
          "type": "string"
        },
        "page_complete": {
          "type": "boolean",
          "description": "This flag is set to true when the corresponding page of logs was fully written.\nIf `page_complete` is false, requests for the next pages will result in a status code 'Not Found'."
        },
        "done": {
          "type": "boolean",
          "description": "This flag is set to true when the the cube's execution has finished and no more logs will be written."
        }
      }
    },
    "GetOrganizationNeurocreditsUsageResponse": {
      "type": "object",
      "properties": {
        "entries": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/NeurocreditsUsageEntry"
          }
        },
        "next_page_token": {
          "type": "string"
        }
      }
    },
    "GitRevision": {
      "type": "object",
      "properties": {
        "branch": {
          "type": "string",
          "title": "Branch name"
        },
        "tag": {
          "type": "string",
          "title": "Tag name"
        },
        "commit": {
          "type": "string",
          "title": "Commit hash"
        }
      },
      "description": "Exactly one of the fields must be provided"
    },
    "Hunk": {
      "type": "object",
      "properties": {
        "from_start": {
          "type": "integer",
          "format": "int32"
        },
        "from_count": {
          "type": "integer",
          "format": "int32"
        },
        "to_start": {
          "type": "integer",
          "format": "int32"
        },
        "to_count": {
          "type": "integer",
          "format": "int32"
        },
        "patch": {
          "type": "string"
        }
      },
      "title": "Hunk represent transformation that will modify region\nin left side from_start:from_start+from_count into region\nin right side to_start:to_count"
    },
    "Image": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        }
      }
    },
    "InitSettings": {
      "type": "object",
      "properties": {
        "default_branch": {
          "type": "string",
          "title": "Repository default branch (up to 256 characters). Optional, \"main\" if omitted"
        },
        "create_readme": {
          "type": "boolean",
          "title": "Whether to create README.md file with repository name and description"
        },
        "gitignore_presets": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Gitignore preset names"
        },
        "license_slug": {
          "type": "string",
          "title": "License preset slug"
        },
        "src_yaml_template_slug": {
          "type": "string",
          "title": "The yaml specification template slug for launching ci"
        }
      }
    },
    "InputValue": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "Invite": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "title": "Unique identifier of the invite"
        },
        "email": {
          "type": "string",
          "title": "Email address of the invitee (for external users)"
        },
        "alias": {
          "type": "string",
          "title": "Human-readable identifier for code-based invite"
        },
        "invite_link": {
          "type": "string",
          "title": "Invite URL for code-based invites. Only returned in create operation response"
        },
        "invitee": {
          "$ref": "#/definitions/UserEmbedded",
          "title": "Invitee user (if registered user)"
        },
        "status": {
          "$ref": "#/definitions/InviteStatus",
          "title": "Current status of the invitation"
        },
        "subject": {
          "$ref": "#/definitions/Subject",
          "title": "Subject to which a role can be assigned"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "When the invitation was created"
        },
        "expires_at": {
          "type": "string",
          "format": "date-time",
          "title": "When the invitation expires"
        }
      },
      "description": "Invite represents an organization invitation.\nExactly one of email, alias, or invitee is set depending on invite type."
    },
    "InviteError": {
      "type": "object",
      "properties": {
        "invitee": {
          "$ref": "#/definitions/InviteeInput",
          "title": "The invitee input that caused the error"
        },
        "error_code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      }
    },
    "InviteStatus": {
      "type": "string",
      "enum": [
        "creating",
        "pending",
        "accepted",
        "rejected"
      ]
    },
    "InviteeInput": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "title": "Email address (for external users)"
        },
        "slug": {
          "type": "string",
          "title": "User slug (for registered users)"
        },
        "alias": {
          "type": "string",
          "description": "Human-readable identifier for code-based invite. Generates invite_link in response."
        }
      },
      "description": "Input for invite recipient. Exactly one of email, slug, or alias must be specified."
    },
    "Issue": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/IssueStatus"
        },
        "author": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "updated_by": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "assignee": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "labels": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/LabelEmbedded"
          }
        },
        "linked_prs": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/PullRequestEmbedded"
          }
        },
        "priority": {
          "$ref": "#/definitions/Priority"
        },
        "visibility": {
          "$ref": "#/definitions/Issue.Visibility"
        },
        "milestone": {
          "$ref": "#/definitions/MilestoneEmbedded"
        },
        "deadline": {
          "type": "string",
          "format": "date-time",
          "title": "User-defined deadline for the issue"
        },
        "started_at": {
          "type": "string",
          "format": "date-time",
          "title": "Timestamp when the issue was last moved to in_progress status"
        },
        "completed_at": {
          "type": "string",
          "format": "date-time",
          "title": "Timestamp when the issue was last moved to completed or canceled status"
        },
        "repository": {
          "$ref": "#/definitions/RepositoryEmbedded"
        }
      }
    },
    "Issue.Visibility": {
      "type": "string",
      "enum": [
        "public",
        "private"
      ]
    },
    "IssueComment": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "body": {
          "type": "string"
        },
        "parent": {
          "$ref": "#/definitions/IssueCommentEmbedded"
        },
        "author": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "updated_by": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "reactions": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/ReactionCount"
          },
          "title": "key is one of Reactions"
        },
        "attachments": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/AttachmentEmbedded"
          }
        }
      }
    },
    "IssueCommentEmbedded": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      }
    },
    "IssueEmbedded": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        }
      }
    },
    "IssueLabelsResponse": {
      "type": "object",
      "properties": {
        "labels": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1.Label"
          }
        }
      }
    },
    "IssueLink": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "source": {
          "$ref": "#/definitions/IssueEmbedded"
        },
        "target": {
          "$ref": "#/definitions/IssueEmbedded"
        },
        "link_type": {
          "$ref": "#/definitions/IssueLink.LinkType",
          "title": "link_type must be read as {sourceIssue} {verb} {targetIssue}: issue#1 is parent of issue#2"
        },
        "author": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "updated_by": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "IssueLink.LinkType": {
      "type": "string",
      "enum": [
        "related_to",
        "parent_of",
        "subissue_of",
        "blocks",
        "blocked_by",
        "duplicates",
        "duplicated_by"
      ]
    },
    "IssueLinkedPRsResponse": {
      "type": "object",
      "properties": {
        "pull_requests": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/PullRequest"
          }
        }
      }
    },
    "IssueStatus": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "status_type": {
          "$ref": "#/definitions/StatusType"
        }
      }
    },
    "LabelEmbedded": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "color": {
          "type": "string"
        }
      }
    },
    "Language": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "color": {
          "type": "string"
        }
      }
    },
    "Link": {
      "type": "object",
      "properties": {
        "link": {
          "type": "string"
        },
        "type": {
          "$ref": "#/definitions/Link.LinkType"
        }
      }
    },
    "Link.LinkType": {
      "type": "string",
      "enum": [
        "default",
        "social_network",
        "homepage",
        "email",
        "telegram"
      ]
    },
    "ListBranchesResponse": {
      "type": "object",
      "properties": {
        "branches": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Branch"
          }
        },
        "next_page_token": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages."
        }
      }
    },
    "ListIssueCommentsResponse": {
      "type": "object",
      "properties": {
        "issue_comments": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/IssueComment"
          }
        },
        "next_page_token": {
          "type": "string"
        }
      }
    },
    "ListIssueStatusesResponse": {
      "type": "object",
      "properties": {
        "statuses": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/IssueStatus"
          }
        },
        "next_page_token": {
          "type": "string"
        }
      }
    },
    "ListIssuesAssignedToAuthenticatedUserResponse": {
      "type": "object",
      "properties": {
        "issues": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Issue"
          }
        },
        "next_page_token": {
          "type": "string"
        }
      }
    },
    "ListLabelsForRepositoryResponse": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1.Label"
          }
        },
        "next_page_token": {
          "type": "string"
        }
      }
    },
    "ListLinksResponse": {
      "type": "object",
      "properties": {
        "links": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/IssueLink"
          }
        },
        "next_page_token": {
          "type": "string"
        }
      }
    },
    "ListMilestonesForRepositoryResponse": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Milestone"
          }
        },
        "next_page_token": {
          "type": "string"
        }
      }
    },
    "ListMyPullRequestsRequest.Role": {
      "type": "string",
      "enum": [
        "author",
        "reviewer",
        "any"
      ],
      "title": "Role selector for listing PRs related to a user"
    },
    "ListOccupiedCodeAssistWorkplacesResponse": {
      "type": "object",
      "properties": {
        "users": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/OccupiedWorkplaceUserInfo"
          }
        },
        "next_page_token": {
          "type": "string"
        }
      }
    },
    "ListOrganizationInvitesResponse": {
      "type": "object",
      "properties": {
        "invites": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Invite"
          },
          "title": "List of invitations"
        },
        "next_page_token": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages."
        }
      }
    },
    "ListOrganizationRepositoriesResponse": {
      "type": "object",
      "properties": {
        "repositories": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Repository"
          }
        },
        "next_page_token": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages."
        }
      }
    },
    "ListOrganizationRolesResponse": {
      "type": "object",
      "properties": {
        "org_subject_roles": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/OrgSubjectRole"
          },
          "title": "List of organization roles"
        },
        "repo_subject_roles": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/SubjectRole"
          },
          "description": "List of repository roles that are set on the organization level. These roles are inherited by all repositories in the organization."
        },
        "next_page_token": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages."
        }
      }
    },
    "ListPullRequestCommentsResponse": {
      "type": "object",
      "properties": {
        "pull_request_comments": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/PullRequestComment"
          }
        },
        "next_page_token": {
          "type": "string"
        }
      }
    },
    "ListPullRequestFilesResponse": {
      "type": "object",
      "properties": {
        "files": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/DiffEntry"
          },
          "description": "List of changed files with diff patches."
        },
        "next_page_token": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is empty, there are no subsequent pages."
        }
      }
    },
    "ListQuotasResponse": {
      "type": "object",
      "properties": {
        "quotas": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/QuotaLimit"
          }
        }
      }
    },
    "ListReleasesResponse": {
      "type": "object",
      "properties": {
        "releases": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Release"
          }
        },
        "next_page_token": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages."
        }
      }
    },
    "ListRepoRolesResponse": {
      "type": "object",
      "properties": {
        "subject_roles": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/SubjectRole"
          }
        },
        "next_page_token": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages."
        }
      }
    },
    "ListRepositoryIssuesResponse": {
      "type": "object",
      "properties": {
        "issues": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Issue"
          },
          "title": "Issues from specific repository"
        },
        "next_page_token": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages."
        }
      }
    },
    "ListRepositoryPullRequestsResponse": {
      "type": "object",
      "properties": {
        "pull_requests": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/PullRequest"
          }
        },
        "next_page_token": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages."
        }
      }
    },
    "ListReviewersResponse": {
      "type": "object",
      "properties": {
        "reviewers": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/PRReviewer"
          }
        },
        "next_page_token": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages."
        }
      },
      "title": "ListReviewersResponse contains information about all the reviewers of pull request"
    },
    "ListRunsResponse": {
      "type": "object",
      "properties": {
        "runs": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Run"
          },
          "title": "List of CI/CD runs"
        },
        "next_page_token": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages."
        }
      }
    },
    "ListSecretsResponse": {
      "type": "object",
      "properties": {
        "secrets": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/SecretEntry"
          }
        }
      }
    },
    "ListTagsResponse": {
      "type": "object",
      "properties": {
        "tags": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1.Tag"
          }
        },
        "next_page_token": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages."
        }
      }
    },
    "ListTreeResponse": {
      "type": "object",
      "properties": {
        "trees": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/TreeEntry"
          }
        },
        "next_page_token": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages."
        }
      }
    },
    "ListUserPullRequestsRequest.Role": {
      "type": "string",
      "enum": [
        "author",
        "reviewer",
        "any"
      ],
      "title": "Role selector for listing PRs related to a user"
    },
    "MergeChecks": {
      "type": "object",
      "properties": {
        "code_review": {
          "$ref": "#/definitions/CodeReviewCheck",
          "title": "Code review check status"
        },
        "conflicts": {
          "$ref": "#/definitions/ConflictsCheck",
          "title": "Merge conflicts check status"
        },
        "ci_workflows": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/CIWorkflowCheck"
          },
          "title": "CI workflow checks (may be multiple workflows)"
        },
        "config_validations": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/ConfigValidationCheck"
          },
          "title": "Configuration validation checks"
        },
        "status": {
          "$ref": "#/definitions/MergeChecks.Status",
          "title": "Overall merge readiness status computed from all checks"
        }
      },
      "title": "Detailed merge checks for a pull request\nContains all merge requirements and their current status"
    },
    "MergeChecks.Status": {
      "type": "string",
      "enum": [
        "in_progress",
        "success",
        "failure"
      ],
      "title": "Common merge check status for every check except CI. CI checks have more\nextensive status values, including 'canceled' and 'timeout', see CICheckStatus"
    },
    "MergeInfo": {
      "type": "object",
      "properties": {
        "merger": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "merge_parameters": {
          "$ref": "#/definitions/MergeParameters"
        },
        "target_commit_hash": {
          "type": "string"
        },
        "error": {
          "type": "string",
          "title": "filled after merge"
        },
        "merge_commit_hash": {
          "type": "string",
          "title": "filled after merge"
        }
      }
    },
    "MergeParameters": {
      "type": "object",
      "properties": {
        "rebase": {
          "type": "boolean"
        },
        "squash": {
          "type": "boolean"
        },
        "delete_branch": {
          "type": "boolean"
        }
      }
    },
    "MergePullRequestBody": {
      "type": "object",
      "properties": {
        "rebase": {
          "type": "boolean",
          "title": "Use rebase merge strategy (linearize history); default value inherited from config"
        },
        "squash": {
          "type": "boolean",
          "title": "Squash all commits into a single commit; default value inherited from config"
        },
        "delete_branch": {
          "type": "boolean",
          "title": "Delete source branch after successful merge; default value inherited from config"
        },
        "force": {
          "type": "boolean",
          "title": "Force merge even if some checks are failing (requires special permissions); default: false"
        }
      }
    },
    "MergePullRequestOperation": {
      "type": "object",
      "properties": {
        "operation_id": {
          "type": "string",
          "title": "Unique operation identifier"
        },
        "status_url": {
          "type": "string",
          "title": "URL to poll for operation status"
        },
        "status": {
          "$ref": "#/definitions/OperationStatus",
          "title": "Current operation status"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Timestamp when operation was created"
        },
        "modified_at": {
          "type": "string",
          "format": "date-time",
          "title": "Timestamp when operation was last modified"
        },
        "response": {
          "$ref": "#/definitions/MergePullRequestOperationResult",
          "description": "Operation result. Present when status is \"success\"."
        },
        "error": {
          "$ref": "#/definitions/OperationError",
          "description": "Operation error. Present when status is \"failed\"."
        }
      },
      "x-ogen-name": "MergePullRequestOperationResponse"
    },
    "MergePullRequestOperationResult": {
      "type": "object",
      "properties": {
        "merge_parameters": {
          "$ref": "#/definitions/MergeParameters",
          "title": "Parameters which the merge was initiated with"
        },
        "target_commit_hash": {
          "type": "string",
          "title": "Hash of the exact commit of the target branch that was used as a merge base"
        },
        "merge_commit_hash": {
          "type": "string",
          "title": "Hash of the resulting merge commit in the target branch"
        }
      }
    },
    "MigrationSource": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        }
      }
    },
    "Milestone": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "start_date": {
          "type": "string",
          "format": "date-time"
        },
        "deadline": {
          "type": "string",
          "format": "date-time"
        },
        "status": {
          "$ref": "#/definitions/Milestone.Status"
        },
        "author": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "updated_by": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "Milestone.Status": {
      "type": "string",
      "enum": [
        "open",
        "closed"
      ]
    },
    "MilestoneEmbedded": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        }
      }
    },
    "ModifyLabelCollectionRequest": {
      "type": "object",
      "properties": {
        "ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "slugs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "ModifyPullRequestCollectionRequest": {
      "type": "object",
      "properties": {
        "ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "slugs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "ModifyReactionBody": {
      "type": "object",
      "properties": {
        "reaction": {
          "$ref": "#/definitions/Reaction"
        }
      }
    },
    "NeurocreditsUsageEntry": {
      "type": "object",
      "properties": {
        "user": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "date": {
          "type": "string",
          "title": "Date in YYYY-MM-DD format"
        },
        "model": {
          "type": "string"
        },
        "product": {
          "$ref": "#/definitions/AIProduct"
        },
        "neurocredits": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "OccupiedWorkplaceUserInfo": {
      "type": "object",
      "properties": {
        "user": {
          "$ref": "#/definitions/UserProfile"
        }
      },
      "description": "OccupiedWorkplaceUserInfo contains information about a user occupying a code assist workplace."
    },
    "OccupyCodeAssistWorkplacesBulkBody": {
      "type": "object",
      "properties": {
        "user_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "OperationError": {
      "type": "object",
      "properties": {
        "error_code": {
          "type": "string",
          "title": "Error code that can be used for error handling"
        },
        "message": {
          "type": "string",
          "title": "Human-readable message"
        },
        "details": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "title": "Optional details. Exact structure depends on error_code"
        }
      }
    },
    "OperationStatus": {
      "type": "string",
      "enum": [
        "scheduled",
        "in_progress",
        "success",
        "failed",
        "cancel"
      ]
    },
    "OrgRole": {
      "type": "string",
      "enum": [
        "org_owner",
        "org_admin"
      ]
    },
    "OrgSubjectRole": {
      "type": "object",
      "properties": {
        "role": {
          "$ref": "#/definitions/OrgRole"
        },
        "subject": {
          "$ref": "#/definitions/Subject"
        }
      },
      "title": "OrgSubjectRole contains information about subject and his role in the organization"
    },
    "Organization": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "display_name": {
          "type": "string"
        },
        "visibility": {
          "$ref": "#/definitions/Organization.Visibility"
        },
        "logo": {
          "$ref": "#/definitions/Image"
        },
        "web_url": {
          "type": "string"
        }
      }
    },
    "Organization.Visibility": {
      "type": "string",
      "enum": [
        "public",
        "internal",
        "private"
      ]
    },
    "OrganizationEmbedded": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        }
      }
    },
    "PRReviewer": {
      "type": "object",
      "properties": {
        "user": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "review_decision": {
          "$ref": "#/definitions/ReviewDecision"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "PatchError": {
      "type": "string",
      "enum": [
        "binary",
        "too_large",
        "diff_limit_exceeded",
        "timeout",
        "error"
      ]
    },
    "Ping": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/definitions/EventHeader",
          "title": "Event header with common fields"
        },
        "repository": {
          "$ref": "#/definitions/RepositoryEmbedded",
          "title": "Repository that the webhook is attached to"
        },
        "webhook_slug": {
          "type": "string",
          "title": "Webhook slug identifier"
        },
        "pinged_at": {
          "type": "string",
          "format": "date-time",
          "title": "When the ping was sent"
        },
        "organization": {
          "$ref": "#/definitions/OrganizationEmbedded",
          "title": "Organization that the repository belongs to"
        }
      },
      "title": "Ping event - sent when a webhook is tested"
    },
    "Priority": {
      "type": "string",
      "enum": [
        "trivial",
        "minor",
        "normal",
        "critical",
        "blocker"
      ],
      "title": "mapping is done by const name, except for the unspecified"
    },
    "ProfileStatus": {
      "type": "object",
      "properties": {
        "message": {
          "type": "string"
        },
        "emoji": {
          "type": "string"
        }
      }
    },
    "ProfileVisibility": {
      "type": "string",
      "enum": [
        "private",
        "public"
      ]
    },
    "Progress": {
      "type": "object",
      "properties": {
        "percent": {
          "type": "number",
          "format": "float"
        },
        "current_cube": {
          "$ref": "#/definitions/Cube",
          "description": "A reference to the cube that's currently being executed.\nIn case of several cubes being run in given context, any of them may be returned here."
        }
      }
    },
    "PublishPullRequestCommentsDraftsBody": {
      "type": "object",
      "properties": {
        "pull_request_id": {
          "type": "string"
        },
        "silent": {
          "type": "boolean",
          "title": "do not notify subscribers"
        }
      }
    },
    "PublishPullRequestCommentsDraftsByIDBody": {
      "type": "object",
      "properties": {
        "org_slug": {
          "type": "string"
        },
        "repo_slug": {
          "type": "string"
        },
        "pull_request_slug": {
          "type": "string"
        },
        "silent": {
          "type": "boolean",
          "title": "do not notify subscribers"
        }
      }
    },
    "PublishPullRequestCommentsDraftsResponse": {
      "type": "object",
      "properties": {
        "published_count": {
          "type": "string",
          "format": "uint64"
        }
      }
    },
    "PullRequest": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "author": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "updated_by": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "repository": {
          "$ref": "#/definitions/RepositoryEmbedded"
        },
        "merge_info": {
          "$ref": "#/definitions/MergeInfo"
        },
        "source_branch": {
          "type": "string",
          "title": "Deprecated, use `source` instead"
        },
        "target_branch": {
          "type": "string",
          "title": "Deprecated, use `target` instead"
        },
        "status": {
          "$ref": "#/definitions/PullRequest.Status"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "labels": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/LabelEmbedded"
          }
        },
        "source": {
          "$ref": "#/definitions/PullRequestBranch"
        },
        "target": {
          "$ref": "#/definitions/PullRequestBranch"
        }
      }
    },
    "PullRequest.Status": {
      "type": "string",
      "enum": [
        "draft",
        "open",
        "discarded",
        "merging",
        "merged"
      ]
    },
    "PullRequestBranch": {
      "type": "object",
      "properties": {
        "label": {
          "type": "string",
          "title": "\"org/repo:branch-name\""
        },
        "ref": {
          "type": "string",
          "title": "branch name"
        },
        "sha": {
          "type": "string",
          "title": "commit SHA (hex)"
        }
      }
    },
    "PullRequestComment": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "body": {
          "type": "string"
        },
        "parent_id": {
          "type": "string"
        },
        "author": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "updated_by": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "is_deleted": {
          "type": "boolean"
        },
        "reactions": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/ReactionCount"
          }
        },
        "anchor": {
          "$ref": "#/definitions/Anchor"
        },
        "need_resolution": {
          "type": "boolean",
          "description": "Deprecated: use resolution_state instead."
        },
        "is_resolved": {
          "type": "boolean",
          "description": "Deprecated: use resolution_state instead."
        },
        "is_published": {
          "type": "boolean"
        },
        "is_outdated": {
          "type": "boolean"
        },
        "type": {
          "$ref": "#/definitions/PullRequestComment.Type"
        },
        "iteration": {
          "type": "string",
          "format": "uint64"
        },
        "resolution_state": {
          "$ref": "#/definitions/ResolutionState",
          "description": "Combined resolution state for the comment."
        }
      }
    },
    "PullRequestComment.Type": {
      "type": "string",
      "enum": [
        "default",
        "appsec"
      ]
    },
    "PullRequestCommentCreate": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/definitions/EventHeader",
          "title": "Event header with common fields"
        },
        "repository": {
          "$ref": "#/definitions/Repository",
          "title": "Repository where the pull request is located"
        },
        "pull_request": {
          "$ref": "#/definitions/PullRequest",
          "title": "Pull request where the comment was created"
        },
        "comment": {
          "$ref": "#/definitions/PullRequestComment",
          "title": "The comment that was created"
        },
        "is_thread": {
          "type": "boolean",
          "title": "Whether this is a top-level thread (not a reply)"
        },
        "is_published": {
          "type": "boolean",
          "title": "Whether the comment was published (visible) or draft"
        }
      },
      "title": "PullRequestCommentCreate event - represents creation of a pull request comment"
    },
    "PullRequestCommentCreateBulk": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/definitions/EventHeader",
          "title": "Event header with common fields"
        },
        "repository": {
          "$ref": "#/definitions/Repository",
          "title": "Repository where the pull request is located"
        },
        "pull_request": {
          "$ref": "#/definitions/PullRequest",
          "title": "Pull request where the comments were created"
        },
        "comments": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/PullRequestComment"
          },
          "title": "The comments that were created"
        }
      },
      "title": "PullRequestCommentCreateBulk event - represents bulk creation of pull request comments"
    },
    "PullRequestCommentReactionsUpdate": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/definitions/EventHeader",
          "title": "Event header with common fields"
        },
        "repository": {
          "$ref": "#/definitions/Repository",
          "title": "Repository where the pull request is located"
        },
        "pull_request": {
          "$ref": "#/definitions/PullRequest",
          "title": "Pull request where the comment is located"
        },
        "comment": {
          "$ref": "#/definitions/PullRequestComment",
          "title": "The comment whose reactions were updated"
        },
        "added_reactions": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Reaction"
          },
          "title": "Reactions that were added"
        },
        "removed_reactions": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Reaction"
          },
          "title": "Reaction that were removed"
        }
      },
      "title": "PullRequestCommentReactionsUpdate event - represents update of reactions on a pull request comment"
    },
    "PullRequestCommentsPublish": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/definitions/EventHeader",
          "title": "Event header with common fields"
        },
        "repository": {
          "$ref": "#/definitions/Repository",
          "title": "Repository where the pull request is located"
        },
        "pull_request": {
          "$ref": "#/definitions/PullRequest",
          "title": "Pull request where the comments were published"
        },
        "comments": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/PullRequestComment"
          },
          "title": "Comments that were published"
        }
      },
      "title": "PullRequestCommentsPublish event - represents publishing of draft pull request comments"
    },
    "PullRequestCreate": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/definitions/EventHeader",
          "title": "Event header with common fields"
        },
        "repository": {
          "$ref": "#/definitions/Repository",
          "title": "Repository where the pull request was created"
        },
        "pull_request": {
          "$ref": "#/definitions/PullRequest",
          "title": "Pull request that was created"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "When the pull request was created"
        }
      },
      "title": "PullRequestCreate event - represents creation of a new pull request"
    },
    "PullRequestEmbedded": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        }
      }
    },
    "PullRequestLabelsResponse": {
      "type": "object",
      "properties": {
        "labels": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1.Label"
          }
        }
      }
    },
    "PullRequestMerge": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/definitions/EventHeader",
          "title": "Event header with common fields"
        },
        "repository": {
          "$ref": "#/definitions/Repository",
          "title": "Repository where the pull request is located"
        },
        "pull_request": {
          "$ref": "#/definitions/PullRequest",
          "title": "Pull request that is being refreshed"
        },
        "merge_hash": {
          "type": "string",
          "title": "Merge hash of the pull request"
        }
      },
      "title": "PullRequestMerge event - represents merge success of a pull request"
    },
    "PullRequestMergeFailure": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/definitions/EventHeader",
          "title": "Event header with common fields"
        },
        "repository": {
          "$ref": "#/definitions/Repository",
          "title": "Repository where the pull request is located"
        },
        "pull_request": {
          "$ref": "#/definitions/PullRequest",
          "title": "Pull request that is being refreshed"
        },
        "error_message": {
          "type": "string",
          "title": "Error message of the merge failure"
        }
      },
      "title": "PullRequestMergeFailure event - represents merge failure of a pull request"
    },
    "PullRequestNewIteration": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/definitions/EventHeader",
          "title": "Event header with common fields"
        },
        "repository": {
          "$ref": "#/definitions/Repository",
          "title": "Repository where the pull request is located"
        },
        "pull_request": {
          "$ref": "#/definitions/PullRequest",
          "title": "Pull request that is being refreshed"
        },
        "commit_sha": {
          "type": "string",
          "title": "Commit SHA of the iteration"
        },
        "merge_base_sha": {
          "type": "string",
          "title": "Merge base SHA of the iteration"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Iteration created at timestamp"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "title": "Iteration updated at timestamp"
        }
      },
      "title": "PullRequestNewIteration event - represents new iteration on a pull request"
    },
    "PullRequestPublish": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/definitions/EventHeader",
          "title": "Event header with common fields"
        },
        "repository": {
          "$ref": "#/definitions/Repository",
          "title": "Repository where the pull request was published"
        },
        "pull_request": {
          "$ref": "#/definitions/PullRequest",
          "title": "Pull request that was published"
        },
        "previous_status": {
          "$ref": "#/definitions/PullRequest.Status",
          "title": "Pull request previous status"
        }
      },
      "title": "PullRequestPublish event - represents publish of a pull request"
    },
    "PullRequestRefresh": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/definitions/EventHeader",
          "title": "Event header with common fields"
        },
        "repository": {
          "$ref": "#/definitions/Repository",
          "title": "Repository where the pull request is located"
        },
        "pull_request": {
          "$ref": "#/definitions/PullRequest",
          "title": "Pull request that is being refreshed"
        },
        "previous_status": {
          "$ref": "#/definitions/PullRequest.Status",
          "title": "Pull request previous status"
        },
        "head_sha": {
          "type": "string",
          "title": "Head SHA of the pull request"
        },
        "merge_base_sha": {
          "type": "string",
          "title": "Merge base SHA of the pull request"
        }
      },
      "title": "PullRequestRefresh event - represents refresh of a pull request"
    },
    "PullRequestReviewAssignment": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/definitions/EventHeader",
          "title": "Event header with common fields"
        },
        "repository": {
          "$ref": "#/definitions/Repository",
          "title": "Repository where the pull request is located"
        },
        "pull_request": {
          "$ref": "#/definitions/PullRequest",
          "title": "Pull request that had reviewers modified"
        },
        "user": {
          "$ref": "#/definitions/UserEmbedded",
          "title": "User who made the assignment"
        },
        "reviewer_deltas": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1.ReviewerDelta"
          },
          "title": "Reviewers deltas"
        }
      },
      "title": "PullRequestReviewAssignment event - represents changes to pull request reviewers"
    },
    "PullRequestReviewDecision": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/definitions/EventHeader",
          "title": "Event header with common fields"
        },
        "repository": {
          "$ref": "#/definitions/Repository",
          "title": "Repository where the pull request is located"
        },
        "pull_request": {
          "$ref": "#/definitions/PullRequest",
          "title": "Pull request that received the decision"
        },
        "user": {
          "$ref": "#/definitions/UserEmbedded",
          "title": "User who made the decision"
        },
        "decision": {
          "$ref": "#/definitions/ReviewDecision",
          "title": "Review decision (ship, sticky_ship, block, abstain, or null for withdrawal)"
        }
      },
      "title": "PullRequestReviewDecision event - represents a review decision on a pull request"
    },
    "PullRequestUpdate": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/definitions/EventHeader",
          "title": "Event header with common fields"
        },
        "repository": {
          "$ref": "#/definitions/Repository",
          "title": "Repository where the pull request is located"
        },
        "pull_request": {
          "$ref": "#/definitions/PullRequest",
          "title": "Pull request that was updated"
        }
      },
      "title": "PullRequestUpdate event - represents update of a pull request"
    },
    "Push": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/definitions/EventHeader",
          "title": "Event header with common fields"
        },
        "repository": {
          "$ref": "#/definitions/Repository",
          "title": "Repository that received the push"
        },
        "ref_update": {
          "$ref": "#/definitions/RefUpdate",
          "title": "Push details - single ref update in a single push"
        },
        "pusher": {
          "$ref": "#/definitions/UserEmbedded",
          "title": "Who performed the push"
        },
        "pushed_at": {
          "type": "string",
          "format": "date-time"
        },
        "commits": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Commit"
          },
          "description": "Commits details for this event, from before_sha to after_sha.\nIn case of tag push or new branch creation before_sha is zero\nand commits contain only single commit."
        },
        "is_default_branch_updated": {
          "type": "boolean",
          "title": "Whether the default branch was updated in this push"
        },
        "default_branch": {
          "type": "string",
          "title": "The default branch reference name (e.g., \"refs/heads/main\")"
        },
        "has_more_commits": {
          "type": "boolean",
          "title": "Whether there are more commits (due to commits limit)"
        }
      },
      "title": "Push event - represents git push operation to a repository"
    },
    "QuotaLimit": {
      "type": "object",
      "properties": {
        "quota_id": {
          "type": "string"
        },
        "usage": {
          "type": "number",
          "format": "double"
        },
        "limit": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "Reaction": {
      "type": "string",
      "enum": [
        "like",
        "dislike",
        "heart",
        "check_mark",
        "eyes",
        "fire",
        "victory_hand",
        "heart_eyes",
        "hundred_points",
        "party_popper",
        "party_face",
        "rolling_eyes",
        "fist",
        "clapping_hands",
        "thinking_face",
        "neutral_face",
        "winking_face",
        "open_mouth",
        "shrug",
        "pleading_face",
        "confused_face",
        "smiling_face",
        "sunglasses",
        "rocket",
        "robot",
        "goose"
      ]
    },
    "ReactionCount": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer",
          "format": "int32"
        },
        "self_react": {
          "type": "boolean"
        }
      }
    },
    "Reactions": {
      "type": "object",
      "properties": {
        "reactions": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/ReactionCount"
          }
        }
      }
    },
    "RefUpdate": {
      "type": "object",
      "properties": {
        "ref": {
          "type": "string",
          "title": "The git reference being updated (e.g., \"refs/heads/main\")"
        },
        "operation": {
          "$ref": "#/definitions/RefUpdateOperation",
          "title": "Operation type"
        },
        "before_sha": {
          "type": "string",
          "title": "Commit SHA before the update (zeros for new ref)"
        },
        "after_sha": {
          "type": "string",
          "title": "Commit SHA after the update (zeros for deleted ref)"
        },
        "checkout_sha": {
          "type": "string",
          "title": "For annotated tags: the peeled SHA (commit the tag points to)"
        },
        "before_checkout_sha": {
          "type": "string",
          "title": "For annotated tags: the peeled commit SHA before the update"
        }
      },
      "title": "Represents a single ref update within a push"
    },
    "RefUpdateOperation": {
      "type": "string",
      "enum": [
        "create",
        "update",
        "delete"
      ],
      "title": "Type of ref update operation",
      "x-ogen-name": "RefUpdateOperationResponse"
    },
    "RefsUpdate": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/definitions/EventHeader",
          "title": "Event header with common fields"
        },
        "repository": {
          "$ref": "#/definitions/RepositoryEmbedded",
          "title": "Repository that received the push"
        },
        "ref_updates": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/RefUpdate"
          },
          "title": "Push details - supports multiple ref updates in a single push"
        },
        "pusher": {
          "$ref": "#/definitions/UserEmbedded",
          "title": "Who performed the push"
        },
        "pushed_at": {
          "type": "string",
          "format": "date-time"
        },
        "is_default_branch_updated": {
          "type": "boolean",
          "title": "Whether the default branch was updated in this push"
        },
        "default_branch": {
          "type": "string",
          "title": "The default branch reference name (e.g., \"refs/heads/main\")"
        }
      },
      "title": "RefsUpdate event - represents git refs update operation to a repository"
    },
    "Relations": {
      "type": "object",
      "properties": {
        "needs": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Dependency"
          }
        }
      }
    },
    "Release": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "repo_id": {
          "type": "string"
        },
        "author": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "tag": {
          "type": "string",
          "title": "Release tag also serves as its slug"
        },
        "hash": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "release_notes": {
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/Release.Status"
        },
        "assets": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/ReleaseAsset"
          }
        },
        "is_latest": {
          "type": "boolean"
        },
        "is_pre_release": {
          "type": "boolean"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "released_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "Release.Status": {
      "type": "string",
      "enum": [
        "draft",
        "published",
        "discarded"
      ]
    },
    "ReleaseAsset": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "link": {
          "type": "string"
        },
        "attachment": {
          "$ref": "#/definitions/Attachment"
        },
        "archive_link": {
          "$ref": "#/definitions/CodeArchive",
          "description": "Codeload download link auto-generated for the release tag."
        }
      }
    },
    "ReleaseCodeAssistWorkplacesBulkBody": {
      "type": "object",
      "properties": {
        "user_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "RemoveOrganizationRolesBody": {
      "type": "object",
      "properties": {
        "repo_subject_roles": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/SubjectRole"
          },
          "description": "List of repository roles that will be removed from the organization level. These roles are inherited by all repositories in the organization."
        }
      }
    },
    "RemoveOrganizationRolesResponse": {
      "type": "object"
    },
    "RemoveRepoRolesBody": {
      "type": "object",
      "properties": {
        "subject_roles": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/SubjectRole"
          }
        }
      },
      "title": "The request body specifies the users and their respective roles to be added from the repository"
    },
    "RemoveRepoRolesResponse": {
      "type": "object",
      "properties": {
        "subject_roles": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/SubjectRole"
          }
        },
        "next_page_token": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages."
        }
      },
      "title": "The response returns all roles and users from the repository"
    },
    "RepoRole": {
      "type": "string",
      "enum": [
        "viewer",
        "contributor",
        "developer",
        "maintainer",
        "admin"
      ]
    },
    "RepoTemplate": {
      "type": "string",
      "enum": [
        "not_a_template",
        "organizational",
        "system"
      ]
    },
    "Repository": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "default_branch": {
          "type": "string"
        },
        "organization": {
          "$ref": "#/definitions/OrganizationEmbedded"
        },
        "slug": {
          "type": "string"
        },
        "template_type": {
          "$ref": "#/definitions/RepoTemplate"
        },
        "is_empty": {
          "type": "boolean"
        },
        "description": {
          "type": "string"
        },
        "visibility": {
          "$ref": "#/definitions/Repository.Visibility"
        },
        "logo": {
          "$ref": "#/definitions/Image"
        },
        "clone_url": {
          "$ref": "#/definitions/CloneURL"
        },
        "web_url": {
          "type": "string"
        },
        "links": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Link"
          }
        },
        "counters": {
          "$ref": "#/definitions/RepositoryCounters"
        },
        "last_updated": {
          "type": "string",
          "format": "date-time"
        },
        "language": {
          "$ref": "#/definitions/Language"
        },
        "parent": {
          "$ref": "#/definitions/RepositoryEmbedded",
          "title": "Fork parent repository (only populated for forked repositories)"
        },
        "migration_source": {
          "$ref": "#/definitions/MigrationSource",
          "title": "Migration source info (only for migrated repositories)"
        }
      }
    },
    "Repository.Visibility": {
      "type": "string",
      "enum": [
        "public",
        "internal",
        "private"
      ]
    },
    "RepositoryCounters": {
      "type": "object",
      "properties": {
        "forks": {
          "type": "string",
          "format": "uint64"
        },
        "pull_requests": {
          "type": "string",
          "format": "uint64"
        },
        "issues": {
          "type": "string",
          "format": "uint64"
        },
        "tags": {
          "type": "string",
          "format": "uint64"
        },
        "branches": {
          "type": "string",
          "format": "uint64"
        }
      }
    },
    "RepositoryEmbedded": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "organization": {
          "$ref": "#/definitions/OrganizationEmbedded"
        }
      }
    },
    "ResolutionState": {
      "type": "string",
      "enum": [
        "no_resolution_needed",
        "awaiting_resolution",
        "resolved"
      ],
      "description": "Resolution state for pull request comments.\nTransition from `no_resolution_needed` directly to `resolved` is not allowed:\nset to `awaiting_resolution` first, then resolve."
    },
    "ReviewDecision": {
      "type": "string",
      "enum": [
        "approve",
        "trust",
        "block",
        "abstain"
      ]
    },
    "ReviewRule": {
      "type": "object",
      "properties": {
        "approves": {
          "type": "integer",
          "format": "int32",
          "title": "Approves received for this rule"
        },
        "need_approves": {
          "type": "integer",
          "format": "int32",
          "title": "Approves needed for this rule"
        },
        "completed": {
          "type": "boolean",
          "title": "Whether this rule is satisfied"
        },
        "reviewers": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/UserEmbedded"
          },
          "title": "Reviewers relevant to this rule"
        }
      }
    },
    "Run": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "title": "CI/CD entities don't have public IDs at this stage; they will be added later"
        },
        "slug": {
          "type": "string",
          "title": "Run counter serves as a slug"
        },
        "dates": {
          "$ref": "#/definitions/DatesByStage"
        },
        "status": {
          "$ref": "#/definitions/Run.Status"
        },
        "workflows": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Workflow"
          }
        },
        "event_type": {
          "$ref": "#/definitions/EventType",
          "title": "An event that triggered this run"
        },
        "error_messages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "pull": {
          "$ref": "#/definitions/PullRequestEmbedded",
          "description": "Pull request which this run corresponds to.\nOnly provided when this run is triggered by an event of type `pr_update`."
        },
        "user": {
          "$ref": "#/definitions/UserEmbedded",
          "description": "User that triggered this CI run."
        }
      },
      "description": "Run represents an instance of CI/CD run which may contain several workflow launches.\n\nWhen Run is in `created` status, it is still in preparation for startup and can contain no workflows.\nAfter the status is no longer `created` (is `prepared` or `processing`), its workflows list\nis filled and finalized.\n\nIt is possible that 'Run Workflows' endpoint will return a Run that's no longer `created` or\n`prepared` if those stages were processed fast enough."
    },
    "Run.Status": {
      "type": "string",
      "enum": [
        "created",
        "prepared",
        "processing",
        "success",
        "failed",
        "canceled",
        "timeout"
      ],
      "description": " - prepared: Status `prepared` may only appear as a Run status.\nIt's a stage between creation and startup during which the Run is populated with workflows."
    },
    "RunCIBody": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "string",
          "title": "The branch or tag to run the CI workflow on. If empty, the default branch (usually main) will be used.\nExamples: `mybranch`, `tags:v1.0.0`"
        },
        "workflow_revision": {
          "type": "string",
          "title": "The branch, commit hash, or tag to retrieve the CI configuration from. If empty, the default branch (usually main) will be used.\nExamples: `mybranch`, `tags:v1.0.0`, `25ae02f94bef174fa7a44084908c6dda494862a9`"
        },
        "input": {
          "$ref": "#/definitions/WorkflowInput",
          "description": "Input parameters to pass to the workflow. This can be a JSON object containing key-value pairs for workflow inputs."
        }
      }
    },
    "RunCIWorkflowResponse": {
      "type": "object",
      "properties": {
        "flux_id": {
          "type": "string"
        },
        "flux_public_id": {
          "type": "string"
        },
        "trigger_status": {
          "$ref": "#/definitions/TriggerStatus",
          "title": "Will always be equal to 'created', remains here for back-compatibility"
        }
      }
    },
    "RunWorkflowsBody": {
      "type": "object",
      "properties": {
        "head": {
          "$ref": "#/definitions/GitRevision",
          "description": "The git revision (branch, tag or commit hash) to run the CI workflow on.\nIf empty, the default branch (usually main) will be used."
        },
        "config_revision": {
          "$ref": "#/definitions/GitRevision",
          "description": "The git revision (branch, tag or commit hash) to retrieve the CI configuration file from.\nIf empty, the default branch (usually main) will be used."
        },
        "workflows": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/WorkflowData"
          },
          "description": "Information specifying which workflows to run.\nEach workflow to run is defined by its name and, optionally, input parameters."
        },
        "shared": {
          "type": "boolean",
          "title": "Run shared workflows.\nIf true, run shared workflows by user without access to repository"
        }
      }
    },
    "SecretEntry": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "value": {
          "type": "string",
          "format": "byte"
        }
      }
    },
    "SecretsOperation": {
      "type": "object",
      "properties": {
        "operation_id": {
          "type": "string",
          "title": "Operation ID"
        },
        "status_url": {
          "type": "string",
          "title": "URL to poll for operation status"
        },
        "status": {
          "$ref": "#/definitions/OperationStatus"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Timestamp when operation was created"
        },
        "modified_at": {
          "type": "string",
          "format": "date-time",
          "title": "Timestamp when operation was last modified"
        },
        "response": {
          "$ref": "#/definitions/SecretsOperationResult",
          "description": "Operation result. Present when status is \"success\"."
        },
        "error": {
          "$ref": "#/definitions/OperationError",
          "description": "Operation-level error. Present only when the operation failed."
        }
      },
      "x-ogen-name": "SecretsOperationResponse"
    },
    "SecretsOperationResult": {
      "type": "object"
    },
    "SetCodeAssistWorkplacesBody": {
      "type": "object",
      "properties": {
        "workplaces": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "SetDecisionBody": {
      "type": "object",
      "properties": {
        "review_decision": {
          "$ref": "#/definitions/ReviewDecision",
          "title": "If no decision is specified, the existing one will be reset"
        }
      }
    },
    "SetDecisionResponse": {
      "type": "object",
      "properties": {
        "created_decision": {
          "$ref": "#/definitions/ReviewDecision"
        },
        "pull_request_id": {
          "type": "string"
        }
      },
      "description": "SetDecisionResponse contains information about set decision and pull request id."
    },
    "SetSecretBody": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "format": "byte",
          "description": "The secret value. Must be a base64-encoded string."
        }
      }
    },
    "ShortAnchor": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string",
          "title": "Full file path from repository root"
        },
        "position": {
          "$ref": "#/definitions/DiffPos"
        }
      }
    },
    "Side": {
      "type": "string",
      "enum": [
        "target",
        "source"
      ]
    },
    "Signature": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "title": "Name of the person"
        },
        "email": {
          "type": "string",
          "title": "Email of the person"
        },
        "date": {
          "type": "string",
          "format": "date-time",
          "title": "Timestamp of the signature"
        }
      }
    },
    "SignatureVerification": {
      "type": "object",
      "properties": {
        "verified": {
          "type": "boolean"
        },
        "reason": {
          "$ref": "#/definitions/SignatureVerificationReason"
        },
        "verified_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "SignatureVerificationReason": {
      "type": "string",
      "enum": [
        "SIGNATURE_VERIFICATION_REASON_VALID",
        "SIGNATURE_VERIFICATION_REASON_INVALID",
        "SIGNATURE_VERIFICATION_REASON_MALFORMED_SIGNATURE",
        "SIGNATURE_VERIFICATION_REASON_UNKNOWN_KEY",
        "SIGNATURE_VERIFICATION_REASON_NO_USER",
        "SIGNATURE_VERIFICATION_REASON_BAD_EMAIL",
        "SIGNATURE_VERIFICATION_REASON_EXPIRED_KEY",
        "SIGNATURE_VERIFICATION_REASON_NOT_SIGNING_KEY"
      ]
    },
    "StatusType": {
      "type": "string",
      "enum": [
        "initial",
        "in_progress",
        "paused",
        "completed",
        "cancelled"
      ]
    },
    "Subject": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/definitions/SubjectType"
        },
        "id": {
          "type": "string",
          "title": "Id will contain \"<external-user>\" if subject is an external user"
        }
      },
      "title": "Subject is an entity to which a role can be assigned"
    },
    "SubjectRole": {
      "type": "object",
      "properties": {
        "role": {
          "$ref": "#/definitions/RepoRole"
        },
        "subject": {
          "$ref": "#/definitions/Subject"
        }
      },
      "title": "SubjectRole contains information about subject and his role in the repository"
    },
    "SubjectType": {
      "type": "string",
      "enum": [
        "user",
        "invitee",
        "team"
      ]
    },
    "Task": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "title": "CI/CD entities don't have public IDs at this stage; they will be added later"
        },
        "slug": {
          "type": "string",
          "title": "A name of the task as defined in the config"
        },
        "description": {
          "type": "string"
        },
        "dates": {
          "$ref": "#/definitions/DatesByStage"
        },
        "status": {
          "$ref": "#/definitions/Run.Status"
        },
        "cubes": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Cube"
          }
        },
        "progress": {
          "$ref": "#/definitions/Progress"
        },
        "relations": {
          "$ref": "#/definitions/Relations"
        }
      }
    },
    "TemplatingOptions": {
      "type": "object",
      "properties": {
        "template_id": {
          "type": "string",
          "title": "Template Repo ID"
        }
      }
    },
    "Timezone": {
      "type": "object",
      "properties": {
        "iana_timezone": {
          "type": "string"
        }
      }
    },
    "TransferCodeAssistWorkplaceBody": {
      "type": "object",
      "properties": {
        "revoke_user_id": {
          "type": "string"
        },
        "occupy_user_id": {
          "type": "string"
        }
      }
    },
    "TreeEntry": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "title": "Name of the file or directory"
        },
        "path": {
          "type": "string",
          "title": "Full path from repository root"
        },
        "type": {
          "$ref": "#/definitions/TreeEntry.Type",
          "title": "Type of the tree entry"
        }
      }
    },
    "TreeEntry.Type": {
      "type": "string",
      "enum": [
        "file",
        "executable",
        "dir",
        "symlink",
        "submodule"
      ]
    },
    "TriggerStatus": {
      "type": "string",
      "enum": [
        "already_exists",
        "created",
        "nothing_to_start"
      ]
    },
    "UpdateIssueBody": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "title": "Change Issue title (up to 1024 characters)"
        },
        "description": {
          "type": "string",
          "title": "Change Issue description (up to 10Mb)"
        },
        "status_slug": {
          "type": "string",
          "title": "Change Status. System-wide statuses: open, inProgress, paused, closed, declined, duplicate"
        },
        "priority": {
          "$ref": "#/definitions/Priority",
          "title": "Change Priority. Available values: trivial, minor, major, critical, blocker"
        },
        "assignee_id": {
          "type": "string",
          "title": "Change Assignee, pass empty to clear"
        },
        "milestone_id": {
          "type": "string",
          "title": "Change Milestone, pass empty to clear"
        },
        "visibility": {
          "$ref": "#/definitions/Issue.Visibility",
          "title": "Change Visibility. Available values: public, private"
        },
        "deadline": {
          "type": "string",
          "format": "date-time",
          "title": "User-defined deadline for the issue"
        }
      }
    },
    "UpdateIssueCommentBody": {
      "type": "object",
      "properties": {
        "body": {
          "type": "string"
        }
      }
    },
    "UpdateLabelBody": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "color": {
          "type": "string"
        }
      }
    },
    "UpdateMilestoneBody": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "start_date": {
          "type": "string",
          "format": "date-time"
        },
        "deadline": {
          "type": "string",
          "format": "date-time"
        },
        "status": {
          "$ref": "#/definitions/Milestone.Status"
        }
      }
    },
    "UpdatePullRequestBody": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "title": "Change Pull Request title (up to 1024 characters)"
        },
        "description": {
          "type": "string",
          "title": "Change Pull Request description (up to 10Mb)"
        }
      }
    },
    "UpdatePullRequestCommentBody": {
      "type": "object",
      "properties": {
        "body": {
          "type": "string"
        },
        "resolution_state": {
          "$ref": "#/definitions/ResolutionState",
          "description": "Resolution state for the comment.\nTransition from `no_resolution_needed` directly to `resolved` is not allowed:\nset to `awaiting_resolution` first, then resolve."
        },
        "publish": {
          "type": "boolean",
          "description": "Set to true to publish a draft comment. Once published, cannot be unpublished."
        }
      }
    },
    "UpdateReleaseBody": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "release_notes": {
          "type": "string"
        }
      }
    },
    "UpdateRepositoryBody": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string",
          "title": "Description"
        },
        "default_branch": {
          "type": "string",
          "title": "Default Branch. Must be an exisiting branch"
        },
        "visibility": {
          "$ref": "#/definitions/Repository.Visibility",
          "title": "Visibility"
        },
        "links": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Link"
          },
          "title": "Profile: links"
        },
        "template_type": {
          "$ref": "#/definitions/RepoTemplate",
          "title": "Template type of the repo"
        }
      }
    },
    "UpdateReviewersBody": {
      "type": "object",
      "properties": {
        "reviewers_delta": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1.ReviewerDelta"
          },
          "title": "List of reviewers deltas to apply (add or remove)\nEach delta must specify action (add/remove) and reviewer reference (by ID)"
        },
        "silent": {
          "type": "boolean"
        }
      },
      "title": "UpdateReviewersBody transmits the IDs of those users who need to be added as reviewers"
    },
    "UpdateReviewersResponse": {
      "type": "object",
      "properties": {
        "reviewers": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/PRReviewer"
          }
        }
      },
      "title": "UpdateReviewersResponse contains information about all the reviewers of pull request"
    },
    "UserEmbedded": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "title": "Id will contain \"<external-user>\" if user is external"
        },
        "slug": {
          "type": "string",
          "title": "Slug will contain \"<external-user>\" if user is external"
        }
      }
    },
    "UserProfile": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "display_name": {
          "type": "string"
        },
        "username": {
          "type": "string"
        },
        "bio": {
          "type": "string"
        },
        "location": {
          "$ref": "#/definitions/v1.Location"
        },
        "timezone": {
          "$ref": "#/definitions/Timezone"
        },
        "workplace": {
          "$ref": "#/definitions/Workplace"
        },
        "links": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Link"
          }
        },
        "status": {
          "$ref": "#/definitions/ProfileStatus"
        },
        "avatar": {
          "$ref": "#/definitions/Image"
        },
        "background_image": {
          "$ref": "#/definitions/Image"
        },
        "visibility": {
          "$ref": "#/definitions/ProfileVisibility"
        }
      }
    },
    "Workflow": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "title": "CI/CD entities don't have public IDs at this stage; they will be added later"
        },
        "slug": {
          "type": "string",
          "title": "A name of the workflow as defined in the config"
        },
        "description": {
          "type": "string"
        },
        "dates": {
          "$ref": "#/definitions/DatesByStage"
        },
        "status": {
          "$ref": "#/definitions/Run.Status"
        },
        "tasks": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/Task"
          }
        },
        "progress": {
          "$ref": "#/definitions/Progress"
        }
      }
    },
    "WorkflowData": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of a workflow to run as defined in the config."
        },
        "values": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/InputValue"
          },
          "description": "List of input parameters (name, value pairs) to pass to the workflow."
        }
      }
    },
    "WorkflowInput": {
      "type": "object",
      "properties": {
        "values": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/InputValue"
          }
        }
      },
      "title": "WorkflowInput message is a list of key-value items to pass as input for workflow run"
    },
    "Workplace": {
      "type": "object",
      "properties": {
        "company": {
          "type": "string"
        },
        "position": {
          "type": "string"
        }
      }
    },
    "v1.Label": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "color": {
          "type": "string"
        },
        "author": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "updated_by": {
          "$ref": "#/definitions/UserEmbedded"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "v1.Location": {
      "type": "object",
      "properties": {
        "country": {
          "type": "string"
        },
        "city": {
          "type": "string"
        }
      }
    },
    "v1.ReviewerDelta": {
      "type": "object",
      "properties": {
        "action": {
          "$ref": "#/definitions/DeltaAction"
        },
        "user_id": {
          "type": "string"
        }
      }
    },
    "v1.Tag": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "commit": {
          "$ref": "#/definitions/Commit"
        },
        "target": {
          "type": "string",
          "title": "For annotated tags: hash of the tag object\nFor lightweight tags: hash of the commit"
        },
        "message": {
          "type": "string",
          "title": "Only populated for annotated tags"
        },
        "signature_verification": {
          "$ref": "#/definitions/SignatureVerification",
          "title": "Only populated for annotated tags with a verifiable signature"
        },
        "author": {
          "$ref": "#/definitions/Signature",
          "title": "Only populated for annotated tags"
        },
        "author_user": {
          "$ref": "#/definitions/UserEmbedded",
          "title": "Only populated for annotated tags - resolved user for the tag author, if any"
        }
      }
    }
  },
  "x-webhooks": {
    "pull_request.create": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/definitions/PullRequestCreate"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Events"
        ]
      }
    },
    "pull_request.merge": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/definitions/PullRequestMerge"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Events"
        ]
      }
    },
    "pull_request.merge_failure": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/definitions/PullRequestMergeFailure"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Events"
        ]
      }
    },
    "pull_request.new_iteration": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/definitions/PullRequestNewIteration"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Events"
        ]
      }
    },
    "pull_request.publish": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/definitions/PullRequestPublish"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Events"
        ]
      }
    },
    "pull_request.refresh": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/definitions/PullRequestRefresh"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Events"
        ]
      }
    },
    "pull_request.review_assignment": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/definitions/PullRequestReviewAssignment"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Events"
        ]
      }
    },
    "pull_request.review_decision": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/definitions/PullRequestReviewDecision"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Events"
        ]
      }
    },
    "pull_request.update": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/definitions/PullRequestUpdate"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Events"
        ]
      }
    },
    "pull_request_comment.create": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/definitions/PullRequestCommentCreate"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Events"
        ]
      }
    },
    "pull_request_comment.create_bulk": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/definitions/PullRequestCommentCreateBulk"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Events"
        ]
      }
    },
    "pull_request_comment.publish": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/definitions/PullRequestCommentsPublish"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Events"
        ]
      }
    },
    "pull_request_comment.reactions_update": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/definitions/PullRequestCommentReactionsUpdate"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Events"
        ]
      }
    },
    "repository.push": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/definitions/Push"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Events"
        ]
      }
    },
    "repository.refs_update": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/definitions/RefsUpdate"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Events"
        ]
      }
    },
    "webhook.ping": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/definitions/Ping"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Events"
        ]
      }
    }
  }
}