{
  "events.repo.get": {
    "tags": [
      "Event"
    ],
    "summary": "获取仓库动态预签名地址，并返回内容。Get events pre-signed URL and return content.",
    "operationId": "GetEvents",
    "parameters": [
      {
        "type": "string",
        "description": "repo path",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "动态日期,支持按天或小时为维度获取,格式为yy-mm-dd-h or yy-mm-dd, eg:2025-09-11-5",
        "name": "date",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "path": "/events/{repo}/-/{date}",
    "method": "get"
  },
  "groups.post": {
    "tags": [
      "Organizations"
    ],
    "summary": "创建新组织。Create new organization.",
    "operationId": "CreateOrganization",
    "parameters": [
      {
        "description": "group information",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.CreateGroupReq"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
    "path": "/groups",
    "method": "post"
  },
  "ranks.repo.annual.get": {
    "tags": [
      "Rank"
    ],
    "summary": "获取公仓年榜",
    "operationId": "GetRepoAnnualRank",
    "parameters": [
      {
        "type": "string",
        "default": "all-languages",
        "description": "语言",
        "name": "language",
        "in": "query"
      },
      {
        "enum": [
          "KnowledgeBase",
          "NPC",
          "Skills"
        ],
        "type": "string",
        "description": "仓库类型",
        "name": "flags",
        "in": "query"
      },
      {
        "type": "string",
        "default": "",
        "description": "年榜年份，格式为2006，不填默认为本年",
        "name": "year",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 100,
        "description": "排行前n名",
        "name": "topN",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.GetRankResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-basic-info:r",
    "path": "/ranks/repo/annual",
    "method": "get"
  },
  "ranks.repo.daily.get": {
    "tags": [
      "Rank"
    ],
    "summary": "获取公仓日榜",
    "operationId": "GetRepoDailyRank",
    "parameters": [
      {
        "type": "string",
        "default": "all-languages",
        "description": "语言",
        "name": "language",
        "in": "query"
      },
      {
        "enum": [
          "KnowledgeBase",
          "NPC",
          "Skills"
        ],
        "type": "string",
        "description": "仓库类型",
        "name": "flags",
        "in": "query"
      },
      {
        "type": "string",
        "description": "日榜日期，默认为昨天",
        "name": "date",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 100,
        "description": "排行前n名",
        "name": "topN",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.GetRankResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-basic-info:r",
    "path": "/ranks/repo/daily",
    "method": "get"
  },
  "ranks.repo.languageList.get": {
    "tags": [
      "Rank"
    ],
    "summary": "获取排行榜语言",
    "operationId": "GetLanguageList",
    "parameters": [
      {
        "enum": [
          "daily",
          "weekly",
          "monthly",
          "annual"
        ],
        "type": "string",
        "description": "排行榜类型",
        "name": "rankType",
        "in": "query",
        "required": true
      },
      {
        "type": "string",
        "description": "日期",
        "name": "date",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.RankLanguageList"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-basic-info:r",
    "path": "/ranks/repo/language-list",
    "method": "get"
  },
  "ranks.repo.monthly.get": {
    "tags": [
      "Rank"
    ],
    "summary": "获取公仓月榜",
    "operationId": "GetRepoMonthlyRank",
    "parameters": [
      {
        "type": "string",
        "default": "all-languages",
        "description": "语言",
        "name": "language",
        "in": "query"
      },
      {
        "enum": [
          "KnowledgeBase",
          "NPC",
          "Skills"
        ],
        "type": "string",
        "description": "仓库类型",
        "name": "flags",
        "in": "query"
      },
      {
        "type": "string",
        "default": "",
        "description": "月榜月份，格式为200601，不填默认为本月",
        "name": "month",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 100,
        "description": "排行前n名",
        "name": "topN",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.GetRankResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-basic-info:r",
    "path": "/ranks/repo/monthly",
    "method": "get"
  },
  "ranks.repo.weekly.get": {
    "tags": [
      "Rank"
    ],
    "summary": "获取公仓周榜",
    "operationId": "GetRepoWeeklyRank",
    "parameters": [
      {
        "type": "string",
        "default": "all-languages",
        "description": "语言",
        "name": "language",
        "in": "query"
      },
      {
        "enum": [
          "KnowledgeBase",
          "NPC",
          "Skills"
        ],
        "type": "string",
        "description": "仓库类型",
        "name": "flags",
        "in": "query"
      },
      {
        "type": "string",
        "default": "",
        "description": "周榜周一日期，格式为20060102，不填默认为本周",
        "name": "start",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 100,
        "description": "排行前n名",
        "name": "topN",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.GetRankResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-basic-info:r",
    "path": "/ranks/repo/weekly",
    "method": "get"
  },
  "search.npc.list": {
    "tags": [
      "KnowledgeBase"
    ],
    "summary": "全局语义搜索 NPC 角色",
    "operationId": "SearchNpc",
    "parameters": [
      {
        "type": "string",
        "description": "搜索关键词",
        "name": "key",
        "in": "query",
        "required": true
      },
      {
        "type": "integer",
        "description": "返回结果数量，最大20",
        "name": "top_n",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.SearchNpcRes"
          }
        }
      },
      "400": {
        "description": "Bad Request"
      },
      "500": {
        "description": "Internal Server Error"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-basic-info:r,repo-code:r",
    "path": "/search/npc",
    "method": "get"
  },
  "search.publicRepos.list": {
    "tags": [
      "Search"
    ],
    "summary": "Search resource with the key",
    "operationId": "ListPublicRepos",
    "parameters": [
      {
        "type": "string",
        "description": "key",
        "name": "key",
        "in": "query"
      },
      {
        "enum": [
          "KnowledgeBase",
          "NPC",
          "Skills"
        ],
        "type": "string",
        "description": "仓库类型标记，逗号分隔。Repository type flags, comma separated",
        "name": "flags",
        "in": "query"
      },
      {
        "enum": [
          "intersection",
          "union"
        ],
        "type": "string",
        "default": "intersection",
        "description": "flags 多值匹配模式。Flags match mode when multiple flags provided",
        "name": "flags_match",
        "in": "query"
      },
      {
        "enum": [
          "created_at",
          "last_updated_at",
          "stars",
          "forks"
        ],
        "type": "string",
        "description": "排序类型，默认last_updated_at",
        "name": "order_by",
        "in": "query"
      },
      {
        "type": "boolean",
        "default": false,
        "description": "排序顺序",
        "name": "desc",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "排行前N位，默认10，最大值100",
        "name": "topN",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.Repos4UserBase"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-base-info:r",
    "path": "/search/public-repos",
    "method": "get"
  },
  "user.get": {
    "tags": [
      "Users"
    ],
    "summary": "获取指定用户的详情信息。Get detailed information for a specified user.",
    "operationId": "GetUserInfo",
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.UsersResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-profile:r",
    "path": "/user",
    "method": "get"
  },
  "user.post": {
    "tags": [
      "Users"
    ],
    "summary": "更新指定用户的详情信息。Updates the specified user's profile information.",
    "operationId": "UpdateUserInfo",
    "parameters": [
      {
        "description": "user info",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.UpdateUserInfoPayload"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-profile:rw",
    "path": "/user",
    "method": "post"
  },
  "user.autocompleteSource.list": {
    "tags": [
      "Users"
    ],
    "summary": "查询当前用户用户拥有指定权限的所有资源列表。List resources that the current user has specified permissions for.",
    "operationId": "AutoCompleteSource",
    "parameters": [
      {
        "enum": [
          "Group",
          "Repo",
          "RootGroup"
        ],
        "type": "string",
        "default": "Group",
        "description": "Source type",
        "name": "source_type",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      },
      {
        "type": "string",
        "default": "",
        "description": "Filter by resources.",
        "name": "search",
        "in": "query"
      },
      {
        "enum": [
          "Guest",
          "Reporter",
          "Developer",
          "Master",
          "Owner"
        ],
        "type": "string",
        "default": "Owner",
        "description": "最小仓库权限，默认owner。Minima repository permissions",
        "name": "access",
        "in": "query"
      },
      {
        "enum": [
          "created_at",
          "slug_path"
        ],
        "type": "string",
        "default": "created_at",
        "description": "Order field",
        "name": "order_by",
        "in": "query"
      },
      {
        "type": "boolean",
        "default": false,
        "description": "排序顺序。Ordering.",
        "name": "desc",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
    "path": "/user/autocomplete_source",
    "method": "get"
  },
  "user.emails.get": {
    "tags": [
      "Users"
    ],
    "summary": "获取用户邮箱列表",
    "operationId": "ListEmail",
    "responses": {
      "200": {
        "description": "获取用户邮箱列表",
        "schema": {
          "$ref": "#/definitions/dto.UserEmails"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-email:r",
    "path": "/user/emails",
    "method": "get"
  },
  "user.gpgKeys.get": {
    "tags": [
      "Users"
    ],
    "summary": "获取用户 GPG keys 列表。List GPG Keys.",
    "operationId": "ListGPGKeys",
    "parameters": [
      {
        "type": "integer",
        "default": 1,
        "description": "pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "pagination page size",
        "name": "page_size",
        "in": "query"
      },
      {
        "type": "string",
        "description": "gpg search key",
        "name": "keyword",
        "in": "query"
      }
    ],
    "responses": {
      "201": {
        "description": "Created",
        "schema": {
          "$ref": "#/definitions/api.GPGPublicKey"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-profile:r",
    "path": "/user/gpg-keys",
    "method": "get"
  },
  "user.groups.list": {
    "tags": [
      "Organizations"
    ],
    "summary": "获取当前用户拥有权限的顶层组织列表。Get top-level organizations list that the current user has access to.",
    "operationId": "ListTopGroups",
    "parameters": [
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      },
      {
        "type": "string",
        "default": "",
        "description": "Filter by organizations.",
        "name": "search",
        "in": "query"
      },
      {
        "enum": [
          "Guest",
          "Reporter",
          "Developer",
          "Master",
          "Owner"
        ],
        "type": "string",
        "description": "Filter by role.",
        "name": "role",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.OrganizationAccess"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
    "path": "/user/groups",
    "method": "get"
  },
  "user.groups.listByGroup": {
    "tags": [
      "Organizations"
    ],
    "summary": "查询当前用户在指定组织下拥有指定权限的子组织列表。Get the list of sub-organizations that the current user has access to in the specified organization.",
    "operationId": "ListGroups",
    "parameters": [
      {
        "type": "string",
        "description": "Group slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      },
      {
        "type": "integer",
        "description": "access level",
        "name": "access",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.OrganizationAccess"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
    "path": "/user/groups/{slug}",
    "method": "get"
  },
  "user.issues.list": {
    "tags": [
      "Issues"
    ],
    "summary": "查询当前用户相关的 Issues。List issues for the authenticated user across all repositories.",
    "operationId": "ListUserIssues",
    "parameters": [
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码，输入值小于1，则调整为1。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小，输入值小于0，则调整为10;输入值大于100，则调整为100。",
        "name": "page_size",
        "in": "query"
      },
      {
        "type": "string",
        "default": "assigned",
        "description": "Issue筛选类型。可选值：`created`（我创建的）、`assigned`（分配给我的）",
        "name": "filter",
        "in": "query"
      },
      {
        "type": "string",
        "default": "open",
        "description": "Issue状态过滤。可选值：`open`、`closed`",
        "name": "state",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue优先级过滤。示例：`-2P,-1P,P0,P1,P2,P3`",
        "name": "priority",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue标签过滤。示例：`git,bug,feature`",
        "name": "labels",
        "in": "query"
      },
      {
        "type": "string",
        "default": "contains_any",
        "description": "标签过滤操作符。可选值：`contains_any`,`contains_all`",
        "name": "labels_operator",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue更新时间范围开始。示例：`2022-01-31`",
        "name": "updated_time_begin",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue更新时间范围结束。示例：`2022-02-16`",
        "name": "updated_time_end",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue关闭时间范围开始。示例：`2022-01-31`",
        "name": "close_time_begin",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue关闭时间范围结束。示例：`2022-02-16`",
        "name": "close_time_end",
        "in": "query"
      },
      {
        "type": "string",
        "default": "-created_at",
        "description": "Issue排序字段，-前缀表示倒序。可选值：`created_at`,`-created_at`,`-updated_at`",
        "name": "order_by",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.UserIssue"
          }
        }
      },
      "401": {
        "description": "Unauthorized",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
    "path": "/user/issues",
    "method": "get"
  },
  "user.repos.list": {
    "tags": [
      "Repositories"
    ],
    "summary": "获取当前用户拥有指定权限及其以上权限的仓库。List repositories owned by the current user with the specified permissions or higher.",
    "operationId": "GetRepos",
    "parameters": [
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      },
      {
        "type": "string",
        "default": "",
        "description": "Filter by repositories",
        "name": "search",
        "in": "query"
      },
      {
        "enum": [
          "private",
          "public",
          "secret"
        ],
        "type": "string",
        "description": "RType",
        "name": "filter_type",
        "in": "query"
      },
      {
        "enum": [
          "Guest",
          "Reporter",
          "Developer",
          "Master",
          "Owner"
        ],
        "type": "string",
        "default": "Owner",
        "description": "最小仓库权限，默认owner。Minima repository permissions",
        "name": "role",
        "in": "query"
      },
      {
        "enum": [
          "KnowledgeBase",
          "NPC",
          "Skills"
        ],
        "type": "string",
        "description": "仓库类型标记，逗号分隔。Repository type flags, comma separated",
        "name": "flags",
        "in": "query"
      },
      {
        "enum": [
          "intersection",
          "union"
        ],
        "type": "string",
        "default": "intersection",
        "description": "flags 多值匹配模式。Flags match mode when multiple flags provided",
        "name": "flags_match",
        "in": "query"
      },
      {
        "enum": [
          "active",
          "archived"
        ],
        "type": "string",
        "description": "仓库状态。Repository status",
        "name": "status",
        "in": "query"
      },
      {
        "enum": [
          "created_at",
          "last_updated_at",
          "stars",
          "slug_path",
          "forks"
        ],
        "type": "string",
        "default": "last_updated_at",
        "description": "Order field",
        "name": "order_by",
        "in": "query"
      },
      {
        "type": "boolean",
        "default": false,
        "description": "排序顺序。Ordering.",
        "name": "desc",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.Repos4User"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
    "path": "/user/repos",
    "method": "get"
  },
  "user.staredRepos.list": {
    "tags": [
      "Starring"
    ],
    "summary": "获取当前用户 star 的仓库列表。List all stared repositories.",
    "operationId": "GetUserAllStaredRepos",
    "parameters": [
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      },
      {
        "type": "string",
        "default": "",
        "description": "Filter by repositories",
        "name": "search",
        "in": "query"
      },
      {
        "enum": [
          "KnowledgeBase",
          "NPC",
          "Skills"
        ],
        "type": "string",
        "default": "",
        "description": "仓库类型标记，逗号分隔。Repository type flags, comma separated",
        "name": "flags",
        "in": "query"
      },
      {
        "enum": [
          "intersection",
          "union"
        ],
        "type": "string",
        "default": "intersection",
        "description": "flags 多值匹配模式。Flags match mode when multiple flags provided",
        "name": "flags_match",
        "in": "query"
      },
      {
        "enum": [
          "active",
          "archived"
        ],
        "type": "string",
        "description": "仓库状态。Repository status",
        "name": "status",
        "in": "query"
      },
      {
        "type": "boolean",
        "default": false,
        "description": "排序顺序。Ordering.",
        "name": "desc",
        "in": "query"
      },
      {
        "enum": [
          "created_at",
          "last_updated_at",
          "stared_time",
          "stars",
          "forks"
        ],
        "type": "string",
        "default": "last_updated_at",
        "description": "Order field",
        "name": "order_by",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.Repos4User"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
    "path": "/user/stared-repos",
    "method": "get"
  },
  "users.get": {
    "tags": [
      "Users"
    ],
    "summary": "获取指定用户的详情信息。Get detailed information for a specified user.",
    "operationId": "GetUserInfoByName",
    "parameters": [
      {
        "type": "string",
        "description": "User Name",
        "name": "username",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.UsersResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-profile:r",
    "path": "/users/{username}",
    "method": "get"
  },
  "users.activities.get": {
    "tags": [
      "Activities"
    ],
    "summary": "获取个人动态活跃详情汇总。Get user activities by date.",
    "operationId": "GetUserActivitiesByDate",
    "parameters": [
      {
        "type": "string",
        "description": "UserName",
        "name": "username",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "查询日期，格式 yyyyMM，或者 yyyyMMdd",
        "name": "date",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.ActivityDate"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
    "path": "/users/{username}/activities",
    "method": "get"
  },
  "users.followers.list": {
    "tags": [
      "Followers"
    ],
    "summary": "获取指定用户的粉丝列表。Get the followers list of specified user.",
    "operationId": "GetFollowersByUserID",
    "parameters": [
      {
        "type": "string",
        "description": "Username",
        "name": "username",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.UserFollowResult"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
    "path": "/users/{username}/followers",
    "method": "get"
  },
  "users.following.list": {
    "tags": [
      "Followers"
    ],
    "summary": "获取指定用户的关注人列表。Get the list of users that the specified user is following.",
    "operationId": "GetFollowingByUserID",
    "parameters": [
      {
        "type": "string",
        "description": "Username",
        "name": "username",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.UserFollowResult"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
    "path": "/users/{username}/following",
    "method": "get"
  },
  "users.groups.get": {
    "tags": [
      "Organizations"
    ],
    "summary": "获取指定用户拥有权限的顶层组织列表。 Get a list of top-level organizations that the specified user has permissions to access.",
    "operationId": "GetGroupsByUserID",
    "parameters": [
      {
        "type": "string",
        "description": "UserName",
        "name": "username",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "default": "",
        "description": "Filter organizations.",
        "name": "search",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.OrganizationUnion"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
    "path": "/users/{username}/groups",
    "method": "get"
  },
  "users.pinnedRepos.list": {
    "tags": [
      "Repositories"
    ],
    "summary": "获取指定用户的用户仓库墙。 Get a list of repositories that the specified user has pinned.",
    "operationId": "GetPinnedRepoByID",
    "parameters": [
      {
        "type": "string",
        "description": "User Name",
        "name": "username",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.Repos4User"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
    "path": "/users/{username}/pinned-repos",
    "method": "get"
  },
  "users.repoActivities.list": {
    "tags": [
      "Activities"
    ],
    "summary": "个人仓库动态详情列表。List of personal repository activity details.",
    "operationId": "GetUserRepoActivityDetails",
    "parameters": [
      {
        "type": "string",
        "description": "UserName",
        "name": "username",
        "in": "path",
        "required": true
      },
      {
        "enum": [
          "issue",
          "pull_request",
          "code_review"
        ],
        "type": "string",
        "description": "activity type",
        "name": "activityType",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "仓库路径",
        "name": "slug",
        "in": "query",
        "required": true
      },
      {
        "type": "string",
        "description": "查询日期，格式 yyyyMM，或者 yyyyMMdd",
        "name": "date",
        "in": "query",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "返回 []dto.ActivityPullRequestDetail|[]dto.ActivityIssueDetail",
        "schema": {
          "type": "array",
          "items": {}
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
    "path": "/users/{username}/repo-activities/{activityType}",
    "method": "get"
  },
  "users.repos.list": {
    "tags": [
      "Repositories"
    ],
    "summary": "获取指定用户有指定以上权限并且客人态可见的仓库。List repositories where the specified user has the specified permission level or higher and are visible to guests.",
    "operationId": "GetReposByUserName",
    "parameters": [
      {
        "type": "string",
        "description": "UserName",
        "name": "username",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "default": "",
        "description": "Filter by repositories",
        "name": "search",
        "in": "query"
      },
      {
        "enum": [
          "private",
          "public",
          "secret"
        ],
        "type": "string",
        "description": "Repositories type",
        "name": "filter_type",
        "in": "query"
      },
      {
        "enum": [
          "KnowledgeBase",
          "NPC",
          "Skills"
        ],
        "type": "string",
        "description": "仓库类型标记，逗号分隔。Repository type flags, comma separated",
        "name": "flags",
        "in": "query"
      },
      {
        "enum": [
          "intersection",
          "union"
        ],
        "type": "string",
        "default": "intersection",
        "description": "flags 多值匹配模式。Flags match mode when multiple flags provided",
        "name": "flags_match",
        "in": "query"
      },
      {
        "enum": [
          "active",
          "archived"
        ],
        "type": "string",
        "description": "仓库状态。Repository status",
        "name": "status",
        "in": "query"
      },
      {
        "enum": [
          "Guest",
          "Reporter",
          "Developer",
          "Master",
          "Owner"
        ],
        "type": "string",
        "default": "Owner",
        "description": "最小仓库权限，默认owner。Minima repository permissions.",
        "name": "role",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      },
      {
        "type": "boolean",
        "default": false,
        "description": "排序顺序。Ordering.",
        "name": "desc",
        "in": "query"
      },
      {
        "enum": [
          "created_at",
          "last_updated_at",
          "stars",
          "slug_path",
          "forks"
        ],
        "type": "string",
        "default": "last_updated_at",
        "description": "Order field",
        "name": "order_by",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.Repos4User"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
    "path": "/users/{username}/repos",
    "method": "get"
  },
  "users.staredRepos.list": {
    "tags": [
      "Starring"
    ],
    "summary": "获取指定用户的 star 仓库列表。Get the list of repositories starred by the specified user.",
    "operationId": "GetUserStaredRepos",
    "parameters": [
      {
        "type": "string",
        "description": "UserName",
        "name": "username",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "default": "",
        "description": "过滤仓库。Filter by repositories",
        "name": "search",
        "in": "query"
      },
      {
        "enum": [
          "KnowledgeBase",
          "NPC",
          "Skills"
        ],
        "type": "string",
        "default": "",
        "description": "仓库类型标记，逗号分隔。Repository type flags, comma separated",
        "name": "flags",
        "in": "query"
      },
      {
        "enum": [
          "intersection",
          "union"
        ],
        "type": "string",
        "default": "intersection",
        "description": "flags 多值匹配模式。Flags match mode when multiple flags provided",
        "name": "flags_match",
        "in": "query"
      },
      {
        "enum": [
          "active",
          "archived"
        ],
        "type": "string",
        "description": "仓库状态。Repository status",
        "name": "status",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      },
      {
        "type": "boolean",
        "default": false,
        "description": "Ordering",
        "name": "desc",
        "in": "query"
      },
      {
        "enum": [
          "created_at",
          "last_updated_at",
          "stars",
          "forks"
        ],
        "type": "string",
        "default": "last_updated_at",
        "description": "Order field",
        "name": "order_by",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.Repos4User"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
    "path": "/users/{username}/stared-repos",
    "method": "get"
  },
  "workspace.delete.post": {
    "tags": [
      "Workspace"
    ],
    "summary": "删除我的云原生开发环境。Delete my workspace.",
    "operationId": "DeleteWorkspace",
    "parameters": [
      {
        "description": "params",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.WorkspaceDeleteReq"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.WorkspaceDeleteResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:rw",
    "path": "/workspace/delete",
    "method": "post"
  },
  "workspace.list.get": {
    "tags": [
      "Workspace"
    ],
    "summary": "获取我的云原生开发环境列表。List my workspaces.",
    "operationId": "ListWorkspaces",
    "parameters": [
      {
        "type": "string",
        "description": "Git branch name, e.g. \"main\"",
        "name": "branch",
        "in": "query"
      },
      {
        "type": "string",
        "description": "查询结束时间。Query end time. format YYYY-MM-DD HH:mm:ssZZ, e.g. 2024-12-01 00:00:00+0800",
        "name": "end",
        "in": "query"
      },
      {
        "type": "integer",
        "description": "Pagination page number, default(1)",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "description": "Pagination page size, default(20), max(100)",
        "name": "page_size",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Repository path, e.g. \"groupname/reponame\"",
        "name": "slug",
        "in": "query"
      },
      {
        "type": "string",
        "description": "查询开始时间。Query start time. format YYYY-MM-DD HH:mm:ssZZ, e.g. 2024-12-01 00:00:00+0800",
        "name": "start",
        "in": "query"
      },
      {
        "type": "string",
        "description": "开发环境状态，running: 开发环境已启动，closed：开发环境已关闭。Workspace status: \"running\" for started, \"closed\" for stopped.",
        "name": "status",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.WorkspaceListResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
    "path": "/workspace/list",
    "method": "get"
  },
  "workspace.stop.post": {
    "tags": [
      "Workspace"
    ],
    "summary": "停止/关闭我的云原生开发环境。Stop/close my workspace.",
    "operationId": "WorkspaceStop",
    "parameters": [
      {
        "description": "params",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.WorkspaceStopReq"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.WorkspaceStopResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:rw",
    "path": "/workspace/stop",
    "method": "post"
  },
  "group.get": {
    "tags": [
      "Organizations"
    ],
    "summary": "获取指定组织信息。Get information for the specified organization.",
    "operationId": "GetGroup",
    "parameters": [
      {
        "type": "string",
        "description": "group path",
        "name": "group",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "group",
        "schema": {
          "$ref": "#/definitions/dto.OrganizationAccess"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-resource:r",
    "path": "/{group}",
    "method": "get"
  },
  "group.put": {
    "tags": [
      "Organizations"
    ],
    "summary": "更新组织信息, 可更新的内容为: 组织描述, 组织展示名称, 组织网站, 组织联系邮箱。Updates organization information including: description, display name, website URL and contact email.",
    "operationId": "UpdateOrganization",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "group",
        "in": "path",
        "required": true
      },
      {
        "description": "group information to update",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.UpdateGroupReq"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
    "path": "/{group}",
    "method": "put"
  },
  "group.delete": {
    "tags": [
      "Organizations"
    ],
    "summary": "删除指定组织。Delete the specified organization.",
    "operationId": "DeleteOrganization",
    "parameters": [
      {
        "type": "string",
        "description": "group path",
        "name": "group",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "微信身份验证票据，首次请求不传会返回新票据。WeChat auth ticket, will return new ticket if not provided in first request.",
        "name": "x-cnb-identity-ticket",
        "in": "header"
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-delete:rw",
    "path": "/{group}",
    "method": "delete"
  },
  "group.inheritMembers.list": {
    "tags": [
      "Members"
    ],
    "summary": "获取指定组织的继承成员。List inherited members within specified organization",
    "operationId": "ListInheritMembersOfGroup",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "group",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "default": "",
        "description": "过滤成员。Filter by member",
        "name": "search",
        "in": "query"
      },
      {
        "enum": [
          "Guest",
          "Reporter",
          "Developer",
          "Master",
          "Owner"
        ],
        "type": "string",
        "description": "Role",
        "name": "role",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.ListInheritMembers"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:r",
    "path": "/{group}/-/inherit-members",
    "method": "get"
  },
  "group.members.list": {
    "tags": [
      "Members"
    ],
    "summary": "获取指定组织内的所有直接成员。List all direct members within specified organization.",
    "operationId": "ListMembersOfGroup",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "group",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      },
      {
        "enum": [
          "Guest",
          "Reporter",
          "Developer",
          "Master",
          "Owner"
        ],
        "type": "string",
        "description": "Role",
        "name": "role",
        "in": "query"
      },
      {
        "type": "string",
        "default": "",
        "description": "过滤成员。Filter by member.",
        "name": "search",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.UsersWithAccessLevelInSlug"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:r",
    "path": "/{group}/-/members",
    "method": "get"
  },
  "group.members.accessLevel.get": {
    "tags": [
      "Members"
    ],
    "summary": "获取指定组织内, 访问成员在当前层级内的权限信息。Get permission information for accessing members at current level.",
    "operationId": "GetMemberAccessLevelOfGroup",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "group",
        "in": "path",
        "required": true
      },
      {
        "type": "boolean",
        "default": true,
        "description": "是否包含继承的权限。If inherited permissions are included.",
        "name": "include_inherit",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.MemberAccessLevelInSlugUnion"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:r",
    "path": "/{group}/-/members/access-level",
    "method": "get"
  },
  "group.members.put": {
    "tags": [
      "Members"
    ],
    "summary": "更新指定组织的直接成员权限信息。Update permission information for direct members in specified organization.",
    "operationId": "UpdateMembersOfGroup",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "group",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "username",
        "name": "username",
        "in": "path",
        "required": true
      },
      {
        "description": "member information",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.UpdateMembersRequest"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
    "path": "/{group}/-/members/{username}",
    "method": "put"
  },
  "group.members.post": {
    "tags": [
      "Members"
    ],
    "summary": "添加成员。Add members.",
    "operationId": "AddMembersOfGroup",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "group",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "username",
        "name": "username",
        "in": "path",
        "required": true
      },
      {
        "description": "member information",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.UpdateMembersRequest"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
    "path": "/{group}/-/members/{username}",
    "method": "post"
  },
  "group.members.delete": {
    "tags": [
      "Members"
    ],
    "summary": "删除指定组织的直接成员。Remove direct members from specified organization.",
    "operationId": "DeleteMembersOfGroup",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "group",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "username",
        "name": "username",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
    "path": "/{group}/-/members/{username}",
    "method": "delete"
  },
  "group.members.accessLevel.list": {
    "tags": [
      "Members"
    ],
    "summary": "获取指定组织内指定成员的权限信息, 结果按组织层级来展示, 包含上层组织的权限继承信息。Get specified member's permissions with organizational hierarchy.",
    "operationId": "ListMemberAccessLevelOfGroup",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "group",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "username",
        "name": "username",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.MemberAccessLevel"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:r",
    "path": "/{group}/-/members/{username}/access-level",
    "method": "get"
  },
  "group.transfer.post": {
    "tags": [
      "Organizations"
    ],
    "summary": "转移组织。Transfer an organization.",
    "operationId": "TransferGroup",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "group",
        "in": "path",
        "required": true
      },
      {
        "description": "request",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.TransferSlugReq"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
    "path": "/{group}/-/transfer",
    "method": "post"
  },
  "group.upload.logos.post": {
    "tags": [
      "Organizations"
    ],
    "summary": "发起一个上传 logo 的请求，返回上传文件的url，请使用 put 发起流式上传。Initiate a request to upload logo,returns upload URL.Use PUT to initiate a stream upload.",
    "operationId": "UploadLogos",
    "parameters": [
      {
        "type": "string",
        "description": "group",
        "name": "group",
        "in": "path",
        "required": true
      },
      {
        "description": "UploadRequestParams",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.UploadRequestParams"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.UploadAssetsResponse"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
    "path": "/{group}/-/upload/logos",
    "method": "post"
  },
  "mission.delete": {
    "tags": [
      "Missions"
    ],
    "summary": "删除指定任务集。Delete the specified mission.",
    "operationId": "DeleteMission",
    "parameters": [
      {
        "type": "string",
        "description": "mission path",
        "name": "mission",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "微信身份验证票据，首次请求不传会返回新票据。WeChat auth ticket, will return new ticket if not provided in first request.",
        "name": "x-cnb-identity-ticket",
        "in": "header"
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nmission-delete:rw",
    "path": "/{mission}",
    "method": "delete"
  },
  "mission.members.post": {
    "tags": [
      "Members"
    ],
    "summary": "添加成员。Add members.",
    "operationId": "AddMembersOfMission",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "mission",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "username",
        "name": "username",
        "in": "path",
        "required": true
      },
      {
        "description": "member information",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.UpdateMembersRequest"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nmission-manage:rw",
    "path": "/{mission}/-/members/{username}",
    "method": "post"
  },
  "mission.mission.view.get": {
    "tags": [
      "Missions"
    ],
    "summary": "查询任务集视图配置信息。Get mission view config.",
    "operationId": "GetMissionViewConfig",
    "parameters": [
      {
        "type": "string",
        "description": "Mission slug",
        "name": "mission",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "View ID",
        "name": "id",
        "in": "query",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.MissionViewConfig"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nmission-manage:r",
    "path": "/{mission}/-/mission/view",
    "method": "get"
  },
  "mission.mission.view.post": {
    "tags": [
      "Missions"
    ],
    "summary": "设置任务集视图配置信息。Set mission view config.",
    "operationId": "PostMissionViewConfig",
    "parameters": [
      {
        "type": "string",
        "description": "Mission slug",
        "name": "mission",
        "in": "path",
        "required": true
      },
      {
        "description": "Params",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.MissionViewConfig"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nmission-manage:rw",
    "path": "/{mission}/-/mission/view",
    "method": "post"
  },
  "mission.mission.viewList.list": {
    "tags": [
      "Missions"
    ],
    "summary": "获取任务集视图列表。Get view list of a mission.",
    "operationId": "GetMissionViewList",
    "parameters": [
      {
        "type": "string",
        "description": "mission",
        "name": "mission",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.MissionView"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nmission-manage:r",
    "path": "/{mission}/-/mission/view-list",
    "method": "get"
  },
  "mission.mission.viewList.put": {
    "tags": [
      "Missions"
    ],
    "summary": "添加、修改任务集视图。Update a mission view or add a new one.",
    "operationId": "PutMissionViewList",
    "parameters": [
      {
        "type": "string",
        "description": "Mission slug",
        "name": "mission",
        "in": "path",
        "required": true
      },
      {
        "description": "Params",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.MissionView"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nmission-manage:rw",
    "path": "/{mission}/-/mission/view-list",
    "method": "put"
  },
  "mission.mission.viewList.post": {
    "tags": [
      "Missions"
    ],
    "summary": "排序任务集视图。Sort mission view list.",
    "operationId": "PostMissionViewList",
    "parameters": [
      {
        "type": "string",
        "description": "Mission slug",
        "name": "mission",
        "in": "path",
        "required": true
      },
      {
        "description": "Params",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.MissionPostViewReq"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nmission-manage:rw",
    "path": "/{mission}/-/mission/view-list",
    "method": "post"
  },
  "mission.settings.setVisibility.post": {
    "tags": [
      "Missions"
    ],
    "summary": "改变任务集可见性。Update the visibility of a mission.",
    "operationId": "SetMissionVisibility",
    "parameters": [
      {
        "type": "string",
        "description": "mission path",
        "name": "mission",
        "in": "path",
        "required": true
      },
      {
        "enum": [
          "Private",
          "Public"
        ],
        "type": "string",
        "description": "任务集可见性",
        "name": "visibility",
        "in": "query",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nmission-manage:rw",
    "path": "/{mission}/-/settings/set_visibility",
    "method": "post"
  },
  "registry.delete": {
    "tags": [
      "Registries"
    ],
    "summary": "删除制品库。Delete the registry.",
    "operationId": "DeleteRegistry",
    "parameters": [
      {
        "type": "string",
        "description": "制品库路径。Registry path.",
        "name": "registry",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "微信身份验证票据，首次请求不传会返回新票据。WeChat auth ticket, will return new ticket if not provided in first request.",
        "name": "x-cnb-identity-ticket",
        "in": "header"
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-delete:rw",
    "path": "/{registry}",
    "method": "delete"
  },
  "registry.members.post": {
    "tags": [
      "Members"
    ],
    "summary": "添加成员。Add members.",
    "operationId": "AddMembersOfRegistry",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "registry",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "username",
        "name": "username",
        "in": "path",
        "required": true
      },
      {
        "description": "member information",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.UpdateMembersRequest"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-manage:rw",
    "path": "/{registry}/-/members/{username}",
    "method": "post"
  },
  "registry.settings.setVisibility.post": {
    "tags": [
      "Registries"
    ],
    "summary": "改变制品仓库可见性。Update visibility of registry.",
    "operationId": "SetRegistryVisibility",
    "parameters": [
      {
        "type": "string",
        "description": "制品库路径。Registry path.",
        "name": "registry",
        "in": "path",
        "required": true
      },
      {
        "enum": [
          "Private",
          "Public"
        ],
        "type": "string",
        "description": "可见性。Visibility",
        "name": "visibility",
        "in": "query",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-manage:rw",
    "path": "/{registry}/-/settings/set_visibility",
    "method": "post"
  },
  "repo.get": {
    "tags": [
      "Repositories"
    ],
    "summary": "获取指定仓库信息。Get information for the specified repository.",
    "operationId": "GetByID",
    "parameters": [
      {
        "type": "string",
        "description": "repo path",
        "name": "repo",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "repo",
        "schema": {
          "$ref": "#/definitions/dto.Repos4User"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-basic-info:r",
    "path": "/{repo}",
    "method": "get"
  },
  "repo.delete": {
    "tags": [
      "Repositories"
    ],
    "summary": "删除指定仓库。Delete the specified repository.",
    "operationId": "DeleteRepo",
    "parameters": [
      {
        "type": "string",
        "description": "repo path",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "微信身份验证票据，首次请求不传会返回新票据。WeChat auth ticket, will return new ticket if not provided in first request.",
        "name": "x-cnb-identity-ticket",
        "in": "header"
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-delete:rw",
    "path": "/{repo}",
    "method": "delete"
  },
  "repo.patch": {
    "tags": [
      "Repositories"
    ],
    "summary": "更新仓库信息, 可更新的内容为: 仓库简介, 仓库站点, 仓库主题, 开源许可证。updates repository details including description, website URL,topics and license type.",
    "operationId": "UpdateRepo",
    "parameters": [
      {
        "type": "string",
        "description": "repo path",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "request body",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.RepoPatch"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
    "path": "/{repo}",
    "method": "patch"
  },
  "repo.ai.chat.completions.post": {
    "tags": [
      "AI"
    ],
    "summary": "AI 对话。调用者需有代码写权限（CNB_TOKEN 仅需读权限，部署令牌不检查读写权限）。AI chat completions. Requires caller to have repo write permission.",
    "operationId": "AiChatCompletions",
    "parameters": [
      {
        "type": "string",
        "description": "仓库完整路径",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "AI chat completions params. The params may differ by model.",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.AiChatCompletionsReq"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.AiChatCompletionsResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/ai/chat/completions",
    "method": "post"
  },
  "repo.assets.delete": {
    "description": "通过 asset 记录 id 删除一个 asset，release和commit附件不能通过该接口删除\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
    "tags": [
      "Assets"
    ],
    "summary": "通过 asset 记录 id 删除一个 asset",
    "operationId": "DeleteAsset",
    "parameters": [
      {
        "type": "string",
        "description": "repo",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "format": "int64",
        "description": "asset id",
        "name": "assetID",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "422": {
        "description": "release和commit附件不能通过该接口删除",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "path": "/{repo}/-/assets/{assetID}",
    "method": "delete"
  },
  "repo.badge.git.get": {
    "tags": [
      "Badge"
    ],
    "summary": "获取徽章 svg 或 JSON 数据。Get badge svg or JSON data.",
    "operationId": "GetBadge",
    "parameters": [
      {
        "type": "string",
        "description": "仓库完整路径",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "latest 或 commit 8 位短 hash（例如 89d48c07）",
        "name": "sha",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "徽章名，例如 pr 事件徽章名为：ci/status/pull_request, 如需获取 JSON 数据，可加上 .json 后缀，如：ci/status/pull_request.json",
        "name": "badge",
        "in": "path",
        "required": true
      },
      {
        "description": "GetBadge params",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.GetBadgeReq"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.GetBadgeResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-commit-status:r",
    "path": "/{repo}/-/badge/git/{sha}/{badge}",
    "method": "get"
  },
  "repo.badge.list.get": {
    "tags": [
      "Badge"
    ],
    "summary": "获取徽章列表数据。List badge data",
    "operationId": "ListBadge",
    "parameters": [
      {
        "type": "string",
        "description": "仓库完整路径",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "ListBadge params",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.ListBadgeReq"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.ListBadgeResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-commit-status:r",
    "path": "/{repo}/-/badge/list",
    "method": "get"
  },
  "repo.badge.upload.post": {
    "tags": [
      "Badge"
    ],
    "summary": "上传徽章数据。Upload badge data",
    "operationId": "UploadBadge",
    "parameters": [
      {
        "type": "string",
        "description": "仓库完整路径",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "UploadBadge params",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.UploadBadgeReq"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.UploadBadgeResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-commit-status:rw",
    "path": "/{repo}/-/badge/upload",
    "method": "post"
  },
  "repo.build.crontab.sync.post": {
    "tags": [
      "Build"
    ],
    "summary": "同步仓库分支下的定时任务。 Synchronize the content under the repository branch.",
    "operationId": "BuildCrontabSync",
    "parameters": [
      {
        "type": "string",
        "description": "repo",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Branch",
        "name": "branch",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.BuildCommonResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-cnb-trigger:rw",
    "path": "/{repo}/-/build/crontab/sync/{branch}",
    "method": "post"
  },
  "repo.build.logs.get": {
    "tags": [
      "Build"
    ],
    "summary": "查询流水线构建列表。List pipeline builds.",
    "operationId": "GetBuildLogs",
    "parameters": [
      {
        "type": "string",
        "description": "Repo path",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Start date in \"YYYY-MM-DD\" format, e.g. \"2024-12-01\"",
        "name": "createTime",
        "in": "query"
      },
      {
        "type": "string",
        "description": "End date in \"YYYY-MM-DD\" format, e.g. \"2024-12-01\"",
        "name": "endTime",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Event name, e.g. \"push\"",
        "name": "event",
        "in": "query"
      },
      {
        "type": "integer",
        "description": "Pagination page number, default(1)",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "description": "Pagination page size, default(30), max(100)",
        "name": "page_size",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Commit ID, e.g. \"2221d4535ec0c921bcd0858627c5025a871dd2b5\"",
        "name": "sha",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Build SN, e.g. \"cnb-1qa-1i3f5ecau",
        "name": "sn",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Source branch name, e.g. \"dev\"",
        "name": "sourceRef",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Build status: \"pending\", \"success\", \"error\", \"cancel\"",
        "name": "status",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Target branch name, e.g. \"main\"",
        "name": "targetRef",
        "in": "query"
      },
      {
        "type": "string",
        "description": "User ID",
        "name": "userId",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Username",
        "name": "userName",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.BuildLogsResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-cnb-trigger:r",
    "path": "/{repo}/-/build/logs",
    "method": "get"
  },
  "repo.build.logs.stage.get": {
    "tags": [
      "Build"
    ],
    "summary": "查询流水线Stage详情。Get pipeline build stage detail.",
    "operationId": "GetBuildStage",
    "parameters": [
      {
        "type": "string",
        "description": "Repo path",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "SN",
        "name": "sn",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "PipelineId",
        "name": "pipelineId",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "stageId",
        "name": "stageId",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.BuildStageResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-cnb-trigger:r",
    "path": "/{repo}/-/build/logs/stage/{sn}/{pipelineId}/{stageId}",
    "method": "get"
  },
  "repo.build.logs.delete": {
    "tags": [
      "Build"
    ],
    "summary": "删除流水线日志内容。Delete pipeline logs content.",
    "operationId": "BuildLogsDelete",
    "parameters": [
      {
        "type": "string",
        "description": "Repo path",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Sn",
        "name": "sn",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.BuildCommonResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-cnb-trigger:rw",
    "path": "/{repo}/-/build/logs/{sn}",
    "method": "delete"
  },
  "repo.build.runner.download.log.get": {
    "tags": [
      "Build"
    ],
    "summary": "流水线runner日志下载。Pipeline runner log download.",
    "operationId": "BuildRunnerDownloadLog",
    "parameters": [
      {
        "type": "string",
        "description": "Repo path",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "PipelineId",
        "name": "pipelineId",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-cnb-trigger:r",
    "path": "/{repo}/-/build/runner/download/log/{pipelineId}",
    "method": "get"
  },
  "repo.build.start.post": {
    "tags": [
      "Build"
    ],
    "summary": "开始一个构建。Start a build.",
    "operationId": "StartBuild",
    "parameters": [
      {
        "type": "string",
        "description": "repo",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "Build params",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.StartBuildReq"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.BuildResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-cnb-trigger:rw",
    "path": "/{repo}/-/build/start",
    "method": "post"
  },
  "repo.build.status.get": {
    "tags": [
      "Build"
    ],
    "summary": "查询流水线构建状态。Get pipeline build status.",
    "operationId": "GetBuildStatus",
    "parameters": [
      {
        "type": "string",
        "description": "Repo path",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "SN",
        "name": "sn",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.BuildStatusResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-cnb-trigger:r",
    "path": "/{repo}/-/build/status/{sn}",
    "method": "get"
  },
  "repo.build.stop.post": {
    "tags": [
      "Build"
    ],
    "summary": "停止一个构建。 Stop a build.",
    "operationId": "StopBuild",
    "parameters": [
      {
        "type": "string",
        "description": "repo",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "SN",
        "name": "sn",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.BuildResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-cnb-trigger:rw",
    "path": "/{repo}/-/build/stop/{sn}",
    "method": "post"
  },
  "repo.commitAssets.download.get": {
    "tags": [
      "Git"
    ],
    "summary": "发起一个获取 commits 附件的请求， 302到有一定效期的下载地址。Get a request to fetch a commit assets and returns 302 redirect to the assets URL with specific valid time.",
    "operationId": "GetCommitAssets",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "提交的哈希值。",
        "name": "commit_id",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "文件名称。示例：`test.png`",
        "name": "filename",
        "in": "path",
        "required": true
      },
      {
        "type": "boolean",
        "default": false,
        "description": "是否可以下载，true表示302的下载地址有效期12小时，最多下载10次。",
        "name": "share",
        "in": "query"
      }
    ],
    "responses": {
      "302": {
        "description": "Found"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:r",
    "path": "/{repo}/-/commit-assets/download/{commit_id}/{filename}",
    "method": "get"
  },
  "repo.files.issues.get": {
    "tags": [
      "Issues"
    ],
    "summary": "获取 Issue 文件，返回文件二进制内容。Request to retrieve file of issues, returns binary content.",
    "operationId": "GetIssueFiles",
    "parameters": [
      {
        "type": "string",
        "description": "repo",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "文件路径，如果完整文件路径是 https://cnb.cool/cnb/feedback/-/files/issues/path/to/file.txt，则 file_path 是 path/to/file.txt",
        "name": "file_path",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
    "path": "/{repo}/-/files/issues/{file_path}",
    "method": "get"
  },
  "repo.files.pulls.get": {
    "tags": [
      "Pulls"
    ],
    "summary": "获取合并请求文件，返回文件二进制内容。Request to retrieve file of pull requests, returns binary content.",
    "operationId": "GetPrFiles",
    "parameters": [
      {
        "type": "string",
        "description": "repo",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "文件路径，如果完整文件路径是 https://cnb.cool/cnb/feedback/-/files/pulls/path/to/file.txt，则 file_path 是 path/to/file.txt",
        "name": "file_path",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
    "path": "/{repo}/-/files/pulls/{file_path}",
    "method": "get"
  },
  "repo.files.get": {
    "description": "当前接口只能获取到跟 issue 和合并请求无关联的文件，有关联的文件请使用 GetIssueFiles 和 GetPrFiles 接口。另外，后续版本该接口可能将被移出 Assets 分类\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:r",
    "tags": [
      "Assets",
      "Pulls",
      "Issues"
    ],
    "summary": "获取 issue 文件或合并请求文件的请求，返回文件二进制内容。Request to retrieve file of issues and pull requests, returns binary content.",
    "operationId": "GetFiles",
    "parameters": [
      {
        "type": "string",
        "description": "仓库路径",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "文件路径，如果完整文件路径是 https://cnb.cool/cnb/feedback/-/files/path/to/file.txt，则 filePath 是 path/to/file.txt",
        "name": "filePath",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "path": "/{repo}/-/files/{filePath}",
    "method": "get"
  },
  "repo.files.delete": {
    "description": "删除 UploadFiles 上传的附件\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
    "tags": [
      "Pulls",
      "Issues"
    ],
    "summary": "删除 UploadFiles 上传的附件",
    "operationId": "DeleteRepoFiles",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "文件访问链接的files后半部分，比如链接是 https://cnb.cool/cnb/feedback/-/files/abc/1234abcd/test.zip，filePath 就是 abc/1234abcd/test.zip。",
        "name": "filePath",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "path": "/{repo}/-/files/{filePath}",
    "method": "delete"
  },
  "repo.forks.get": {
    "tags": [
      "Repositories"
    ],
    "summary": "获取指定仓库的 fork 列表。Get fork list for specified repository.",
    "operationId": "ListForksRepos",
    "parameters": [
      {
        "type": "string",
        "description": "仓库路径。Repository path.",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "boolean",
        "default": false,
        "description": "是否从fork根节点开始展示。Whether to start from the root node of the fork.",
        "name": "start_from_root",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 1,
        "description": "页码。Pagination page number.",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "每页大小。Pagination page size.",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.ListForks"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-base-info:r",
    "path": "/{repo}/-/forks",
    "method": "get"
  },
  "repo.git.archiveCommitChangedFiles.get": {
    "tags": [
      "Git"
    ],
    "summary": "打包下载 commit 变更文件。Download archive of changed files for a commit.",
    "operationId": "GetArchiveCommitChangedFiles",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "提交的哈希值。",
        "name": "sha1",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/git/archive-commit-changed-files/{sha1}",
    "method": "get"
  },
  "repo.git.archiveCompareChangedFiles.get": {
    "tags": [
      "Git"
    ],
    "summary": "打包下载两次 ref 之间的变更文件。Download archive of changed files for a compare.",
    "operationId": "GetArchiveCompareChangedFiles",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "用于Git比较操作的基准和头部分支或提交的SHA值。格式：`base...head`",
        "name": "base_head",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/git/archive-compare-changed-files/{base_head}",
    "method": "get"
  },
  "repo.git.archive.get": {
    "tags": [
      "Git"
    ],
    "summary": "下载仓库内容",
    "operationId": "GetArchive",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "包含路径的Git引用。格式：`分支名`,`标签名`,`提交哈希`,`分支名/文件路径`,`标签名/文件路径`,`提交哈希/文件路径`",
        "name": "ref_with_path",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/git/archive/{ref_with_path}",
    "method": "get"
  },
  "repo.git.blobs.post": {
    "tags": [
      "Git"
    ],
    "summary": "创建一个 blob。Create a blob.",
    "operationId": "CreateBlob",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "PostBlobForm",
        "name": "post_blob_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PostBlobForm"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created",
        "schema": {
          "$ref": "#/definitions/api.Blob"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/git/blobs",
    "method": "post"
  },
  "repo.git.branchLocks.post": {
    "tags": [
      "Git"
    ],
    "summary": "锁定分支",
    "operationId": "CreateBranchLock",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "分支名称",
        "name": "branch",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "201": {
        "description": "Created"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/git/branch-locks/{branch}",
    "method": "post"
  },
  "repo.git.branchLocks.delete": {
    "tags": [
      "Git"
    ],
    "summary": "解除锁定分支",
    "operationId": "DeleteBranchLock",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "分支名称",
        "name": "branch",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "204": {
        "description": "No Content"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/git/branch-locks/{branch}",
    "method": "delete"
  },
  "repo.git.branches.list": {
    "tags": [
      "Git"
    ],
    "summary": "查询分支列表。List branches.",
    "operationId": "ListBranches",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小。",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.Branch"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/git/branches",
    "method": "get"
  },
  "repo.git.branches.post": {
    "tags": [
      "Git"
    ],
    "summary": "创建新分支。Create a new branch based on a start point.",
    "operationId": "CreateBranch",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "Create Branch Form",
        "name": "create_branch_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/openapi.CreateBranchForm"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/git/branches",
    "method": "post"
  },
  "repo.git.branches.get": {
    "tags": [
      "Git"
    ],
    "summary": "查询指定分支。Get a branch.",
    "operationId": "GetBranch",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "分支名称。",
        "name": "branch",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.BranchDetail"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/git/branches/{branch}",
    "method": "get"
  },
  "repo.git.branches.delete": {
    "tags": [
      "Git"
    ],
    "summary": "删除指定分支。Delete the specified branch.",
    "operationId": "DeleteBranch",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "分支名称。",
        "name": "branch",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/git/branches/{branch}",
    "method": "delete"
  },
  "repo.git.commitAnnotationsInBatch.post": {
    "tags": [
      "Git"
    ],
    "summary": "查询指定 commit 的元数据。Get commit annotations in batch.",
    "operationId": "GetCommitAnnotationsInBatch",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "Get Commit Annotations In Batch Form",
        "name": "get_commit_annotations_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/web.GetCommitAnnotationsInBatchForm"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/web.CommitAnnotationInBatch"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/git/commit-annotations-in-batch",
    "method": "post"
  },
  "repo.git.commitAnnotations.list": {
    "tags": [
      "Git"
    ],
    "summary": "查询指定 commit 的元数据。Get commit annotations.",
    "operationId": "GetCommitAnnotations",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "提交的哈希值。",
        "name": "sha",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/web.CommitAnnotation"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/git/commit-annotations/{sha}",
    "method": "get"
  },
  "repo.git.commitAnnotations.put": {
    "tags": [
      "Git"
    ],
    "summary": "设定指定 commit 的元数据。Put commit annotations.",
    "operationId": "PutCommitAnnotations",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "提交的哈希值。",
        "name": "sha",
        "in": "path",
        "required": true
      },
      {
        "description": "Put Commit Annotations Form",
        "name": "put_commit_annotations_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/openapi.PutCommitAnnotationsForm"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/git/commit-annotations/{sha}",
    "method": "put"
  },
  "repo.git.commitAnnotations.delete": {
    "tags": [
      "Git"
    ],
    "summary": "删除指定 commit 的元数据。Delete commit annotation.",
    "operationId": "DeleteCommitAnnotation",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "提交的哈希值。",
        "name": "sha",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "提交的元数据键名。",
        "name": "key",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/git/commit-annotations/{sha}/{key}",
    "method": "delete"
  },
  "repo.git.commitAssets.list": {
    "tags": [
      "Git"
    ],
    "summary": "查询指定 commit 的附件。List commit assets.",
    "operationId": "GetCommitAssetsBySha",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "提交的哈希值。",
        "name": "sha1",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.CommitAsset"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/git/commit-assets/{sha1}",
    "method": "get"
  },
  "repo.git.commitAssets.assetUploadConfirmation.post": {
    "tags": [
      "Git"
    ],
    "summary": "确认 commit 附件上传完成。Confirm commit asset upload.",
    "operationId": "PostCommitAssetUploadConfirmation",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "提交的哈希值。",
        "name": "sha1",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "PostCommitAssetUploadURL接口返回值verify_url字段提取的upload_token。",
        "name": "upload_token",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "PostCommitAssetUploadURL接口返回值verify_url字段提取的asset_path。",
        "name": "asset_path",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "format": "int64",
        "description": "附件保持的天数。0 表示永久，最大不能超过 180 天",
        "name": "ttl",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/git/commit-assets/{sha1}/asset-upload-confirmation/{upload_token}/{asset_path}",
    "method": "post"
  },
  "repo.git.commitAssets.assetUploadUrl.post": {
    "tags": [
      "Git"
    ],
    "summary": "新增一个 commit 附件。Create a commit asset.",
    "operationId": "PostCommitAssetUploadURL",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "提交的哈希值。",
        "name": "sha1",
        "in": "path",
        "required": true
      },
      {
        "description": "Post Commit Asset Upload URL Form",
        "name": "create_commit_asset_upload_url_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/openapi.PostCommitAssetUploadURLForm"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created",
        "schema": {
          "$ref": "#/definitions/openapi.CommitAssetUploadURL"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/git/commit-assets/{sha1}/asset-upload-url",
    "method": "post"
  },
  "repo.git.commitAssets.delete": {
    "tags": [
      "Git"
    ],
    "summary": "删除指定 commit 的附件。Delete commit asset.",
    "operationId": "DeleteCommitAsset",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "提交的哈希值。",
        "name": "sha1",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "附件唯一标识符。",
        "name": "asset_id",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "204": {
        "description": "No Content"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/git/commit-assets/{sha1}/{asset_id}",
    "method": "delete"
  },
  "repo.git.commitStatuses.list": {
    "tags": [
      "Git"
    ],
    "summary": "查询指定 commit 的提交状态。List commit check statuses.",
    "operationId": "GetCommitStatuses",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Git引用标识符。格式：`分支名称`,`提交哈希值`,`标签名称`",
        "name": "commitish",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/git_woa_com_cnb_monorepo_git_internal_app_git_service_bff_api.CommitStatus"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/git/commit-statuses/{commitish}",
    "method": "get"
  },
  "repo.git.commits.list": {
    "tags": [
      "Git"
    ],
    "summary": "查询 commit 列表。List commits.",
    "operationId": "ListCommits",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "提交标识符。格式：`分支名称`,`提交哈希值`",
        "name": "sha",
        "in": "query"
      },
      {
        "type": "string",
        "description": "作者匹配模式，支持Git原生正则表达式匹配作者信息。",
        "name": "author",
        "in": "query"
      },
      {
        "type": "string",
        "description": "提交者匹配模式，支持Git原生正则表达式匹配提交者信息。",
        "name": "committer",
        "in": "query"
      },
      {
        "type": "string",
        "description": "提交时间起始范围。示例：`2025-01-01T00:00:00Z`",
        "name": "since",
        "in": "query"
      },
      {
        "type": "string",
        "description": "提交时间结束范围。示例：`2025-12-31T23:59:59Z`",
        "name": "until",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小。",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.Commit"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/git/commits",
    "method": "get"
  },
  "repo.git.commits.get": {
    "tags": [
      "Git"
    ],
    "summary": "查询指定 commit。Get a commit.",
    "operationId": "GetCommit",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "提交的哈希值或分支名称。",
        "name": "ref",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Commit"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/git/commits/{ref}",
    "method": "get"
  },
  "repo.git.compare.get": {
    "tags": [
      "Git"
    ],
    "summary": "比较两个提交、分支或标签之间差异的接口。Compare two commits, branches, or tags.",
    "operationId": "GetCompareCommits",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "用于Git比较操作的基准和头部分支或提交的SHA值。格式：`base...head`",
        "name": "base_head",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.CompareResponse"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/git/compare/{base_head}",
    "method": "get"
  },
  "repo.git.contents.getWithoutPath": {
    "tags": [
      "Git"
    ],
    "summary": "查询仓库文件和目录内容。List repository files and directories.",
    "operationId": "GetContentWithoutPath",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "提交的哈希值或分支名称。",
        "name": "ref",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Content"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/git/contents",
    "method": "get"
  },
  "repo.git.contents.get": {
    "tags": [
      "Git"
    ],
    "summary": "查询仓库文件列表或文件。List repository files or file.",
    "operationId": "GetContent",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "文件路径。",
        "name": "file_path",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "提交的哈希值或分支名称。",
        "name": "ref",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Content"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/git/contents/{file_path}",
    "method": "get"
  },
  "repo.git.head.get": {
    "tags": [
      "Git"
    ],
    "summary": "获取仓库默认分支。Get the default branch of the repository.",
    "operationId": "GetHead",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/openapi.HeadRef"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/git/head",
    "method": "get"
  },
  "repo.git.raw.get": {
    "tags": [
      "Git"
    ],
    "summary": "获得仓库指定文件内容",
    "operationId": "GetRaw",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "包含路径的Git引用。格式：`分支名/文件路径`,`标签名/文件路径`,`提交哈希/文件路径`",
        "name": "ref_with_path",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 0,
        "description": "获得文件内容大小限制（字节），0表示使用gitConfig.RawFileLimitInByte配置值。",
        "name": "max_in_byte",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "string"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/git/raw/{ref_with_path}",
    "method": "get"
  },
  "repo.git.tagAnnotations.delete": {
    "tags": [
      "Git"
    ],
    "summary": "删除指定 tag 的元数据。Delete the metadata of the specified tag.",
    "operationId": "DeleteTagAnnotation",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "tag元数据名称。格式：`标签名称/元数据key`",
        "name": "tag_with_key",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:rw",
    "path": "/{repo}/-/git/tag-annotations/{tag_with_key}",
    "method": "delete"
  },
  "repo.git.tagAnnotations.list": {
    "tags": [
      "Git"
    ],
    "summary": "查询指定 tag 的元数据。Query the metadata of the specified tag.",
    "operationId": "GetTagAnnotations",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "标签名称。示例：`v1.0.0`",
        "name": "tag",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/web.TagAnnotation"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:r",
    "path": "/{repo}/-/git/tag-annotations/{tag}",
    "method": "get"
  },
  "repo.git.tagAnnotations.put": {
    "tags": [
      "Git"
    ],
    "summary": "设定指定 tag 的元数据。Set the metadata of the specified tag.",
    "operationId": "PutTagAnnotations",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "标签名称。示例：`v1.0.0`",
        "name": "tag",
        "in": "path",
        "required": true
      },
      {
        "description": "Put Tag Annotations Form",
        "name": "put_tag_annotations_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/openapi.PutTagAnnotationsForm"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:rw",
    "path": "/{repo}/-/git/tag-annotations/{tag}",
    "method": "put"
  },
  "repo.git.tags.list": {
    "tags": [
      "Git"
    ],
    "summary": "查询 tag 列表。List tags.",
    "operationId": "ListTags",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小。",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.Tag"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:r",
    "path": "/{repo}/-/git/tags",
    "method": "get"
  },
  "repo.git.tags.post": {
    "tags": [
      "Git"
    ],
    "summary": "创建一个 tag。Create a tag.",
    "operationId": "CreateTag",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "PostTagFrom",
        "name": "post_tag_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PostTagFrom"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created",
        "schema": {
          "$ref": "#/definitions/api.Tag"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/git/tags",
    "method": "post"
  },
  "repo.git.tags.get": {
    "tags": [
      "Git"
    ],
    "summary": "查询指定 tag。Get a tag.",
    "operationId": "GetTag",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "标签名称。示例：`v1.0.0`",
        "name": "tag",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Tag"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:r",
    "path": "/{repo}/-/git/tags/{tag}",
    "method": "get"
  },
  "repo.git.tags.delete": {
    "tags": [
      "Git"
    ],
    "summary": "删除指定 tag。Delete the specified tag.",
    "operationId": "DeleteTag",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "标签名称。示例：`v1.0.0`",
        "name": "tag",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "204": {
        "description": "No Content"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:rw",
    "path": "/{repo}/-/git/tags/{tag}",
    "method": "delete"
  },
  "repo.imgs.issues.get": {
    "tags": [
      "Issues"
    ],
    "summary": "获取 Issue 图片，返回图片二进制内容。Request to retrieve image of issues, returns binary content.",
    "operationId": "GetIssueImgs",
    "parameters": [
      {
        "type": "string",
        "description": "repo",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "图片路径，如果完整图片路径是 https://cnb.cool/cnb/feedback/-/imgs/issues/path/to/image.png，则 img_path 是 path/to/image.png",
        "name": "img_path",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
    "path": "/{repo}/-/imgs/issues/{img_path}",
    "method": "get"
  },
  "repo.imgs.pulls.get": {
    "tags": [
      "Pulls"
    ],
    "summary": "获取合并请求图片，返回图片二进制内容。Request to retrieve image of pull requests, returns binary content.",
    "operationId": "GetPrImgs",
    "parameters": [
      {
        "type": "string",
        "description": "repo",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "图片路径，如果完整图片路径是 https://cnb.cool/cnb/feedback/-/imgs/pulls/path/to/image.png，则 img_path 是 path/to/image.png",
        "name": "img_path",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
    "path": "/{repo}/-/imgs/pulls/{img_path}",
    "method": "get"
  },
  "repo.imgs.get": {
    "description": "当前接口只能获取到跟 issue 和合并请求无关联的图片，有关联的图片请使用 GetIssueImgs 和 GetPrImgs 接口。另外，后续版本该接口可能将被移出 Assets 分类\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:r",
    "tags": [
      "Assets",
      "Pulls",
      "Issues"
    ],
    "summary": "获取 issue 图片或合并请求图片的请求，返回图片二进制内容。Request to retrieve image of issues and pull requests, returns binary content.",
    "operationId": "GetImgs",
    "parameters": [
      {
        "type": "string",
        "description": "仓库路径",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "图片路径，如果完整图片路径是 https://cnb.cool/cnb/feedback/-/imgs/to/img.png，则 imgPath 是 to/img.png",
        "name": "imgPath",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "path": "/{repo}/-/imgs/{imgPath}",
    "method": "get"
  },
  "repo.imgs.delete": {
    "description": "删除 UploadImgs 上传的图片\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
    "tags": [
      "Pulls",
      "Issues"
    ],
    "summary": "删除 UploadImgs 上传的图片",
    "operationId": "DeleteRepoImgs",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "图片访问链接的imgs后半部分，比如链接是 https://cnb.cool/cnb/feedback/-/imgs/abc/1234abcd.png，imgPath 就是 abc/1234abcd.png。",
        "name": "imgPath",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "path": "/{repo}/-/imgs/{imgPath}",
    "method": "delete"
  },
  "repo.inheritMembers.list": {
    "tags": [
      "Members"
    ],
    "summary": "获取指定仓库内的继承成员。List inherited members within specified repository。",
    "operationId": "ListInheritMembersOfRepo",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "default": "",
        "description": "过滤成员。Filter by member",
        "name": "search",
        "in": "query"
      },
      {
        "enum": [
          "Guest",
          "Reporter",
          "Developer",
          "Master",
          "Owner"
        ],
        "type": "string",
        "description": "Role",
        "name": "role",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.ListInheritMembers"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
    "path": "/{repo}/-/inherit-members",
    "method": "get"
  },
  "repo.issues.list": {
    "tags": [
      "Issues"
    ],
    "summary": "查询仓库的 Issues。List issues.",
    "operationId": "ListIssues",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码，输入值小于1，则调整为1。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小，输入值小于0，则调整为10;输入值大于100，则调整为100。",
        "name": "page_size",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue状态过滤。可选值：`open`、`closed`",
        "name": "state",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue搜索关键词，支持在标题和内容中模糊搜索。",
        "name": "keyword",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue优先级过滤。示例：`-2P,-1P,P0,P1,P2,P3`",
        "name": "priority",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue标签过滤。示例：`git,bug,feature`",
        "name": "labels",
        "in": "query"
      },
      {
        "type": "string",
        "default": "contains_any",
        "description": "标签过滤操作符。可选值：`contains_any`,`contains_all`",
        "name": "labels_operator",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue创建者过滤，多个作者用英文逗号分隔。示例：`张三,李四`",
        "name": "authors",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue处理人过滤，多个处理人用英文逗号分隔，-表示未分配处理人。示例：`张三,李四`,`-`",
        "name": "assignees",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue更新时间范围开始。示例：`2022-01-31`",
        "name": "updated_time_begin",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue更新时间范围结束。示例：`2022-02-16`",
        "name": "updated_time_end",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue关闭时间范围开始。示例：`2022-01-31`",
        "name": "close_time_begin",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue关闭时间范围结束。示例：`2022-02-16`",
        "name": "close_time_end",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Issue排序字段，-前缀表示倒序。可选值：`created_at`,`-created_at`,`-updated_at`,`-last_acted_at`",
        "name": "order_by",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.Issue"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
    "path": "/{repo}/-/issues",
    "method": "get"
  },
  "repo.issues.post": {
    "tags": [
      "Issues"
    ],
    "summary": "创建一个 Issue。Create an issue.",
    "operationId": "CreateIssue",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "Post Issue Form",
        "name": "post_issue_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PostIssueForm"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created",
        "schema": {
          "$ref": "#/definitions/api.IssueDetail"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
    "path": "/{repo}/-/issues",
    "method": "post"
  },
  "repo.issues.get": {
    "tags": [
      "Issues"
    ],
    "summary": "查询指定的 Issues。Get an issue.",
    "operationId": "GetIssue",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.IssueDetail"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
    "path": "/{repo}/-/issues/{number}",
    "method": "get"
  },
  "repo.issues.patch": {
    "tags": [
      "Issues"
    ],
    "summary": "更新一个 Issue。Update an issue.",
    "operationId": "UpdateIssue",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Patch Issue Form",
        "name": "patch_issue_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PatchIssueForm"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.IssueDetail"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
    "path": "/{repo}/-/issues/{number}",
    "method": "patch"
  },
  "repo.issues.activities.list": {
    "tags": [
      "Issues"
    ],
    "summary": "查询指定 Issue 的 Timeline Activity",
    "operationId": "ListIssueActivities",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小。",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.IssueActivity"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
    "path": "/{repo}/-/issues/{number}/activities",
    "method": "get"
  },
  "repo.issues.activities.latest.list": {
    "tags": [
      "Issues"
    ],
    "summary": "查询某一动态之后的 Issue Activity",
    "operationId": "ListIssueActivitiesLatest",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Activity ID，查询此 ID 之后的动态。",
        "name": "id",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.IssueActivity"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
    "path": "/{repo}/-/issues/{number}/activities/latest/{id}",
    "method": "get"
  },
  "repo.issues.assignees.list": {
    "tags": [
      "Issues"
    ],
    "summary": "查询指定 issue 的处理人。 List repository issue assignees.",
    "operationId": "ListIssueAssignees",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.UserInfo"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
    "path": "/{repo}/-/issues/{number}/assignees",
    "method": "get"
  },
  "repo.issues.assignees.post": {
    "tags": [
      "Issues"
    ],
    "summary": "添加处理人到指定的 issue。  Adds up to assignees to a issue, Users already assigned to an issue are not replaced.",
    "operationId": "PostIssueAssignees",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Post Issue Assignees Form",
        "name": "post_issue_assignees_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PostIssueAssigneesForm"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created",
        "schema": {
          "$ref": "#/definitions/api.IssueDetail"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
    "path": "/{repo}/-/issues/{number}/assignees",
    "method": "post"
  },
  "repo.issues.assignees.delete": {
    "tags": [
      "Issues"
    ],
    "summary": "删除 issue 中的处理人。 Removes one or more assignees from an issue.",
    "operationId": "DeleteIssueAssignees",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Delete Issue Assignees Form",
        "name": "delete_issue_assignees_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.DeleteIssueAssigneesForm"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.IssueDetail"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
    "path": "/{repo}/-/issues/{number}/assignees",
    "method": "delete"
  },
  "repo.issues.assignees.patch": {
    "tags": [
      "Issues"
    ],
    "summary": "更新 issue 中的处理人。 Updates the assignees of an issue.",
    "operationId": "PatchIssueAssignees",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Patch Issue Assignees Form",
        "name": "patch_issue_assignees_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PatchIssueAssigneesForm"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.IssueDetail"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
    "path": "/{repo}/-/issues/{number}/assignees",
    "method": "patch"
  },
  "repo.issues.assignees.get": {
    "tags": [
      "Issues"
    ],
    "summary": "检查用户是否可以被添加到 issue 的处理人中。 Checks if a user can be assigned to an issue.",
    "operationId": "CanUserBeAssignedToIssue",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Issue处理人用户名。",
        "name": "assignee",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "204": {
        "description": "No Content"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
    "path": "/{repo}/-/issues/{number}/assignees/{assignee}",
    "method": "get"
  },
  "repo.issues.commentFileAssetUploadUrl.post": {
    "tags": [
      "Issues"
    ],
    "summary": "创建一个 Issue 评论的文件上传 url。请使用 put 发起流式上传到 upload_url 地址。上传完成后将 asset_link 添加到创建评论请求的 body 中。 Create a file upload URL for an Issue comment. Please use put to initiate a stream upload to the upload_url address. After uploading, add the asset_link to the body of the create comment request.",
    "operationId": "PostIssueCommentFileAssetUploadURL",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "仓库内 Issue 唯一编号",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Post Issue Comment Upload URL Form",
        "name": "post_issue_upload_url_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PostIssueAssetUploadURLForm"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created",
        "schema": {
          "$ref": "#/definitions/api.IssueAssetUploadURL"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
    "path": "/{repo}/-/issues/{number}/comment-file-asset-upload-url",
    "method": "post"
  },
  "repo.issues.commentImageAssetUploadUrl.post": {
    "tags": [
      "Issues"
    ],
    "summary": "创建一个 Issue 评论的图片上传 url。请使用 put 发起流式上传到 upload_url 地址。上传完成后将 asset_link 添加到创建评论请求的 body 中。Create an image upload URL for an Issue comment. Please use put to initiate a stream upload to the upload_url address. After uploading, add the asset_link to the body of the create comment request.",
    "operationId": "PostIssueCommentImageAssetUploadURL",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "仓库内 Issue 唯一编号",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Post Issue Comment Upload URL Form",
        "name": "post_issue_upload_url_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PostIssueAssetUploadURLForm"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created",
        "schema": {
          "$ref": "#/definitions/api.IssueAssetUploadURL"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
    "path": "/{repo}/-/issues/{number}/comment-image-asset-upload-url",
    "method": "post"
  },
  "repo.issues.comments.list": {
    "tags": [
      "Issues"
    ],
    "summary": "查询仓库的 issue 评论列表。List repository issue comments.",
    "operationId": "ListIssueComments",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "default": "created",
        "description": "排序方式。支持 created, updated 升序; -created, -updated 降序",
        "name": "sort",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小。",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.IssueComment"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
    "path": "/{repo}/-/issues/{number}/comments",
    "method": "get"
  },
  "repo.issues.comments.post": {
    "tags": [
      "Issues"
    ],
    "summary": "创建一个 issue 评论。Create an issue comment.",
    "operationId": "PostIssueComment",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Post Issue Comment Form",
        "name": "post_issue_comment_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PostIssueCommentForm"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created",
        "schema": {
          "$ref": "#/definitions/api.IssueComment"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
    "path": "/{repo}/-/issues/{number}/comments",
    "method": "post"
  },
  "repo.issues.comments.get": {
    "tags": [
      "Issues"
    ],
    "summary": "获取指定 issue 评论。Get an issue comment.",
    "operationId": "GetIssueComment",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue评论唯一标识编号。",
        "name": "comment_id",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.IssueComment"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
    "path": "/{repo}/-/issues/{number}/comments/{comment_id}",
    "method": "get"
  },
  "repo.issues.comments.patch": {
    "tags": [
      "Issues"
    ],
    "summary": "修改一个 issue 评论。Update an issue comment.",
    "operationId": "PatchIssueComment",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue评论唯一标识编号。",
        "name": "comment_id",
        "in": "path",
        "required": true
      },
      {
        "description": "Patch Issue Comment Form",
        "name": "patch_issue_comment_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PatchIssueCommentForm"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.IssueComment"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
    "path": "/{repo}/-/issues/{number}/comments/{comment_id}",
    "method": "patch"
  },
  "repo.issues.labels.list": {
    "tags": [
      "Issues"
    ],
    "summary": "查询 issue 的标签列表。List labels for an issue.",
    "operationId": "ListIssueLabels",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小。",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.Label"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
    "path": "/{repo}/-/issues/{number}/labels",
    "method": "get"
  },
  "repo.issues.labels.put": {
    "tags": [
      "Issues"
    ],
    "summary": "设置 issue 标签。 Set the new labels for an issue.",
    "operationId": "PutIssueLabels",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Put Issue Labels Form",
        "name": "put_issue_labels_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PutIssueLabelsForm"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Label"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
    "path": "/{repo}/-/issues/{number}/labels",
    "method": "put"
  },
  "repo.issues.labels.post": {
    "tags": [
      "Issues"
    ],
    "summary": "新增 issue 标签。Add labels to an issue.",
    "operationId": "PostIssueLabels",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Post Issue Labels Form",
        "name": "post_issue_labels_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PostIssueLabelsForm"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Label"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
    "path": "/{repo}/-/issues/{number}/labels",
    "method": "post"
  },
  "repo.issues.labels.delete": {
    "tags": [
      "Issues"
    ],
    "summary": "清空 issue 标签。Remove all labels from an issue.",
    "operationId": "DeleteIssueLabels",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "204": {
        "description": "No Content"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
    "path": "/{repo}/-/issues/{number}/labels",
    "method": "delete"
  },
  "repo.issues.labels.deleteByName": {
    "tags": [
      "Issues"
    ],
    "summary": "删除 issue 标签。Remove a label from an issue.",
    "operationId": "DeleteIssueLabel",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "标签名称。",
        "name": "name",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Label"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
    "path": "/{repo}/-/issues/{number}/labels/{name}",
    "method": "delete"
  },
  "repo.issues.property.list": {
    "description": "返回该Issue已设置的所有自定义属性及其值。\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
    "tags": [
      "Issues"
    ],
    "summary": "查询指定Issue的自定义属性列表。Get issue custom properties.",
    "operationId": "GetIssueProperties",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.IssueProperty"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "path": "/{repo}/-/issues/{number}/property",
    "method": "get"
  },
  "repo.issues.property.patch": {
    "description": "为指定Issue批量更新多个自定义属性的值，要求属性 key 必须已存在，允许部分失败\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
    "tags": [
      "Issues"
    ],
    "summary": "批量更新Issue自定义属性值",
    "operationId": "UpdateIssueProperties",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Issue唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Issue Properties Form",
        "name": "issue_properties_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/openapi.IssuePropertiesForm"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.IssuePropertyUpdateResult"
        }
      },
      "400": {
        "description": "Bad Request",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "path": "/{repo}/-/issues/{number}/property",
    "method": "patch"
  },
  "repo.knowledge.base.get": {
    "tags": [
      "KnowledgeBase"
    ],
    "summary": "获取知识库信息",
    "operationId": "GetKnowledgeBaseInfo",
    "parameters": [
      {
        "type": "string",
        "description": "repo",
        "name": "repo",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.KnowledgeBaseInfoRes"
        }
      },
      "404": {
        "description": "Not Found"
      },
      "500": {
        "description": "Internal Server Error"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/knowledge/base",
    "method": "get"
  },
  "repo.knowledge.base.delete": {
    "tags": [
      "KnowledgeBase"
    ],
    "summary": "删除知识库",
    "operationId": "DeleteKnowledgeBase",
    "parameters": [
      {
        "type": "string",
        "description": "repo",
        "name": "repo",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "404": {
        "description": "Not Found"
      },
      "500": {
        "description": "Internal Server Error"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/knowledge/base",
    "method": "delete"
  },
  "repo.knowledge.base.query.post": {
    "tags": [
      "KnowledgeBase"
    ],
    "summary": "查询知识库，使用文档：https://docs.cnb.cool/zh/ai/knowledge-base.html",
    "operationId": "QueryKnowledgeBase",
    "parameters": [
      {
        "type": "string",
        "description": "repo",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "查询内容",
        "name": "query",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.QueryKnowledgeBaseReq"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.QueryKnowledgeBaseRes"
          }
        }
      },
      "400": {
        "description": "Bad Request"
      },
      "500": {
        "description": "Internal Server Error"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/knowledge/base/query",
    "method": "post"
  },
  "repo.knowledge.embedding.models.list": {
    "tags": [
      "KnowledgeBase"
    ],
    "summary": "获取当前支持的 Embedding 模型列表",
    "operationId": "GetModels",
    "parameters": [
      {
        "type": "string",
        "description": "repo",
        "name": "repo",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.EmbeddingModel"
          }
        }
      },
      "400": {
        "description": "Bad Request"
      },
      "500": {
        "description": "Internal Server Error"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/knowledge/embedding/models",
    "method": "get"
  },
  "repo.labels.list": {
    "tags": [
      "RepoLabels"
    ],
    "summary": "查询仓库的标签列表。List repository labels.",
    "operationId": "ListLabels",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小。",
        "name": "page_size",
        "in": "query"
      },
      {
        "type": "string",
        "description": "标签搜索关键词，支持模糊匹配。",
        "name": "keyword",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.Label"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
    "path": "/{repo}/-/labels",
    "method": "get"
  },
  "repo.labels.post": {
    "tags": [
      "RepoLabels"
    ],
    "summary": "创建一个 标签。Create a label.",
    "operationId": "PostLabel",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "Post Label Form",
        "name": "post_label_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PostLabelForm"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created",
        "schema": {
          "$ref": "#/definitions/api.Label"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
    "path": "/{repo}/-/labels",
    "method": "post"
  },
  "repo.labels.delete": {
    "tags": [
      "RepoLabels"
    ],
    "summary": "删除指定的仓库标签。Delete the specified repository label.",
    "operationId": "DeleteLabel",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "标签名称。",
        "name": "name",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "204": {
        "description": "No Content"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
    "path": "/{repo}/-/labels/{name}",
    "method": "delete"
  },
  "repo.labels.patch": {
    "tags": [
      "RepoLabels"
    ],
    "summary": "更新标签信息。Update label information.",
    "operationId": "PatchLabel",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "标签名称。",
        "name": "name",
        "in": "path",
        "required": true
      },
      {
        "description": "Patch Label Form",
        "name": "patch_label_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PatchLabelForm"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Label"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
    "path": "/{repo}/-/labels/{name}",
    "method": "patch"
  },
  "repo.members.list": {
    "tags": [
      "Members"
    ],
    "summary": "获取指定仓库内的所有直接成员。List all direct members within specified repository.",
    "operationId": "ListMembersOfRepo",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      },
      {
        "enum": [
          "Guest",
          "Reporter",
          "Developer",
          "Master",
          "Owner"
        ],
        "type": "string",
        "description": "Role",
        "name": "role",
        "in": "query"
      },
      {
        "type": "string",
        "default": "",
        "description": "过滤成员。Filter by member.",
        "name": "search",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.UsersWithAccessLevelInSlug"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
    "path": "/{repo}/-/members",
    "method": "get"
  },
  "repo.members.accessLevel.get": {
    "tags": [
      "Members"
    ],
    "summary": "获取指定仓库内, 访问成员在当前层级内的权限信息。Get permission information for accessing members at current level.",
    "operationId": "GetMemberAccessLevelOfRepo",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "boolean",
        "default": true,
        "description": "是否包含继承的权限。If inherited permissions are included.",
        "name": "include_inherit",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.MemberAccessLevelInSlugUnion"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
    "path": "/{repo}/-/members/access-level",
    "method": "get"
  },
  "repo.members.put": {
    "tags": [
      "Members"
    ],
    "summary": "更新指定仓库内的直接成员权限信息。Update permission information for direct members in specified repository.",
    "operationId": "UpdateMembersOfRepo",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "username",
        "name": "username",
        "in": "path",
        "required": true
      },
      {
        "description": "member information",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.UpdateMembersRequest"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
    "path": "/{repo}/-/members/{username}",
    "method": "put"
  },
  "repo.members.post": {
    "tags": [
      "Members"
    ],
    "summary": "添加成员。Add members.",
    "operationId": "AddMembersOfRepo",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "username",
        "name": "username",
        "in": "path",
        "required": true
      },
      {
        "description": "member information",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.UpdateMembersRequest"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
    "path": "/{repo}/-/members/{username}",
    "method": "post"
  },
  "repo.members.delete": {
    "tags": [
      "Members"
    ],
    "summary": "删除指定仓库的直接成员。Remove direct members from specified repository.",
    "operationId": "DeleteMembersOfRepo",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "username",
        "name": "username",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
    "path": "/{repo}/-/members/{username}",
    "method": "delete"
  },
  "repo.members.accessLevel.list": {
    "tags": [
      "Members"
    ],
    "summary": "获取指定仓库内指定成员的权限信息, 结果按组织层级来展示, 包含上层组织的权限继承信息。Get specified member's permissions with organizational hierarchy.",
    "operationId": "ListMemberAccessLevelOfRepo",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "username",
        "name": "username",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.MemberAccessLevel"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
    "path": "/{repo}/-/members/{username}/access-level",
    "method": "get"
  },
  "repo.property.list": {
    "description": "返回该仓库中已设置为可见的自定义属性定义信息（key、显示名称、类型等）。\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
    "tags": [
      "Issues"
    ],
    "summary": "查询仓库可见的自定义属性列表。List repository visible custom properties.",
    "operationId": "ListRepoVisibleProperties",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.RepoProperty"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "path": "/{repo}/-/property",
    "method": "get"
  },
  "repo.property.invisible.list": {
    "description": "分页获取该仓库中已设置为不可见的自定义属性定义信息（key、显示名称、类型），支持关键字搜索。\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
    "tags": [
      "Issues"
    ],
    "summary": "查询仓库不可见的自定义属性列表。List repository invisible custom properties.",
    "operationId": "ListRepoInvisibleProperties",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "页码，默认1。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "description": "每页数量，默认10。",
        "name": "page_size",
        "in": "query"
      },
      {
        "type": "string",
        "description": "搜索关键字。",
        "name": "keyword",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.RepoProperty"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "path": "/{repo}/-/property/invisible",
    "method": "get"
  },
  "repo.pullInBatch.list": {
    "tags": [
      "Pulls"
    ],
    "summary": "根据 number 列表查询合并请求列表。List pull requests by numbers.",
    "operationId": "ListPullsByNumbers",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "array",
        "items": {
          "type": "integer"
        },
        "collectionFormat": "csv",
        "description": "Pull唯一标识编号",
        "name": "n",
        "in": "query",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.PullRequestInfo"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
    "path": "/{repo}/-/pull-in-batch",
    "method": "get"
  },
  "repo.pulls.list": {
    "tags": [
      "Pulls"
    ],
    "summary": "查询合并请求列表。List pull requests.",
    "operationId": "ListPulls",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小。",
        "name": "page_size",
        "in": "query"
      },
      {
        "type": "string",
        "default": "open",
        "description": "合并请求状态过滤。可选值：`open`,`closed`,`all`",
        "name": "state",
        "in": "query"
      },
      {
        "type": "string",
        "description": "作者名称过滤。示例值：`张三,李四`",
        "name": "authors",
        "in": "query"
      },
      {
        "type": "string",
        "description": "评审人名称过滤，-表示无评审人。示例值：`张三,李四`,`-`",
        "name": "reviewers",
        "in": "query"
      },
      {
        "type": "string",
        "default": "contains_any",
        "description": "评审者操作符。示例值：`contains_any`,`contains_all`",
        "name": "reviewers_operator",
        "in": "query"
      },
      {
        "type": "string",
        "description": "处理人名称过滤，-表示无处理人。示例值：`张三,李四`,`-`",
        "name": "assignees",
        "in": "query"
      },
      {
        "type": "string",
        "default": "contains_any",
        "description": "处理人操作符。示例值：`contains_any`,`contains_all`",
        "name": "assignees_operator",
        "in": "query"
      },
      {
        "type": "string",
        "description": "标签过滤。示例值：`git,bug,feature`",
        "name": "labels",
        "in": "query"
      },
      {
        "type": "string",
        "default": "contains_any",
        "description": "标签操作符。示例值：`contains_any`,`contains_all`",
        "name": "labels_operator",
        "in": "query"
      },
      {
        "type": "string",
        "description": "目标分支引用。示例值：`master`",
        "name": "base_ref",
        "in": "query"
      },
      {
        "type": "string",
        "description": "合并请求更新时间范围开始。示例：`2022-01-31`",
        "name": "updated_time_begin",
        "in": "query"
      },
      {
        "type": "string",
        "description": "合并请求更新时间范围结束。示例：`2022-02-16`",
        "name": "updated_time_end",
        "in": "query"
      },
      {
        "type": "string",
        "default": "-created_at",
        "description": "合并请求排序字段，-前缀表示倒序。可选值：`created_at`,`-created_at`,`-updated_at`",
        "name": "order_by",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.PullRequest"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
    "path": "/{repo}/-/pulls",
    "method": "get"
  },
  "repo.pulls.post": {
    "tags": [
      "Pulls"
    ],
    "summary": "新增一个合并请求。Create a pull request.",
    "operationId": "PostPull",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "Post Pull Request Form",
        "name": "post_pull_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PullCreationForm"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created",
        "schema": {
          "$ref": "#/definitions/api.Pull"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
    "path": "/{repo}/-/pulls",
    "method": "post"
  },
  "repo.pulls.get": {
    "tags": [
      "Pulls"
    ],
    "summary": "查询指定合并请求。Get a pull request.",
    "operationId": "GetPull",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Pull"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
    "path": "/{repo}/-/pulls/{number}",
    "method": "get"
  },
  "repo.pulls.patch": {
    "tags": [
      "Pulls"
    ],
    "summary": "更新一个合并请求。Update a pull request.",
    "operationId": "PatchPull",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Update Pull Request Form",
        "name": "update_pull_request_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PatchPullRequest"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Pull"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
    "path": "/{repo}/-/pulls/{number}",
    "method": "patch"
  },
  "repo.pulls.assignees.list": {
    "tags": [
      "Pulls"
    ],
    "summary": "查询指定合并请求的处理人。List repository pull request assignees.",
    "operationId": "ListPullAssignees",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.UserInfo"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
    "path": "/{repo}/-/pulls/{number}/assignees",
    "method": "get"
  },
  "repo.pulls.assignees.post": {
    "tags": [
      "Pulls"
    ],
    "summary": "添加处理人到指定的合并请求。 Adds up to assignees to a pull request. Users already assigned to an issue are not replaced.",
    "operationId": "PostPullAssignees",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Post Pull Assignees Form",
        "name": "post_pull_assignees_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PostPullAssigneesForm"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created",
        "schema": {
          "$ref": "#/definitions/api.Pull"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
    "path": "/{repo}/-/pulls/{number}/assignees",
    "method": "post"
  },
  "repo.pulls.assignees.delete": {
    "tags": [
      "Pulls"
    ],
    "summary": "删除合并请求中的处理人 Removes one or more assignees from a pull request.",
    "operationId": "DeletePullAssignees",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Delete Pull Assignees Form",
        "name": "delete_pull_assignees_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.DeletePullAssigneesForm"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Pull"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
    "path": "/{repo}/-/pulls/{number}/assignees",
    "method": "delete"
  },
  "repo.pulls.assignees.get": {
    "tags": [
      "Pulls"
    ],
    "summary": "检查用户是否可以被添加到合并请求的处理人中。 Checks if a user can be assigned to a pull request.",
    "operationId": "CanUserBeAssignedToPull",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "待检查的处理人用户名。",
        "name": "assignee",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "204": {
        "description": "No Content"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
    "path": "/{repo}/-/pulls/{number}/assignees/{assignee}",
    "method": "get"
  },
  "repo.pulls.comments.list": {
    "tags": [
      "Pulls"
    ],
    "summary": "查询合并请求评论列表。List pull comments requests.",
    "operationId": "ListPullComments",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小。",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.PullRequestComment"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
    "path": "/{repo}/-/pulls/{number}/comments",
    "method": "get"
  },
  "repo.pulls.comments.post": {
    "tags": [
      "Pulls"
    ],
    "summary": "新增一个合并请求评论。Create a pull comment.",
    "operationId": "PostPullComment",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Post Pull Request Comment Form",
        "name": "post_pull_comment_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PullCommentCreationForm"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created",
        "schema": {
          "$ref": "#/definitions/api.PullRequestComment"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
    "path": "/{repo}/-/pulls/{number}/comments",
    "method": "post"
  },
  "repo.pulls.comments.get": {
    "tags": [
      "Pulls"
    ],
    "summary": "获取一个合并请求评论。Get a pull comment.",
    "operationId": "GetPullComment",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "PullComment唯一标识编号。",
        "name": "comment_id",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.PullRequestComment"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
    "path": "/{repo}/-/pulls/{number}/comments/{comment_id}",
    "method": "get"
  },
  "repo.pulls.comments.patch": {
    "tags": [
      "Pulls"
    ],
    "summary": "更新一个合并请求评论。Update a pull comment.",
    "operationId": "PatchPullComment",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "PullComment唯一标识编号。",
        "name": "comment_id",
        "in": "path",
        "required": true
      },
      {
        "description": "Patch Pull Comment Form",
        "name": "patch_pull_comment_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PatchPullCommentForm"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.PullRequestComment"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
    "path": "/{repo}/-/pulls/{number}/comments/{comment_id}",
    "method": "patch"
  },
  "repo.pulls.commitStatuses.get": {
    "tags": [
      "Pulls"
    ],
    "summary": "查询 Pull Request 的状态检查",
    "operationId": "ListPullCommitStatuses",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.CommitStatuses"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
    "path": "/{repo}/-/pulls/{number}/commit-statuses",
    "method": "get"
  },
  "repo.pulls.commits.list": {
    "tags": [
      "Pulls"
    ],
    "summary": "查询指定合并请求的提交列表。Lists the commits in a specified pull request.",
    "operationId": "ListPullCommits",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小。",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.Commit"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
    "path": "/{repo}/-/pulls/{number}/commits",
    "method": "get"
  },
  "repo.pulls.files.list": {
    "tags": [
      "Pulls"
    ],
    "summary": "查询指定合并请求的文件列表。Lists the files in a specified pull request.",
    "operationId": "ListPullFiles",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.PullFile"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
    "path": "/{repo}/-/pulls/{number}/files",
    "method": "get"
  },
  "repo.pulls.labels.list": {
    "tags": [
      "Pulls"
    ],
    "summary": "查询指定合并请求的标签列表。List labels for a pull.",
    "operationId": "ListPullLabels",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小。",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.Label"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
    "path": "/{repo}/-/pulls/{number}/labels",
    "method": "get"
  },
  "repo.pulls.labels.put": {
    "tags": [
      "Pulls"
    ],
    "summary": "设置合并请求标签。Set the new labels for a pull.",
    "operationId": "PutPullLabels",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Put Pull Labels Form",
        "name": "put_pull_labels_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PutPullLabelsForm"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Label"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
    "path": "/{repo}/-/pulls/{number}/labels",
    "method": "put"
  },
  "repo.pulls.labels.post": {
    "tags": [
      "Pulls"
    ],
    "summary": "新增合并请求标签。Add labels to a pull.",
    "operationId": "PostPullLabels",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Post Pull Labels Form",
        "name": "post_pull_labels_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PostPullLabelsForm"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Label"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
    "path": "/{repo}/-/pulls/{number}/labels",
    "method": "post"
  },
  "repo.pulls.labels.delete": {
    "tags": [
      "Pulls"
    ],
    "summary": "清空合并请求标签。Remove all labels from a pull.",
    "operationId": "DeletePullLabels",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "204": {
        "description": "No Content"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
    "path": "/{repo}/-/pulls/{number}/labels",
    "method": "delete"
  },
  "repo.pulls.labels.deleteByName": {
    "tags": [
      "Pulls"
    ],
    "summary": "删除合并请求标签。Remove a label from a pull.",
    "operationId": "DeletePullLabel",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "标签名称。",
        "name": "name",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Label"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
    "path": "/{repo}/-/pulls/{number}/labels/{name}",
    "method": "delete"
  },
  "repo.pulls.merge.put": {
    "tags": [
      "Pulls"
    ],
    "summary": "合并一个合并请求。Merge a pull request.",
    "operationId": "MergePull",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Merge Pull Request Form",
        "name": "merge_pull_request_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.MergePullRequest"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.MergePullResponse"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
    "path": "/{repo}/-/pulls/{number}/merge",
    "method": "put"
  },
  "repo.pulls.reviews.list": {
    "tags": [
      "Pulls"
    ],
    "summary": "查询特定合并请求的评审列表。List pull reviews.",
    "operationId": "ListPullReviews",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小。",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.PullReview"
          }
        }
      },
      "403": {
        "description": "Forbidden",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
    "path": "/{repo}/-/pulls/{number}/reviews",
    "method": "get"
  },
  "repo.pulls.reviews.post": {
    "tags": [
      "Pulls"
    ],
    "summary": "新增一次合并请求评审。Create a pull review.",
    "operationId": "PostPullReview",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "description": "Post Pull Review Form",
        "name": "post_pull_review_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PullReviewCreationForm"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created"
      },
      "403": {
        "description": "Forbidden",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
    "path": "/{repo}/-/pulls/{number}/reviews",
    "method": "post"
  },
  "repo.pulls.reviews.comments.list": {
    "tags": [
      "Pulls"
    ],
    "summary": "查询指定合并请求评审评论列表。List pull review comments.",
    "operationId": "ListPullReviewComments",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "PullReview唯一标识编号。",
        "name": "review_id",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小。",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.PullReviewComment"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
    "path": "/{repo}/-/pulls/{number}/reviews/{review_id}/comments",
    "method": "get"
  },
  "repo.pulls.reviews.replies.post": {
    "tags": [
      "Pulls"
    ],
    "summary": "回复一个 review 评审",
    "operationId": "PostPullRequestReviewReply",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "Pull唯一标识编号。",
        "name": "number",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "description": "PullReview唯一标识编号。",
        "name": "review_id",
        "in": "path",
        "required": true
      },
      {
        "description": "post pull request review reply form",
        "name": "post_pull_request_review_reply_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PostPullRequestReviewReplyForm"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created",
        "schema": {
          "$ref": "#/definitions/api.PullReviewComment"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
    "path": "/{repo}/-/pulls/{number}/reviews/{review_id}/replies",
    "method": "post"
  },
  "repo.releases.list": {
    "tags": [
      "Releases"
    ],
    "summary": "查询 release 列表。List releases.",
    "operationId": "ListReleases",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小。",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.Release"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/releases",
    "method": "get"
  },
  "repo.releases.post": {
    "tags": [
      "Releases"
    ],
    "summary": "新增一个 release。Create a release.",
    "operationId": "PostRelease",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "Post Release Form, attachment is optional",
        "name": "create_release_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/openapi.PostReleaseForm"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created",
        "schema": {
          "$ref": "#/definitions/api.Release"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/releases",
    "method": "post"
  },
  "repo.releases.download.get": {
    "tags": [
      "Releases"
    ],
    "summary": "发起一个获取 release 附件的请求， 302到有一定效期的下载地址。Get a request to fetch a release assets and returns 302 redirect to the assets URL with specific valid time.",
    "operationId": "GetReleasesAsset",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "标签名称。示例：`v1.0.0`",
        "name": "tag",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "文件名称。示例：`test.png`",
        "name": "filename",
        "in": "path",
        "required": true
      },
      {
        "type": "boolean",
        "default": false,
        "description": "是否可以下载，true表示302的下载地址有效期12小时，最多下载10次。",
        "name": "share",
        "in": "query"
      }
    ],
    "responses": {
      "302": {
        "description": "Found"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:r",
    "path": "/{repo}/-/releases/download/{tag}/{filename}",
    "method": "get"
  },
  "repo.releases.latest.get": {
    "tags": [
      "Releases"
    ],
    "summary": "查询最新的 release。Query the latest release.",
    "operationId": "GetLatestRelease",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Release"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/releases/latest",
    "method": "get"
  },
  "repo.releases.tags.get": {
    "tags": [
      "Releases"
    ],
    "summary": "通过 tag 查询指定 release,包含附件信息。Get a release by tag, include assets information.",
    "operationId": "GetReleaseByTag",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "标签名称。",
        "name": "tag",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Release"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/releases/tags/{tag}",
    "method": "get"
  },
  "repo.releases.get": {
    "tags": [
      "Releases"
    ],
    "summary": "根据 id\t查询指定 release, 包含附件信息。Get a release by id, include assets information.",
    "operationId": "GetReleaseByID",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "版本唯一标识符。",
        "name": "release_id",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.Release"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/releases/{release_id}",
    "method": "get"
  },
  "repo.releases.delete": {
    "tags": [
      "Releases"
    ],
    "summary": "删除指定的 release。Delete a release.",
    "operationId": "DeleteRelease",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "版本唯一标识符。",
        "name": "release_id",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/releases/{release_id}",
    "method": "delete"
  },
  "repo.releases.patch": {
    "tags": [
      "Releases"
    ],
    "summary": "更新 release。Update a release.",
    "operationId": "PatchRelease",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "版本唯一标识符。",
        "name": "release_id",
        "in": "path",
        "required": true
      },
      {
        "description": "patch release form",
        "name": "patch_release_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/openapi.PatchReleaseForm"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/releases/{release_id}",
    "method": "patch"
  },
  "repo.releases.assetUploadConfirmation.post": {
    "tags": [
      "Releases"
    ],
    "summary": "确认  release 附件上传完成。Confirm release asset upload.",
    "operationId": "PostReleaseAssetUploadConfirmation",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "版本唯一标识符。",
        "name": "release_id",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "PostReleaseAssetUploadURL接口返回值verify_url字段提取的upload_token。",
        "name": "upload_token",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "PostReleaseAssetUploadURL接口返回值verify_url字段提取的asset_path。",
        "name": "asset_path",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "format": "int64",
        "description": "附件保持的天数。0 表示永久，最大不能超过 180 天",
        "name": "ttl",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/releases/{release_id}/asset-upload-confirmation/{upload_token}/{asset_path}",
    "method": "post"
  },
  "repo.releases.assetUploadUrl.post": {
    "tags": [
      "Releases"
    ],
    "summary": "新增一个 release 附件。Create a release asset.",
    "operationId": "PostReleaseAssetUploadURL",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "版本唯一标识符。",
        "name": "release_id",
        "in": "path",
        "required": true
      },
      {
        "description": "Post Release Asset Upload URL Form",
        "name": "create_release_asset_upload_url_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/openapi.PostReleaseAssetUploadURLForm"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created",
        "schema": {
          "$ref": "#/definitions/openapi.ReleaseAssetUploadURL"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/releases/{release_id}/asset-upload-url",
    "method": "post"
  },
  "repo.releases.assets.get": {
    "tags": [
      "Releases"
    ],
    "summary": "查询指定的 release 附件 the specified release asset.",
    "operationId": "GetReleaseAsset",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "版本唯一标识符。",
        "name": "release_id",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "附件唯一标识符。",
        "name": "asset_id",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.ReleaseAsset"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{repo}/-/releases/{release_id}/assets/{asset_id}",
    "method": "get"
  },
  "repo.releases.assets.delete": {
    "tags": [
      "Releases"
    ],
    "summary": "删除指定的 release 附件 the specified release asset.",
    "operationId": "DeleteReleaseAsset",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "版本唯一标识符。",
        "name": "release_id",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "附件唯一标识符。",
        "name": "asset_id",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
    "path": "/{repo}/-/releases/{release_id}/assets/{asset_id}",
    "method": "delete"
  },
  "repo.security.overview.get": {
    "tags": [
      "Security"
    ],
    "summary": "查询仓库安全模块概览数据。Query the security overview data of a repository",
    "operationId": "GetRepoSecurityOverview",
    "parameters": [
      {
        "type": "string",
        "description": "仓库名称",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "类型，多个类型用逗号分隔code_sensitive,code_vulnerability,code_issue,code_license 为空默认查询所有类型",
        "name": "types",
        "in": "query"
      },
      {
        "type": "string",
        "description": "查询类型下开启或忽略的各风险类型概览数量,可选值：open,ignore,all，默认all",
        "name": "tab",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.RepoSecurityOverview"
        }
      },
      "400": {
        "description": "Bad Request",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-security:r",
    "path": "/{repo}/-/security/overview",
    "method": "get"
  },
  "repo.settings.branchProtections.list": {
    "tags": [
      "GitSettings"
    ],
    "summary": "查询仓库保护分支规则列表。List branch protection rules.",
    "operationId": "ListBranchProtections",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/api.BranchProtection"
          }
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
    "path": "/{repo}/-/settings/branch-protections",
    "method": "get"
  },
  "repo.settings.branchProtections.post": {
    "tags": [
      "GitSettings"
    ],
    "summary": "新增仓库保护分支规则。Create branch protection rule.",
    "operationId": "PostBranchProtection",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "Branch Protection Form",
        "name": "branch_protection_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.BranchProtection"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
    "path": "/{repo}/-/settings/branch-protections",
    "method": "post"
  },
  "repo.settings.branchProtections.get": {
    "tags": [
      "GitSettings"
    ],
    "summary": "查询仓库保护分支规则。Get branch protection rule.",
    "operationId": "GetBranchProtection",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "保护分支规则唯一标识符。",
        "name": "id",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.BranchProtection"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
    "path": "/{repo}/-/settings/branch-protections/{id}",
    "method": "get"
  },
  "repo.settings.branchProtections.delete": {
    "tags": [
      "GitSettings"
    ],
    "summary": "删除仓库保护分支规则。 Delete branch protection rule.",
    "operationId": "DeleteBranchProtection",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "保护分支规则唯一标识符。",
        "name": "id",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
    "path": "/{repo}/-/settings/branch-protections/{id}",
    "method": "delete"
  },
  "repo.settings.branchProtections.patch": {
    "tags": [
      "GitSettings"
    ],
    "summary": "更新仓库保护分支规则。Update branch protection rule.",
    "operationId": "PatchBranchProtection",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "保护分支规则唯一标识符。",
        "name": "id",
        "in": "path",
        "required": true
      },
      {
        "description": "Branch Protection Form",
        "name": "branch_protection_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.BranchProtection"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
    "path": "/{repo}/-/settings/branch-protections/{id}",
    "method": "patch"
  },
  "repo.settings.cloudNativeBuild.get": {
    "tags": [
      "GitSettings"
    ],
    "summary": "查询仓库云原生构建设置。List pipeline settings.",
    "operationId": "GetPipelineSettings",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.PipelineSettings"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
    "path": "/{repo}/-/settings/cloud-native-build",
    "method": "get"
  },
  "repo.settings.cloudNativeBuild.put": {
    "tags": [
      "GitSettings"
    ],
    "summary": "更新仓库云原生构建设置。Update pipeline settings.",
    "operationId": "PutPipelineSettings",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "Cloud Native Build Form",
        "name": "pipeline_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PipelineSettings"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
    "path": "/{repo}/-/settings/cloud-native-build",
    "method": "put"
  },
  "repo.settings.pullRequest.get": {
    "tags": [
      "GitSettings"
    ],
    "summary": "查询仓库合并请求设置。List pull request settings.",
    "operationId": "GetPullRequestSettings",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.PullRequestSettings"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
    "path": "/{repo}/-/settings/pull-request",
    "method": "get"
  },
  "repo.settings.pullRequest.put": {
    "tags": [
      "GitSettings"
    ],
    "summary": "更新仓库合并请求设置。Set pull request settings.",
    "operationId": "PutPullRequestSettings",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "Pull Request Form",
        "name": "pull_request_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PullRequestSettings"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
    "path": "/{repo}/-/settings/pull-request",
    "method": "put"
  },
  "repo.settings.pushLimit.get": {
    "tags": [
      "GitSettings"
    ],
    "summary": "查询仓库推送设置。List push limit settings.",
    "operationId": "GetPushLimitSettings",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.PushLimitSettings"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
    "path": "/{repo}/-/settings/push-limit",
    "method": "get"
  },
  "repo.settings.pushLimit.put": {
    "tags": [
      "GitSettings"
    ],
    "summary": "设置仓库推送设置。Set push limit settings.",
    "operationId": "PutPushLimitSettings",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "Push Limit Form",
        "name": "push_limit_form",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/api.PushLimitSettings"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
    "path": "/{repo}/-/settings/push-limit",
    "method": "put"
  },
  "repo.settings.setVisibility.post": {
    "tags": [
      "Repositories"
    ],
    "summary": "改变仓库可见性。Update visibility of repository.",
    "operationId": "SetRepoVisibility",
    "parameters": [
      {
        "type": "string",
        "description": "repo path",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "enum": [
          "Private",
          "Public",
          "Secret"
        ],
        "type": "string",
        "description": "仓库可见性",
        "name": "visibility",
        "in": "query",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
    "path": "/{repo}/-/settings/set_visibility",
    "method": "post"
  },
  "repo.topActivityUsers.list": {
    "tags": [
      "Activities"
    ],
    "summary": "获取仓库 top 活跃用户。List the top active users",
    "operationId": "TopContributors",
    "parameters": [
      {
        "type": "string",
        "description": "repo",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "maximum": 10,
        "minimum": 1,
        "type": "integer",
        "default": 5,
        "description": "返回的用户个数",
        "name": "top",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.UsersResult"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-base-info:r",
    "path": "/{repo}/-/top-activity-users",
    "method": "get"
  },
  "repo.transfer.post": {
    "tags": [
      "Repositories"
    ],
    "summary": "转移仓库。Transfer a repository.",
    "operationId": "TransferRepo",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "request",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.TransferSlugReq"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw,repo-code:rw",
    "path": "/{repo}/-/transfer",
    "method": "post"
  },
  "repo.upload.files.post": {
    "tags": [
      "Pulls",
      "Issues"
    ],
    "summary": "发起一个上传 files 的请求，返回上传文件的url，请使用 put 发起流式上传。Initiate a request to upload files,returns upload URL.Use PUT to initiate a stream upload.",
    "operationId": "UploadFiles",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "UploadRequestParams",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.UploadRequestParams"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.UploadAssetsResponse"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
    "path": "/{repo}/-/upload/files",
    "method": "post"
  },
  "repo.upload.imgs.post": {
    "tags": [
      "Pulls",
      "Issues"
    ],
    "summary": "发起一个上传 imgs 的请求，返回上传文件的url，请使用 put 发起流式上传。Initiate a request to upload images,returns upload URL.Use PUT to initiate a stream upload.",
    "operationId": "UploadImgs",
    "parameters": [
      {
        "type": "string",
        "description": "repo",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "UploadRequestParams",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.UploadRequestParams"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.UploadAssetsResponse"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:rw",
    "path": "/{repo}/-/upload/imgs",
    "method": "post"
  },
  "repo.workspace.detail.get": {
    "tags": [
      "Workspace"
    ],
    "summary": "根据流水线sn查询云原生开发访问地址。Query cloud-native development access address by pipeline SN.",
    "operationId": "GetWorkspaceDetail",
    "parameters": [
      {
        "type": "string",
        "description": "Repo path",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "SN",
        "name": "sn",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.WorkspaceDetailResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-cnb-detail:r",
    "path": "/{repo}/-/workspace/detail/{sn}",
    "method": "get"
  },
  "repo.workspace.start.post": {
    "tags": [
      "Workspace"
    ],
    "summary": "启动云原生开发环境，已存在环境则直接打开，否则重新创建开发环境。Start cloud-native dev. Opens existing env or creates a new one.",
    "operationId": "StartWorkspace",
    "parameters": [
      {
        "type": "string",
        "description": "仓库完整路径",
        "name": "repo",
        "in": "path",
        "required": true
      },
      {
        "description": "StartWorkspace params",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.StartWorkspaceReq"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.StartWorkspaceResult"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-cnb-trigger:rw",
    "path": "/{repo}/-/workspace/start",
    "method": "post"
  },
  "slug.charge.specialAmount.get": {
    "description": "查看根组织的特权额度，需要根组织的 master 以上权限才可以查看\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-resource:r",
    "tags": [
      "Charge"
    ],
    "summary": "查看特权额度",
    "operationId": "GetSpecialAmount",
    "parameters": [
      {
        "type": "string",
        "description": "group slug",
        "name": "slug",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.SpecialAmount"
        }
      }
    },
    "path": "/{slug}/-/charge/special-amount",
    "method": "get"
  },
  "slug.code.issues.list": {
    "description": "获取指定仓库的源码扫描问题列表，支持按问题规则和严重程度筛选\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "tags": [
      "RepoCodeIssue"
    ],
    "summary": "获取源码扫描问题列表",
    "operationId": "ListCodeIssueOpenAPI",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "问题规则，用于筛选特定类型的问题。示例值：`critical-risk`, `LIC_CRITICAL`, `VUL_CRITICAL`",
        "name": "issue_rule",
        "in": "query"
      },
      {
        "type": "string",
        "description": "严重程度，用于筛选特定风险等级的问题。枚举值：`info`, `warning`, `error`, `fatal`, `all`",
        "name": "risk_level",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 1,
        "description": "分页页码。",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "分页页大小。",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.CodeIssueListData"
        }
      },
      "400": {
        "description": "请求参数错误。",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "服务器内部错误。",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "path": "/{slug}/-/code/issues",
    "method": "get"
  },
  "slug.code.issues.get": {
    "description": "根据问题记录ID获取源码扫描问题的详细信息，包括问题位置、责任人、规则描述等\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "tags": [
      "RepoCodeIssue"
    ],
    "summary": "获取源码扫描问题详情",
    "operationId": "GetCodeIssueDetailOpenAPI",
    "parameters": [
      {
        "type": "string",
        "description": "不带.git后缀的仓库名称。格式：`组织名称/仓库名称`",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "format": "int64",
        "description": "源码扫描问题记录ID。",
        "name": "record_id",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.CodeIssueDetail"
        }
      },
      "400": {
        "description": "请求参数错误。",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "服务器内部错误。",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "path": "/{slug}/-/code/issues/{record_id}",
    "method": "get"
  },
  "slug.contributor.trend.get": {
    "tags": [
      "RepoContributor"
    ],
    "summary": "查询仓库贡献者前 100 名的详细趋势数据。Query detailed trend data for top 100 contributors of the repository.",
    "operationId": "GetRepoContributorTrend",
    "parameters": [
      {
        "type": "string",
        "description": "仓库标识符。格式：`组织名称/仓库名称`",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 15,
        "description": "查询结果数量限制，当limit小于0时，默认为15。格式：[0,100]",
        "name": "limit",
        "in": "query"
      },
      {
        "type": "boolean",
        "default": false,
        "description": "是否排除外部用户。示例值：`true`,`false`",
        "name": "exclude_external_users",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/api.RepoContribTrend"
        }
      },
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{slug}/-/contributor/trend",
    "method": "get"
  },
  "slug.lfs.get": {
    "tags": [
      "Git"
    ],
    "summary": "获取 git lfs 文件下载链接",
    "operationId": "GetPresignedLFSDownloadLink",
    "parameters": [
      {
        "type": "string",
        "description": "仓库标识符。格式：`组织名称/仓库名称`",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "LFS文件的唯一标识符。",
        "name": "oid",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "LFS文件名称。",
        "name": "name",
        "in": "query",
        "required": true
      }
    ],
    "responses": {
      "404": {
        "description": "Not Found",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      },
      "500": {
        "description": "Internal Server Error",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
    "path": "/{slug}/-/lfs/{oid}",
    "method": "get"
  },
  "slug.listAssets.list": {
    "tags": [
      "Assets"
    ],
    "summary": "仓库的 asset 记录列表",
    "operationId": "ListAssets",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "第几页，从1开始",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "每页多少条数据",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.AssetRecords"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
    "path": "/{slug}/-/list-assets",
    "method": "get"
  },
  "slug.listMembers.list": {
    "tags": [
      "Members"
    ],
    "summary": "获取指定仓库内的有效成员列表，包含继承成员。List active members in specified repository including inherited members.",
    "operationId": "ListAllMembers",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      },
      {
        "enum": [
          "Guest",
          "Reporter",
          "Developer",
          "Master",
          "Owner"
        ],
        "type": "string",
        "description": "Role",
        "name": "role",
        "in": "query"
      },
      {
        "type": "string",
        "default": "",
        "description": "过滤成员。Filter by member",
        "name": "search",
        "in": "query"
      },
      {
        "type": "string",
        "default": "",
        "description": "精准匹配用户名,多个用户名用逗号间隔。Exact username matching, multiple usernames separated by commas.",
        "name": "names",
        "in": "query"
      },
      {
        "enum": [
          "created_at",
          "stars",
          "follower"
        ],
        "type": "string",
        "default": "created_at",
        "description": "Order field",
        "name": "order_by",
        "in": "query"
      },
      {
        "type": "boolean",
        "default": false,
        "description": "Ordering",
        "name": "desc",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.UsersWithAccessLevelInSlug"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
    "path": "/{slug}/-/list-members",
    "method": "get"
  },
  "slug.missions.list": {
    "tags": [
      "Missions"
    ],
    "summary": "查询组织下面用户有权限查看到的任务集。Query all missions that the user has permission to see under the specific organization.",
    "operationId": "GetGroupSubMissions",
    "parameters": [
      {
        "type": "string",
        "description": "组织 slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "format": "int64",
        "default": 1,
        "description": "页码",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "format": "int64",
        "default": 10,
        "description": "每页数量",
        "name": "page_size",
        "in": "query"
      },
      {
        "enum": [
          "private",
          "public"
        ],
        "type": "string",
        "description": "任务集类型",
        "name": "filter_type",
        "in": "query"
      },
      {
        "enum": [
          "created_at",
          "name"
        ],
        "type": "string",
        "description": "排序类型，默认created_at",
        "name": "order_by",
        "in": "query"
      },
      {
        "type": "boolean",
        "default": false,
        "description": "排序顺序",
        "name": "desc",
        "in": "query"
      },
      {
        "enum": [
          "all",
          "sub",
          "grand"
        ],
        "type": "string",
        "description": "查全部/查询直接属于当前组织的仓库/查询子组织的仓库",
        "name": "descendant",
        "in": "query"
      },
      {
        "type": "string",
        "description": "搜索关键字",
        "name": "search",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.Missions4User"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-resource:r",
    "path": "/{slug}/-/missions",
    "method": "get"
  },
  "slug.missions.post": {
    "tags": [
      "Missions"
    ],
    "summary": "创建任务集。Create a mission.",
    "operationId": "CreateMission",
    "parameters": [
      {
        "type": "string",
        "description": "Group slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "description": "mission information",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.CreateMissionReq"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-resource:rw",
    "path": "/{slug}/-/missions",
    "method": "post"
  },
  "slug.outsideCollaborators.list": {
    "tags": [
      "Members",
      "Collaborators"
    ],
    "summary": "获取指定仓库内的外部贡献者。List external contributors in specified repository.",
    "operationId": "ListOutsideCollaborators",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      },
      {
        "enum": [
          "Guest",
          "Reporter",
          "Developer",
          "Master"
        ],
        "type": "string",
        "description": "Role",
        "name": "role",
        "in": "query"
      },
      {
        "type": "string",
        "default": "",
        "description": "过滤成员。Filter by member.",
        "name": "search",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.OutsideCollaboratorInRepo"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
    "path": "/{slug}/-/outside-collaborators",
    "method": "get"
  },
  "slug.outsideCollaborators.put": {
    "tags": [
      "Members",
      "Collaborators"
    ],
    "summary": "更新指定仓库的外部贡献者权限信息。 Update permission information for external contributors in specified repository.",
    "operationId": "UpdateOutsideCollaborators",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "username",
        "name": "username",
        "in": "path",
        "required": true
      },
      {
        "enum": [
          "Guest",
          "Reporter",
          "Developer"
        ],
        "type": "string",
        "description": "Role",
        "name": "role",
        "in": "query",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
    "path": "/{slug}/-/outside-collaborators/{username}",
    "method": "put"
  },
  "slug.outsideCollaborators.delete": {
    "tags": [
      "Members",
      "Collaborators"
    ],
    "summary": "删除指定仓库的外部贡献者。Removes external contributors from specified repository.",
    "operationId": "DeleteOutsideCollaborators",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "username",
        "name": "username",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
    "path": "/{slug}/-/outside-collaborators/{username}",
    "method": "delete"
  },
  "slug.packages.list": {
    "description": "制品首页\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
    "tags": [
      "Registries"
    ],
    "summary": "查询制品列表。 List all packages.",
    "operationId": "ListPackages",
    "parameters": [
      {
        "type": "string",
        "description": "资源路径。Slug.",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "enum": [
          "all",
          "docker",
          "helm",
          "dockermodel",
          "maven",
          "npm",
          "ohpm",
          "pypi",
          "nuget",
          "composer",
          "conan",
          "cargo"
        ],
        "type": "string",
        "description": "制品类型。Type.",
        "name": "type",
        "in": "query",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "页码。Pagination page number.",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "页数。Pagination page size.",
        "name": "page_size",
        "in": "query"
      },
      {
        "enum": [
          "pull_count",
          "last_push_at",
          "name_ascend",
          "name_descend"
        ],
        "type": "string",
        "description": "顺序类型。Ordering type.",
        "name": "ordering",
        "in": "query"
      },
      {
        "type": "string",
        "description": "关键字。Key word to search package name.",
        "name": "name",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.Package"
          }
        }
      },
      "400": {
        "description": "Bad Request",
        "schema": {
          "$ref": "#/definitions/die.WebError"
        }
      }
    },
    "path": "/{slug}/-/packages",
    "method": "get"
  },
  "slug.packages.get": {
    "description": "制品详情页\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
    "tags": [
      "Registries"
    ],
    "summary": "获取指定制品的详细信息。 Get the package detail.",
    "operationId": "GetPackage",
    "parameters": [
      {
        "type": "string",
        "description": "资源路径。Slug.",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "enum": [
          "docker",
          "helm",
          "dockermodel",
          "maven",
          "npm",
          "ohpm",
          "pypi",
          "nuget",
          "composer",
          "conan",
          "cargo"
        ],
        "type": "string",
        "description": "制品类型。Type",
        "name": "type",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "制品名称。Name",
        "name": "name",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.PackageDetail"
        }
      }
    },
    "path": "/{slug}/-/packages/{type}/{name}",
    "method": "get"
  },
  "slug.packages.delete": {
    "description": "制品详情页-删除制品\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package-delete:rw",
    "tags": [
      "Registries"
    ],
    "summary": "删除制品。 Delete the specific package.",
    "operationId": "DeletePackage",
    "parameters": [
      {
        "type": "string",
        "description": "资源路径。 Slug.",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "enum": [
          "docker",
          "helm",
          "dockermodel",
          "maven",
          "npm",
          "ohpm",
          "pypi",
          "nuget",
          "composer",
          "conan",
          "cargo"
        ],
        "type": "string",
        "description": "制品类型。Type.",
        "name": "type",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "制品名称。Package name.",
        "name": "name",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "path": "/{slug}/-/packages/{type}/{name}",
    "method": "delete"
  },
  "slug.packages.name.tag.get": {
    "description": "制品详情页-版本详情\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
    "tags": [
      "Registries"
    ],
    "summary": "获取制品标签详情。 Get the specific tag under specific package.",
    "operationId": "GetPackageTagDetail",
    "parameters": [
      {
        "type": "string",
        "description": "Slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "enum": [
          "docker",
          "helm",
          "dockermodel",
          "maven",
          "npm",
          "ohpm",
          "pypi",
          "nuget",
          "composer",
          "conan",
          "cargo"
        ],
        "type": "string",
        "description": "Type",
        "name": "type",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Name",
        "name": "name",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Tag",
        "name": "tag",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "摘要",
        "name": "sha256",
        "in": "query"
      },
      {
        "type": "string",
        "description": "架构，docker制品必需，例: linux/amd64/v3。required for docker artifacts",
        "name": "arch",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.TagDetail"
        }
      }
    },
    "path": "/{slug}/-/packages/{type}/{name}/-/tag/{tag}",
    "method": "get"
  },
  "slug.packages.name.tag.delete": {
    "description": "制品详情页-版本详情-删除标签\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package-delete:rw",
    "tags": [
      "Registries"
    ],
    "summary": "删除制品标签。 Delete the specific tag under specific package",
    "operationId": "DeletePackageTag",
    "parameters": [
      {
        "type": "string",
        "description": "Slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "enum": [
          "docker",
          "helm",
          "dockermodel",
          "maven",
          "npm",
          "ohpm",
          "pypi",
          "nuget",
          "composer",
          "conan",
          "cargo"
        ],
        "type": "string",
        "description": "Type",
        "name": "type",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Name",
        "name": "name",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Tag",
        "name": "tag",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "path": "/{slug}/-/packages/{type}/{name}/-/tag/{tag}",
    "method": "delete"
  },
  "slug.packages.name.tag.provenance.get": {
    "description": "制品详情页-版本详情-出生证明\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
    "tags": [
      "Registries"
    ],
    "summary": "获取制品标签的出生证明。 Get the specific tag provenance under specific package.",
    "operationId": "GetPackageTagProvenance",
    "parameters": [
      {
        "type": "string",
        "description": "Slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "enum": [
          "docker",
          "helm",
          "dockermodel",
          "maven",
          "npm",
          "ohpm",
          "pypi",
          "nuget",
          "composer",
          "conan",
          "cargo",
          "generic"
        ],
        "type": "string",
        "description": "Type",
        "name": "type",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Name",
        "name": "name",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "Tag",
        "name": "tag",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.Provenance"
        }
      }
    },
    "path": "/{slug}/-/packages/{type}/{name}/-/tag/{tag}/provenance",
    "method": "get"
  },
  "slug.packages.name.tags.get": {
    "description": "制品详情页-版本列表\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
    "tags": [
      "Registries"
    ],
    "summary": "查询制品标签列表。 List all tags under specific package.",
    "operationId": "ListPackageTags",
    "parameters": [
      {
        "type": "string",
        "description": "资源路径。Slug.",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "enum": [
          "docker",
          "helm",
          "dockermodel",
          "maven",
          "npm",
          "ohpm",
          "pypi",
          "nuget",
          "composer",
          "conan",
          "cargo"
        ],
        "type": "string",
        "description": "制品类型。Type.",
        "name": "type",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "description": "制品名称。Package name.",
        "name": "name",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "页码。Pagination page number.",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "页数。Pagination page size.",
        "name": "page_size",
        "in": "query"
      },
      {
        "enum": [
          "pull_count",
          "last_push_at"
        ],
        "type": "string",
        "description": "顺序。Ordering type.",
        "name": "ordering",
        "in": "query"
      },
      {
        "type": "string",
        "description": "关键字。Key word to search tag name.",
        "name": "tag_name",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/git_woa_com_cnb_monorepo_platform_service-api_internal_models_artifactory_dto.Tag"
        }
      }
    },
    "path": "/{slug}/-/packages/{type}/{name}/-/tags",
    "method": "get"
  },
  "slug.pinnedRepos.list": {
    "tags": [
      "Repositories"
    ],
    "summary": "获取指定组织的仓库墙列表。List the pinned repositories of a group.",
    "operationId": "GetPinnedRepoByGroup",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "slug",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.Repos4UserBase"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:r",
    "path": "/{slug}/-/pinned-repos",
    "method": "get"
  },
  "slug.pinnedRepos.put": {
    "tags": [
      "Repositories"
    ],
    "summary": "更新指定组织仓库墙。Update the pinned repositories of a group.",
    "operationId": "SetPinnedRepoByGroup",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "description": "repo path",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.Repos4UserBase"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
    "path": "/{slug}/-/pinned-repos",
    "method": "put"
  },
  "slug.registries.list": {
    "tags": [
      "Registries"
    ],
    "summary": "查询组织下面用户有权限查看到的制品仓库。Query all registries that the user has permission to see under specific organization.",
    "operationId": "GetGroupSubRegistries",
    "parameters": [
      {
        "type": "string",
        "description": "组织 slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "format": "int64",
        "default": 1,
        "description": "页码",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "format": "int64",
        "default": 10,
        "description": "每页数量",
        "name": "page_size",
        "in": "query"
      },
      {
        "enum": [
          "npm",
          "maven",
          "ohpm"
        ],
        "type": "string",
        "description": "制品仓库类型",
        "name": "registry_type",
        "in": "query"
      },
      {
        "enum": [
          "private",
          "public"
        ],
        "type": "string",
        "description": "制品仓库可见性类型",
        "name": "filter_type",
        "in": "query"
      },
      {
        "enum": [
          "created_at",
          "name"
        ],
        "type": "string",
        "description": "排序类型，默认created_at",
        "name": "order_by",
        "in": "query"
      },
      {
        "type": "boolean",
        "default": false,
        "description": "排序顺序",
        "name": "desc",
        "in": "query"
      },
      {
        "enum": [
          "all",
          "sub",
          "grand"
        ],
        "type": "string",
        "description": "查全部/查询直接属于当前组织的仓库/查询子组织的制品仓库",
        "name": "descendant",
        "in": "query"
      },
      {
        "type": "string",
        "description": "搜索关键字",
        "name": "search",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.Registry4User"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-resource:r",
    "path": "/{slug}/-/registries",
    "method": "get"
  },
  "slug.repos.list": {
    "tags": [
      "Repositories"
    ],
    "summary": "查询组织下访问用户有权限查看到仓库。List the repositories that the user has access to.",
    "operationId": "GetGroupSubRepos",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "type": "integer",
        "format": "int64",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "format": "int64",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      },
      {
        "enum": [
          "private",
          "public",
          "secret"
        ],
        "type": "string",
        "description": "Repositories type",
        "name": "filter_type",
        "in": "query"
      },
      {
        "enum": [
          "KnowledgeBase",
          "NPC",
          "Skills"
        ],
        "type": "string",
        "description": "仓库类型标记，逗号分隔。Repository type flags, comma separated",
        "name": "flags",
        "in": "query"
      },
      {
        "enum": [
          "intersection",
          "union"
        ],
        "type": "string",
        "default": "intersection",
        "description": "flags 多值匹配模式。Flags match mode when multiple flags provided",
        "name": "flags_match",
        "in": "query"
      },
      {
        "enum": [
          "active",
          "archived"
        ],
        "type": "string",
        "description": "仓库状态。Repository status",
        "name": "status",
        "in": "query"
      },
      {
        "enum": [
          "created_at",
          "last_updated_at",
          "stars",
          "slug_path",
          "forks"
        ],
        "type": "string",
        "default": "last_updated_at",
        "description": "Order field",
        "name": "order_by",
        "in": "query"
      },
      {
        "type": "boolean",
        "default": false,
        "description": "Ordering",
        "name": "desc",
        "in": "query"
      },
      {
        "enum": [
          "all",
          "sub",
          "grand"
        ],
        "type": "string",
        "description": "查全部/查询直接属于当前组织的仓库/查询子组织的仓库。Get all/Get repos belong to current org or sub-organization",
        "name": "descendant",
        "in": "query"
      },
      {
        "type": "string",
        "description": "Key word",
        "name": "search",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.Repos4User"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-resource:r",
    "path": "/{slug}/-/repos",
    "method": "get"
  },
  "slug.repos.post": {
    "tags": [
      "Repositories"
    ],
    "summary": "创建仓库。Create repositories.",
    "operationId": "CreateRepo",
    "parameters": [
      {
        "type": "string",
        "description": "Group slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "description": "repo information",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.CreateRepoReq"
        }
      }
    ],
    "responses": {
      "201": {
        "description": "Created"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-resource:rw",
    "path": "/{slug}/-/repos",
    "method": "post"
  },
  "slug.settings.get": {
    "tags": [
      "Organizations"
    ],
    "summary": "获取指定组织的配置详情。Get the configuration details for the specified organization.",
    "operationId": "GetGroupSetting",
    "parameters": [
      {
        "type": "string",
        "description": "group path",
        "name": "slug",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.OrganizationSettingWithParent"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:r",
    "path": "/{slug}/-/settings",
    "method": "get"
  },
  "slug.settings.put": {
    "tags": [
      "Organizations"
    ],
    "summary": "更新指定组织的配置。Updates the configuration for the specified organization.",
    "operationId": "UpdateGroupSetting",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "description": "group information to update",
        "name": "request",
        "in": "body",
        "required": true,
        "schema": {
          "$ref": "#/definitions/dto.GroupSettingReq"
        }
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
    "path": "/{slug}/-/settings",
    "method": "put"
  },
  "slug.settings.archive.post": {
    "tags": [
      "Repositories"
    ],
    "summary": "仓库归档。Archive a repository.",
    "operationId": "ArchiveRepo",
    "parameters": [
      {
        "type": "string",
        "description": "repo path",
        "name": "slug",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw,repo-code:rw",
    "path": "/{slug}/-/settings/archive",
    "method": "post"
  },
  "slug.settings.unarchive.post": {
    "tags": [
      "Repositories"
    ],
    "summary": "解除仓库归档。Unarchive a repository.",
    "operationId": "UnArchiveRepo",
    "parameters": [
      {
        "type": "string",
        "description": "repo path",
        "name": "slug",
        "in": "path",
        "required": true
      }
    ],
    "responses": {
      "200": {
        "description": "OK"
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw,repo-code:rw",
    "path": "/{slug}/-/settings/unarchive",
    "method": "post"
  },
  "slug.stars.get": {
    "tags": [
      "Starring"
    ],
    "summary": "获取指定仓库的star用户列表。Get the list of users who starred the specified repository.",
    "operationId": "ListStarUsers",
    "parameters": [
      {
        "type": "string",
        "description": "slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "enum": [
          "all",
          "followed"
        ],
        "type": "string",
        "description": "Filter type",
        "name": "filter_type",
        "in": "query",
        "required": true
      },
      {
        "type": "integer",
        "default": 1,
        "description": "page",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "page",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/dto.RepoStarUsers"
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-basic-info:r",
    "path": "/{slug}/-/stars",
    "method": "get"
  },
  "slug.subGroups.list": {
    "tags": [
      "Organizations"
    ],
    "summary": "获取指定组织下的子组织列表。Get the list of sub-organizations under the specified organization.",
    "operationId": "ListSubgroups",
    "parameters": [
      {
        "type": "string",
        "description": "Slug",
        "name": "slug",
        "in": "path",
        "required": true
      },
      {
        "type": "string",
        "default": "",
        "description": "Filter organization",
        "name": "search",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 1,
        "description": "Pagination page number",
        "name": "page",
        "in": "query"
      },
      {
        "type": "integer",
        "default": 10,
        "description": "Pagination page size",
        "name": "page_size",
        "in": "query"
      }
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/dto.OrganizationUnion"
          }
        }
      }
    },
    "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-resource:r",
    "path": "/{slug}/-/sub-groups",
    "method": "get"
  }
}