From 062b82eb13b31d8df6f96545e4fdeb10feab3d15 Mon Sep 17 00:00:00 2001 From: Andreas Svanberg <andreass@dsv.su.se> Date: Mon, 25 Nov 2024 12:40:13 +0100 Subject: [PATCH] Remove unused code --- README.md | 1 - action.yml | 4 - package-lock.json | 424 +- package.json | 5 +- src/gitea-api.ts | 17135 -------------------------------------------- src/main.ts | 23 - 6 files changed, 2 insertions(+), 17590 deletions(-) delete mode 100644 src/gitea-api.ts diff --git a/README.md b/README.md index 5d65ec1..3631c62 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,6 @@ This action takes the current branch (that triggered the workflow) and clones it [...] - uses: https://gitea.dsv.su.se/ansv7779/action-branch-deploy@v1 with: - gitea-token: ${{ secrets.GITEA_TOKEN }} ssh-key: ${{ secrets.BRANCH_DEPLOY_KEY }} compose-file: compose.yaml ``` diff --git a/action.yml b/action.yml index 0cecead..f11f3c5 100644 --- a/action.yml +++ b/action.yml @@ -1,10 +1,6 @@ name: 'Deploy to branch.dsv.su.se' description: 'Deploy the current branch via Docker Compose to branch.dsv.su.se' inputs: - gitea-token: - description: 'The Gitea token to use for authentication' - default: ${{ github.token }} - required: false ssh-key: description: 'The SSH key to use for authentication' default: ${{ secrets.BRANCH_DEPLOY_KEY }} diff --git a/package-lock.json b/package-lock.json index 8a91ab6..d17f6e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,8 +10,7 @@ "dependencies": { "@actions/core": "^1.11.1", "@actions/exec": "^1.1.1", - "@actions/github": "^6.0.0", - "openapi-fetch": "^0.12.2" + "@actions/github": "^6.0.0" }, "devDependencies": { "@eslint/js": "^9.12.0", @@ -19,7 +18,6 @@ "@vercel/ncc": "^0.38.2", "eslint": "^9.12.0", "globals": "^15.11.0", - "openapi-typescript": "^7.4.1", "typescript": "^5.6.3", "typescript-eslint": "^8.8.1" } @@ -67,114 +65,6 @@ "resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.3.tgz", "integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==" }, - "node_modules/@babel/code-frame": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.25.7.tgz", - "integrity": "sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.25.7", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz", - "integrity": "sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.25.7.tgz", - "integrity": "sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.25.7", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -534,98 +424,6 @@ "@octokit/openapi-types": "^22.2.0" } }, - "node_modules/@redocly/ajv": { - "version": "8.11.2", - "resolved": "https://registry.npmjs.org/@redocly/ajv/-/ajv-8.11.2.tgz", - "integrity": "sha512-io1JpnwtIcvojV7QKDUSIuMN/ikdOUd1ReEnUnMKGfDVridQZ31J0MmIuqwuRjWDZfmvr+Q0MqCcfHM2gTivOg==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js-replace": "^1.0.1" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/@redocly/ajv/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/@redocly/config": { - "version": "0.12.1", - "resolved": "https://registry.npmjs.org/@redocly/config/-/config-0.12.1.tgz", - "integrity": "sha512-RW3rSirfsPdr0uvATijRDU3f55SuZV3m7/ppdTDvGw4IB0cmeZRkFmqTrchxMqWP50Gfg1tpHnjdxUCNo0E2qg==", - "dev": true - }, - "node_modules/@redocly/openapi-core": { - "version": "1.25.6", - "resolved": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-1.25.6.tgz", - "integrity": "sha512-6MolUvqYNepxgXts9xRONvX6I1yq63B/hct1zyRrLgWM2QjmFhhS2yCZxELwWZfGO1OmzqutDaqsoFqB+LYJGg==", - "dev": true, - "dependencies": { - "@redocly/ajv": "^8.11.2", - "@redocly/config": "^0.12.1", - "colorette": "^1.2.0", - "https-proxy-agent": "^7.0.4", - "js-levenshtein": "^1.1.6", - "js-yaml": "^4.1.0", - "lodash.isequal": "^4.5.0", - "minimatch": "^5.0.1", - "node-fetch": "^2.6.1", - "pluralize": "^8.0.0", - "yaml-ast-parser": "0.0.43" - }, - "engines": { - "node": ">=14.19.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@redocly/openapi-core/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@redocly/openapi-core/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@redocly/openapi-core/node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "dev": true, - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, "node_modules/@types/estree": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", @@ -892,18 +690,6 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/agent-base": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", - "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", - "dev": true, - "dependencies": { - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, "node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -920,15 +706,6 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -1008,12 +785,6 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/change-case": { - "version": "5.4.4", - "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz", - "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==", - "dev": true - }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -1032,12 +803,6 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/colorette": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz", - "integrity": "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==", - "dev": true - }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -1398,19 +1163,6 @@ "node": ">=8" } }, - "node_modules/https-proxy-agent": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz", - "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==", - "dev": true, - "dependencies": { - "agent-base": "^7.0.2", - "debug": "4" - }, - "engines": { - "node": ">= 14" - } - }, "node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", @@ -1445,18 +1197,6 @@ "node": ">=0.8.19" } }, - "node_modules/index-to-position": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/index-to-position/-/index-to-position-0.1.2.tgz", - "integrity": "sha512-MWDKS3AS1bGCHLBA2VLImJz42f7bJh8wQsTGCzI3j519/CASStoDONUBVz2I/VID0MpiX3SGSnbOD2xUalbE5g==", - "dev": true, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -1493,21 +1233,6 @@ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, - "node_modules/js-levenshtein": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz", - "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -1575,12 +1300,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/lodash.isequal": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", - "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==", - "dev": true - }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", @@ -1641,51 +1360,6 @@ "wrappy": "1" } }, - "node_modules/openapi-fetch": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/openapi-fetch/-/openapi-fetch-0.12.2.tgz", - "integrity": "sha512-ctMQ4LkkSWfIDUMuf1SYuPMsQ7ePcWAkYaMPW1lCDdk4WlV3Vulq1zoyGrwnFVvrBs5t7OOqNF+EKa8SAaovEA==", - "dependencies": { - "openapi-typescript-helpers": "^0.0.13" - } - }, - "node_modules/openapi-typescript": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/openapi-typescript/-/openapi-typescript-7.4.1.tgz", - "integrity": "sha512-HrRoWveViADezHCNgQqZmPKmQ74q7nuH/yg9ursFucZaYQNUqsX38fE/V2sKBHVM+pws4tAHpuh/ext2UJ/AoQ==", - "dev": true, - "dependencies": { - "@redocly/openapi-core": "^1.25.3", - "ansi-colors": "^4.1.3", - "change-case": "^5.4.4", - "parse-json": "^8.1.0", - "supports-color": "^9.4.0", - "yargs-parser": "^21.1.1" - }, - "bin": { - "openapi-typescript": "bin/cli.js" - }, - "peerDependencies": { - "typescript": "^5.x" - } - }, - "node_modules/openapi-typescript-helpers": { - "version": "0.0.13", - "resolved": "https://registry.npmjs.org/openapi-typescript-helpers/-/openapi-typescript-helpers-0.0.13.tgz", - "integrity": "sha512-z44WK2e7ygW3aUtAtiurfEACohf/Qt9g6BsejmIYgEoY4REHeRzgFJmO3ium0libsuzPc145I+8lE9aiiZrQvQ==" - }, - "node_modules/openapi-typescript/node_modules/supports-color": { - "version": "9.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-9.4.0.tgz", - "integrity": "sha512-VL+lNrEoIXww1coLPOmiEmK/0sGigko5COxI09KzHc2VJXJsQ37UaQ+8quuxjDeA7+KnLGTWRyOXSLLR2Wb4jw==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, "node_modules/optionator": { "version": "0.9.4", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", @@ -1745,23 +1419,6 @@ "node": ">=6" } }, - "node_modules/parse-json": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-8.1.0.tgz", - "integrity": "sha512-rum1bPifK5SSar35Z6EKZuYPJx85pkNaFrxBK3mwdfSJ1/WKbYrjoW/zTPSjRRamfmVX1ACBIdFAO0VRErW/EA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.22.13", - "index-to-position": "^0.1.2", - "type-fest": "^4.7.1" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -1780,12 +1437,6 @@ "node": ">=8" } }, - "node_modules/picocolors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz", - "integrity": "sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==", - "dev": true - }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", @@ -1798,15 +1449,6 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/pluralize": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", - "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -1845,15 +1487,6 @@ } ] }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", @@ -1971,12 +1604,6 @@ "node": ">=8.0" } }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "dev": true - }, "node_modules/ts-api-utils": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", @@ -2009,18 +1636,6 @@ "node": ">= 0.8.0" } }, - "node_modules/type-fest": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.26.1.tgz", - "integrity": "sha512-yOGpmOAL7CkKe/91I5O3gPICmJNLJ1G4zFYVAsRHg7M64biSnPtRj0WNQt++bRkjYOqjWXrhnUw1utzmVErAdg==", - "dev": true, - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/typescript": { "version": "5.6.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", @@ -2082,28 +1697,6 @@ "punycode": "^2.1.0" } }, - "node_modules/uri-js-replace": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/uri-js-replace/-/uri-js-replace-1.0.1.tgz", - "integrity": "sha512-W+C9NWNLFOoBI2QWDp4UT9pv65r2w5Cx+3sTYFvtMdDBxkKt1syCqsUdSFAChbEe1uK5TfS04wt/nGwmaeIQ0g==", - "dev": true - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "dev": true - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dev": true, - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -2133,21 +1726,6 @@ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, - "node_modules/yaml-ast-parser": { - "version": "0.0.43", - "resolved": "https://registry.npmjs.org/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz", - "integrity": "sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A==", - "dev": true - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "engines": { - "node": ">=12" - } - }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/package.json b/package.json index 0e926f4..235778e 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "main": "dist/index.js", "scripts": { "build": "tsc && ncc build lib/main.js -o dist", - "openapi": "openapi-typescript https://converter.swagger.io/api/convert?url=https://gitea.dsv.su.se/swagger.v1.json -o src/gitea-api.ts", "lint": "eslint src/**/*.ts" }, "repository": { @@ -20,8 +19,7 @@ "dependencies": { "@actions/core": "^1.11.1", "@actions/exec": "^1.1.1", - "@actions/github": "^6.0.0", - "openapi-fetch": "^0.12.2" + "@actions/github": "^6.0.0" }, "devDependencies": { "@eslint/js": "^9.12.0", @@ -29,7 +27,6 @@ "@vercel/ncc": "^0.38.2", "eslint": "^9.12.0", "globals": "^15.11.0", - "openapi-typescript": "^7.4.1", "typescript": "^5.6.3", "typescript-eslint": "^8.8.1" } diff --git a/src/gitea-api.ts b/src/gitea-api.ts deleted file mode 100644 index a3e8b31..0000000 --- a/src/gitea-api.ts +++ /dev/null @@ -1,17135 +0,0 @@ -/** - * This file was auto-generated by openapi-typescript. - * Do not make direct changes to the file. - */ - -export interface paths { - "/activitypub/user-id/{user-id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Returns the Person actor for a user */ - get: operations["activitypubPerson"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/activitypub/user-id/{user-id}/inbox": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Send to the inbox */ - post: operations["activitypubPersonInbox"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/admin/cron": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List cron tasks */ - get: operations["adminCronList"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/admin/cron/{task}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Run cron task */ - post: operations["adminCronRun"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/admin/emails": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List all emails */ - get: operations["adminGetAllEmails"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/admin/emails/search": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Search all emails */ - get: operations["adminSearchEmails"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/admin/hooks": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List system's webhooks */ - get: operations["adminListHooks"]; - put?: never; - /** Create a hook */ - post: operations["adminCreateHook"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/admin/hooks/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a hook */ - get: operations["adminGetHook"]; - put?: never; - post?: never; - /** Delete a hook */ - delete: operations["adminDeleteHook"]; - options?: never; - head?: never; - /** Update a hook */ - patch: operations["adminEditHook"]; - trace?: never; - }; - "/admin/orgs": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List all organizations */ - get: operations["adminGetAllOrgs"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/admin/runners/registration-token": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get an global actions runner registration token */ - get: operations["adminGetRunnerRegistrationToken"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/admin/unadopted": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List unadopted repositories */ - get: operations["adminUnadoptedList"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/admin/unadopted/{owner}/{repo}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Adopt unadopted files as a repository */ - post: operations["adminAdoptRepository"]; - /** Delete unadopted files */ - delete: operations["adminDeleteUnadoptedRepository"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/admin/users": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Search users according filter conditions */ - get: operations["adminSearchUsers"]; - put?: never; - /** Create a user */ - post: operations["adminCreateUser"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/admin/users/{username}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** Delete a user */ - delete: operations["adminDeleteUser"]; - options?: never; - head?: never; - /** Edit an existing user */ - patch: operations["adminEditUser"]; - trace?: never; - }; - "/admin/users/{username}/badges": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a user's badges */ - get: operations["adminListUserBadges"]; - put?: never; - /** Add a badge to a user */ - post: operations["adminAddUserBadges"]; - /** Remove a badge from a user */ - delete: operations["adminDeleteUserBadges"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/admin/users/{username}/keys": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Add a public key on behalf of a user */ - post: operations["adminCreatePublicKey"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/admin/users/{username}/keys/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** Delete a user's public key */ - delete: operations["adminDeleteUserPublicKey"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/admin/users/{username}/orgs": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Create an organization */ - post: operations["adminCreateOrg"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/admin/users/{username}/rename": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Rename a user */ - post: operations["adminRenameUser"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/admin/users/{username}/repos": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Create a repository on behalf of a user */ - post: operations["adminCreateRepo"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/gitignore/templates": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Returns a list of all gitignore templates */ - get: operations["listGitignoresTemplates"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/gitignore/templates/{name}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Returns information about a gitignore template */ - get: operations["getGitignoreTemplateInfo"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/label/templates": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Returns a list of all label templates */ - get: operations["listLabelTemplates"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/label/templates/{name}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Returns all labels in a template */ - get: operations["getLabelTemplateInfo"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/licenses": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Returns a list of all license templates */ - get: operations["listLicenseTemplates"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/licenses/{name}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Returns information about a license template */ - get: operations["getLicenseTemplateInfo"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/markdown": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Render a markdown document as HTML */ - post: operations["renderMarkdown"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/markdown/raw": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Render raw markdown as HTML */ - post: operations["renderMarkdownRaw"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/markup": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Render a markup document as HTML */ - post: operations["renderMarkup"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/nodeinfo": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Returns the nodeinfo of the Gitea application */ - get: operations["getNodeInfo"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/notifications": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List users's notification threads */ - get: operations["notifyGetList"]; - /** Mark notification threads as read, pinned or unread */ - put: operations["notifyReadList"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/notifications/new": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Check if unread notifications exist */ - get: operations["notifyNewAvailable"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/notifications/threads/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get notification thread by ID */ - get: operations["notifyGetThread"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - /** Mark notification thread as read by ID */ - patch: operations["notifyReadThread"]; - trace?: never; - }; - "/org/{org}/repos": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Create a repository in an organization - * @deprecated - */ - post: operations["createOrgRepoDeprecated"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get list of organizations */ - get: operations["orgGetAll"]; - put?: never; - /** Create an organization */ - post: operations["orgCreate"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get an organization */ - get: operations["orgGet"]; - put?: never; - post?: never; - /** Delete an organization */ - delete: operations["orgDelete"]; - options?: never; - head?: never; - /** Edit an organization */ - patch: operations["orgEdit"]; - trace?: never; - }; - "/orgs/{org}/actions/runners/registration-token": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get an organization's actions runner registration token */ - get: operations["orgGetRunnerRegistrationToken"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/actions/secrets": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List an organization's actions secrets */ - get: operations["orgListActionsSecrets"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/actions/secrets/{secretname}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Create or Update a secret value in an organization */ - put: operations["updateOrgSecret"]; - post?: never; - /** Delete a secret in an organization */ - delete: operations["deleteOrgSecret"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/actions/variables": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get an org-level variables list */ - get: operations["getOrgVariablesList"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/actions/variables/{variablename}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get an org-level variable */ - get: operations["getOrgVariable"]; - /** Update an org-level variable */ - put: operations["updateOrgVariable"]; - /** Create an org-level variable */ - post: operations["createOrgVariable"]; - /** Delete an org-level variable */ - delete: operations["deleteOrgVariable"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/activities/feeds": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List an organization's activity feeds */ - get: operations["orgListActivityFeeds"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/avatar": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Update Avatar */ - post: operations["orgUpdateAvatar"]; - /** Delete Avatar */ - delete: operations["orgDeleteAvatar"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/blocks": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List users blocked by the organization */ - get: operations["organizationListBlocks"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/blocks/{username}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Check if a user is blocked by the organization */ - get: operations["organizationCheckUserBlock"]; - /** Block a user */ - put: operations["organizationBlockUser"]; - post?: never; - /** Unblock a user */ - delete: operations["organizationUnblockUser"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/hooks": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List an organization's webhooks */ - get: operations["orgListHooks"]; - put?: never; - /** Create a hook */ - post: operations["orgCreateHook"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/hooks/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a hook */ - get: operations["orgGetHook"]; - put?: never; - post?: never; - /** Delete a hook */ - delete: operations["orgDeleteHook"]; - options?: never; - head?: never; - /** Update a hook */ - patch: operations["orgEditHook"]; - trace?: never; - }; - "/orgs/{org}/labels": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List an organization's labels */ - get: operations["orgListLabels"]; - put?: never; - /** Create a label for an organization */ - post: operations["orgCreateLabel"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/labels/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a single label */ - get: operations["orgGetLabel"]; - put?: never; - post?: never; - /** Delete a label */ - delete: operations["orgDeleteLabel"]; - options?: never; - head?: never; - /** Update a label */ - patch: operations["orgEditLabel"]; - trace?: never; - }; - "/orgs/{org}/members": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List an organization's members */ - get: operations["orgListMembers"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/members/{username}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Check if a user is a member of an organization */ - get: operations["orgIsMember"]; - put?: never; - post?: never; - /** Remove a member from an organization */ - delete: operations["orgDeleteMember"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/public_members": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List an organization's public members */ - get: operations["orgListPublicMembers"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/public_members/{username}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Check if a user is a public member of an organization */ - get: operations["orgIsPublicMember"]; - /** Publicize a user's membership */ - put: operations["orgPublicizeMember"]; - post?: never; - /** Conceal a user's membership */ - delete: operations["orgConcealMember"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/repos": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List an organization's repos */ - get: operations["orgListRepos"]; - put?: never; - /** Create a repository in an organization */ - post: operations["createOrgRepo"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/teams": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List an organization's teams */ - get: operations["orgListTeams"]; - put?: never; - /** Create a team */ - post: operations["orgCreateTeam"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/orgs/{org}/teams/search": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Search for teams within an organization */ - get: operations["teamSearch"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/packages/{owner}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Gets all packages of an owner */ - get: operations["listPackages"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/packages/{owner}/{type}/{name}/{version}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Gets a package */ - get: operations["getPackage"]; - put?: never; - post?: never; - /** Delete a package */ - delete: operations["deletePackage"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/packages/{owner}/{type}/{name}/{version}/files": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Gets all files of a package */ - get: operations["listPackageFiles"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/issues/search": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Search for issues across the repositories that the user has access to */ - get: operations["issueSearchIssues"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/migrate": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Migrate a remote git repository */ - post: operations["repoMigrate"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/search": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Search for repositories */ - get: operations["repoSearch"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a repository */ - get: operations["repoGet"]; - put?: never; - post?: never; - /** Delete a repository */ - delete: operations["repoDelete"]; - options?: never; - head?: never; - /** Edit a repository's properties. Only fields that are set will be changed. */ - patch: operations["repoEdit"]; - trace?: never; - }; - "/repos/{owner}/{repo}/actions/secrets": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List an repo's actions secrets */ - get: operations["repoListActionsSecrets"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/actions/secrets/{secretname}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Create or Update a secret value in a repository */ - put: operations["updateRepoSecret"]; - post?: never; - /** Delete a secret in a repository */ - delete: operations["deleteRepoSecret"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/actions/variables": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get repo-level variables list */ - get: operations["getRepoVariablesList"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/actions/variables/{variablename}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a repo-level variable */ - get: operations["getRepoVariable"]; - /** Update a repo-level variable */ - put: operations["updateRepoVariable"]; - /** Create a repo-level variable */ - post: operations["createRepoVariable"]; - /** Delete a repo-level variable */ - delete: operations["deleteRepoVariable"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/activities/feeds": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a repository's activity feeds */ - get: operations["repoListActivityFeeds"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/archive/{archive}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get an archive of a repository */ - get: operations["repoGetArchive"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/assignees": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Return all users that have write access and can be assigned to issues */ - get: operations["repoGetAssignees"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/avatar": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Update avatar */ - post: operations["repoUpdateAvatar"]; - /** Delete avatar */ - delete: operations["repoDeleteAvatar"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/branch_protections": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List branch protections for a repository */ - get: operations["repoListBranchProtection"]; - put?: never; - /** Create a branch protections for a repository */ - post: operations["repoCreateBranchProtection"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/branch_protections/{name}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a specific branch protection for the repository */ - get: operations["repoGetBranchProtection"]; - put?: never; - post?: never; - /** Delete a specific branch protection for the repository */ - delete: operations["repoDeleteBranchProtection"]; - options?: never; - head?: never; - /** Edit a branch protections for a repository. Only fields that are set will be changed */ - patch: operations["repoEditBranchProtection"]; - trace?: never; - }; - "/repos/{owner}/{repo}/branches": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a repository's branches */ - get: operations["repoListBranches"]; - put?: never; - /** Create a branch */ - post: operations["repoCreateBranch"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/branches/{branch}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Retrieve a specific branch from a repository, including its effective branch protection */ - get: operations["repoGetBranch"]; - put?: never; - post?: never; - /** Delete a specific branch from a repository */ - delete: operations["repoDeleteBranch"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/collaborators": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a repository's collaborators */ - get: operations["repoListCollaborators"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/collaborators/{collaborator}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Check if a user is a collaborator of a repository */ - get: operations["repoCheckCollaborator"]; - /** Add a collaborator to a repository */ - put: operations["repoAddCollaborator"]; - post?: never; - /** Delete a collaborator from a repository */ - delete: operations["repoDeleteCollaborator"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/collaborators/{collaborator}/permission": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get repository permissions for a user */ - get: operations["repoGetRepoPermissions"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/commits": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a list of all commits from a repository */ - get: operations["repoGetAllCommits"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/commits/{ref}/status": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a commit's combined status, by branch/tag/commit reference */ - get: operations["repoGetCombinedStatusByRef"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/commits/{ref}/statuses": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a commit's statuses, by branch/tag/commit reference */ - get: operations["repoListStatusesByRef"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/commits/{sha}/pull": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get the pull request of the commit */ - get: operations["repoGetCommitPullRequest"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/compare/{basehead}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get commit comparison information */ - get: operations["repoCompareDiff"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/contents": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Gets the metadata of all the entries of the root dir */ - get: operations["repoGetContentsList"]; - put?: never; - /** Modify multiple files in a repository */ - post: operations["repoChangeFiles"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/contents/{filepath}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir */ - get: operations["repoGetContents"]; - /** Update a file in a repository */ - put: operations["repoUpdateFile"]; - /** Create a file in a repository */ - post: operations["repoCreateFile"]; - /** Delete a file in a repository */ - delete: operations["repoDeleteFile"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/diffpatch": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Apply diff patch to repository */ - post: operations["repoApplyDiffPatch"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/editorconfig/{filepath}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get the EditorConfig definitions of a file in a repository */ - get: operations["repoGetEditorConfig"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/forks": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a repository's forks */ - get: operations["listForks"]; - put?: never; - /** Fork a repository */ - post: operations["createFork"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/git/blobs/{sha}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Gets the blob of a repository. */ - get: operations["GetBlob"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/git/commits/{sha}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a single commit from a repository */ - get: operations["repoGetSingleCommit"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/git/commits/{sha}.{diffType}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a commit's diff or patch */ - get: operations["repoDownloadCommitDiffOrPatch"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/git/notes/{sha}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a note corresponding to a single commit from a repository */ - get: operations["repoGetNote"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/git/refs": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get specified ref or filtered repository's refs */ - get: operations["repoListAllGitRefs"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/git/refs/{ref}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get specified ref or filtered repository's refs */ - get: operations["repoListGitRefs"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/git/tags/{sha}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Gets the tag object of an annotated tag (not lightweight tags) */ - get: operations["GetAnnotatedTag"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/git/trees/{sha}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Gets the tree of a repository. */ - get: operations["GetTree"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/hooks": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the hooks in a repository */ - get: operations["repoListHooks"]; - put?: never; - /** Create a hook */ - post: operations["repoCreateHook"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/hooks/git": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the Git hooks in a repository */ - get: operations["repoListGitHooks"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/hooks/git/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a Git hook */ - get: operations["repoGetGitHook"]; - put?: never; - post?: never; - /** Delete a Git hook in a repository */ - delete: operations["repoDeleteGitHook"]; - options?: never; - head?: never; - /** Edit a Git hook in a repository */ - patch: operations["repoEditGitHook"]; - trace?: never; - }; - "/repos/{owner}/{repo}/hooks/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a hook */ - get: operations["repoGetHook"]; - put?: never; - post?: never; - /** Delete a hook in a repository */ - delete: operations["repoDeleteHook"]; - options?: never; - head?: never; - /** Edit a hook in a repository */ - patch: operations["repoEditHook"]; - trace?: never; - }; - "/repos/{owner}/{repo}/hooks/{id}/tests": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Test a push webhook */ - post: operations["repoTestHook"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issue_config": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Returns the issue config for a repo */ - get: operations["repoGetIssueConfig"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issue_config/validate": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Returns the validation information for a issue config */ - get: operations["repoValidateIssueConfig"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issue_templates": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get available issue templates for a repository */ - get: operations["repoGetIssueTemplates"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a repository's issues */ - get: operations["issueListIssues"]; - put?: never; - /** Create an issue. If using deadline only the date will be taken into account, and time of day ignored. */ - post: operations["issueCreateIssue"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/comments": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List all comments in a repository */ - get: operations["issueGetRepoComments"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/comments/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a comment */ - get: operations["issueGetComment"]; - put?: never; - post?: never; - /** Delete a comment */ - delete: operations["issueDeleteComment"]; - options?: never; - head?: never; - /** Edit a comment */ - patch: operations["issueEditComment"]; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/comments/{id}/assets": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List comment's attachments */ - get: operations["issueListIssueCommentAttachments"]; - put?: never; - /** Create a comment attachment */ - post: operations["issueCreateIssueCommentAttachment"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a comment attachment */ - get: operations["issueGetIssueCommentAttachment"]; - put?: never; - post?: never; - /** Delete a comment attachment */ - delete: operations["issueDeleteIssueCommentAttachment"]; - options?: never; - head?: never; - /** Edit a comment attachment */ - patch: operations["issueEditIssueCommentAttachment"]; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/comments/{id}/reactions": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a list of reactions from a comment of an issue */ - get: operations["issueGetCommentReactions"]; - put?: never; - /** Add a reaction to a comment of an issue */ - post: operations["issuePostCommentReaction"]; - /** Remove a reaction from a comment of an issue */ - delete: operations["issueDeleteCommentReaction"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/pinned": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a repo's pinned issues */ - get: operations["repoListPinnedIssues"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get an issue */ - get: operations["issueGetIssue"]; - put?: never; - post?: never; - /** Delete an issue */ - delete: operations["issueDelete"]; - options?: never; - head?: never; - /** Edit an issue. If using deadline only the date will be taken into account, and time of day ignored. */ - patch: operations["issueEditIssue"]; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/assets": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List issue's attachments */ - get: operations["issueListIssueAttachments"]; - put?: never; - /** Create an issue attachment */ - post: operations["issueCreateIssueAttachment"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/assets/{attachment_id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get an issue attachment */ - get: operations["issueGetIssueAttachment"]; - put?: never; - post?: never; - /** Delete an issue attachment */ - delete: operations["issueDeleteIssueAttachment"]; - options?: never; - head?: never; - /** Edit an issue attachment */ - patch: operations["issueEditIssueAttachment"]; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/blocks": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List issues that are blocked by this issue */ - get: operations["issueListBlocks"]; - put?: never; - /** Block the issue given in the body by the issue in path */ - post: operations["issueCreateIssueBlocking"]; - /** Unblock the issue given in the body by the issue in path */ - delete: operations["issueRemoveIssueBlocking"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/comments": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List all comments on an issue */ - get: operations["issueGetComments"]; - put?: never; - /** Add a comment to an issue */ - post: operations["issueCreateComment"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/comments/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** - * Delete a comment - * @deprecated - */ - delete: operations["issueDeleteCommentDeprecated"]; - options?: never; - head?: never; - /** - * Edit a comment - * @deprecated - */ - patch: operations["issueEditCommentDeprecated"]; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/deadline": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored. */ - post: operations["issueEditIssueDeadline"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/dependencies": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List an issue's dependencies, i.e all issues that block this issue. */ - get: operations["issueListIssueDependencies"]; - put?: never; - /** Make the issue in the url depend on the issue in the form. */ - post: operations["issueCreateIssueDependencies"]; - /** Remove an issue dependency */ - delete: operations["issueRemoveIssueDependencies"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/labels": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get an issue's labels */ - get: operations["issueGetLabels"]; - /** Replace an issue's labels */ - put: operations["issueReplaceLabels"]; - /** Add a label to an issue */ - post: operations["issueAddLabel"]; - /** Remove all labels from an issue */ - delete: operations["issueClearLabels"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/labels/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** Remove a label from an issue */ - delete: operations["issueRemoveLabel"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/pin": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Pin an Issue */ - post: operations["pinIssue"]; - /** Unpin an Issue */ - delete: operations["unpinIssue"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/pin/{position}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - /** Moves the Pin to the given Position */ - patch: operations["moveIssuePin"]; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/reactions": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a list reactions of an issue */ - get: operations["issueGetIssueReactions"]; - put?: never; - /** Add a reaction to an issue */ - post: operations["issuePostIssueReaction"]; - /** Remove a reaction from an issue */ - delete: operations["issueDeleteIssueReaction"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/stopwatch/delete": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** Delete an issue's existing stopwatch. */ - delete: operations["issueDeleteStopWatch"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/stopwatch/start": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Start stopwatch on an issue. */ - post: operations["issueStartStopWatch"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/stopwatch/stop": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Stop an issue's existing stopwatch. */ - post: operations["issueStopStopWatch"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/subscriptions": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get users who subscribed on an issue. */ - get: operations["issueSubscriptions"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/subscriptions/check": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Check if user is subscribed to an issue */ - get: operations["issueCheckSubscription"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/subscriptions/{user}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Subscribe user to issue */ - put: operations["issueAddSubscription"]; - post?: never; - /** Unsubscribe user from issue */ - delete: operations["issueDeleteSubscription"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/timeline": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List all comments and events on an issue */ - get: operations["issueGetCommentsAndTimeline"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/times": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List an issue's tracked times */ - get: operations["issueTrackedTimes"]; - put?: never; - /** Add tracked time to a issue */ - post: operations["issueAddTime"]; - /** Reset a tracked time of an issue */ - delete: operations["issueResetTime"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/issues/{index}/times/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** Delete specific tracked time */ - delete: operations["issueDeleteTime"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/keys": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a repository's keys */ - get: operations["repoListKeys"]; - put?: never; - /** Add a key to a repository */ - post: operations["repoCreateKey"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/keys/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a repository's key by id */ - get: operations["repoGetKey"]; - put?: never; - post?: never; - /** Delete a key from a repository */ - delete: operations["repoDeleteKey"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/labels": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all of a repository's labels */ - get: operations["issueListLabels"]; - put?: never; - /** Create a label */ - post: operations["issueCreateLabel"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/labels/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a single label */ - get: operations["issueGetLabel"]; - put?: never; - post?: never; - /** Delete a label */ - delete: operations["issueDeleteLabel"]; - options?: never; - head?: never; - /** Update a label */ - patch: operations["issueEditLabel"]; - trace?: never; - }; - "/repos/{owner}/{repo}/languages": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get languages and number of bytes of code written */ - get: operations["repoGetLanguages"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/media/{filepath}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a file or it's LFS object from a repository */ - get: operations["repoGetRawFileOrLFS"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/milestones": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all of a repository's opened milestones */ - get: operations["issueGetMilestonesList"]; - put?: never; - /** Create a milestone */ - post: operations["issueCreateMilestone"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/milestones/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a milestone */ - get: operations["issueGetMilestone"]; - put?: never; - post?: never; - /** Delete a milestone */ - delete: operations["issueDeleteMilestone"]; - options?: never; - head?: never; - /** Update a milestone */ - patch: operations["issueEditMilestone"]; - trace?: never; - }; - "/repos/{owner}/{repo}/mirror-sync": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Sync a mirrored repository */ - post: operations["repoMirrorSync"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/new_pin_allowed": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Returns if new Issue Pins are allowed */ - get: operations["repoNewPinAllowed"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/notifications": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List users's notification threads on a specific repo */ - get: operations["notifyGetRepoList"]; - /** Mark notification threads as read, pinned or unread on a specific repo */ - put: operations["notifyReadRepoList"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/pulls": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a repo's pull requests */ - get: operations["repoListPullRequests"]; - put?: never; - /** Create a pull request */ - post: operations["repoCreatePullRequest"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/pulls/pinned": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a repo's pinned pull requests */ - get: operations["repoListPinnedPullRequests"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/pulls/{base}/{head}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a pull request by base and head */ - get: operations["repoGetPullRequestByBaseHead"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/pulls/{index}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a pull request */ - get: operations["repoGetPullRequest"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - /** Update a pull request. If using deadline only the date will be taken into account, and time of day ignored. */ - patch: operations["repoEditPullRequest"]; - trace?: never; - }; - "/repos/{owner}/{repo}/pulls/{index}.{diffType}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a pull request diff or patch */ - get: operations["repoDownloadPullDiffOrPatch"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/pulls/{index}/commits": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get commits for a pull request */ - get: operations["repoGetPullRequestCommits"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/pulls/{index}/files": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get changed files for a pull request */ - get: operations["repoGetPullRequestFiles"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/pulls/{index}/merge": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Check if a pull request has been merged */ - get: operations["repoPullRequestIsMerged"]; - put?: never; - /** Merge a pull request */ - post: operations["repoMergePullRequest"]; - /** Cancel the scheduled auto merge for the given pull request */ - delete: operations["repoCancelScheduledAutoMerge"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/pulls/{index}/requested_reviewers": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** create review requests for a pull request */ - post: operations["repoCreatePullReviewRequests"]; - /** cancel review requests for a pull request */ - delete: operations["repoDeletePullReviewRequests"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/pulls/{index}/reviews": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List all reviews for a pull request */ - get: operations["repoListPullReviews"]; - put?: never; - /** Create a review to an pull request */ - post: operations["repoCreatePullReview"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a specific review for a pull request */ - get: operations["repoGetPullReview"]; - put?: never; - /** Submit a pending review to an pull request */ - post: operations["repoSubmitPullReview"]; - /** Delete a specific review from a pull request */ - delete: operations["repoDeletePullReview"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a specific review for a pull request */ - get: operations["repoGetPullReviewComments"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/dismissals": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Dismiss a review for a pull request */ - post: operations["repoDismissPullReview"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/undismissals": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Cancel to dismiss a review for a pull request */ - post: operations["repoUnDismissPullReview"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/pulls/{index}/update": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Merge PR's baseBranch into headBranch */ - post: operations["repoUpdatePullRequest"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/push_mirrors": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all push mirrors of the repository */ - get: operations["repoListPushMirrors"]; - put?: never; - /** add a push mirror to the repository */ - post: operations["repoAddPushMirror"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/push_mirrors-sync": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Sync all push mirrored repository */ - post: operations["repoPushMirrorSync"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/push_mirrors/{name}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get push mirror of the repository by remoteName */ - get: operations["repoGetPushMirrorByRemoteName"]; - put?: never; - post?: never; - /** deletes a push mirror from a repository by remoteName */ - delete: operations["repoDeletePushMirror"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/raw/{filepath}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a file from a repository */ - get: operations["repoGetRawFile"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/releases": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a repo's releases */ - get: operations["repoListReleases"]; - put?: never; - /** Create a release */ - post: operations["repoCreateRelease"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/releases/latest": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Gets the most recent non-prerelease, non-draft release of a repository, sorted by created_at */ - get: operations["repoGetLatestRelease"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/releases/tags/{tag}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a release by tag name */ - get: operations["repoGetReleaseByTag"]; - put?: never; - post?: never; - /** Delete a release by tag name */ - delete: operations["repoDeleteReleaseByTag"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/releases/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a release */ - get: operations["repoGetRelease"]; - put?: never; - post?: never; - /** Delete a release */ - delete: operations["repoDeleteRelease"]; - options?: never; - head?: never; - /** Update a release */ - patch: operations["repoEditRelease"]; - trace?: never; - }; - "/repos/{owner}/{repo}/releases/{id}/assets": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List release's attachments */ - get: operations["repoListReleaseAttachments"]; - put?: never; - /** Create a release attachment */ - post: operations["repoCreateReleaseAttachment"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a release attachment */ - get: operations["repoGetReleaseAttachment"]; - put?: never; - post?: never; - /** Delete a release attachment */ - delete: operations["repoDeleteReleaseAttachment"]; - options?: never; - head?: never; - /** Edit a release attachment */ - patch: operations["repoEditReleaseAttachment"]; - trace?: never; - }; - "/repos/{owner}/{repo}/reviewers": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Return all users that can be requested to review in this repo */ - get: operations["repoGetReviewers"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/runners/registration-token": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a repository's actions runner registration token */ - get: operations["repoGetRunnerRegistrationToken"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/signing-key.gpg": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get signing-key.gpg for given repository */ - get: operations["repoSigningKey"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/stargazers": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a repo's stargazers */ - get: operations["repoListStargazers"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/statuses/{sha}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a commit's statuses */ - get: operations["repoListStatuses"]; - put?: never; - /** Create a commit status */ - post: operations["repoCreateStatus"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/subscribers": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a repo's watchers */ - get: operations["repoListSubscribers"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/subscription": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Check if the current user is watching a repo */ - get: operations["userCurrentCheckSubscription"]; - /** Watch a repo */ - put: operations["userCurrentPutSubscription"]; - post?: never; - /** Unwatch a repo */ - delete: operations["userCurrentDeleteSubscription"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/tags": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a repository's tags */ - get: operations["repoListTags"]; - put?: never; - /** Create a new git tag in a repository */ - post: operations["repoCreateTag"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/tags/{tag}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get the tag of a repository by tag name */ - get: operations["repoGetTag"]; - put?: never; - post?: never; - /** Delete a repository's tag by name */ - delete: operations["repoDeleteTag"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/teams": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a repository's teams */ - get: operations["repoListTeams"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/teams/{team}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Check if a team is assigned to a repository */ - get: operations["repoCheckTeam"]; - /** Add a team to a repository */ - put: operations["repoAddTeam"]; - post?: never; - /** Delete a team from a repository */ - delete: operations["repoDeleteTeam"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/times": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a repo's tracked times */ - get: operations["repoTrackedTimes"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/times/{user}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * List a user's tracked times in a repo - * @deprecated - */ - get: operations["userTrackedTimes"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/topics": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get list of topics that a repository has */ - get: operations["repoListTopics"]; - /** Replace list of topics for a repository */ - put: operations["repoUpdateTopics"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/topics/{topic}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Add a topic to a repository */ - put: operations["repoAddTopic"]; - post?: never; - /** Delete a topic from a repository */ - delete: operations["repoDeleteTopic"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/transfer": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Transfer a repo ownership */ - post: operations["repoTransfer"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/transfer/accept": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Accept a repo transfer */ - post: operations["acceptRepoTransfer"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/transfer/reject": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Reject a repo transfer */ - post: operations["rejectRepoTransfer"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/wiki/new": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Create a wiki page */ - post: operations["repoCreateWikiPage"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/wiki/page/{pageName}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a wiki page */ - get: operations["repoGetWikiPage"]; - put?: never; - post?: never; - /** Delete a wiki page */ - delete: operations["repoDeleteWikiPage"]; - options?: never; - head?: never; - /** Edit a wiki page */ - patch: operations["repoEditWikiPage"]; - trace?: never; - }; - "/repos/{owner}/{repo}/wiki/pages": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all wiki pages */ - get: operations["repoGetWikiPages"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{owner}/{repo}/wiki/revisions/{pageName}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get revisions of a wiki page */ - get: operations["repoGetWikiPageRevisions"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repos/{template_owner}/{template_repo}/generate": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Create a repository using a template */ - post: operations["generateRepo"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/repositories/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a repository by id */ - get: operations["repoGetByID"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/settings/api": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get instance's global settings for api */ - get: operations["getGeneralAPISettings"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/settings/attachment": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get instance's global settings for Attachment */ - get: operations["getGeneralAttachmentSettings"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/settings/repository": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get instance's global settings for repositories */ - get: operations["getGeneralRepositorySettings"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/settings/ui": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get instance's global settings for ui */ - get: operations["getGeneralUISettings"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/signing-key.gpg": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get default signing-key.gpg */ - get: operations["getSigningKey"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/teams/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a team */ - get: operations["orgGetTeam"]; - put?: never; - post?: never; - /** Delete a team */ - delete: operations["orgDeleteTeam"]; - options?: never; - head?: never; - /** Edit a team */ - patch: operations["orgEditTeam"]; - trace?: never; - }; - "/teams/{id}/activities/feeds": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a team's activity feeds */ - get: operations["orgListTeamActivityFeeds"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/teams/{id}/members": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a team's members */ - get: operations["orgListTeamMembers"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/teams/{id}/members/{username}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a particular member of team */ - get: operations["orgListTeamMember"]; - /** Add a team member */ - put: operations["orgAddTeamMember"]; - post?: never; - /** Remove a team member */ - delete: operations["orgRemoveTeamMember"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/teams/{id}/repos": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a team's repos */ - get: operations["orgListTeamRepos"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/teams/{id}/repos/{org}/{repo}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a particular repo of team */ - get: operations["orgListTeamRepo"]; - /** Add a repository to a team */ - put: operations["orgAddTeamRepository"]; - post?: never; - /** - * Remove a repository from a team - * @description This does not delete the repository, it only removes the repository from the team. - */ - delete: operations["orgRemoveTeamRepository"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/topics/search": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** search topics via keyword */ - get: operations["topicSearch"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get the authenticated user */ - get: operations["userGetCurrent"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/actions/runners/registration-token": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get an user's actions runner registration token */ - get: operations["userGetRunnerRegistrationToken"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/actions/secrets/{secretname}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Create or Update a secret value in a user scope */ - put: operations["updateUserSecret"]; - post?: never; - /** Delete a secret in a user scope */ - delete: operations["deleteUserSecret"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/actions/variables": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get the user-level list of variables which is created by current doer */ - get: operations["getUserVariablesList"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/actions/variables/{variablename}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a user-level variable which is created by current doer */ - get: operations["getUserVariable"]; - /** Update a user-level variable which is created by current doer */ - put: operations["updateUserVariable"]; - /** Create a user-level variable */ - post: operations["createUserVariable"]; - /** Delete a user-level variable which is created by current doer */ - delete: operations["deleteUserVariable"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/applications/oauth2": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the authenticated user's oauth2 applications */ - get: operations["userGetOauth2Application"]; - put?: never; - /** creates a new OAuth2 application */ - post: operations["userCreateOAuth2Application"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/applications/oauth2/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** get an OAuth2 Application */ - get: operations["userGetOAuth2Application"]; - put?: never; - post?: never; - /** delete an OAuth2 Application */ - delete: operations["userDeleteOAuth2Application"]; - options?: never; - head?: never; - /** update an OAuth2 Application, this includes regenerating the client secret */ - patch: operations["userUpdateOAuth2Application"]; - trace?: never; - }; - "/user/avatar": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Update Avatar */ - post: operations["userUpdateAvatar"]; - /** Delete Avatar */ - delete: operations["userDeleteAvatar"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/blocks": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List users blocked by the authenticated user */ - get: operations["userListBlocks"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/blocks/{username}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Check if a user is blocked by the authenticated user */ - get: operations["userCheckUserBlock"]; - /** Block a user */ - put: operations["userBlockUser"]; - post?: never; - /** Unblock a user */ - delete: operations["userUnblockUser"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/emails": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the authenticated user's email addresses */ - get: operations["userListEmails"]; - put?: never; - /** Add email addresses */ - post: operations["userAddEmail"]; - /** Delete email addresses */ - delete: operations["userDeleteEmail"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/followers": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the authenticated user's followers */ - get: operations["userCurrentListFollowers"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/following": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the users that the authenticated user is following */ - get: operations["userCurrentListFollowing"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/following/{username}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Check whether a user is followed by the authenticated user */ - get: operations["userCurrentCheckFollowing"]; - /** Follow a user */ - put: operations["userCurrentPutFollow"]; - post?: never; - /** Unfollow a user */ - delete: operations["userCurrentDeleteFollow"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/gpg_key_token": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a Token to verify */ - get: operations["getVerificationToken"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/gpg_key_verify": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Verify a GPG key */ - post: operations["userVerifyGPGKey"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/gpg_keys": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the authenticated user's GPG keys */ - get: operations["userCurrentListGPGKeys"]; - put?: never; - /** Create a GPG key */ - post: operations["userCurrentPostGPGKey"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/gpg_keys/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a GPG key */ - get: operations["userCurrentGetGPGKey"]; - put?: never; - post?: never; - /** Remove a GPG key */ - delete: operations["userCurrentDeleteGPGKey"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/hooks": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the authenticated user's webhooks */ - get: operations["userListHooks"]; - put?: never; - /** Create a hook */ - post: operations["userCreateHook"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/hooks/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a hook */ - get: operations["userGetHook"]; - put?: never; - post?: never; - /** Delete a hook */ - delete: operations["userDeleteHook"]; - options?: never; - head?: never; - /** Update a hook */ - patch: operations["userEditHook"]; - trace?: never; - }; - "/user/keys": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the authenticated user's public keys */ - get: operations["userCurrentListKeys"]; - put?: never; - /** Create a public key */ - post: operations["userCurrentPostKey"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/keys/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a public key */ - get: operations["userCurrentGetKey"]; - put?: never; - post?: never; - /** Delete a public key */ - delete: operations["userCurrentDeleteKey"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/orgs": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the current user's organizations */ - get: operations["orgListCurrentUserOrgs"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/repos": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the repos that the authenticated user owns */ - get: operations["userCurrentListRepos"]; - put?: never; - /** Create a repository */ - post: operations["createCurrentUserRepo"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/settings": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get user settings */ - get: operations["getUserSettings"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - /** Update user settings */ - patch: operations["updateUserSettings"]; - trace?: never; - }; - "/user/starred": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** The repos that the authenticated user has starred */ - get: operations["userCurrentListStarred"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/starred/{owner}/{repo}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Whether the authenticated is starring the repo */ - get: operations["userCurrentCheckStarring"]; - /** Star the given repo */ - put: operations["userCurrentPutStar"]; - post?: never; - /** Unstar the given repo */ - delete: operations["userCurrentDeleteStar"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/stopwatches": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get list of all existing stopwatches */ - get: operations["userGetStopWatches"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/subscriptions": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List repositories watched by the authenticated user */ - get: operations["userCurrentListSubscriptions"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/teams": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List all the teams a user belongs to */ - get: operations["userListTeams"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/user/times": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the current user's tracked times */ - get: operations["userCurrentTrackedTimes"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/users/search": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Search for users */ - get: operations["userSearch"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/users/{username}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a user */ - get: operations["userGet"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/users/{username}/activities/feeds": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a user's activity feeds */ - get: operations["userListActivityFeeds"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/users/{username}/followers": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the given user's followers */ - get: operations["userListFollowers"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/users/{username}/following": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the users that the given user is following */ - get: operations["userListFollowing"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/users/{username}/following/{target}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Check if one user is following another user */ - get: operations["userCheckFollowing"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/users/{username}/gpg_keys": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the given user's GPG keys */ - get: operations["userListGPGKeys"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/users/{username}/heatmap": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get a user's heatmap */ - get: operations["userGetHeatmapData"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/users/{username}/keys": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the given user's public keys */ - get: operations["userListKeys"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/users/{username}/orgs": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List a user's organizations */ - get: operations["orgListUserOrgs"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/users/{username}/orgs/{org}/permissions": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get user permissions in organization */ - get: operations["orgGetUserPermissions"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/users/{username}/repos": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the repos owned by the given user */ - get: operations["userListRepos"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/users/{username}/starred": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** The repos that the given user has starred */ - get: operations["userListStarred"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/users/{username}/subscriptions": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the repositories watched by a user */ - get: operations["userListSubscriptions"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/users/{username}/tokens": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List the authenticated user's access tokens */ - get: operations["userGetTokens"]; - put?: never; - /** Create an access token */ - post: operations["userCreateToken"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/users/{username}/tokens/{token}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** delete an access token */ - delete: operations["userDeleteAccessToken"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/version": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Returns the version of the Gitea application */ - get: operations["getVersion"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; -} -export type webhooks = Record<string, never>; -export interface components { - schemas: { - /** @description APIError is an api error with a message */ - APIError: { - message?: string; - url?: string; - }; - /** AccessToken represents an API access token. */ - AccessToken: { - /** Format: int64 */ - id?: number; - name?: string; - scopes?: string[]; - sha1?: string; - token_last_eight?: string; - }; - /** @description ActionVariable return value of the query API */ - ActionVariable: { - /** @description the value of the variable */ - data?: string; - /** @description the name of the variable */ - name?: string; - /** - * Format: int64 - * @description the owner to which the variable belongs - */ - owner_id?: number; - /** - * Format: int64 - * @description the repository to which the variable belongs - */ - repo_id?: number; - }; - Activity: { - act_user?: components["schemas"]["User"]; - /** Format: int64 */ - act_user_id?: number; - comment?: components["schemas"]["Comment"]; - /** Format: int64 */ - comment_id?: number; - content?: string; - /** Format: date-time */ - created?: string; - /** Format: int64 */ - id?: number; - is_private?: boolean; - op_type?: string; - ref_name?: string; - repo?: components["schemas"]["Repository"]; - /** Format: int64 */ - repo_id?: number; - /** Format: int64 */ - user_id?: number; - }; - /** @description ActivityPub type */ - ActivityPub: { - "@context"?: string; - }; - /** @description AddCollaboratorOption options when adding a user as a collaborator of a repository */ - AddCollaboratorOption: { - permission?: string; - }; - /** @description AddTimeOption options for adding time to an issue */ - AddTimeOption: { - /** Format: date-time */ - created?: string; - /** - * Format: int64 - * @description time in seconds - */ - time: number; - /** @description User who spent the time (optional) */ - user_name?: string; - }; - /** @description AnnotatedTag represents an annotated tag */ - AnnotatedTag: { - message?: string; - object?: components["schemas"]["AnnotatedTagObject"]; - sha?: string; - tag?: string; - tagger?: components["schemas"]["CommitUser"]; - url?: string; - verification?: components["schemas"]["PayloadCommitVerification"]; - }; - /** @description AnnotatedTagObject contains meta information of the tag object */ - AnnotatedTagObject: { - sha?: string; - type?: string; - url?: string; - }; - /** @description Attachment a generic attachment */ - Attachment: { - browser_download_url?: string; - /** Format: date-time */ - created_at?: string; - /** Format: int64 */ - download_count?: number; - /** Format: int64 */ - id?: number; - name?: string; - /** Format: int64 */ - size?: number; - uuid?: string; - }; - /** @description Badge represents a user badge */ - Badge: { - description?: string; - /** Format: int64 */ - id?: number; - image_url?: string; - slug?: string; - }; - /** @description Branch represents a repository branch */ - Branch: { - commit?: components["schemas"]["PayloadCommit"]; - effective_branch_protection_name?: string; - enable_status_check?: boolean; - name?: string; - protected?: boolean; - /** Format: int64 */ - required_approvals?: number; - status_check_contexts?: string[]; - user_can_merge?: boolean; - user_can_push?: boolean; - }; - /** @description BranchProtection represents a branch protection for a repository */ - BranchProtection: { - approvals_whitelist_teams?: string[]; - approvals_whitelist_username?: string[]; - block_on_official_review_requests?: boolean; - block_on_outdated_branch?: boolean; - block_on_rejected_reviews?: boolean; - /** @description Deprecated: true */ - branch_name?: string; - /** Format: date-time */ - created_at?: string; - dismiss_stale_approvals?: boolean; - enable_approvals_whitelist?: boolean; - enable_merge_whitelist?: boolean; - enable_push?: boolean; - enable_push_whitelist?: boolean; - enable_status_check?: boolean; - ignore_stale_approvals?: boolean; - merge_whitelist_teams?: string[]; - merge_whitelist_usernames?: string[]; - protected_file_patterns?: string; - push_whitelist_deploy_keys?: boolean; - push_whitelist_teams?: string[]; - push_whitelist_usernames?: string[]; - require_signed_commits?: boolean; - /** Format: int64 */ - required_approvals?: number; - rule_name?: string; - status_check_contexts?: string[]; - unprotected_file_patterns?: string; - /** Format: date-time */ - updated_at?: string; - }; - /** @description ChangeFileOperation for creating, updating or deleting a file */ - ChangeFileOperation: { - /** @description new or updated file content, must be base64 encoded */ - content?: string; - /** @description old path of the file to move */ - from_path?: string; - /** - * @description indicates what to do with the file - * @enum {string} - */ - operation: "create" | "update" | "delete"; - /** @description path to the existing or new file */ - path: string; - /** @description sha is the SHA for the file that already exists, required for update or delete */ - sha?: string; - }; - /** @description ChangeFilesOptions options for creating, updating or deleting multiple files - * Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used) */ - ChangeFilesOptions: { - author?: components["schemas"]["Identity"]; - /** @description branch (optional) to base this file from. if not given, the default branch is used */ - branch?: string; - committer?: components["schemas"]["Identity"]; - dates?: components["schemas"]["CommitDateOptions"]; - /** @description list of file operations */ - files: components["schemas"]["ChangeFileOperation"][]; - /** @description message (optional) for the commit of this file. if not supplied, a default message will be used */ - message?: string; - /** @description new_branch (optional) will make a new branch from `branch` before creating the file */ - new_branch?: string; - /** @description Add a Signed-off-by trailer by the committer at the end of the commit log message. */ - signoff?: boolean; - }; - /** @description ChangedFile store information about files affected by the pull request */ - ChangedFile: { - /** Format: int64 */ - additions?: number; - /** Format: int64 */ - changes?: number; - contents_url?: string; - /** Format: int64 */ - deletions?: number; - filename?: string; - html_url?: string; - previous_filename?: string; - raw_url?: string; - status?: string; - }; - /** @description CombinedStatus holds the combined state of several statuses for a single commit */ - CombinedStatus: { - commit_url?: string; - repository?: components["schemas"]["Repository"]; - sha?: string; - state?: components["schemas"]["CommitStatusState"]; - statuses?: components["schemas"]["CommitStatus"][]; - /** Format: int64 */ - total_count?: number; - url?: string; - }; - /** @description Comment represents a comment on a commit or issue */ - Comment: { - assets?: components["schemas"]["Attachment"][]; - body?: string; - /** Format: date-time */ - created_at?: string; - html_url?: string; - /** Format: int64 */ - id?: number; - issue_url?: string; - original_author?: string; - /** Format: int64 */ - original_author_id?: number; - pull_request_url?: string; - /** Format: date-time */ - updated_at?: string; - user?: components["schemas"]["User"]; - }; - /** Commit contains information generated from a Git commit. */ - Commit: { - author?: components["schemas"]["User"]; - commit?: components["schemas"]["RepoCommit"]; - committer?: components["schemas"]["User"]; - /** Format: date-time */ - created?: string; - files?: components["schemas"]["CommitAffectedFiles"][]; - html_url?: string; - parents?: components["schemas"]["CommitMeta"][]; - sha?: string; - stats?: components["schemas"]["CommitStats"]; - url?: string; - }; - /** @description CommitAffectedFiles store information about files affected by the commit */ - CommitAffectedFiles: { - filename?: string; - status?: string; - }; - /** @description CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE */ - CommitDateOptions: { - /** Format: date-time */ - author?: string; - /** Format: date-time */ - committer?: string; - }; - /** CommitMeta contains meta information of a commit in terms of API. */ - CommitMeta: { - /** Format: date-time */ - created?: string; - sha?: string; - url?: string; - }; - /** @description CommitStats is statistics for a RepoCommit */ - CommitStats: { - /** Format: int64 */ - additions?: number; - /** Format: int64 */ - deletions?: number; - /** Format: int64 */ - total?: number; - }; - /** @description CommitStatus holds a single status of a single Commit */ - CommitStatus: { - context?: string; - /** Format: date-time */ - created_at?: string; - creator?: components["schemas"]["User"]; - description?: string; - /** Format: int64 */ - id?: number; - status?: components["schemas"]["CommitStatusState"]; - target_url?: string; - /** Format: date-time */ - updated_at?: string; - url?: string; - }; - /** @description CommitStatusState holds the state of a CommitStatus - * It can be "pending", "success", "error" and "failure" */ - CommitStatusState: string; - /** CommitUser contains information of a user in the context of a commit. */ - CommitUser: { - date?: string; - /** Format: email */ - email?: string; - name?: string; - }; - /** Compare represents a comparison between two commits. */ - Compare: { - commits?: components["schemas"]["Commit"][]; - /** Format: int64 */ - total_commits?: number; - }; - /** @description ContentsResponse contains information about a repo's entry's (dir, file, symlink, submodule) metadata and content */ - ContentsResponse: { - _links?: components["schemas"]["FileLinksResponse"]; - /** @description `content` is populated when `type` is `file`, otherwise null */ - content?: string; - download_url?: string; - /** @description `encoding` is populated when `type` is `file`, otherwise null */ - encoding?: string; - git_url?: string; - html_url?: string; - last_commit_sha?: string; - name?: string; - path?: string; - sha?: string; - /** Format: int64 */ - size?: number; - /** @description `submodule_git_url` is populated when `type` is `submodule`, otherwise null */ - submodule_git_url?: string; - /** @description `target` is populated when `type` is `symlink`, otherwise null */ - target?: string; - /** @description `type` will be `file`, `dir`, `symlink`, or `submodule` */ - type?: string; - url?: string; - }; - /** @description CreateAccessTokenOption options when create access token */ - CreateAccessTokenOption: { - name: string; - scopes?: string[]; - }; - /** @description CreateBranchProtectionOption options for creating a branch protection */ - CreateBranchProtectionOption: { - approvals_whitelist_teams?: string[]; - approvals_whitelist_username?: string[]; - block_on_official_review_requests?: boolean; - block_on_outdated_branch?: boolean; - block_on_rejected_reviews?: boolean; - /** @description Deprecated: true */ - branch_name?: string; - dismiss_stale_approvals?: boolean; - enable_approvals_whitelist?: boolean; - enable_merge_whitelist?: boolean; - enable_push?: boolean; - enable_push_whitelist?: boolean; - enable_status_check?: boolean; - ignore_stale_approvals?: boolean; - merge_whitelist_teams?: string[]; - merge_whitelist_usernames?: string[]; - protected_file_patterns?: string; - push_whitelist_deploy_keys?: boolean; - push_whitelist_teams?: string[]; - push_whitelist_usernames?: string[]; - require_signed_commits?: boolean; - /** Format: int64 */ - required_approvals?: number; - rule_name?: string; - status_check_contexts?: string[]; - unprotected_file_patterns?: string; - }; - /** @description CreateBranchRepoOption options when creating a branch in a repository */ - CreateBranchRepoOption: { - /** @description Name of the branch to create */ - new_branch_name: string; - /** @description Deprecated: true - * Name of the old branch to create from */ - old_branch_name?: string; - /** @description Name of the old branch/tag/commit to create from */ - old_ref_name?: string; - }; - /** @description CreateEmailOption options when creating email addresses */ - CreateEmailOption: { - /** @description email addresses to add */ - emails?: string[]; - }; - /** @description CreateFileOptions options for creating files - * Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used) */ - CreateFileOptions: { - author?: components["schemas"]["Identity"]; - /** @description branch (optional) to base this file from. if not given, the default branch is used */ - branch?: string; - committer?: components["schemas"]["Identity"]; - /** @description content must be base64 encoded */ - content: string; - dates?: components["schemas"]["CommitDateOptions"]; - /** @description message (optional) for the commit of this file. if not supplied, a default message will be used */ - message?: string; - /** @description new_branch (optional) will make a new branch from `branch` before creating the file */ - new_branch?: string; - /** @description Add a Signed-off-by trailer by the committer at the end of the commit log message. */ - signoff?: boolean; - }; - /** @description CreateForkOption options for creating a fork */ - CreateForkOption: { - /** @description name of the forked repository */ - name?: string; - /** @description organization name, if forking into an organization */ - organization?: string; - }; - /** @description CreateGPGKeyOption options create user GPG key */ - CreateGPGKeyOption: { - /** @description An armored GPG key to add */ - armored_public_key: string; - armored_signature?: string; - }; - /** @description CreateHookOption options when create a hook */ - CreateHookOption: { - /** @default false */ - active: boolean; - authorization_header?: string; - branch_filter?: string; - config: components["schemas"]["CreateHookOptionConfig"]; - events?: string[]; - /** @enum {string} */ - type: "dingtalk" | "discord" | "gitea" | "gogs" | "msteams" | "slack" | "telegram" | "feishu" | "wechatwork" | "packagist"; - }; - /** @description CreateHookOptionConfig has all config options in it - * required are "content_type" and "url" Required */ - CreateHookOptionConfig: { - [key: string]: string; - }; - /** @description CreateIssueCommentOption options for creating a comment on an issue */ - CreateIssueCommentOption: { - body: string; - }; - /** @description CreateIssueOption options to create one issue */ - CreateIssueOption: { - /** @description deprecated */ - assignee?: string; - assignees?: string[]; - body?: string; - closed?: boolean; - /** Format: date-time */ - due_date?: string; - /** @description list of label ids */ - labels?: number[]; - /** - * Format: int64 - * @description milestone id - */ - milestone?: number; - ref?: string; - title: string; - }; - /** @description CreateKeyOption options when creating a key */ - CreateKeyOption: { - /** @description An armored SSH key to add */ - key: string; - /** @description Describe if the key has only read access or read/write */ - read_only?: boolean; - /** @description Title of the key to add */ - title: string; - }; - /** @description CreateLabelOption options for creating a label */ - CreateLabelOption: { - /** @example #00aabb */ - color: string; - description?: string; - /** @example false */ - exclusive?: boolean; - /** @example false */ - is_archived?: boolean; - name: string; - }; - /** @description CreateMilestoneOption options for creating a milestone */ - CreateMilestoneOption: { - description?: string; - /** Format: date-time */ - due_on?: string; - /** @enum {string} */ - state?: "open" | "closed"; - title?: string; - }; - /** @description CreateOAuth2ApplicationOptions holds options to create an oauth2 application */ - CreateOAuth2ApplicationOptions: { - confidential_client?: boolean; - name?: string; - redirect_uris?: string[]; - }; - /** @description CreateOrUpdateSecretOption options when creating or updating secret */ - CreateOrUpdateSecretOption: { - /** @description Data of the secret to update */ - data: string; - }; - /** @description CreateOrgOption options for creating an organization */ - CreateOrgOption: { - description?: string; - email?: string; - full_name?: string; - location?: string; - repo_admin_change_team_access?: boolean; - username: string; - /** - * @description possible values are `public` (default), `limited` or `private` - * @enum {string} - */ - visibility?: "public" | "limited" | "private"; - website?: string; - }; - /** @description CreatePullRequestOption options when creating a pull request */ - CreatePullRequestOption: { - assignee?: string; - assignees?: string[]; - base?: string; - body?: string; - /** Format: date-time */ - due_date?: string; - head?: string; - labels?: number[]; - /** Format: int64 */ - milestone?: number; - title?: string; - }; - /** @description CreatePullReviewComment represent a review comment for creation api */ - CreatePullReviewComment: { - body?: string; - /** - * Format: int64 - * @description if comment to new file line or 0 - */ - new_position?: number; - /** - * Format: int64 - * @description if comment to old file line or 0 - */ - old_position?: number; - /** @description the tree path */ - path?: string; - }; - /** @description CreatePullReviewOptions are options to create a pull review */ - CreatePullReviewOptions: { - body?: string; - comments?: components["schemas"]["CreatePullReviewComment"][]; - commit_id?: string; - event?: components["schemas"]["ReviewStateType"]; - }; - /** CreatePushMirrorOption represents need information to create a push mirror of a repository. */ - CreatePushMirrorOption: { - interval?: string; - remote_address?: string; - remote_password?: string; - remote_username?: string; - sync_on_commit?: boolean; - }; - /** @description CreateReleaseOption options when creating a release */ - CreateReleaseOption: { - body?: string; - draft?: boolean; - name?: string; - prerelease?: boolean; - tag_name: string; - target_commitish?: string; - }; - /** @description CreateRepoOption options when creating repository */ - CreateRepoOption: { - /** @description Whether the repository should be auto-initialized? */ - auto_init?: boolean; - /** @description DefaultBranch of the repository (used when initializes and in template) */ - default_branch?: string; - /** @description Description of the repository to create */ - description?: string; - /** @description Gitignores to use */ - gitignores?: string; - /** @description Label-Set to use */ - issue_labels?: string; - /** @description License to use */ - license?: string; - /** @description Name of the repository to create */ - name: string; - /** - * @description ObjectFormatName of the underlying git repository - * @enum {string} - */ - object_format_name?: "sha1" | "sha256"; - /** @description Whether the repository is private */ - private?: boolean; - /** @description Readme of the repository to create */ - readme?: string; - /** @description Whether the repository is template */ - template?: boolean; - /** - * @description TrustModel of the repository - * @enum {string} - */ - trust_model?: "default" | "collaborator" | "committer" | "collaboratorcommitter"; - }; - /** @description CreateStatusOption holds the information needed to create a new CommitStatus for a Commit */ - CreateStatusOption: { - context?: string; - description?: string; - state?: components["schemas"]["CommitStatusState"]; - target_url?: string; - }; - /** @description CreateTagOption options when creating a tag */ - CreateTagOption: { - message?: string; - tag_name: string; - target?: string; - }; - /** @description CreateTeamOption options for creating a team */ - CreateTeamOption: { - can_create_org_repo?: boolean; - description?: string; - includes_all_repositories?: boolean; - name: string; - /** @enum {string} */ - permission?: "read" | "write" | "admin"; - /** @example [ - * "repo.actions", - * "repo.code", - * "repo.issues", - * "repo.ext_issues", - * "repo.wiki", - * "repo.ext_wiki", - * "repo.pulls", - * "repo.releases", - * "repo.projects", - * "repo.ext_wiki" - * ] */ - units?: string[]; - /** @example {"repo.actions","repo.packages","repo.code":"read","repo.issues":"write","repo.ext_issues":"none","repo.wiki":"admin","repo.pulls":"owner","repo.releases":"none","repo.projects":"none","repo.ext_wiki":"none"} */ - units_map?: { - [key: string]: string; - }; - }; - /** @description CreateUserOption create user options */ - CreateUserOption: { - /** - * Format: date-time - * @description For explicitly setting the user creation timestamp. Useful when users are - * migrated from other systems. When omitted, the user's creation timestamp - * will be set to "now". - */ - created_at?: string; - /** Format: email */ - email: string; - full_name?: string; - login_name?: string; - must_change_password?: boolean; - password?: string; - restricted?: boolean; - send_notify?: boolean; - /** Format: int64 */ - source_id?: number; - username: string; - visibility?: string; - }; - /** @description CreateVariableOption the option when creating variable */ - CreateVariableOption: { - /** @description Value of the variable to create */ - value: string; - }; - /** @description CreateWikiPageOptions form for creating wiki */ - CreateWikiPageOptions: { - /** @description content must be base64 encoded */ - content_base64?: string; - /** @description optional commit message summarizing the change */ - message?: string; - /** @description page title. leave empty to keep unchanged */ - title?: string; - }; - /** @description Cron represents a Cron task */ - Cron: { - /** Format: int64 */ - exec_times?: number; - name?: string; - /** Format: date-time */ - next?: string; - /** Format: date-time */ - prev?: string; - schedule?: string; - }; - /** @description DeleteEmailOption options when deleting email addresses */ - DeleteEmailOption: { - /** @description email addresses to delete */ - emails?: string[]; - }; - /** @description DeleteFileOptions options for deleting files (used for other File structs below) - * Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used) */ - DeleteFileOptions: { - author?: components["schemas"]["Identity"]; - /** @description branch (optional) to base this file from. if not given, the default branch is used */ - branch?: string; - committer?: components["schemas"]["Identity"]; - dates?: components["schemas"]["CommitDateOptions"]; - /** @description message (optional) for the commit of this file. if not supplied, a default message will be used */ - message?: string; - /** @description new_branch (optional) will make a new branch from `branch` before creating the file */ - new_branch?: string; - /** @description sha is the SHA for the file that already exists */ - sha: string; - /** @description Add a Signed-off-by trailer by the committer at the end of the commit log message. */ - signoff?: boolean; - }; - /** @description DeployKey a deploy key */ - DeployKey: { - /** Format: date-time */ - created_at?: string; - fingerprint?: string; - /** Format: int64 */ - id?: number; - key?: string; - /** Format: int64 */ - key_id?: number; - read_only?: boolean; - repository?: components["schemas"]["Repository"]; - title?: string; - url?: string; - }; - /** @description DismissPullReviewOptions are options to dismiss a pull review */ - DismissPullReviewOptions: { - message?: string; - priors?: boolean; - }; - /** @description EditAttachmentOptions options for editing attachments */ - EditAttachmentOptions: { - name?: string; - }; - /** @description EditBranchProtectionOption options for editing a branch protection */ - EditBranchProtectionOption: { - approvals_whitelist_teams?: string[]; - approvals_whitelist_username?: string[]; - block_on_official_review_requests?: boolean; - block_on_outdated_branch?: boolean; - block_on_rejected_reviews?: boolean; - dismiss_stale_approvals?: boolean; - enable_approvals_whitelist?: boolean; - enable_merge_whitelist?: boolean; - enable_push?: boolean; - enable_push_whitelist?: boolean; - enable_status_check?: boolean; - ignore_stale_approvals?: boolean; - merge_whitelist_teams?: string[]; - merge_whitelist_usernames?: string[]; - protected_file_patterns?: string; - push_whitelist_deploy_keys?: boolean; - push_whitelist_teams?: string[]; - push_whitelist_usernames?: string[]; - require_signed_commits?: boolean; - /** Format: int64 */ - required_approvals?: number; - status_check_contexts?: string[]; - unprotected_file_patterns?: string; - }; - /** @description EditDeadlineOption options for creating a deadline */ - EditDeadlineOption: { - /** Format: date-time */ - due_date: string; - }; - /** @description EditGitHookOption options when modifying one Git hook */ - EditGitHookOption: { - content?: string; - }; - /** @description EditHookOption options when modify one hook */ - EditHookOption: { - active?: boolean; - authorization_header?: string; - branch_filter?: string; - config?: { - [key: string]: string; - }; - events?: string[]; - }; - /** @description EditIssueCommentOption options for editing a comment */ - EditIssueCommentOption: { - body: string; - }; - /** @description EditIssueOption options for editing an issue */ - EditIssueOption: { - /** @description deprecated */ - assignee?: string; - assignees?: string[]; - body?: string; - /** Format: date-time */ - due_date?: string; - /** Format: int64 */ - milestone?: number; - ref?: string; - state?: string; - title?: string; - unset_due_date?: boolean; - }; - /** @description EditLabelOption options for editing a label */ - EditLabelOption: { - /** @example #00aabb */ - color?: string; - description?: string; - /** @example false */ - exclusive?: boolean; - /** @example false */ - is_archived?: boolean; - name?: string; - }; - /** @description EditMilestoneOption options for editing a milestone */ - EditMilestoneOption: { - description?: string; - /** Format: date-time */ - due_on?: string; - state?: string; - title?: string; - }; - /** @description EditOrgOption options for editing an organization */ - EditOrgOption: { - description?: string; - email?: string; - full_name?: string; - location?: string; - repo_admin_change_team_access?: boolean; - /** - * @description possible values are `public`, `limited` or `private` - * @enum {string} - */ - visibility?: "public" | "limited" | "private"; - website?: string; - }; - /** @description EditPullRequestOption options when modify pull request */ - EditPullRequestOption: { - allow_maintainer_edit?: boolean; - assignee?: string; - assignees?: string[]; - base?: string; - body?: string; - /** Format: date-time */ - due_date?: string; - labels?: number[]; - /** Format: int64 */ - milestone?: number; - state?: string; - title?: string; - unset_due_date?: boolean; - }; - /** @description EditReactionOption contain the reaction type */ - EditReactionOption: { - content?: string; - }; - /** @description EditReleaseOption options when editing a release */ - EditReleaseOption: { - body?: string; - draft?: boolean; - name?: string; - prerelease?: boolean; - tag_name?: string; - target_commitish?: string; - }; - /** @description EditRepoOption options when editing a repository's properties */ - EditRepoOption: { - /** @description either `true` to allow fast-forward-only merging pull requests, or `false` to prevent fast-forward-only merging. */ - allow_fast_forward_only_merge?: boolean; - /** @description either `true` to allow mark pr as merged manually, or `false` to prevent it. */ - allow_manual_merge?: boolean; - /** @description either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. */ - allow_merge_commits?: boolean; - /** @description either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. */ - allow_rebase?: boolean; - /** @description either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits. */ - allow_rebase_explicit?: boolean; - /** @description either `true` to allow updating pull request branch by rebase, or `false` to prevent it. */ - allow_rebase_update?: boolean; - /** @description either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. */ - allow_squash_merge?: boolean; - /** @description set to `true` to archive this repository. */ - archived?: boolean; - /** @description either `true` to enable AutodetectManualMerge, or `false` to prevent it. Note: In some special cases, misjudgments can occur. */ - autodetect_manual_merge?: boolean; - /** @description set to `true` to allow edits from maintainers by default */ - default_allow_maintainer_edit?: boolean; - /** @description sets the default branch for this repository. */ - default_branch?: string; - /** @description set to `true` to delete pr branch after merge by default */ - default_delete_branch_after_merge?: boolean; - /** @description set to a merge style to be used by this repository: "merge", "rebase", "rebase-merge", "squash", or "fast-forward-only". */ - default_merge_style?: string; - /** @description a short description of the repository. */ - description?: string; - /** @description enable prune - remove obsolete remote-tracking references when mirroring */ - enable_prune?: boolean; - external_tracker?: components["schemas"]["ExternalTracker"]; - external_wiki?: components["schemas"]["ExternalWiki"]; - /** @description either `true` to enable actions unit, or `false` to disable them. */ - has_actions?: boolean; - /** @description either `true` to enable issues for this repository or `false` to disable them. */ - has_issues?: boolean; - /** @description either `true` to enable packages unit, or `false` to disable them. */ - has_packages?: boolean; - /** @description either `true` to enable project unit, or `false` to disable them. */ - has_projects?: boolean; - /** @description either `true` to allow pull requests, or `false` to prevent pull request. */ - has_pull_requests?: boolean; - /** @description either `true` to enable releases unit, or `false` to disable them. */ - has_releases?: boolean; - /** @description either `true` to enable the wiki for this repository or `false` to disable it. */ - has_wiki?: boolean; - /** @description either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace. */ - ignore_whitespace_conflicts?: boolean; - internal_tracker?: components["schemas"]["InternalTracker"]; - /** @description set to a string like `8h30m0s` to set the mirror interval time */ - mirror_interval?: string; - /** @description name of the repository */ - name?: string; - /** @description either `true` to make the repository private or `false` to make it public. - * Note: you will get a 422 error if the organization restricts changing repository visibility to organization - * owners and a non-owner tries to change the value of private. */ - private?: boolean; - /** @description `repo` to only allow repo-level projects, `owner` to only allow owner projects, `all` to allow both. */ - projects_mode?: string; - /** @description either `true` to make this repository a template or `false` to make it a normal repository */ - template?: boolean; - /** @description a URL with more information about the repository. */ - website?: string; - }; - /** @description EditTeamOption options for editing a team */ - EditTeamOption: { - can_create_org_repo?: boolean; - description?: string; - includes_all_repositories?: boolean; - name: string; - /** @enum {string} */ - permission?: "read" | "write" | "admin"; - /** @example [ - * "repo.code", - * "repo.issues", - * "repo.ext_issues", - * "repo.wiki", - * "repo.pulls", - * "repo.releases", - * "repo.projects", - * "repo.ext_wiki" - * ] */ - units?: string[]; - /** @example { - * "repo.code": "read", - * "repo.ext_issues": "none", - * "repo.ext_wiki": "none", - * "repo.issues": "write", - * "repo.projects": "none", - * "repo.pulls": "owner", - * "repo.releases": "none", - * "repo.wiki": "admin" - * } */ - units_map?: { - [key: string]: string; - }; - }; - /** @description EditUserOption edit user options */ - EditUserOption: { - active?: boolean; - admin?: boolean; - allow_create_organization?: boolean; - allow_git_hook?: boolean; - allow_import_local?: boolean; - description?: string; - /** Format: email */ - email?: string; - full_name?: string; - location?: string; - login_name: string; - /** Format: int64 */ - max_repo_creation?: number; - must_change_password?: boolean; - password?: string; - prohibit_login?: boolean; - restricted?: boolean; - /** Format: int64 */ - source_id: number; - visibility?: string; - website?: string; - }; - /** @description Email an email address belonging to a user */ - Email: { - /** Format: email */ - email?: string; - primary?: boolean; - /** Format: int64 */ - user_id?: number; - username?: string; - verified?: boolean; - }; - /** @description ExternalTracker represents settings for external tracker */ - ExternalTracker: { - /** @description External Issue Tracker URL Format. Use the placeholders {user}, {repo} and {index} for the username, repository name and issue index. */ - external_tracker_format?: string; - /** @description External Issue Tracker issue regular expression */ - external_tracker_regexp_pattern?: string; - /** @description External Issue Tracker Number Format, either `numeric`, `alphanumeric`, or `regexp` */ - external_tracker_style?: string; - /** @description URL of external issue tracker. */ - external_tracker_url?: string; - }; - /** @description ExternalWiki represents setting for external wiki */ - ExternalWiki: { - /** @description URL of external wiki. */ - external_wiki_url?: string; - }; - /** FileCommitResponse contains information generated from a Git commit for a repo's file. */ - FileCommitResponse: { - author?: components["schemas"]["CommitUser"]; - committer?: components["schemas"]["CommitUser"]; - /** Format: date-time */ - created?: string; - html_url?: string; - message?: string; - parents?: components["schemas"]["CommitMeta"][]; - sha?: string; - tree?: components["schemas"]["CommitMeta"]; - url?: string; - }; - /** @description FileDeleteResponse contains information about a repo's file that was deleted */ - FileDeleteResponse: { - commit?: components["schemas"]["FileCommitResponse"]; - content?: Record<string, never>; - verification?: components["schemas"]["PayloadCommitVerification"]; - }; - /** @description FileLinksResponse contains the links for a repo's file */ - FileLinksResponse: { - git?: string; - html?: string; - self?: string; - }; - /** @description FileResponse contains information about a repo's file */ - FileResponse: { - commit?: components["schemas"]["FileCommitResponse"]; - content?: components["schemas"]["ContentsResponse"]; - verification?: components["schemas"]["PayloadCommitVerification"]; - }; - /** @description FilesResponse contains information about multiple files from a repo */ - FilesResponse: { - commit?: components["schemas"]["FileCommitResponse"]; - files?: components["schemas"]["ContentsResponse"][]; - verification?: components["schemas"]["PayloadCommitVerification"]; - }; - /** @description GPGKey a user GPG key to sign commit and tag in repository */ - GPGKey: { - can_certify?: boolean; - can_encrypt_comms?: boolean; - can_encrypt_storage?: boolean; - can_sign?: boolean; - /** Format: date-time */ - created_at?: string; - emails?: components["schemas"]["GPGKeyEmail"][]; - /** Format: date-time */ - expires_at?: string; - /** Format: int64 */ - id?: number; - key_id?: string; - primary_key_id?: string; - public_key?: string; - subkeys?: components["schemas"]["GPGKey"][]; - verified?: boolean; - }; - /** @description GPGKeyEmail an email attached to a GPGKey */ - GPGKeyEmail: { - email?: string; - verified?: boolean; - }; - /** @description GeneralAPISettings contains global api settings exposed by it */ - GeneralAPISettings: { - /** Format: int64 */ - default_git_trees_per_page?: number; - /** Format: int64 */ - default_max_blob_size?: number; - /** Format: int64 */ - default_paging_num?: number; - /** Format: int64 */ - max_response_items?: number; - }; - /** @description GeneralAttachmentSettings contains global Attachment settings exposed by API */ - GeneralAttachmentSettings: { - allowed_types?: string; - enabled?: boolean; - /** Format: int64 */ - max_files?: number; - /** Format: int64 */ - max_size?: number; - }; - /** @description GeneralRepoSettings contains global repository settings exposed by API */ - GeneralRepoSettings: { - http_git_disabled?: boolean; - lfs_disabled?: boolean; - migrations_disabled?: boolean; - mirrors_disabled?: boolean; - stars_disabled?: boolean; - time_tracking_disabled?: boolean; - }; - /** @description GeneralUISettings contains global ui settings exposed by API */ - GeneralUISettings: { - allowed_reactions?: string[]; - custom_emojis?: string[]; - default_theme?: string; - }; - /** @description GenerateRepoOption options when creating repository using a template */ - GenerateRepoOption: { - /** @description include avatar of the template repo */ - avatar?: boolean; - /** @description Default branch of the new repository */ - default_branch?: string; - /** @description Description of the repository to create */ - description?: string; - /** @description include git content of default branch in template repo */ - git_content?: boolean; - /** @description include git hooks in template repo */ - git_hooks?: boolean; - /** @description include labels in template repo */ - labels?: boolean; - /** @description Name of the repository to create */ - name: string; - /** @description The organization or person who will own the new repository */ - owner: string; - /** @description Whether the repository is private */ - private?: boolean; - /** @description include protected branches in template repo */ - protected_branch?: boolean; - /** @description include topics in template repo */ - topics?: boolean; - /** @description include webhooks in template repo */ - webhooks?: boolean; - }; - /** @description GitBlobResponse represents a git blob */ - GitBlobResponse: { - content?: string; - encoding?: string; - sha?: string; - /** Format: int64 */ - size?: number; - url?: string; - }; - /** @description GitEntry represents a git tree */ - GitEntry: { - mode?: string; - path?: string; - sha?: string; - /** Format: int64 */ - size?: number; - type?: string; - url?: string; - }; - /** @description GitHook represents a Git repository hook */ - GitHook: { - content?: string; - is_active?: boolean; - name?: string; - }; - /** GitObject represents a Git object. */ - GitObject: { - sha?: string; - type?: string; - url?: string; - }; - /** @description GitTreeResponse returns a git tree */ - GitTreeResponse: { - /** Format: int64 */ - page?: number; - sha?: string; - /** Format: int64 */ - total_count?: number; - tree?: components["schemas"]["GitEntry"][]; - truncated?: boolean; - url?: string; - }; - /** @description GitignoreTemplateInfo name and text of a gitignore template */ - GitignoreTemplateInfo: { - name?: string; - source?: string; - }; - /** @description Hook a hook is a web hook when one repository changed */ - Hook: { - active?: boolean; - authorization_header?: string; - branch_filter?: string; - config?: { - [key: string]: string; - }; - /** Format: date-time */ - created_at?: string; - events?: string[]; - /** Format: int64 */ - id?: number; - type?: string; - /** Format: date-time */ - updated_at?: string; - }; - /** @description Identity for a person's identity like an author or committer */ - Identity: { - /** Format: email */ - email?: string; - name?: string; - }; - /** @description InternalTracker represents settings for internal tracker */ - InternalTracker: { - /** @description Let only contributors track time (Built-in issue tracker) */ - allow_only_contributors_to_track_time?: boolean; - /** @description Enable dependencies for issues and pull requests (Built-in issue tracker) */ - enable_issue_dependencies?: boolean; - /** @description Enable time tracking (Built-in issue tracker) */ - enable_time_tracker?: boolean; - }; - /** @description Issue represents an issue in a repository */ - Issue: { - assets?: components["schemas"]["Attachment"][]; - assignee?: components["schemas"]["User"]; - assignees?: components["schemas"]["User"][]; - body?: string; - /** Format: date-time */ - closed_at?: string; - /** Format: int64 */ - comments?: number; - /** Format: date-time */ - created_at?: string; - /** Format: date-time */ - due_date?: string; - html_url?: string; - /** Format: int64 */ - id?: number; - is_locked?: boolean; - labels?: components["schemas"]["Label"][]; - milestone?: components["schemas"]["Milestone"]; - /** Format: int64 */ - number?: number; - original_author?: string; - /** Format: int64 */ - original_author_id?: number; - /** Format: int64 */ - pin_order?: number; - pull_request?: components["schemas"]["PullRequestMeta"]; - ref?: string; - repository?: components["schemas"]["RepositoryMeta"]; - state?: components["schemas"]["StateType"]; - title?: string; - /** Format: date-time */ - updated_at?: string; - url?: string; - user?: components["schemas"]["User"]; - }; - IssueConfig: { - blank_issues_enabled?: boolean; - contact_links?: components["schemas"]["IssueConfigContactLink"][]; - }; - IssueConfigContactLink: { - about?: string; - name?: string; - url?: string; - }; - IssueConfigValidation: { - message?: string; - valid?: boolean; - }; - /** @description IssueDeadline represents an issue deadline */ - IssueDeadline: { - /** Format: date-time */ - due_date?: string; - }; - /** @description IssueFormField represents a form field */ - IssueFormField: { - attributes?: { - [key: string]: Record<string, never>; - }; - id?: string; - type?: components["schemas"]["IssueFormFieldType"]; - validations?: { - [key: string]: Record<string, never>; - }; - visible?: components["schemas"]["IssueFormFieldVisible"][]; - }; - /** IssueFormFieldType defines issue form field type, can be "markdown", "textarea", "input", "dropdown" or "checkboxes" */ - IssueFormFieldType: string; - /** @description IssueFormFieldVisible defines issue form field visible */ - IssueFormFieldVisible: string; - /** @description IssueLabelsOption a collection of labels */ - IssueLabelsOption: { - /** @description Labels can be a list of integers representing label IDs - * or a list of strings representing label names */ - labels?: Record<string, never>[]; - }; - /** @description IssueMeta basic issue information */ - IssueMeta: { - /** Format: int64 */ - index?: number; - owner?: string; - repo?: string; - }; - /** @description IssueTemplate represents an issue template for a repository */ - IssueTemplate: { - about?: string; - body?: components["schemas"]["IssueFormField"][]; - content?: string; - file_name?: string; - labels?: components["schemas"]["IssueTemplateLabels"]; - name?: string; - ref?: string; - title?: string; - }; - IssueTemplateLabels: string[]; - /** @description Label a label to an issue or a pr */ - Label: { - /** @example 00aabb */ - color?: string; - description?: string; - /** @example false */ - exclusive?: boolean; - /** Format: int64 */ - id?: number; - /** @example false */ - is_archived?: boolean; - name?: string; - url?: string; - }; - /** @description LabelTemplate info of a Label template */ - LabelTemplate: { - /** @example 00aabb */ - color?: string; - description?: string; - /** @example false */ - exclusive?: boolean; - name?: string; - }; - /** @description LicensesInfo contains information about a License */ - LicenseTemplateInfo: { - body?: string; - implementation?: string; - key?: string; - name?: string; - url?: string; - }; - /** @description LicensesListEntry is used for the API */ - LicensesTemplateListEntry: { - key?: string; - name?: string; - url?: string; - }; - /** @description MarkdownOption markdown options */ - MarkdownOption: { - /** @description Context to render - * - * in: body */ - Context?: string; - /** @description Mode to render (comment, gfm, markdown) - * - * in: body */ - Mode?: string; - /** @description Text markdown to render - * - * in: body */ - Text?: string; - /** @description Is it a wiki page ? - * - * in: body */ - Wiki?: boolean; - }; - /** @description MarkupOption markup options */ - MarkupOption: { - /** @description Context to render - * - * in: body */ - Context?: string; - /** @description File path for detecting extension in file mode - * - * in: body */ - FilePath?: string; - /** @description Mode to render (comment, gfm, markdown, file) - * - * in: body */ - Mode?: string; - /** @description Text markup to render - * - * in: body */ - Text?: string; - /** @description Is it a wiki page ? - * - * in: body */ - Wiki?: boolean; - }; - /** @description MergePullRequestForm form for merging Pull Request */ - MergePullRequestOption: { - /** @enum {string} */ - Do: "merge" | "rebase" | "rebase-merge" | "squash" | "fast-forward-only" | "manually-merged"; - MergeCommitID?: string; - MergeMessageField?: string; - MergeTitleField?: string; - delete_branch_after_merge?: boolean; - force_merge?: boolean; - head_commit_id?: string; - merge_when_checks_succeed?: boolean; - }; - /** @description MigrateRepoOptions options for migrating repository's - * this is used to interact with api v1 */ - MigrateRepoOptions: { - auth_password?: string; - auth_token?: string; - auth_username?: string; - clone_addr: string; - description?: string; - issues?: boolean; - labels?: boolean; - lfs?: boolean; - lfs_endpoint?: string; - milestones?: boolean; - mirror?: boolean; - mirror_interval?: string; - private?: boolean; - pull_requests?: boolean; - releases?: boolean; - repo_name: string; - /** @description Name of User or Organisation who will own Repo after migration */ - repo_owner?: string; - /** @enum {string} */ - service?: "git" | "github" | "gitea" | "gitlab" | "gogs" | "onedev" | "gitbucket" | "codebase"; - /** - * Format: int64 - * @description deprecated (only for backwards compatibility) - */ - uid?: number; - wiki?: boolean; - }; - /** @description Milestone milestone is a collection of issues on one repository */ - Milestone: { - /** Format: date-time */ - closed_at?: string; - /** Format: int64 */ - closed_issues?: number; - /** Format: date-time */ - created_at?: string; - description?: string; - /** Format: date-time */ - due_on?: string; - /** Format: int64 */ - id?: number; - /** Format: int64 */ - open_issues?: number; - state?: components["schemas"]["StateType"]; - title?: string; - /** Format: date-time */ - updated_at?: string; - }; - /** @description NewIssuePinsAllowed represents an API response that says if new Issue Pins are allowed */ - NewIssuePinsAllowed: { - issues?: boolean; - pull_requests?: boolean; - }; - /** @description NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks */ - NodeInfo: { - metadata?: Record<string, never>; - openRegistrations?: boolean; - protocols?: string[]; - services?: components["schemas"]["NodeInfoServices"]; - software?: components["schemas"]["NodeInfoSoftware"]; - usage?: components["schemas"]["NodeInfoUsage"]; - version?: string; - }; - /** @description NodeInfoServices contains the third party sites this server can connect to via their application API */ - NodeInfoServices: { - inbound?: string[]; - outbound?: string[]; - }; - /** @description NodeInfoSoftware contains Metadata about server software in use */ - NodeInfoSoftware: { - homepage?: string; - name?: string; - repository?: string; - version?: string; - }; - /** @description NodeInfoUsage contains usage statistics for this server */ - NodeInfoUsage: { - /** Format: int64 */ - localComments?: number; - /** Format: int64 */ - localPosts?: number; - users?: components["schemas"]["NodeInfoUsageUsers"]; - }; - /** @description NodeInfoUsageUsers contains statistics about the users of this server */ - NodeInfoUsageUsers: { - /** Format: int64 */ - activeHalfyear?: number; - /** Format: int64 */ - activeMonth?: number; - /** Format: int64 */ - total?: number; - }; - /** @description Note contains information related to a git note */ - Note: { - commit?: components["schemas"]["Commit"]; - message?: string; - }; - /** @description NotificationCount number of unread notifications */ - NotificationCount: { - /** Format: int64 */ - new?: number; - }; - /** @description NotificationSubject contains the notification subject (Issue/Pull/Commit) */ - NotificationSubject: { - html_url?: string; - latest_comment_html_url?: string; - latest_comment_url?: string; - state?: components["schemas"]["StateType"]; - title?: string; - type?: components["schemas"]["NotifySubjectType"]; - url?: string; - }; - /** @description NotificationThread expose Notification on API */ - NotificationThread: { - /** Format: int64 */ - id?: number; - pinned?: boolean; - repository?: components["schemas"]["Repository"]; - subject?: components["schemas"]["NotificationSubject"]; - unread?: boolean; - /** Format: date-time */ - updated_at?: string; - url?: string; - }; - /** @description NotifySubjectType represent type of notification subject */ - NotifySubjectType: string; - /** OAuth2Application represents an OAuth2 application. */ - OAuth2Application: { - client_id?: string; - client_secret?: string; - confidential_client?: boolean; - /** Format: date-time */ - created?: string; - /** Format: int64 */ - id?: number; - name?: string; - redirect_uris?: string[]; - }; - /** @description Organization represents an organization */ - Organization: { - avatar_url?: string; - description?: string; - email?: string; - full_name?: string; - /** Format: int64 */ - id?: number; - location?: string; - name?: string; - repo_admin_change_team_access?: boolean; - /** @description deprecated */ - username?: string; - visibility?: string; - website?: string; - }; - /** @description OrganizationPermissions list different users permissions on an organization */ - OrganizationPermissions: { - can_create_repository?: boolean; - can_read?: boolean; - can_write?: boolean; - is_admin?: boolean; - is_owner?: boolean; - }; - /** @description PRBranchInfo information about a branch */ - PRBranchInfo: { - label?: string; - ref?: string; - repo?: components["schemas"]["Repository"]; - /** Format: int64 */ - repo_id?: number; - sha?: string; - }; - /** @description Package represents a package */ - Package: { - /** Format: date-time */ - created_at?: string; - creator?: components["schemas"]["User"]; - html_url?: string; - /** Format: int64 */ - id?: number; - name?: string; - owner?: components["schemas"]["User"]; - repository?: components["schemas"]["Repository"]; - type?: string; - version?: string; - }; - /** @description PackageFile represents a package file */ - PackageFile: { - /** Format: int64 */ - Size?: number; - /** Format: int64 */ - id?: number; - md5?: string; - name?: string; - sha1?: string; - sha256?: string; - sha512?: string; - }; - /** @description PayloadCommit represents a commit */ - PayloadCommit: { - added?: string[]; - author?: components["schemas"]["PayloadUser"]; - committer?: components["schemas"]["PayloadUser"]; - /** @description sha1 hash of the commit */ - id?: string; - message?: string; - modified?: string[]; - removed?: string[]; - /** Format: date-time */ - timestamp?: string; - url?: string; - verification?: components["schemas"]["PayloadCommitVerification"]; - }; - /** @description PayloadCommitVerification represents the GPG verification of a commit */ - PayloadCommitVerification: { - payload?: string; - reason?: string; - signature?: string; - signer?: components["schemas"]["PayloadUser"]; - verified?: boolean; - }; - /** @description PayloadUser represents the author or committer of a commit */ - PayloadUser: { - /** Format: email */ - email?: string; - /** @description Full name of the commit author */ - name?: string; - username?: string; - }; - /** @description Permission represents a set of permissions */ - Permission: { - admin?: boolean; - pull?: boolean; - push?: boolean; - }; - /** @description PublicKey publickey is a user key to push code to repository */ - PublicKey: { - /** Format: date-time */ - created_at?: string; - fingerprint?: string; - /** Format: int64 */ - id?: number; - key?: string; - key_type?: string; - read_only?: boolean; - title?: string; - url?: string; - user?: components["schemas"]["User"]; - }; - /** @description PullRequest represents a pull request */ - PullRequest: { - /** Format: int64 */ - additions?: number; - allow_maintainer_edit?: boolean; - assignee?: components["schemas"]["User"]; - assignees?: components["schemas"]["User"][]; - base?: components["schemas"]["PRBranchInfo"]; - body?: string; - /** Format: int64 */ - changed_files?: number; - /** Format: date-time */ - closed_at?: string; - /** Format: int64 */ - comments?: number; - /** Format: date-time */ - created_at?: string; - /** Format: int64 */ - deletions?: number; - diff_url?: string; - draft?: boolean; - /** Format: date-time */ - due_date?: string; - head?: components["schemas"]["PRBranchInfo"]; - html_url?: string; - /** Format: int64 */ - id?: number; - is_locked?: boolean; - labels?: components["schemas"]["Label"][]; - merge_base?: string; - merge_commit_sha?: string; - mergeable?: boolean; - merged?: boolean; - /** Format: date-time */ - merged_at?: string; - merged_by?: components["schemas"]["User"]; - milestone?: components["schemas"]["Milestone"]; - /** Format: int64 */ - number?: number; - patch_url?: string; - /** Format: int64 */ - pin_order?: number; - requested_reviewers?: components["schemas"]["User"][]; - /** - * Format: int64 - * @description number of review comments made on the diff of a PR review (not including comments on commits or issues in a PR) - */ - review_comments?: number; - state?: components["schemas"]["StateType"]; - title?: string; - /** Format: date-time */ - updated_at?: string; - url?: string; - user?: components["schemas"]["User"]; - }; - /** @description PullRequestMeta PR info if an issue is a PR */ - PullRequestMeta: { - draft?: boolean; - html_url?: string; - merged?: boolean; - /** Format: date-time */ - merged_at?: string; - }; - /** @description PullReview represents a pull request review */ - PullReview: { - body?: string; - /** Format: int64 */ - comments_count?: number; - commit_id?: string; - dismissed?: boolean; - html_url?: string; - /** Format: int64 */ - id?: number; - official?: boolean; - pull_request_url?: string; - stale?: boolean; - state?: components["schemas"]["ReviewStateType"]; - /** Format: date-time */ - submitted_at?: string; - team?: components["schemas"]["Team"]; - /** Format: date-time */ - updated_at?: string; - user?: components["schemas"]["User"]; - }; - /** @description PullReviewComment represents a comment on a pull request review */ - PullReviewComment: { - body?: string; - commit_id?: string; - /** Format: date-time */ - created_at?: string; - diff_hunk?: string; - html_url?: string; - /** Format: int64 */ - id?: number; - original_commit_id?: string; - /** Format: uint64 */ - original_position?: number; - path?: string; - /** Format: uint64 */ - position?: number; - /** Format: int64 */ - pull_request_review_id?: number; - pull_request_url?: string; - resolver?: components["schemas"]["User"]; - /** Format: date-time */ - updated_at?: string; - user?: components["schemas"]["User"]; - }; - /** @description PullReviewRequestOptions are options to add or remove pull review requests */ - PullReviewRequestOptions: { - reviewers?: string[]; - team_reviewers?: string[]; - }; - /** @description PushMirror represents information of a push mirror */ - PushMirror: { - /** Format: date-time */ - created?: string; - interval?: string; - last_error?: string; - /** Format: date-time */ - last_update?: string; - remote_address?: string; - remote_name?: string; - repo_name?: string; - sync_on_commit?: boolean; - }; - /** @description Reaction contain one reaction */ - Reaction: { - content?: string; - /** Format: date-time */ - created_at?: string; - user?: components["schemas"]["User"]; - }; - /** Reference represents a Git reference. */ - Reference: { - object?: components["schemas"]["GitObject"]; - ref?: string; - url?: string; - }; - /** @description Release represents a repository release */ - Release: { - assets?: components["schemas"]["Attachment"][]; - author?: components["schemas"]["User"]; - body?: string; - /** Format: date-time */ - created_at?: string; - draft?: boolean; - html_url?: string; - /** Format: int64 */ - id?: number; - name?: string; - prerelease?: boolean; - /** Format: date-time */ - published_at?: string; - tag_name?: string; - tarball_url?: string; - target_commitish?: string; - upload_url?: string; - url?: string; - zipball_url?: string; - }; - /** @description RenameUserOption options when renaming a user */ - RenameUserOption: { - /** @description New username for this user. This name cannot be in use yet by any other user. */ - new_username: string; - }; - /** @description RepoCollaboratorPermission to get repository permission for a collaborator */ - RepoCollaboratorPermission: { - permission?: string; - role_name?: string; - user?: components["schemas"]["User"]; - }; - /** RepoCommit contains information of a commit in the context of a repository. */ - RepoCommit: { - author?: components["schemas"]["CommitUser"]; - committer?: components["schemas"]["CommitUser"]; - message?: string; - tree?: components["schemas"]["CommitMeta"]; - url?: string; - verification?: components["schemas"]["PayloadCommitVerification"]; - }; - /** @description RepoTopicOptions a collection of repo topic names */ - RepoTopicOptions: { - /** @description list of topic names */ - topics?: string[]; - }; - /** @description RepoTransfer represents a pending repo transfer */ - RepoTransfer: { - doer?: components["schemas"]["User"]; - recipient?: components["schemas"]["User"]; - teams?: components["schemas"]["Team"][]; - }; - /** @description Repository represents a repository */ - Repository: { - allow_fast_forward_only_merge?: boolean; - allow_merge_commits?: boolean; - allow_rebase?: boolean; - allow_rebase_explicit?: boolean; - allow_rebase_update?: boolean; - allow_squash_merge?: boolean; - archived?: boolean; - /** Format: date-time */ - archived_at?: string; - avatar_url?: string; - clone_url?: string; - /** Format: date-time */ - created_at?: string; - default_allow_maintainer_edit?: boolean; - default_branch?: string; - default_delete_branch_after_merge?: boolean; - default_merge_style?: string; - description?: string; - empty?: boolean; - external_tracker?: components["schemas"]["ExternalTracker"]; - external_wiki?: components["schemas"]["ExternalWiki"]; - fork?: boolean; - /** Format: int64 */ - forks_count?: number; - full_name?: string; - has_actions?: boolean; - has_issues?: boolean; - has_packages?: boolean; - has_projects?: boolean; - has_pull_requests?: boolean; - has_releases?: boolean; - has_wiki?: boolean; - html_url?: string; - /** Format: int64 */ - id?: number; - ignore_whitespace_conflicts?: boolean; - internal?: boolean; - internal_tracker?: components["schemas"]["InternalTracker"]; - language?: string; - languages_url?: string; - link?: string; - mirror?: boolean; - mirror_interval?: string; - /** Format: date-time */ - mirror_updated?: string; - name?: string; - /** - * @description ObjectFormatName of the underlying git repository - * @enum {string} - */ - object_format_name?: "sha1" | "sha256"; - /** Format: int64 */ - open_issues_count?: number; - /** Format: int64 */ - open_pr_counter?: number; - original_url?: string; - owner?: components["schemas"]["User"]; - parent?: components["schemas"]["Repository"]; - permissions?: components["schemas"]["Permission"]; - private?: boolean; - projects_mode?: string; - /** Format: int64 */ - release_counter?: number; - repo_transfer?: components["schemas"]["RepoTransfer"]; - /** Format: int64 */ - size?: number; - ssh_url?: string; - /** Format: int64 */ - stars_count?: number; - template?: boolean; - /** Format: date-time */ - updated_at?: string; - url?: string; - /** Format: int64 */ - watchers_count?: number; - website?: string; - }; - /** @description RepositoryMeta basic repository information */ - RepositoryMeta: { - full_name?: string; - /** Format: int64 */ - id?: number; - name?: string; - owner?: string; - }; - /** @description ReviewStateType review state type */ - ReviewStateType: string; - /** @description SearchResults results of a successful search */ - SearchResults: { - data?: components["schemas"]["Repository"][]; - ok?: boolean; - }; - /** @description Secret represents a secret */ - Secret: { - /** Format: date-time */ - created_at?: string; - /** @description the secret's name */ - name?: string; - }; - /** @description ServerVersion wraps the version of the server */ - ServerVersion: { - version?: string; - }; - /** @description StateType issue state type */ - StateType: string; - /** @description StopWatch represent a running stopwatch */ - StopWatch: { - /** Format: date-time */ - created?: string; - duration?: string; - /** Format: int64 */ - issue_index?: number; - issue_title?: string; - repo_name?: string; - repo_owner_name?: string; - /** Format: int64 */ - seconds?: number; - }; - /** @description SubmitPullReviewOptions are options to submit a pending pull review */ - SubmitPullReviewOptions: { - body?: string; - event?: components["schemas"]["ReviewStateType"]; - }; - /** @description Tag represents a repository tag */ - Tag: { - commit?: components["schemas"]["CommitMeta"]; - id?: string; - message?: string; - name?: string; - tarball_url?: string; - zipball_url?: string; - }; - /** @description Team represents a team in an organization */ - Team: { - can_create_org_repo?: boolean; - description?: string; - /** Format: int64 */ - id?: number; - includes_all_repositories?: boolean; - name?: string; - organization?: components["schemas"]["Organization"]; - /** @enum {string} */ - permission?: "none" | "read" | "write" | "admin" | "owner"; - /** @example [ - * "repo.code", - * "repo.issues", - * "repo.ext_issues", - * "repo.wiki", - * "repo.pulls", - * "repo.releases", - * "repo.projects", - * "repo.ext_wiki" - * ] */ - units?: string[]; - /** @example { - * "repo.code": "read", - * "repo.ext_issues": "none", - * "repo.ext_wiki": "none", - * "repo.issues": "write", - * "repo.projects": "none", - * "repo.pulls": "owner", - * "repo.releases": "none", - * "repo.wiki": "admin" - * } */ - units_map?: { - [key: string]: string; - }; - }; - /** - * Format: int64 - * @description TimeStamp defines a timestamp - */ - TimeStamp: number; - /** @description TimelineComment represents a timeline comment (comment of any type) on a commit or issue */ - TimelineComment: { - assignee?: components["schemas"]["User"]; - assignee_team?: components["schemas"]["Team"]; - body?: string; - /** Format: date-time */ - created_at?: string; - dependent_issue?: components["schemas"]["Issue"]; - html_url?: string; - /** Format: int64 */ - id?: number; - issue_url?: string; - label?: components["schemas"]["Label"]; - milestone?: components["schemas"]["Milestone"]; - new_ref?: string; - new_title?: string; - old_milestone?: components["schemas"]["Milestone"]; - /** Format: int64 */ - old_project_id?: number; - old_ref?: string; - old_title?: string; - /** Format: int64 */ - project_id?: number; - pull_request_url?: string; - ref_action?: string; - ref_comment?: components["schemas"]["Comment"]; - /** @description commit SHA where issue/PR was referenced */ - ref_commit_sha?: string; - ref_issue?: components["schemas"]["Issue"]; - /** @description whether the assignees were removed or added */ - removed_assignee?: boolean; - resolve_doer?: components["schemas"]["User"]; - /** Format: int64 */ - review_id?: number; - tracked_time?: components["schemas"]["TrackedTime"]; - type?: string; - /** Format: date-time */ - updated_at?: string; - user?: components["schemas"]["User"]; - }; - /** @description TopicName a list of repo topic names */ - TopicName: { - topics?: string[]; - }; - /** @description TopicResponse for returning topics */ - TopicResponse: { - /** Format: date-time */ - created?: string; - /** Format: int64 */ - id?: number; - /** Format: int64 */ - repo_count?: number; - topic_name?: string; - /** Format: date-time */ - updated?: string; - }; - /** @description TrackedTime worked time for an issue / pr */ - TrackedTime: { - /** Format: date-time */ - created?: string; - /** Format: int64 */ - id?: number; - issue?: components["schemas"]["Issue"]; - /** - * Format: int64 - * @description deprecated (only for backwards compatibility) - */ - issue_id?: number; - /** - * Format: int64 - * @description Time in seconds - */ - time?: number; - /** - * Format: int64 - * @description deprecated (only for backwards compatibility) - */ - user_id?: number; - user_name?: string; - }; - /** @description TransferRepoOption options when transfer a repository's ownership */ - TransferRepoOption: { - new_owner: string; - /** @description ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. */ - team_ids?: number[]; - }; - /** @description UpdateFileOptions options for updating files - * Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used) */ - UpdateFileOptions: { - author?: components["schemas"]["Identity"]; - /** @description branch (optional) to base this file from. if not given, the default branch is used */ - branch?: string; - committer?: components["schemas"]["Identity"]; - /** @description content must be base64 encoded */ - content: string; - dates?: components["schemas"]["CommitDateOptions"]; - /** @description from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL */ - from_path?: string; - /** @description message (optional) for the commit of this file. if not supplied, a default message will be used */ - message?: string; - /** @description new_branch (optional) will make a new branch from `branch` before creating the file */ - new_branch?: string; - /** @description sha is the SHA for the file that already exists */ - sha: string; - /** @description Add a Signed-off-by trailer by the committer at the end of the commit log message. */ - signoff?: boolean; - }; - /** @description UpdateRepoAvatarUserOption options when updating the repo avatar */ - UpdateRepoAvatarOption: { - /** @description image must be base64 encoded */ - image?: string; - }; - /** @description UpdateUserAvatarUserOption options when updating the user avatar */ - UpdateUserAvatarOption: { - /** @description image must be base64 encoded */ - image?: string; - }; - /** @description UpdateVariableOption the option when updating variable */ - UpdateVariableOption: { - /** @description New name for the variable. If the field is empty, the variable name won't be updated. */ - name?: string; - /** @description Value of the variable to update */ - value: string; - }; - /** @description User represents a user */ - User: { - /** @description Is user active */ - active?: boolean; - /** @description URL to the user's avatar */ - avatar_url?: string; - /** Format: date-time */ - created?: string; - /** @description the user's description */ - description?: string; - /** Format: email */ - email?: string; - /** - * Format: int64 - * @description user counts - */ - followers_count?: number; - /** Format: int64 */ - following_count?: number; - /** @description the user's full name */ - full_name?: string; - /** @description URL to the user's gitea page */ - html_url?: string; - /** - * Format: int64 - * @description the user's id - */ - id?: number; - /** @description Is the user an administrator */ - is_admin?: boolean; - /** @description User locale */ - language?: string; - /** Format: date-time */ - last_login?: string; - /** @description the user's location */ - location?: string; - /** @description the user's username */ - login?: string; - /** - * @description the user's authentication sign-in name. - * @default empty - */ - login_name: string; - /** @description Is user login prohibited */ - prohibit_login?: boolean; - /** @description Is user restricted */ - restricted?: boolean; - /** - * Format: int64 - * @description The ID of the user's Authentication Source - */ - source_id?: number; - /** Format: int64 */ - starred_repos_count?: number; - /** @description User visibility level option: public, limited, private */ - visibility?: string; - /** @description the user's website */ - website?: string; - }; - /** @description UserBadgeOption options for link between users and badges */ - UserBadgeOption: { - /** @example [ - * "badge1", - * "badge2" - * ] */ - badge_slugs?: string[]; - }; - /** @description UserHeatmapData represents the data needed to create a heatmap */ - UserHeatmapData: { - /** Format: int64 */ - contributions?: number; - timestamp?: components["schemas"]["TimeStamp"]; - }; - /** @description UserSettings represents user settings */ - UserSettings: { - description?: string; - diff_view_style?: string; - full_name?: string; - hide_activity?: boolean; - /** @description Privacy */ - hide_email?: boolean; - language?: string; - location?: string; - theme?: string; - website?: string; - }; - /** @description UserSettingsOptions represents options to change user settings */ - UserSettingsOptions: { - description?: string; - diff_view_style?: string; - full_name?: string; - hide_activity?: boolean; - /** @description Privacy */ - hide_email?: boolean; - language?: string; - location?: string; - theme?: string; - website?: string; - }; - /** @description WatchInfo represents an API watch status of one repository */ - WatchInfo: { - /** Format: date-time */ - created_at?: string; - ignored?: boolean; - reason?: Record<string, never>; - repository_url?: string; - subscribed?: boolean; - url?: string; - }; - /** @description WikiCommit page commit/revision */ - WikiCommit: { - author?: components["schemas"]["CommitUser"]; - commiter?: components["schemas"]["CommitUser"]; - message?: string; - sha?: string; - }; - /** @description WikiCommitList commit/revision list */ - WikiCommitList: { - commits?: components["schemas"]["WikiCommit"][]; - /** Format: int64 */ - count?: number; - }; - /** @description WikiPage a wiki page */ - WikiPage: { - /** Format: int64 */ - commit_count?: number; - /** @description Page content, base64 encoded */ - content_base64?: string; - footer?: string; - html_url?: string; - last_commit?: components["schemas"]["WikiCommit"]; - sidebar?: string; - sub_url?: string; - title?: string; - }; - /** @description WikiPageMetaData wiki page meta information */ - WikiPageMetaData: { - html_url?: string; - last_commit?: components["schemas"]["WikiCommit"]; - sub_url?: string; - title?: string; - }; - }; - responses: { - /** @description AccessToken represents an API access token. */ - AccessToken: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["AccessToken"]; - "text/html": components["schemas"]["AccessToken"]; - }; - }; - /** @description AccessTokenList represents a list of API access token. */ - AccessTokenList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["AccessToken"][]; - "text/html": components["schemas"]["AccessToken"][]; - }; - }; - /** @description ActionVariable */ - ActionVariable: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ActionVariable"]; - "text/html": components["schemas"]["ActionVariable"]; - }; - }; - /** @description ActivityFeedsList */ - ActivityFeedsList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Activity"][]; - "text/html": components["schemas"]["Activity"][]; - }; - }; - /** @description ActivityPub */ - ActivityPub: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ActivityPub"]; - "text/html": components["schemas"]["ActivityPub"]; - }; - }; - /** @description AnnotatedTag */ - AnnotatedTag: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["AnnotatedTag"]; - "text/html": components["schemas"]["AnnotatedTag"]; - }; - }; - /** @description Attachment */ - Attachment: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Attachment"]; - "text/html": components["schemas"]["Attachment"]; - }; - }; - /** @description AttachmentList */ - AttachmentList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Attachment"][]; - "text/html": components["schemas"]["Attachment"][]; - }; - }; - /** @description BadgeList */ - BadgeList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Badge"][]; - "text/html": components["schemas"]["Badge"][]; - }; - }; - /** @description Branch */ - Branch: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Branch"]; - "text/html": components["schemas"]["Branch"]; - }; - }; - /** @description BranchList */ - BranchList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Branch"][]; - "text/html": components["schemas"]["Branch"][]; - }; - }; - /** @description BranchProtection */ - BranchProtection: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BranchProtection"]; - "text/html": components["schemas"]["BranchProtection"]; - }; - }; - /** @description BranchProtectionList */ - BranchProtectionList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BranchProtection"][]; - "text/html": components["schemas"]["BranchProtection"][]; - }; - }; - /** @description ChangedFileList */ - ChangedFileList: { - headers: { - /** @description True if there is another page */ - "X-HasMore"?: boolean; - /** @description Total number of pages */ - "X-PageCount"?: number; - /** @description Commits per page */ - "X-PerPage"?: number; - /** @description Total commit count */ - "X-Total"?: number; - /** @description The current page */ - "X-Page"?: number; - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ChangedFile"][]; - "text/html": components["schemas"]["ChangedFile"][]; - }; - }; - /** @description CombinedStatus */ - CombinedStatus: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CombinedStatus"]; - "text/html": components["schemas"]["CombinedStatus"]; - }; - }; - /** @description Comment */ - Comment: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Comment"]; - "text/html": components["schemas"]["Comment"]; - }; - }; - /** @description CommentList */ - CommentList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Comment"][]; - "text/html": components["schemas"]["Comment"][]; - }; - }; - /** @description Commit */ - Commit: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Commit"]; - "text/html": components["schemas"]["Commit"]; - }; - }; - /** @description CommitList */ - CommitList: { - headers: { - /** @description True if there is another page */ - "X-HasMore"?: boolean; - /** @description Total number of pages */ - "X-PageCount"?: number; - /** @description Commits per page */ - "X-PerPage"?: number; - /** @description Total commit count */ - "X-Total"?: number; - /** @description The current page */ - "X-Page"?: number; - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Commit"][]; - "text/html": components["schemas"]["Commit"][]; - }; - }; - /** @description CommitStatus */ - CommitStatus: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CommitStatus"]; - "text/html": components["schemas"]["CommitStatus"]; - }; - }; - /** @description CommitStatusList */ - CommitStatusList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CommitStatus"][]; - "text/html": components["schemas"]["CommitStatus"][]; - }; - }; - Compare: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Compare"]; - "text/html": components["schemas"]["Compare"]; - }; - }; - /** @description ContentsListResponse */ - ContentsListResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ContentsResponse"][]; - "text/html": components["schemas"]["ContentsResponse"][]; - }; - }; - /** @description ContentsResponse */ - ContentsResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ContentsResponse"]; - "text/html": components["schemas"]["ContentsResponse"]; - }; - }; - /** @description CronList */ - CronList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Cron"][]; - "text/html": components["schemas"]["Cron"][]; - }; - }; - /** @description DeployKey */ - DeployKey: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["DeployKey"]; - "text/html": components["schemas"]["DeployKey"]; - }; - }; - /** @description DeployKeyList */ - DeployKeyList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["DeployKey"][]; - "text/html": components["schemas"]["DeployKey"][]; - }; - }; - /** @description EmailList */ - EmailList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Email"][]; - "text/html": components["schemas"]["Email"][]; - }; - }; - /** @description EmptyRepository */ - EmptyRepository: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["APIError"]; - "text/html": components["schemas"]["APIError"]; - }; - }; - /** @description FileDeleteResponse */ - FileDeleteResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["FileDeleteResponse"]; - "text/html": components["schemas"]["FileDeleteResponse"]; - }; - }; - /** @description FileResponse */ - FileResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["FileResponse"]; - "text/html": components["schemas"]["FileResponse"]; - }; - }; - /** @description FilesResponse */ - FilesResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["FilesResponse"]; - "text/html": components["schemas"]["FilesResponse"]; - }; - }; - /** @description GPGKey */ - GPGKey: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GPGKey"]; - "text/html": components["schemas"]["GPGKey"]; - }; - }; - /** @description GPGKeyList */ - GPGKeyList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GPGKey"][]; - "text/html": components["schemas"]["GPGKey"][]; - }; - }; - /** @description GeneralAPISettings */ - GeneralAPISettings: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GeneralAPISettings"]; - "text/html": components["schemas"]["GeneralAPISettings"]; - }; - }; - /** @description GeneralAttachmentSettings */ - GeneralAttachmentSettings: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GeneralAttachmentSettings"]; - "text/html": components["schemas"]["GeneralAttachmentSettings"]; - }; - }; - /** @description GeneralRepoSettings */ - GeneralRepoSettings: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GeneralRepoSettings"]; - "text/html": components["schemas"]["GeneralRepoSettings"]; - }; - }; - /** @description GeneralUISettings */ - GeneralUISettings: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GeneralUISettings"]; - "text/html": components["schemas"]["GeneralUISettings"]; - }; - }; - /** @description GitBlobResponse */ - GitBlobResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GitBlobResponse"]; - "text/html": components["schemas"]["GitBlobResponse"]; - }; - }; - /** @description GitHook */ - GitHook: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GitHook"]; - "text/html": components["schemas"]["GitHook"]; - }; - }; - /** @description GitHookList */ - GitHookList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GitHook"][]; - "text/html": components["schemas"]["GitHook"][]; - }; - }; - /** @description GitTreeResponse */ - GitTreeResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GitTreeResponse"]; - "text/html": components["schemas"]["GitTreeResponse"]; - }; - }; - /** @description GitignoreTemplateInfo */ - GitignoreTemplateInfo: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GitignoreTemplateInfo"]; - "text/html": components["schemas"]["GitignoreTemplateInfo"]; - }; - }; - /** @description GitignoreTemplateList */ - GitignoreTemplateList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": string[]; - "text/html": string[]; - }; - }; - /** @description Hook */ - Hook: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Hook"]; - "text/html": components["schemas"]["Hook"]; - }; - }; - /** @description HookList */ - HookList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Hook"][]; - "text/html": components["schemas"]["Hook"][]; - }; - }; - /** @description Issue */ - Issue: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Issue"]; - "text/html": components["schemas"]["Issue"]; - }; - }; - /** @description IssueDeadline */ - IssueDeadline: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["IssueDeadline"]; - "text/html": components["schemas"]["IssueDeadline"]; - }; - }; - /** @description IssueList */ - IssueList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Issue"][]; - "text/html": components["schemas"]["Issue"][]; - }; - }; - /** @description IssueTemplates */ - IssueTemplates: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["IssueTemplate"][]; - "text/html": components["schemas"]["IssueTemplate"][]; - }; - }; - /** @description Label */ - Label: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Label"]; - "text/html": components["schemas"]["Label"]; - }; - }; - /** @description LabelList */ - LabelList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Label"][]; - "text/html": components["schemas"]["Label"][]; - }; - }; - /** @description LabelTemplateInfo */ - LabelTemplateInfo: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["LabelTemplate"][]; - "text/html": components["schemas"]["LabelTemplate"][]; - }; - }; - /** @description LabelTemplateList */ - LabelTemplateList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": string[]; - "text/html": string[]; - }; - }; - /** @description LanguageStatistics */ - LanguageStatistics: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - [key: string]: number; - }; - "text/html": { - [key: string]: number; - }; - }; - }; - /** @description LicenseTemplateInfo */ - LicenseTemplateInfo: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["LicenseTemplateInfo"]; - "text/html": components["schemas"]["LicenseTemplateInfo"]; - }; - }; - /** @description LicenseTemplateList */ - LicenseTemplateList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["LicensesTemplateListEntry"][]; - "text/html": components["schemas"]["LicensesTemplateListEntry"][]; - }; - }; - /** @description MarkdownRender is a rendered markdown document */ - MarkdownRender: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": string; - "text/html": string; - }; - }; - /** @description MarkupRender is a rendered markup document */ - MarkupRender: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": string; - "text/html": string; - }; - }; - /** @description Milestone */ - Milestone: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Milestone"]; - "text/html": components["schemas"]["Milestone"]; - }; - }; - /** @description MilestoneList */ - MilestoneList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Milestone"][]; - "text/html": components["schemas"]["Milestone"][]; - }; - }; - /** @description NodeInfo */ - NodeInfo: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["NodeInfo"]; - "text/html": components["schemas"]["NodeInfo"]; - }; - }; - /** @description Note */ - Note: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Note"]; - "text/html": components["schemas"]["Note"]; - }; - }; - /** @description Number of unread notifications */ - NotificationCount: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["NotificationCount"]; - "text/html": components["schemas"]["NotificationCount"]; - }; - }; - /** @description NotificationThread */ - NotificationThread: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["NotificationThread"]; - "text/html": components["schemas"]["NotificationThread"]; - }; - }; - /** @description NotificationThreadList */ - NotificationThreadList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["NotificationThread"][]; - "text/html": components["schemas"]["NotificationThread"][]; - }; - }; - /** @description OAuth2Application */ - OAuth2Application: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["OAuth2Application"]; - "text/html": components["schemas"]["OAuth2Application"]; - }; - }; - /** @description OAuth2ApplicationList represents a list of OAuth2 applications. */ - OAuth2ApplicationList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["OAuth2Application"][]; - "text/html": components["schemas"]["OAuth2Application"][]; - }; - }; - /** @description Organization */ - Organization: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Organization"]; - "text/html": components["schemas"]["Organization"]; - }; - }; - /** @description OrganizationList */ - OrganizationList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Organization"][]; - "text/html": components["schemas"]["Organization"][]; - }; - }; - /** @description OrganizationPermissions */ - OrganizationPermissions: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["OrganizationPermissions"]; - "text/html": components["schemas"]["OrganizationPermissions"]; - }; - }; - /** @description Package */ - Package: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Package"]; - "text/html": components["schemas"]["Package"]; - }; - }; - /** @description PackageFileList */ - PackageFileList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PackageFile"][]; - "text/html": components["schemas"]["PackageFile"][]; - }; - }; - /** @description PackageList */ - PackageList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Package"][]; - "text/html": components["schemas"]["Package"][]; - }; - }; - /** @description PublicKey */ - PublicKey: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PublicKey"]; - "text/html": components["schemas"]["PublicKey"]; - }; - }; - /** @description PublicKeyList */ - PublicKeyList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PublicKey"][]; - "text/html": components["schemas"]["PublicKey"][]; - }; - }; - /** @description PullRequest */ - PullRequest: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PullRequest"]; - "text/html": components["schemas"]["PullRequest"]; - }; - }; - /** @description PullRequestList */ - PullRequestList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PullRequest"][]; - "text/html": components["schemas"]["PullRequest"][]; - }; - }; - /** @description PullReview */ - PullReview: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PullReview"]; - "text/html": components["schemas"]["PullReview"]; - }; - }; - /** @description PullComment */ - PullReviewComment: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PullReviewComment"]; - "text/html": components["schemas"]["PullReviewComment"]; - }; - }; - /** @description PullCommentList */ - PullReviewCommentList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PullReviewComment"][]; - "text/html": components["schemas"]["PullReviewComment"][]; - }; - }; - /** @description PullReviewList */ - PullReviewList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PullReview"][]; - "text/html": components["schemas"]["PullReview"][]; - }; - }; - /** @description PushMirror */ - PushMirror: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PushMirror"]; - "text/html": components["schemas"]["PushMirror"]; - }; - }; - /** @description PushMirrorList */ - PushMirrorList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PushMirror"][]; - "text/html": components["schemas"]["PushMirror"][]; - }; - }; - /** @description Reaction */ - Reaction: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Reaction"]; - "text/html": components["schemas"]["Reaction"]; - }; - }; - /** @description ReactionList */ - ReactionList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Reaction"][]; - "text/html": components["schemas"]["Reaction"][]; - }; - }; - /** @description Reference */ - Reference: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Reference"]; - "text/html": components["schemas"]["Reference"]; - }; - }; - /** @description ReferenceList */ - ReferenceList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Reference"][]; - "text/html": components["schemas"]["Reference"][]; - }; - }; - /** @description RegistrationToken is response related to registration token */ - RegistrationToken: { - headers: { - token?: string; - [name: string]: unknown; - }; - content?: never; - }; - /** @description Release */ - Release: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Release"]; - "text/html": components["schemas"]["Release"]; - }; - }; - /** @description ReleaseList */ - ReleaseList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Release"][]; - "text/html": components["schemas"]["Release"][]; - }; - }; - /** @description RepoCollaboratorPermission */ - RepoCollaboratorPermission: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["RepoCollaboratorPermission"]; - "text/html": components["schemas"]["RepoCollaboratorPermission"]; - }; - }; - /** @description RepoIssueConfig */ - RepoIssueConfig: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["IssueConfig"]; - "text/html": components["schemas"]["IssueConfig"]; - }; - }; - /** @description RepoIssueConfigValidation */ - RepoIssueConfigValidation: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["IssueConfigValidation"]; - "text/html": components["schemas"]["IssueConfigValidation"]; - }; - }; - /** @description RepoNewIssuePinsAllowed */ - RepoNewIssuePinsAllowed: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["NewIssuePinsAllowed"]; - "text/html": components["schemas"]["NewIssuePinsAllowed"]; - }; - }; - /** @description Repository */ - Repository: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Repository"]; - "text/html": components["schemas"]["Repository"]; - }; - }; - /** @description RepositoryList */ - RepositoryList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Repository"][]; - "text/html": components["schemas"]["Repository"][]; - }; - }; - /** @description SearchResults */ - SearchResults: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["SearchResults"]; - "text/html": components["schemas"]["SearchResults"]; - }; - }; - /** @description Secret */ - Secret: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Secret"]; - "text/html": components["schemas"]["Secret"]; - }; - }; - /** @description SecretList */ - SecretList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Secret"][]; - "text/html": components["schemas"]["Secret"][]; - }; - }; - /** @description ServerVersion */ - ServerVersion: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ServerVersion"]; - "text/html": components["schemas"]["ServerVersion"]; - }; - }; - /** @description StopWatch */ - StopWatch: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["StopWatch"]; - "text/html": components["schemas"]["StopWatch"]; - }; - }; - /** @description StopWatchList */ - StopWatchList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["StopWatch"][]; - "text/html": components["schemas"]["StopWatch"][]; - }; - }; - /** @description StringSlice */ - StringSlice: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": string[]; - "text/html": string[]; - }; - }; - /** @description Tag */ - Tag: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Tag"]; - "text/html": components["schemas"]["Tag"]; - }; - }; - /** @description TagList */ - TagList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Tag"][]; - "text/html": components["schemas"]["Tag"][]; - }; - }; - /** @description Team */ - Team: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Team"]; - "text/html": components["schemas"]["Team"]; - }; - }; - /** @description TeamList */ - TeamList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Team"][]; - "text/html": components["schemas"]["Team"][]; - }; - }; - /** @description TimelineList */ - TimelineList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TimelineComment"][]; - "text/html": components["schemas"]["TimelineComment"][]; - }; - }; - /** @description TopicListResponse */ - TopicListResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TopicResponse"][]; - "text/html": components["schemas"]["TopicResponse"][]; - }; - }; - /** @description TopicNames */ - TopicNames: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TopicName"]; - "text/html": components["schemas"]["TopicName"]; - }; - }; - /** @description TrackedTime */ - TrackedTime: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TrackedTime"]; - "text/html": components["schemas"]["TrackedTime"]; - }; - }; - /** @description TrackedTimeList */ - TrackedTimeList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TrackedTime"][]; - "text/html": components["schemas"]["TrackedTime"][]; - }; - }; - /** @description User */ - User: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["User"]; - "text/html": components["schemas"]["User"]; - }; - }; - /** @description UserHeatmapData */ - UserHeatmapData: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["UserHeatmapData"][]; - "text/html": components["schemas"]["UserHeatmapData"][]; - }; - }; - /** @description UserList */ - UserList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["User"][]; - "text/html": components["schemas"]["User"][]; - }; - }; - /** @description UserSettings */ - UserSettings: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["UserSettings"][]; - "text/html": components["schemas"]["UserSettings"][]; - }; - }; - /** @description VariableList */ - VariableList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ActionVariable"][]; - "text/html": components["schemas"]["ActionVariable"][]; - }; - }; - /** @description WatchInfo */ - WatchInfo: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["WatchInfo"]; - "text/html": components["schemas"]["WatchInfo"]; - }; - }; - /** @description WikiCommitList */ - WikiCommitList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["WikiCommitList"]; - "text/html": components["schemas"]["WikiCommitList"]; - }; - }; - /** @description WikiPage */ - WikiPage: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["WikiPage"]; - "text/html": components["schemas"]["WikiPage"]; - }; - }; - /** @description WikiPageList */ - WikiPageList: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["WikiPageMetaData"][]; - "text/html": components["schemas"]["WikiPageMetaData"][]; - }; - }; - /** @description APIConflict is a conflict empty response */ - conflict: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description APIEmpty is an empty response */ - empty: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description APIError is error format response */ - error: { - headers: { - message?: string; - url?: string; - [name: string]: unknown; - }; - content?: never; - }; - /** @description APIForbiddenError is a forbidden error response */ - forbidden: { - headers: { - message?: string; - url?: string; - [name: string]: unknown; - }; - content?: never; - }; - /** @description APIInvalidTopicsError is error format response to invalid topics */ - invalidTopicsError: { - headers: { - invalidTopics?: string[]; - message?: string; - [name: string]: unknown; - }; - content?: never; - }; - /** @description APINotFound is a not found empty response */ - notFound: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description parameterBodies */ - parameterBodies: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["UpdateVariableOption"]; - "text/html": components["schemas"]["UpdateVariableOption"]; - }; - }; - /** @description APIRedirect is a redirect response */ - redirect: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description APIRepoArchivedError is an error that is raised when an archived repo should be modified */ - repoArchivedError: { - headers: { - message?: string; - url?: string; - [name: string]: unknown; - }; - content?: never; - }; - /** @description APIString is a string response */ - string: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": string; - "text/html": string; - }; - }; - /** @description APIValidationError is error format response related to input validation */ - validationError: { - headers: { - message?: string; - url?: string; - [name: string]: unknown; - }; - content?: never; - }; - }; - parameters: never; - requestBodies: never; - headers: never; - pathItems: never; -} -export type $defs = Record<string, never>; -export interface operations { - activitypubPerson: { - parameters: { - query?: never; - header?: never; - path: { - /** @description user ID of the user */ - "user-id": number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ActivityPub"]; - }; - }; - activitypubPersonInbox: { - parameters: { - query?: never; - header?: never; - path: { - /** @description user ID of the user */ - "user-id": number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - }; - }; - adminCronList: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["CronList"]; - 403: components["responses"]["forbidden"]; - }; - }; - adminCronRun: { - parameters: { - query?: never; - header?: never; - path: { - /** @description task to run */ - task: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - adminGetAllEmails: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["EmailList"]; - 403: components["responses"]["forbidden"]; - }; - }; - adminSearchEmails: { - parameters: { - query?: { - /** @description keyword */ - q?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["EmailList"]; - 403: components["responses"]["forbidden"]; - }; - }; - adminListHooks: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["HookList"]; - }; - }; - adminCreateHook: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateHookOption"]; - }; - }; - responses: { - 201: components["responses"]["Hook"]; - }; - }; - adminGetHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of the hook to get */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Hook"]; - }; - }; - adminDeleteHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of the hook to delete */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - }; - }; - adminEditHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of the hook to update */ - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditHookOption"]; - }; - }; - responses: { - 200: components["responses"]["Hook"]; - }; - }; - adminGetAllOrgs: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["OrganizationList"]; - 403: components["responses"]["forbidden"]; - }; - }; - adminGetRunnerRegistrationToken: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RegistrationToken"]; - }; - }; - adminUnadoptedList: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - /** @description pattern of repositories to search for */ - pattern?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["StringSlice"]; - 403: components["responses"]["forbidden"]; - }; - }; - adminAdoptRepository: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - adminDeleteUnadoptedRepository: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - }; - }; - adminSearchUsers: { - parameters: { - query?: { - /** @description ID of the user's login source to search for */ - source_id?: number; - /** @description user's login name to search for */ - login_name?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserList"]; - 403: components["responses"]["forbidden"]; - }; - }; - adminCreateUser: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateUserOption"]; - }; - }; - responses: { - 201: components["responses"]["User"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - 422: components["responses"]["validationError"]; - }; - }; - adminDeleteUser: { - parameters: { - query?: { - /** @description purge the user from the system completely */ - purge?: boolean; - }; - header?: never; - path: { - /** @description username of user to delete */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - adminEditUser: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of user to edit */ - username: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditUserOption"]; - }; - }; - responses: { - 200: components["responses"]["User"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - 422: components["responses"]["validationError"]; - }; - }; - adminListUserBadges: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["BadgeList"]; - 404: components["responses"]["notFound"]; - }; - }; - adminAddUserBadges: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of user */ - username: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["UserBadgeOption"]; - }; - }; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - }; - }; - adminDeleteUserBadges: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of user */ - username: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["UserBadgeOption"]; - "text/plain": components["schemas"]["UserBadgeOption"]; - }; - }; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 422: components["responses"]["validationError"]; - }; - }; - adminCreatePublicKey: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of the user */ - username: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateKeyOption"]; - }; - }; - responses: { - 201: components["responses"]["PublicKey"]; - 403: components["responses"]["forbidden"]; - 422: components["responses"]["validationError"]; - }; - }; - adminDeleteUserPublicKey: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of user */ - username: string; - /** @description id of the key to delete */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - adminCreateOrg: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of the user that will own the created organization */ - username: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateOrgOption"]; - }; - }; - responses: { - 201: components["responses"]["Organization"]; - 403: components["responses"]["forbidden"]; - 422: components["responses"]["validationError"]; - }; - }; - adminRenameUser: { - parameters: { - query?: never; - header?: never; - path: { - /** @description existing username of user */ - username: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["RenameUserOption"]; - "text/plain": components["schemas"]["RenameUserOption"]; - }; - }; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 422: components["responses"]["validationError"]; - }; - }; - adminCreateRepo: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of the user. This user will own the created repository */ - username: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateRepoOption"]; - }; - }; - responses: { - 201: components["responses"]["Repository"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 409: components["responses"]["error"]; - 422: components["responses"]["validationError"]; - }; - }; - listGitignoresTemplates: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["GitignoreTemplateList"]; - }; - }; - getGitignoreTemplateInfo: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the template */ - name: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["GitignoreTemplateInfo"]; - 404: components["responses"]["notFound"]; - }; - }; - listLabelTemplates: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["LabelTemplateList"]; - }; - }; - getLabelTemplateInfo: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the template */ - name: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["LabelTemplateInfo"]; - 404: components["responses"]["notFound"]; - }; - }; - listLicenseTemplates: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["LicenseTemplateList"]; - }; - }; - getLicenseTemplateInfo: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the license */ - name: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["LicenseTemplateInfo"]; - 404: components["responses"]["notFound"]; - }; - }; - renderMarkdown: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["MarkdownOption"]; - }; - }; - responses: { - 200: components["responses"]["MarkdownRender"]; - 422: components["responses"]["validationError"]; - }; - }; - renderMarkdownRaw: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description Request body to render */ - requestBody: { - content: { - "text/plain": string; - }; - }; - responses: { - 200: components["responses"]["MarkdownRender"]; - 422: components["responses"]["validationError"]; - }; - }; - renderMarkup: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["MarkupOption"]; - }; - }; - responses: { - 200: components["responses"]["MarkupRender"]; - 422: components["responses"]["validationError"]; - }; - }; - getNodeInfo: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["NodeInfo"]; - }; - }; - notifyGetList: { - parameters: { - query?: { - /** @description If true, show notifications marked as read. Default value is false */ - all?: boolean; - /** @description Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned. */ - "status-types"?: string[]; - /** @description filter notifications by subject type */ - "subject-type"?: ("issue" | "pull" | "commit" | "repository")[]; - /** @description Only show notifications updated after the given time. This is a timestamp in RFC 3339 format */ - since?: string; - /** @description Only show notifications updated before the given time. This is a timestamp in RFC 3339 format */ - before?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["NotificationThreadList"]; - }; - }; - notifyReadList: { - parameters: { - query?: { - /** @description Describes the last point that notifications were checked. Anything updated since this time will not be updated. */ - last_read_at?: string; - /** @description If true, mark all notifications on this repo. Default value is false */ - all?: string; - /** @description Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. */ - "status-types"?: string[]; - /** @description Status to mark notifications as, Defaults to read. */ - "to-status"?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 205: components["responses"]["NotificationThreadList"]; - }; - }; - notifyNewAvailable: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["NotificationCount"]; - }; - }; - notifyGetThread: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of notification thread */ - id: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["NotificationThread"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - notifyReadThread: { - parameters: { - query?: { - /** @description Status to mark notifications as */ - "to-status"?: string; - }; - header?: never; - path: { - /** @description id of notification thread */ - id: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 205: components["responses"]["NotificationThread"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - createOrgRepoDeprecated: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateRepoOption"]; - }; - }; - responses: { - 201: components["responses"]["Repository"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - orgGetAll: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["OrganizationList"]; - }; - }; - orgCreate: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateOrgOption"]; - }; - }; - responses: { - 201: components["responses"]["Organization"]; - 403: components["responses"]["forbidden"]; - 422: components["responses"]["validationError"]; - }; - }; - orgGet: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization to get */ - org: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Organization"]; - 404: components["responses"]["notFound"]; - }; - }; - orgDelete: { - parameters: { - query?: never; - header?: never; - path: { - /** @description organization that is to be deleted */ - org: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - orgEdit: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization to edit */ - org: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["EditOrgOption"]; - }; - }; - responses: { - 200: components["responses"]["Organization"]; - 404: components["responses"]["notFound"]; - }; - }; - orgGetRunnerRegistrationToken: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RegistrationToken"]; - }; - }; - orgListActionsSecrets: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["SecretList"]; - 404: components["responses"]["notFound"]; - }; - }; - updateOrgSecret: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of organization */ - org: string; - /** @description name of the secret */ - secretname: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateOrUpdateSecretOption"]; - }; - }; - responses: { - /** @description response when creating a secret */ - 201: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description response when updating a secret */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - deleteOrgSecret: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of organization */ - org: string; - /** @description name of the secret */ - secretname: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description delete one secret of the organization */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - getOrgVariablesList: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["VariableList"]; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - getOrgVariable: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description name of the variable */ - variablename: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ActionVariable"]; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - updateOrgVariable: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description name of the variable */ - variablename: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["UpdateVariableOption"]; - }; - }; - responses: { - /** @description response when updating an org-level variable */ - 201: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description response when updating an org-level variable */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - createOrgVariable: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description name of the variable */ - variablename: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateVariableOption"]; - }; - }; - responses: { - /** @description response when creating an org-level variable */ - 201: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description response when creating an org-level variable */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - deleteOrgVariable: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description name of the variable */ - variablename: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ActionVariable"]; - /** @description response when deleting a variable */ - 201: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description response when deleting a variable */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - orgListActivityFeeds: { - parameters: { - query?: { - /** @description the date of the activities to be found */ - date?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description name of the org */ - org: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ActivityFeedsList"]; - 404: components["responses"]["notFound"]; - }; - }; - orgUpdateAvatar: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["UpdateUserAvatarOption"]; - "text/plain": components["schemas"]["UpdateUserAvatarOption"]; - }; - }; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - orgDeleteAvatar: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - organizationListBlocks: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserList"]; - }; - }; - organizationCheckUserBlock: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description user to check */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - organizationBlockUser: { - parameters: { - query?: { - /** @description optional note for the block */ - note?: string; - }; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description user to block */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - organizationUnblockUser: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description user to unblock */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - orgListHooks: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["HookList"]; - 404: components["responses"]["notFound"]; - }; - }; - orgCreateHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateHookOption"]; - }; - }; - responses: { - 201: components["responses"]["Hook"]; - 404: components["responses"]["notFound"]; - }; - }; - orgGetHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description id of the hook to get */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Hook"]; - 404: components["responses"]["notFound"]; - }; - }; - orgDeleteHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description id of the hook to delete */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - orgEditHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description id of the hook to update */ - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditHookOption"]; - }; - }; - responses: { - 200: components["responses"]["Hook"]; - 404: components["responses"]["notFound"]; - }; - }; - orgListLabels: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["LabelList"]; - 404: components["responses"]["notFound"]; - }; - }; - orgCreateLabel: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateLabelOption"]; - }; - }; - responses: { - 201: components["responses"]["Label"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - orgGetLabel: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description id of the label to get */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Label"]; - 404: components["responses"]["notFound"]; - }; - }; - orgDeleteLabel: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description id of the label to delete */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - orgEditLabel: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description id of the label to edit */ - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditLabelOption"]; - }; - }; - responses: { - 200: components["responses"]["Label"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - orgListMembers: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserList"]; - 404: components["responses"]["notFound"]; - }; - }; - orgIsMember: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description username of the user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description user is a member */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description redirection to /orgs/{org}/public_members/{username} */ - 303: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description user is not a member */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - orgDeleteMember: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description username of the user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description member removed */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 404: components["responses"]["notFound"]; - }; - }; - orgListPublicMembers: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserList"]; - 404: components["responses"]["notFound"]; - }; - }; - orgIsPublicMember: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description username of the user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description user is a public member */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description user is not a public member */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - orgPublicizeMember: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description username of the user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description membership publicized */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - orgConcealMember: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - /** @description username of the user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - orgListRepos: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RepositoryList"]; - 404: components["responses"]["notFound"]; - }; - }; - createOrgRepo: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateRepoOption"]; - }; - }; - responses: { - 201: components["responses"]["Repository"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - orgListTeams: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["TeamList"]; - 404: components["responses"]["notFound"]; - }; - }; - orgCreateTeam: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateTeamOption"]; - }; - }; - responses: { - 201: components["responses"]["Team"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - teamSearch: { - parameters: { - query?: { - /** @description keywords to search */ - q?: string; - /** @description include search within team description (defaults to true) */ - include_desc?: boolean; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description SearchResults of a successful search */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - data?: components["schemas"]["Team"][]; - ok?: boolean; - }; - }; - }; - 404: components["responses"]["notFound"]; - }; - }; - listPackages: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - /** @description package type filter */ - type?: "alpine" | "cargo" | "chef" | "composer" | "conan" | "conda" | "container" | "cran" | "debian" | "generic" | "go" | "helm" | "maven" | "npm" | "nuget" | "pub" | "pypi" | "rpm" | "rubygems" | "swift" | "vagrant"; - /** @description name filter */ - q?: string; - }; - header?: never; - path: { - /** @description owner of the packages */ - owner: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["PackageList"]; - 404: components["responses"]["notFound"]; - }; - }; - getPackage: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the package */ - owner: string; - /** @description type of the package */ - type: string; - /** @description name of the package */ - name: string; - /** @description version of the package */ - version: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Package"]; - 404: components["responses"]["notFound"]; - }; - }; - deletePackage: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the package */ - owner: string; - /** @description type of the package */ - type: string; - /** @description name of the package */ - name: string; - /** @description version of the package */ - version: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - listPackageFiles: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the package */ - owner: string; - /** @description type of the package */ - type: string; - /** @description name of the package */ - name: string; - /** @description version of the package */ - version: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["PackageFileList"]; - 404: components["responses"]["notFound"]; - }; - }; - issueSearchIssues: { - parameters: { - query?: { - /** @description whether issue is open or closed */ - state?: string; - /** @description comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded */ - labels?: string; - /** @description comma separated list of milestone names. Fetch only issues that have any of this milestones. Non existent are discarded */ - milestones?: string; - /** @description search string */ - q?: string; - /** @description repository to prioritize in the results */ - priority_repo_id?: number; - /** @description filter by type (issues / pulls) if set */ - type?: string; - /** @description Only show notifications updated after the given time. This is a timestamp in RFC 3339 format */ - since?: string; - /** @description Only show notifications updated before the given time. This is a timestamp in RFC 3339 format */ - before?: string; - /** @description filter (issues / pulls) assigned to you, default is false */ - assigned?: boolean; - /** @description filter (issues / pulls) created by you, default is false */ - created?: boolean; - /** @description filter (issues / pulls) mentioning you, default is false */ - mentioned?: boolean; - /** @description filter pulls requesting your review, default is false */ - review_requested?: boolean; - /** @description filter pulls reviewed by you, default is false */ - reviewed?: boolean; - /** @description filter by owner */ - owner?: string; - /** @description filter by team (requires organization owner parameter to be provided) */ - team?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["IssueList"]; - }; - }; - repoMigrate: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["MigrateRepoOptions"]; - }; - }; - responses: { - 201: components["responses"]["Repository"]; - 403: components["responses"]["forbidden"]; - /** @description The repository with the same name already exists. */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 422: components["responses"]["validationError"]; - }; - }; - repoSearch: { - parameters: { - query?: { - /** @description keyword */ - q?: string; - /** @description Limit search to repositories with keyword as topic */ - topic?: boolean; - /** @description include search of keyword within repository description */ - includeDesc?: boolean; - /** @description search only for repos that the user with the given id owns or contributes to */ - uid?: number; - /** @description repo owner to prioritize in the results */ - priority_owner_id?: number; - /** @description search only for repos that belong to the given team id */ - team_id?: number; - /** @description search only for repos that the user with the given id has starred */ - starredBy?: number; - /** @description include private repositories this user has access to (defaults to true) */ - private?: boolean; - /** @description show only pubic, private or all repositories (defaults to all) */ - is_private?: boolean; - /** @description include template repositories this user has access to (defaults to true) */ - template?: boolean; - /** @description show only archived, non-archived or all repositories (defaults to all) */ - archived?: boolean; - /** @description type of repository to search for. Supported values are "fork", "source", "mirror" and "collaborative" */ - mode?: string; - /** @description if `uid` is given, search only for repos that the user owns */ - exclusive?: boolean; - /** @description sort repos by attribute. Supported values are "alpha", "created", "updated", "size", and "id". Default is "alpha" */ - sort?: string; - /** @description sort order, either "asc" (ascending) or "desc" (descending). Default is "asc", ignored if "sort" is not specified. */ - order?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["SearchResults"]; - 422: components["responses"]["validationError"]; - }; - }; - repoGet: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Repository"]; - 404: components["responses"]["notFound"]; - }; - }; - repoDelete: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo to delete */ - owner: string; - /** @description name of the repo to delete */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - repoEdit: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo to edit */ - owner: string; - /** @description name of the repo to edit */ - repo: string; - }; - cookie?: never; - }; - /** @description Properties of a repo that you can edit */ - requestBody?: { - content: { - "application/json": components["schemas"]["EditRepoOption"]; - "text/plain": components["schemas"]["EditRepoOption"]; - }; - }; - responses: { - 200: components["responses"]["Repository"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - repoListActionsSecrets: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repository */ - owner: string; - /** @description name of the repository */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["SecretList"]; - 404: components["responses"]["notFound"]; - }; - }; - updateRepoSecret: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repository */ - owner: string; - /** @description name of the repository */ - repo: string; - /** @description name of the secret */ - secretname: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateOrUpdateSecretOption"]; - }; - }; - responses: { - /** @description response when creating a secret */ - 201: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description response when updating a secret */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - deleteRepoSecret: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repository */ - owner: string; - /** @description name of the repository */ - repo: string; - /** @description name of the secret */ - secretname: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description delete one secret of the organization */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - getRepoVariablesList: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description name of the owner */ - owner: string; - /** @description name of the repository */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["VariableList"]; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - getRepoVariable: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the owner */ - owner: string; - /** @description name of the repository */ - repo: string; - /** @description name of the variable */ - variablename: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ActionVariable"]; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - updateRepoVariable: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the owner */ - owner: string; - /** @description name of the repository */ - repo: string; - /** @description name of the variable */ - variablename: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["UpdateVariableOption"]; - "text/plain": components["schemas"]["UpdateVariableOption"]; - }; - }; - responses: { - /** @description response when updating a repo-level variable */ - 201: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description response when updating a repo-level variable */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - createRepoVariable: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the owner */ - owner: string; - /** @description name of the repository */ - repo: string; - /** @description name of the variable */ - variablename: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateVariableOption"]; - "text/plain": components["schemas"]["CreateVariableOption"]; - }; - }; - responses: { - /** @description response when creating a repo-level variable */ - 201: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description response when creating a repo-level variable */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - deleteRepoVariable: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the owner */ - owner: string; - /** @description name of the repository */ - repo: string; - /** @description name of the variable */ - variablename: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ActionVariable"]; - /** @description response when deleting a variable */ - 201: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description response when deleting a variable */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - repoListActivityFeeds: { - parameters: { - query?: { - /** @description the date of the activities to be found */ - date?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ActivityFeedsList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetArchive: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description the git reference for download with attached archive format (e.g. master.zip) */ - archive: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description success */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 404: components["responses"]["notFound"]; - }; - }; - repoGetAssignees: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoUpdateAvatar: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["UpdateRepoAvatarOption"]; - "text/plain": components["schemas"]["UpdateRepoAvatarOption"]; - }; - }; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - repoDeleteAvatar: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - repoListBranchProtection: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["BranchProtectionList"]; - }; - }; - repoCreateBranchProtection: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateBranchProtectionOption"]; - }; - }; - responses: { - 201: components["responses"]["BranchProtection"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoGetBranchProtection: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description name of protected branch */ - name: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["BranchProtection"]; - 404: components["responses"]["notFound"]; - }; - }; - repoDeleteBranchProtection: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description name of protected branch */ - name: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - repoEditBranchProtection: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description name of protected branch */ - name: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditBranchProtectionOption"]; - }; - }; - responses: { - 200: components["responses"]["BranchProtection"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoListBranches: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["BranchList"]; - }; - }; - repoCreateBranch: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateBranchRepoOption"]; - }; - }; - responses: { - 201: components["responses"]["Branch"]; - /** @description The branch is archived or a mirror. */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description The old branch does not exist. */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description The branch with the same name already exists. */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoGetBranch: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description branch to get */ - branch: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Branch"]; - 404: components["responses"]["notFound"]; - }; - }; - repoDeleteBranch: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description branch to delete */ - branch: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoListCollaborators: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoCheckCollaborator: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description username of the collaborator */ - collaborator: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - repoAddCollaborator: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description username of the collaborator to add */ - collaborator: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["AddCollaboratorOption"]; - "text/plain": components["schemas"]["AddCollaboratorOption"]; - }; - }; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - repoDeleteCollaborator: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description username of the collaborator to delete */ - collaborator: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - repoGetRepoPermissions: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description username of the collaborator */ - collaborator: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RepoCollaboratorPermission"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetAllCommits: { - parameters: { - query?: { - /** @description SHA or branch to start listing commits from (usually 'master') */ - sha?: string; - /** @description filepath of a file/dir */ - path?: string; - /** @description include diff stats for every commit (disable for speedup, default 'true') */ - stat?: boolean; - /** @description include verification for every commit (disable for speedup, default 'true') */ - verification?: boolean; - /** @description include a list of affected files for every commit (disable for speedup, default 'true') */ - files?: boolean; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results (ignored if used with 'path') */ - limit?: number; - /** @description commits that match the given specifier will not be listed. */ - not?: string; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["CommitList"]; - 404: components["responses"]["notFound"]; - 409: components["responses"]["EmptyRepository"]; - }; - }; - repoGetCombinedStatusByRef: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description name of branch/tag/commit */ - ref: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["CombinedStatus"]; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - repoListStatusesByRef: { - parameters: { - query?: { - /** @description type of sort */ - sort?: "oldest" | "recentupdate" | "leastupdate" | "leastindex" | "highestindex"; - /** @description type of state */ - state?: "pending" | "success" | "error" | "failure" | "warning"; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description name of branch/tag/commit */ - ref: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["CommitStatusList"]; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetCommitPullRequest: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description SHA of the commit to get */ - sha: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["PullRequest"]; - 404: components["responses"]["notFound"]; - }; - }; - repoCompareDiff: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description compare two branches or commits */ - basehead: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Compare"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetContentsList: { - parameters: { - query?: { - /** @description The name of the commit/branch/tag. Default the repository’s default branch (usually master) */ - ref?: string; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ContentsListResponse"]; - 404: components["responses"]["notFound"]; - }; - }; - repoChangeFiles: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ChangeFilesOptions"]; - }; - }; - responses: { - 201: components["responses"]["FilesResponse"]; - 403: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["error"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoGetContents: { - parameters: { - query?: { - /** @description The name of the commit/branch/tag. Default the repository’s default branch (usually master) */ - ref?: string; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description path of the dir, file, symlink or submodule in the repo */ - filepath: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ContentsResponse"]; - 404: components["responses"]["notFound"]; - }; - }; - repoUpdateFile: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description path of the file to update */ - filepath: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateFileOptions"]; - }; - }; - responses: { - 200: components["responses"]["FileResponse"]; - 403: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["error"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoCreateFile: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description path of the file to create */ - filepath: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateFileOptions"]; - }; - }; - responses: { - 201: components["responses"]["FileResponse"]; - 403: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["error"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoDeleteFile: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description path of the file to delete */ - filepath: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["DeleteFileOptions"]; - }; - }; - responses: { - 200: components["responses"]["FileDeleteResponse"]; - 400: components["responses"]["error"]; - 403: components["responses"]["error"]; - 404: components["responses"]["error"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoApplyDiffPatch: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateFileOptions"]; - }; - }; - responses: { - 200: components["responses"]["FileResponse"]; - 404: components["responses"]["notFound"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoGetEditorConfig: { - parameters: { - query?: { - /** @description The name of the commit/branch/tag. Default the repository’s default branch (usually master) */ - ref?: string; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description filepath of file to get */ - filepath: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description success */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 404: components["responses"]["notFound"]; - }; - }; - listForks: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RepositoryList"]; - 404: components["responses"]["notFound"]; - }; - }; - createFork: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo to fork */ - owner: string; - /** @description name of the repo to fork */ - repo: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateForkOption"]; - "text/plain": components["schemas"]["CreateForkOption"]; - }; - }; - responses: { - 202: components["responses"]["Repository"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - /** @description The repository with the same name already exists. */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 422: components["responses"]["validationError"]; - }; - }; - GetBlob: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description sha of the commit */ - sha: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["GitBlobResponse"]; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetSingleCommit: { - parameters: { - query?: { - /** @description include diff stats for every commit (disable for speedup, default 'true') */ - stat?: boolean; - /** @description include verification for every commit (disable for speedup, default 'true') */ - verification?: boolean; - /** @description include a list of affected files for every commit (disable for speedup, default 'true') */ - files?: boolean; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description a git ref or commit sha */ - sha: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Commit"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - repoDownloadCommitDiffOrPatch: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description SHA of the commit to get */ - sha: string; - /** @description whether the output is diff or patch */ - diffType: "diff" | "patch"; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["string"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetNote: { - parameters: { - query?: { - /** @description include verification for every commit (disable for speedup, default 'true') */ - verification?: boolean; - /** @description include a list of affected files for every commit (disable for speedup, default 'true') */ - files?: boolean; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description a git ref or commit sha */ - sha: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Note"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - repoListAllGitRefs: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ReferenceList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoListGitRefs: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description part or full name of the ref */ - ref: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ReferenceList"]; - 404: components["responses"]["notFound"]; - }; - }; - GetAnnotatedTag: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags. */ - sha: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["AnnotatedTag"]; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - GetTree: { - parameters: { - query?: { - /** @description show all directories and files */ - recursive?: boolean; - /** @description page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page */ - page?: number; - /** @description number of items per page */ - per_page?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description sha of the commit */ - sha: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["GitTreeResponse"]; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - repoListHooks: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["HookList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoCreateHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateHookOption"]; - }; - }; - responses: { - 201: components["responses"]["Hook"]; - 404: components["responses"]["notFound"]; - }; - }; - repoListGitHooks: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["GitHookList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetGitHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the hook to get */ - id: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["GitHook"]; - 404: components["responses"]["notFound"]; - }; - }; - repoDeleteGitHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the hook to get */ - id: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - repoEditGitHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the hook to get */ - id: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditGitHookOption"]; - "text/plain": components["schemas"]["EditGitHookOption"]; - }; - }; - responses: { - 200: components["responses"]["GitHook"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the hook to get */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Hook"]; - 404: components["responses"]["notFound"]; - }; - }; - repoDeleteHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the hook to delete */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - repoEditHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the hook */ - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditHookOption"]; - "text/plain": components["schemas"]["EditHookOption"]; - }; - }; - responses: { - 200: components["responses"]["Hook"]; - 404: components["responses"]["notFound"]; - }; - }; - repoTestHook: { - parameters: { - query?: { - /** @description The name of the commit/branch/tag, indicates which commit will be loaded to the webhook payload. */ - ref?: string; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the hook to test */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetIssueConfig: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RepoIssueConfig"]; - 404: components["responses"]["notFound"]; - }; - }; - repoValidateIssueConfig: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RepoIssueConfigValidation"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetIssueTemplates: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["IssueTemplates"]; - 404: components["responses"]["notFound"]; - }; - }; - issueListIssues: { - parameters: { - query?: { - /** @description whether issue is open or closed */ - state?: "closed" | "open" | "all"; - /** @description comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded */ - labels?: string; - /** @description search string */ - q?: string; - /** @description filter by type (issues / pulls) if set */ - type?: "issues" | "pulls"; - /** @description comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded */ - milestones?: string; - /** @description Only show items updated after the given time. This is a timestamp in RFC 3339 format */ - since?: string; - /** @description Only show items updated before the given time. This is a timestamp in RFC 3339 format */ - before?: string; - /** @description Only show items which were created by the given user */ - created_by?: string; - /** @description Only show items for which the given user is assigned */ - assigned_by?: string; - /** @description Only show items in which the given user was mentioned */ - mentioned_by?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["IssueList"]; - 404: components["responses"]["notFound"]; - }; - }; - issueCreateIssue: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateIssueOption"]; - }; - }; - responses: { - 201: components["responses"]["Issue"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 412: components["responses"]["error"]; - 422: components["responses"]["validationError"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - issueGetRepoComments: { - parameters: { - query?: { - /** @description if provided, only comments updated since the provided time are returned. */ - since?: string; - /** @description if provided, only comments updated before the provided time are returned. */ - before?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["CommentList"]; - 404: components["responses"]["notFound"]; - }; - }; - issueGetComment: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the comment */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Comment"]; - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issueDeleteComment: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of comment to delete */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issueEditComment: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the comment to edit */ - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditIssueCommentOption"]; - }; - }; - responses: { - 200: components["responses"]["Comment"]; - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - issueListIssueCommentAttachments: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the comment */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["AttachmentList"]; - 404: components["responses"]["error"]; - }; - }; - issueCreateIssueCommentAttachment: { - parameters: { - query?: { - /** @description name of the attachment */ - name?: string; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the comment */ - id: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "multipart/form-data": { - /** - * Format: binary - * @description attachment to upload - */ - attachment: string; - }; - }; - }; - responses: { - 201: components["responses"]["Attachment"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["error"]; - 422: components["responses"]["validationError"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - issueGetIssueCommentAttachment: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the comment */ - id: number; - /** @description id of the attachment to get */ - attachment_id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Attachment"]; - 404: components["responses"]["error"]; - }; - }; - issueDeleteIssueCommentAttachment: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the comment */ - id: number; - /** @description id of the attachment to delete */ - attachment_id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["error"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - issueEditIssueCommentAttachment: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the comment */ - id: number; - /** @description id of the attachment to edit */ - attachment_id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditAttachmentOptions"]; - }; - }; - responses: { - 201: components["responses"]["Attachment"]; - 404: components["responses"]["error"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - issueGetCommentReactions: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the comment to edit */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ReactionList"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issuePostCommentReaction: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the comment to edit */ - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditReactionOption"]; - }; - }; - responses: { - 200: components["responses"]["Reaction"]; - 201: components["responses"]["Reaction"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issueDeleteCommentReaction: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the comment to edit */ - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditReactionOption"]; - }; - }; - responses: { - 200: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - repoListPinnedIssues: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["IssueList"]; - 404: components["responses"]["notFound"]; - }; - }; - issueGetIssue: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue to get */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Issue"]; - 404: components["responses"]["notFound"]; - }; - }; - issueDelete: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of issue to delete */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issueEditIssue: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue to edit */ - index: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditIssueOption"]; - }; - }; - responses: { - 201: components["responses"]["Issue"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 412: components["responses"]["error"]; - }; - }; - issueListIssueAttachments: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["AttachmentList"]; - 404: components["responses"]["error"]; - }; - }; - issueCreateIssueAttachment: { - parameters: { - query?: { - /** @description name of the attachment */ - name?: string; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "multipart/form-data": { - /** - * Format: binary - * @description attachment to upload - */ - attachment: string; - }; - }; - }; - responses: { - 201: components["responses"]["Attachment"]; - 400: components["responses"]["error"]; - 404: components["responses"]["error"]; - 422: components["responses"]["validationError"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - issueGetIssueAttachment: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - /** @description id of the attachment to get */ - attachment_id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Attachment"]; - 404: components["responses"]["error"]; - }; - }; - issueDeleteIssueAttachment: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - /** @description id of the attachment to delete */ - attachment_id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["error"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - issueEditIssueAttachment: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - /** @description id of the attachment to edit */ - attachment_id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditAttachmentOptions"]; - }; - }; - responses: { - 201: components["responses"]["Attachment"]; - 404: components["responses"]["error"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - issueListBlocks: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["IssueList"]; - 404: components["responses"]["notFound"]; - }; - }; - issueCreateIssueBlocking: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["IssueMeta"]; - "text/plain": components["schemas"]["IssueMeta"]; - }; - }; - responses: { - 201: components["responses"]["Issue"]; - /** @description the issue does not exist */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - issueRemoveIssueBlocking: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["IssueMeta"]; - "text/plain": components["schemas"]["IssueMeta"]; - }; - }; - responses: { - 200: components["responses"]["Issue"]; - 404: components["responses"]["notFound"]; - }; - }; - issueGetComments: { - parameters: { - query?: { - /** @description if provided, only comments updated since the specified time are returned. */ - since?: string; - /** @description if provided, only comments updated before the provided time are returned. */ - before?: string; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["CommentList"]; - 404: components["responses"]["notFound"]; - }; - }; - issueCreateComment: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateIssueCommentOption"]; - }; - }; - responses: { - 201: components["responses"]["Comment"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - issueDeleteCommentDeprecated: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description this parameter is ignored */ - index: number; - /** @description id of comment to delete */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issueEditCommentDeprecated: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description this parameter is ignored */ - index: number; - /** @description id of the comment to edit */ - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditIssueCommentOption"]; - }; - }; - responses: { - 200: components["responses"]["Comment"]; - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issueEditIssueDeadline: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue to create or update a deadline on */ - index: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditDeadlineOption"]; - }; - }; - responses: { - 201: components["responses"]["IssueDeadline"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issueListIssueDependencies: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["IssueList"]; - 404: components["responses"]["notFound"]; - }; - }; - issueCreateIssueDependencies: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["IssueMeta"]; - "text/plain": components["schemas"]["IssueMeta"]; - }; - }; - responses: { - 201: components["responses"]["Issue"]; - /** @description the issue does not exist */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 423: components["responses"]["repoArchivedError"]; - }; - }; - issueRemoveIssueDependencies: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["IssueMeta"]; - "text/plain": components["schemas"]["IssueMeta"]; - }; - }; - responses: { - 200: components["responses"]["Issue"]; - 404: components["responses"]["notFound"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - issueGetLabels: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["LabelList"]; - 404: components["responses"]["notFound"]; - }; - }; - issueReplaceLabels: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["IssueLabelsOption"]; - }; - }; - responses: { - 200: components["responses"]["LabelList"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issueAddLabel: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["IssueLabelsOption"]; - }; - }; - responses: { - 200: components["responses"]["LabelList"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issueClearLabels: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issueRemoveLabel: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - /** @description id of the label to remove */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - pinIssue: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of issue to pin */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - unpinIssue: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of issue to unpin */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - moveIssuePin: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of issue */ - index: number; - /** @description the new position */ - position: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issueGetIssueReactions: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ReactionList"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issuePostIssueReaction: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditReactionOption"]; - }; - }; - responses: { - 200: components["responses"]["Reaction"]; - 201: components["responses"]["Reaction"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issueDeleteIssueReaction: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditReactionOption"]; - }; - }; - responses: { - 200: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issueDeleteStopWatch: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue to stop the stopwatch on */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - /** @description Not repo writer, user does not have rights to toggle stopwatch */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 404: components["responses"]["notFound"]; - /** @description Cannot cancel a non existent stopwatch */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - issueStartStopWatch: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue to create the stopwatch on */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 201: components["responses"]["empty"]; - /** @description Not repo writer, user does not have rights to toggle stopwatch */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 404: components["responses"]["notFound"]; - /** @description Cannot start a stopwatch again if it already exists */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - issueStopStopWatch: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue to stop the stopwatch on */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 201: components["responses"]["empty"]; - /** @description Not repo writer, user does not have rights to toggle stopwatch */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 404: components["responses"]["notFound"]; - /** @description Cannot stop a non existent stopwatch */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - issueSubscriptions: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserList"]; - 404: components["responses"]["notFound"]; - }; - }; - issueCheckSubscription: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["WatchInfo"]; - 404: components["responses"]["notFound"]; - }; - }; - issueAddSubscription: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - /** @description user to subscribe */ - user: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Already subscribed */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Successfully Subscribed */ - 201: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description User can only subscribe itself if he is no admin */ - 304: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 404: components["responses"]["notFound"]; - }; - }; - issueDeleteSubscription: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - /** @description user witch unsubscribe */ - user: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Already unsubscribed */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Successfully Unsubscribed */ - 201: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description User can only subscribe itself if he is no admin */ - 304: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 404: components["responses"]["notFound"]; - }; - }; - issueGetCommentsAndTimeline: { - parameters: { - query?: { - /** @description if provided, only comments updated since the specified time are returned. */ - since?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - /** @description if provided, only comments updated before the provided time are returned. */ - before?: string; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["TimelineList"]; - 404: components["responses"]["notFound"]; - }; - }; - issueTrackedTimes: { - parameters: { - query?: { - /** @description optional filter by user (available for issue managers) */ - user?: string; - /** @description Only show times updated after the given time. This is a timestamp in RFC 3339 format */ - since?: string; - /** @description Only show times updated before the given time. This is a timestamp in RFC 3339 format */ - before?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["TrackedTimeList"]; - 404: components["responses"]["notFound"]; - }; - }; - issueAddTime: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["AddTimeOption"]; - }; - }; - responses: { - 200: components["responses"]["TrackedTime"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issueResetTime: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue to add tracked time to */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issueDeleteTime: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the issue */ - index: number; - /** @description id of time to delete */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - repoListKeys: { - parameters: { - query?: { - /** @description the key_id to search for */ - key_id?: number; - /** @description fingerprint of the key */ - fingerprint?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["DeployKeyList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoCreateKey: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateKeyOption"]; - }; - }; - responses: { - 201: components["responses"]["DeployKey"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - repoGetKey: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the key to get */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["DeployKey"]; - 404: components["responses"]["notFound"]; - }; - }; - repoDeleteKey: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the key to delete */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - issueListLabels: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["LabelList"]; - 404: components["responses"]["notFound"]; - }; - }; - issueCreateLabel: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateLabelOption"]; - }; - }; - responses: { - 201: components["responses"]["Label"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - issueGetLabel: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the label to get */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Label"]; - 404: components["responses"]["notFound"]; - }; - }; - issueDeleteLabel: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the label to delete */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - issueEditLabel: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the label to edit */ - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditLabelOption"]; - }; - }; - responses: { - 200: components["responses"]["Label"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - repoGetLanguages: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["LanguageStatistics"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetRawFileOrLFS: { - parameters: { - query?: { - /** @description The name of the commit/branch/tag. Default the repository’s default branch (usually master) */ - ref?: string; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description filepath of the file to get */ - filepath: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Returns raw file content. */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 404: components["responses"]["notFound"]; - }; - }; - issueGetMilestonesList: { - parameters: { - query?: { - /** @description Milestone state, Recognized values are open, closed and all. Defaults to "open" */ - state?: string; - /** @description filter by milestone name */ - name?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["MilestoneList"]; - 404: components["responses"]["notFound"]; - }; - }; - issueCreateMilestone: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateMilestoneOption"]; - }; - }; - responses: { - 201: components["responses"]["Milestone"]; - 404: components["responses"]["notFound"]; - }; - }; - issueGetMilestone: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description the milestone to get, identified by ID and if not available by name */ - id: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Milestone"]; - 404: components["responses"]["notFound"]; - }; - }; - issueDeleteMilestone: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description the milestone to delete, identified by ID and if not available by name */ - id: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - issueEditMilestone: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description the milestone to edit, identified by ID and if not available by name */ - id: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditMilestoneOption"]; - }; - }; - responses: { - 200: components["responses"]["Milestone"]; - 404: components["responses"]["notFound"]; - }; - }; - repoMirrorSync: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo to sync */ - owner: string; - /** @description name of the repo to sync */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - repoNewPinAllowed: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RepoNewIssuePinsAllowed"]; - 404: components["responses"]["notFound"]; - }; - }; - notifyGetRepoList: { - parameters: { - query?: { - /** @description If true, show notifications marked as read. Default value is false */ - all?: boolean; - /** @description Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned */ - "status-types"?: string[]; - /** @description filter notifications by subject type */ - "subject-type"?: ("issue" | "pull" | "commit" | "repository")[]; - /** @description Only show notifications updated after the given time. This is a timestamp in RFC 3339 format */ - since?: string; - /** @description Only show notifications updated before the given time. This is a timestamp in RFC 3339 format */ - before?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["NotificationThreadList"]; - }; - }; - notifyReadRepoList: { - parameters: { - query?: { - /** @description If true, mark all notifications on this repo. Default value is false */ - all?: string; - /** @description Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. */ - "status-types"?: string[]; - /** @description Status to mark notifications as. Defaults to read. */ - "to-status"?: string; - /** @description Describes the last point that notifications were checked. Anything updated since this time will not be updated. */ - last_read_at?: string; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 205: components["responses"]["NotificationThreadList"]; - }; - }; - repoListPullRequests: { - parameters: { - query?: { - /** @description State of pull request: open or closed (optional) */ - state?: "closed" | "open" | "all"; - /** @description Type of sort */ - sort?: "oldest" | "recentupdate" | "leastupdate" | "mostcomment" | "leastcomment" | "priority"; - /** @description ID of the milestone */ - milestone?: number; - /** @description Label IDs */ - labels?: number[]; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["PullRequestList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoCreatePullRequest: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreatePullRequestOption"]; - }; - }; - responses: { - 201: components["responses"]["PullRequest"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 409: components["responses"]["error"]; - 422: components["responses"]["validationError"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoListPinnedPullRequests: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["PullRequestList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetPullRequestByBaseHead: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description base of the pull request to get */ - base: string; - /** @description head of the pull request to get */ - head: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["PullRequest"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetPullRequest: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request to get */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["PullRequest"]; - 404: components["responses"]["notFound"]; - }; - }; - repoEditPullRequest: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request to edit */ - index: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditPullRequestOption"]; - }; - }; - responses: { - 201: components["responses"]["PullRequest"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 409: components["responses"]["error"]; - 412: components["responses"]["error"]; - 422: components["responses"]["validationError"]; - }; - }; - repoDownloadPullDiffOrPatch: { - parameters: { - query?: { - /** @description whether to include binary file changes. if true, the diff is applicable with `git apply` */ - binary?: boolean; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request to get */ - index: number; - /** @description whether the output is diff or patch */ - diffType: "diff" | "patch"; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["string"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetPullRequestCommits: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - /** @description include verification for every commit (disable for speedup, default 'true') */ - verification?: boolean; - /** @description include a list of affected files for every commit (disable for speedup, default 'true') */ - files?: boolean; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request to get */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["CommitList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetPullRequestFiles: { - parameters: { - query?: { - /** @description skip to given file */ - "skip-to"?: string; - /** @description whitespace behavior */ - whitespace?: "ignore-all" | "ignore-change" | "ignore-eol" | "show-all"; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request to get */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ChangedFileList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoPullRequestIsMerged: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description pull request has been merged */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description pull request has not been merged */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - repoMergePullRequest: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request to merge */ - index: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["MergePullRequestOption"]; - "text/plain": components["schemas"]["MergePullRequestOption"]; - }; - }; - responses: { - 200: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - 405: components["responses"]["empty"]; - 409: components["responses"]["error"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoCancelScheduledAutoMerge: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request to merge */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoCreatePullReviewRequests: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request */ - index: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["PullReviewRequestOptions"]; - "text/plain": components["schemas"]["PullReviewRequestOptions"]; - }; - }; - responses: { - 201: components["responses"]["PullReviewList"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - repoDeletePullReviewRequests: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request */ - index: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["PullReviewRequestOptions"]; - "text/plain": components["schemas"]["PullReviewRequestOptions"]; - }; - }; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - repoListPullReviews: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["PullReviewList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoCreatePullReview: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request */ - index: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreatePullReviewOptions"]; - "text/plain": components["schemas"]["CreatePullReviewOptions"]; - }; - }; - responses: { - 200: components["responses"]["PullReview"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - repoGetPullReview: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request */ - index: number; - /** @description id of the review */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["PullReview"]; - 404: components["responses"]["notFound"]; - }; - }; - repoSubmitPullReview: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request */ - index: number; - /** @description id of the review */ - id: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SubmitPullReviewOptions"]; - "text/plain": components["schemas"]["SubmitPullReviewOptions"]; - }; - }; - responses: { - 200: components["responses"]["PullReview"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - repoDeletePullReview: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request */ - index: number; - /** @description id of the review */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetPullReviewComments: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request */ - index: number; - /** @description id of the review */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["PullReviewCommentList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoDismissPullReview: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request */ - index: number; - /** @description id of the review */ - id: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["DismissPullReviewOptions"]; - "text/plain": components["schemas"]["DismissPullReviewOptions"]; - }; - }; - responses: { - 200: components["responses"]["PullReview"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - repoUnDismissPullReview: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request */ - index: number; - /** @description id of the review */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["PullReview"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - repoUpdatePullRequest: { - parameters: { - query?: { - /** @description how to update pull request */ - style?: "merge" | "rebase"; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description index of the pull request to get */ - index: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 409: components["responses"]["error"]; - 422: components["responses"]["validationError"]; - }; - }; - repoListPushMirrors: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["PushMirrorList"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - repoAddPushMirror: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreatePushMirrorOption"]; - }; - }; - responses: { - 200: components["responses"]["PushMirror"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - repoPushMirrorSync: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo to sync */ - owner: string; - /** @description name of the repo to sync */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["empty"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetPushMirrorByRemoteName: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description remote name of push mirror */ - name: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["PushMirror"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - repoDeletePushMirror: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description remote name of the pushMirror */ - name: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetRawFile: { - parameters: { - query?: { - /** @description The name of the commit/branch/tag. Default the repository’s default branch (usually master) */ - ref?: string; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description filepath of the file to get */ - filepath: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Returns raw file content. */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 404: components["responses"]["notFound"]; - }; - }; - repoListReleases: { - parameters: { - query?: { - /** @description filter (exclude / include) drafts, if you dont have repo write access none will show */ - draft?: boolean; - /** @description filter (exclude / include) pre-releases */ - "pre-release"?: boolean; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ReleaseList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoCreateRelease: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateReleaseOption"]; - }; - }; - responses: { - 201: components["responses"]["Release"]; - 404: components["responses"]["notFound"]; - 409: components["responses"]["error"]; - 422: components["responses"]["validationError"]; - }; - }; - repoGetLatestRelease: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Release"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetReleaseByTag: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description tag name of the release to get */ - tag: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Release"]; - 404: components["responses"]["notFound"]; - }; - }; - repoDeleteReleaseByTag: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description tag name of the release to delete */ - tag: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - repoGetRelease: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the release to get */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Release"]; - 404: components["responses"]["notFound"]; - }; - }; - repoDeleteRelease: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the release to delete */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - repoEditRelease: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the release to edit */ - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditReleaseOption"]; - }; - }; - responses: { - 200: components["responses"]["Release"]; - 404: components["responses"]["notFound"]; - }; - }; - repoListReleaseAttachments: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the release */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["AttachmentList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoCreateReleaseAttachment: { - parameters: { - query?: { - /** @description name of the attachment */ - name?: string; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the release */ - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "multipart/form-data": { - /** - * Format: binary - * @description attachment to upload - */ - attachment?: string; - }; - "application/octet-stream": { - /** - * Format: binary - * @description attachment to upload - */ - attachment?: string; - }; - }; - }; - responses: { - 201: components["responses"]["Attachment"]; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetReleaseAttachment: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the release */ - id: number; - /** @description id of the attachment to get */ - attachment_id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Attachment"]; - 404: components["responses"]["notFound"]; - }; - }; - repoDeleteReleaseAttachment: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the release */ - id: number; - /** @description id of the attachment to delete */ - attachment_id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - repoEditReleaseAttachment: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description id of the release */ - id: number; - /** @description id of the attachment to edit */ - attachment_id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditAttachmentOptions"]; - }; - }; - responses: { - 201: components["responses"]["Attachment"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetReviewers: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetRunnerRegistrationToken: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RegistrationToken"]; - }; - }; - repoSigningKey: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description GPG armored public key */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": string; - }; - }; - }; - }; - repoListStargazers: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoListStatuses: { - parameters: { - query?: { - /** @description type of sort */ - sort?: "oldest" | "recentupdate" | "leastupdate" | "leastindex" | "highestindex"; - /** @description type of state */ - state?: "pending" | "success" | "error" | "failure" | "warning"; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description sha of the commit */ - sha: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["CommitStatusList"]; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - repoCreateStatus: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description sha of the commit */ - sha: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateStatusOption"]; - "text/plain": components["schemas"]["CreateStatusOption"]; - }; - }; - responses: { - 201: components["responses"]["CommitStatus"]; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - repoListSubscribers: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserList"]; - 404: components["responses"]["notFound"]; - }; - }; - userCurrentCheckSubscription: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["WatchInfo"]; - /** @description User is not watching this repo or repo do not exist */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - userCurrentPutSubscription: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["WatchInfo"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - userCurrentDeleteSubscription: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - repoListTags: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results, default maximum page size is 50 */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["TagList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoCreateTag: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateTagOption"]; - "text/plain": components["schemas"]["CreateTagOption"]; - }; - }; - responses: { - 200: components["responses"]["Tag"]; - 404: components["responses"]["notFound"]; - 405: components["responses"]["empty"]; - 409: components["responses"]["conflict"]; - 422: components["responses"]["validationError"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoGetTag: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description name of tag */ - tag: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Tag"]; - 404: components["responses"]["notFound"]; - }; - }; - repoDeleteTag: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description name of tag to delete */ - tag: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - 405: components["responses"]["empty"]; - 409: components["responses"]["conflict"]; - 422: components["responses"]["validationError"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoListTeams: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["TeamList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoCheckTeam: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description team name */ - team: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Team"]; - 404: components["responses"]["notFound"]; - 405: components["responses"]["error"]; - }; - }; - repoAddTeam: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description team name */ - team: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - 405: components["responses"]["error"]; - 422: components["responses"]["validationError"]; - }; - }; - repoDeleteTeam: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description team name */ - team: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - 405: components["responses"]["error"]; - 422: components["responses"]["validationError"]; - }; - }; - repoTrackedTimes: { - parameters: { - query?: { - /** @description optional filter by user (available for issue managers) */ - user?: string; - /** @description Only show times updated after the given time. This is a timestamp in RFC 3339 format */ - since?: string; - /** @description Only show times updated before the given time. This is a timestamp in RFC 3339 format */ - before?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["TrackedTimeList"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - userTrackedTimes: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description username of user */ - user: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["TrackedTimeList"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - repoListTopics: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["TopicNames"]; - 404: components["responses"]["notFound"]; - }; - }; - repoUpdateTopics: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["RepoTopicOptions"]; - "text/plain": components["schemas"]["RepoTopicOptions"]; - }; - }; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["invalidTopicsError"]; - }; - }; - repoAddTopic: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description name of the topic to add */ - topic: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["invalidTopicsError"]; - }; - }; - repoDeleteTopic: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description name of the topic to delete */ - topic: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["invalidTopicsError"]; - }; - }; - repoTransfer: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo to transfer */ - owner: string; - /** @description name of the repo to transfer */ - repo: string; - }; - cookie?: never; - }; - /** @description Transfer Options */ - requestBody: { - content: { - "application/json": components["schemas"]["TransferRepoOption"]; - "text/plain": components["schemas"]["TransferRepoOption"]; - }; - }; - responses: { - 202: components["responses"]["Repository"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - acceptRepoTransfer: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo to transfer */ - owner: string; - /** @description name of the repo to transfer */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 202: components["responses"]["Repository"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - rejectRepoTransfer: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo to transfer */ - owner: string; - /** @description name of the repo to transfer */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Repository"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - repoCreateWikiPage: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateWikiPageOptions"]; - }; - }; - responses: { - 201: components["responses"]["WikiPage"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoGetWikiPage: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description name of the page */ - pageName: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["WikiPage"]; - 404: components["responses"]["notFound"]; - }; - }; - repoDeleteWikiPage: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description name of the page */ - pageName: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoEditWikiPage: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description name of the page */ - pageName: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateWikiPageOptions"]; - }; - }; - responses: { - 200: components["responses"]["WikiPage"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 423: components["responses"]["repoArchivedError"]; - }; - }; - repoGetWikiPages: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["WikiPageList"]; - 404: components["responses"]["notFound"]; - }; - }; - repoGetWikiPageRevisions: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - }; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - /** @description name of the page */ - pageName: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["WikiCommitList"]; - 404: components["responses"]["notFound"]; - }; - }; - generateRepo: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the template repository owner */ - template_owner: string; - /** @description name of the template repository */ - template_repo: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["GenerateRepoOption"]; - }; - }; - responses: { - 201: components["responses"]["Repository"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - /** @description The repository with the same name already exists. */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 422: components["responses"]["validationError"]; - }; - }; - repoGetByID: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of the repo to get */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Repository"]; - 404: components["responses"]["notFound"]; - }; - }; - getGeneralAPISettings: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["GeneralAPISettings"]; - }; - }; - getGeneralAttachmentSettings: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["GeneralAttachmentSettings"]; - }; - }; - getGeneralRepositorySettings: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["GeneralRepoSettings"]; - }; - }; - getGeneralUISettings: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["GeneralUISettings"]; - }; - }; - getSigningKey: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description GPG armored public key */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": string; - }; - }; - }; - }; - orgGetTeam: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of the team to get */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Team"]; - 404: components["responses"]["notFound"]; - }; - }; - orgDeleteTeam: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of the team to delete */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description team deleted */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 404: components["responses"]["notFound"]; - }; - }; - orgEditTeam: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of the team to edit */ - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditTeamOption"]; - }; - }; - responses: { - 200: components["responses"]["Team"]; - 404: components["responses"]["notFound"]; - }; - }; - orgListTeamActivityFeeds: { - parameters: { - query?: { - /** @description the date of the activities to be found */ - date?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description id of the team */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ActivityFeedsList"]; - 404: components["responses"]["notFound"]; - }; - }; - orgListTeamMembers: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description id of the team */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserList"]; - 404: components["responses"]["notFound"]; - }; - }; - orgListTeamMember: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of the team */ - id: number; - /** @description username of the member to list */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["User"]; - 404: components["responses"]["notFound"]; - }; - }; - orgAddTeamMember: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of the team */ - id: number; - /** @description username of the user to add */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - orgRemoveTeamMember: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of the team */ - id: number; - /** @description username of the user to remove */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - orgListTeamRepos: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description id of the team */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RepositoryList"]; - 404: components["responses"]["notFound"]; - }; - }; - orgListTeamRepo: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of the team */ - id: number; - /** @description organization that owns the repo to list */ - org: string; - /** @description name of the repo to list */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Repository"]; - 404: components["responses"]["notFound"]; - }; - }; - orgAddTeamRepository: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of the team */ - id: number; - /** @description organization that owns the repo to add */ - org: string; - /** @description name of the repo to add */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - orgRemoveTeamRepository: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of the team */ - id: number; - /** @description organization that owns the repo to remove */ - org: string; - /** @description name of the repo to remove */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - topicSearch: { - parameters: { - query: { - /** @description keywords to search */ - q: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["TopicListResponse"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - userGetCurrent: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["User"]; - }; - }; - userGetRunnerRegistrationToken: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RegistrationToken"]; - }; - }; - updateUserSecret: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the secret */ - secretname: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateOrUpdateSecretOption"]; - }; - }; - responses: { - /** @description response when creating a secret */ - 201: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description response when updating a secret */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - deleteUserSecret: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the secret */ - secretname: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description delete one secret of the user */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - getUserVariablesList: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["VariableList"]; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - getUserVariable: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the variable */ - variablename: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ActionVariable"]; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - updateUserVariable: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the variable */ - variablename: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["UpdateVariableOption"]; - }; - }; - responses: { - /** @description response when updating a variable */ - 201: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description response when updating a variable */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - createUserVariable: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the variable */ - variablename: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateVariableOption"]; - }; - }; - responses: { - /** @description response when creating a variable */ - 201: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description response when creating a variable */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - deleteUserVariable: { - parameters: { - query?: never; - header?: never; - path: { - /** @description name of the variable */ - variablename: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description response when deleting a variable */ - 201: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description response when deleting a variable */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 400: components["responses"]["error"]; - 404: components["responses"]["notFound"]; - }; - }; - userGetOauth2Application: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["OAuth2ApplicationList"]; - }; - }; - userCreateOAuth2Application: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateOAuth2ApplicationOptions"]; - "text/plain": components["schemas"]["CreateOAuth2ApplicationOptions"]; - }; - }; - responses: { - 201: components["responses"]["OAuth2Application"]; - 400: components["responses"]["error"]; - }; - }; - userGetOAuth2Application: { - parameters: { - query?: never; - header?: never; - path: { - /** @description Application ID to be found */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["OAuth2Application"]; - 404: components["responses"]["notFound"]; - }; - }; - userDeleteOAuth2Application: { - parameters: { - query?: never; - header?: never; - path: { - /** @description token to be deleted */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - userUpdateOAuth2Application: { - parameters: { - query?: never; - header?: never; - path: { - /** @description application to be updated */ - id: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateOAuth2ApplicationOptions"]; - "text/plain": components["schemas"]["CreateOAuth2ApplicationOptions"]; - }; - }; - responses: { - 200: components["responses"]["OAuth2Application"]; - 404: components["responses"]["notFound"]; - }; - }; - userUpdateAvatar: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["UpdateUserAvatarOption"]; - "text/plain": components["schemas"]["UpdateUserAvatarOption"]; - }; - }; - responses: { - 204: components["responses"]["empty"]; - }; - }; - userDeleteAvatar: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - }; - }; - userListBlocks: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserList"]; - }; - }; - userCheckUserBlock: { - parameters: { - query?: never; - header?: never; - path: { - /** @description user to check */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - userBlockUser: { - parameters: { - query?: { - /** @description optional note for the block */ - note?: string; - }; - header?: never; - path: { - /** @description user to block */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - userUnblockUser: { - parameters: { - query?: never; - header?: never; - path: { - /** @description user to unblock */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - userListEmails: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["EmailList"]; - }; - }; - userAddEmail: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateEmailOption"]; - "text/plain": components["schemas"]["CreateEmailOption"]; - }; - }; - responses: { - 201: components["responses"]["EmailList"]; - 422: components["responses"]["validationError"]; - }; - }; - userDeleteEmail: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["DeleteEmailOption"]; - "text/plain": components["schemas"]["DeleteEmailOption"]; - }; - }; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - userCurrentListFollowers: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserList"]; - }; - }; - userCurrentListFollowing: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserList"]; - }; - }; - userCurrentCheckFollowing: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of followed user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - userCurrentPutFollow: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of user to follow */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - userCurrentDeleteFollow: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of user to unfollow */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - getVerificationToken: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["string"]; - 404: components["responses"]["notFound"]; - }; - }; - userVerifyGPGKey: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 201: components["responses"]["GPGKey"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - userCurrentListGPGKeys: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["GPGKeyList"]; - }; - }; - userCurrentPostGPGKey: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateGPGKeyOption"]; - }; - }; - responses: { - 201: components["responses"]["GPGKey"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["validationError"]; - }; - }; - userCurrentGetGPGKey: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of key to get */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["GPGKey"]; - 404: components["responses"]["notFound"]; - }; - }; - userCurrentDeleteGPGKey: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of key to delete */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - userListHooks: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["HookList"]; - }; - }; - userCreateHook: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateHookOption"]; - }; - }; - responses: { - 201: components["responses"]["Hook"]; - }; - }; - userGetHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of the hook to get */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["Hook"]; - }; - }; - userDeleteHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of the hook to delete */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - }; - }; - userEditHook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of the hook to update */ - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["EditHookOption"]; - }; - }; - responses: { - 200: components["responses"]["Hook"]; - }; - }; - userCurrentListKeys: { - parameters: { - query?: { - /** @description fingerprint of the key */ - fingerprint?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["PublicKeyList"]; - }; - }; - userCurrentPostKey: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateKeyOption"]; - }; - }; - responses: { - 201: components["responses"]["PublicKey"]; - 422: components["responses"]["validationError"]; - }; - }; - userCurrentGetKey: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of key to get */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["PublicKey"]; - 404: components["responses"]["notFound"]; - }; - }; - userCurrentDeleteKey: { - parameters: { - query?: never; - header?: never; - path: { - /** @description id of key to delete */ - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - orgListCurrentUserOrgs: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["OrganizationList"]; - 404: components["responses"]["notFound"]; - }; - }; - userCurrentListRepos: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RepositoryList"]; - }; - }; - createCurrentUserRepo: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateRepoOption"]; - }; - }; - responses: { - 201: components["responses"]["Repository"]; - 400: components["responses"]["error"]; - /** @description The repository with the same name already exists. */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 422: components["responses"]["validationError"]; - }; - }; - getUserSettings: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserSettings"]; - }; - }; - updateUserSettings: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["UserSettingsOptions"]; - "text/plain": components["schemas"]["UserSettingsOptions"]; - }; - }; - responses: { - 200: components["responses"]["UserSettings"]; - }; - }; - userCurrentListStarred: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RepositoryList"]; - }; - }; - userCurrentCheckStarring: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo */ - owner: string; - /** @description name of the repo */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - userCurrentPutStar: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo to star */ - owner: string; - /** @description name of the repo to star */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - userCurrentDeleteStar: { - parameters: { - query?: never; - header?: never; - path: { - /** @description owner of the repo to unstar */ - owner: string; - /** @description name of the repo to unstar */ - repo: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - userGetStopWatches: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["StopWatchList"]; - }; - }; - userCurrentListSubscriptions: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RepositoryList"]; - }; - }; - userListTeams: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["TeamList"]; - }; - }; - userCurrentTrackedTimes: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - /** @description Only show times updated after the given time. This is a timestamp in RFC 3339 format */ - since?: string; - /** @description Only show times updated before the given time. This is a timestamp in RFC 3339 format */ - before?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["TrackedTimeList"]; - }; - }; - userSearch: { - parameters: { - query?: { - /** @description keyword */ - q?: string; - /** @description ID of the user to search for */ - uid?: number; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description SearchResults of a successful search */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - data?: components["schemas"]["User"][]; - ok?: boolean; - }; - }; - }; - }; - }; - userGet: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of user to get */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["User"]; - 404: components["responses"]["notFound"]; - }; - }; - userListActivityFeeds: { - parameters: { - query?: { - /** @description if true, only show actions performed by the requested user */ - "only-performed-by"?: boolean; - /** @description the date of the activities to be found */ - date?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description username of user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ActivityFeedsList"]; - 404: components["responses"]["notFound"]; - }; - }; - userListFollowers: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description username of user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserList"]; - 404: components["responses"]["notFound"]; - }; - }; - userListFollowing: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description username of user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserList"]; - 404: components["responses"]["notFound"]; - }; - }; - userCheckFollowing: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of following user */ - username: string; - /** @description username of followed user */ - target: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 404: components["responses"]["notFound"]; - }; - }; - userListGPGKeys: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description username of user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["GPGKeyList"]; - 404: components["responses"]["notFound"]; - }; - }; - userGetHeatmapData: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of user to get */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["UserHeatmapData"]; - 404: components["responses"]["notFound"]; - }; - }; - userListKeys: { - parameters: { - query?: { - /** @description fingerprint of the key */ - fingerprint?: string; - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description username of user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["PublicKeyList"]; - 404: components["responses"]["notFound"]; - }; - }; - orgListUserOrgs: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description username of user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["OrganizationList"]; - 404: components["responses"]["notFound"]; - }; - }; - orgGetUserPermissions: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of user */ - username: string; - /** @description name of the organization */ - org: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["OrganizationPermissions"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - }; - }; - userListRepos: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description username of user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RepositoryList"]; - 404: components["responses"]["notFound"]; - }; - }; - userListStarred: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description username of user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RepositoryList"]; - 404: components["responses"]["notFound"]; - }; - }; - userListSubscriptions: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description username of the user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["RepositoryList"]; - 404: components["responses"]["notFound"]; - }; - }; - userGetTokens: { - parameters: { - query?: { - /** @description page number of results to return (1-based) */ - page?: number; - /** @description page size of results */ - limit?: number; - }; - header?: never; - path: { - /** @description username of user */ - username: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["AccessTokenList"]; - 403: components["responses"]["forbidden"]; - }; - }; - userCreateToken: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of user */ - username: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CreateAccessTokenOption"]; - }; - }; - responses: { - 201: components["responses"]["AccessToken"]; - 400: components["responses"]["error"]; - 403: components["responses"]["forbidden"]; - }; - }; - userDeleteAccessToken: { - parameters: { - query?: never; - header?: never; - path: { - /** @description username of user */ - username: string; - /** @description token to be deleted, identified by ID and if not available by name */ - token: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 204: components["responses"]["empty"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["notFound"]; - 422: components["responses"]["error"]; - }; - }; - getVersion: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ServerVersion"]; - }; - }; -} diff --git a/src/main.ts b/src/main.ts index c5aa6fa..549c23d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,7 +1,5 @@ import * as core from '@actions/core'; import * as gitea from '@actions/github'; -import * as client from 'openapi-fetch'; -import * as specification from "./gitea-api"; import * as exec from '@actions/exec'; import * as fs from 'fs'; @@ -18,27 +16,6 @@ async function main() { core.setOutput('url', `https://${repositoryName}-${mangledBranchName}.branch.dsv.su.se`); - const api = client.default<specification.paths>({ - baseUrl: gitea.context.apiUrl, - headers: { - ["Authorization"]: `token ${core.getInput('gitea-token', {required: true})}` - } - }); - const {data, error} = await api.GET('/repos/{owner}/{repo}', { - params: { - path: { - owner: gitea.context.repo.owner, - repo: gitea.context.repo.repo - } - } - }); - if (data) { - core.info(`Repository: ${data.updated_at}`); - } - if (error) { - core.error(`Error fetching repository: ${JSON.stringify(error)}`); - } - const sshKey = core.getInput('ssh-key', {required: true}); core.info(`sshKey: ${sshKey.length}`); fs.writeFileSync('ssh_key', `${sshKey}\n`, {flag: 'w+', mode: "0600"});