Showing preview only (1,309K chars total). Download the full file or copy to clipboard to get everything.
Repository: aidar-freeed/ai-codereviewer
Branch: main
Commit: a9a064dfa1db
Files: 11
Total size: 1.2 MB
Directory structure:
gitextract_v2qxbu2t/
├── .github/
│ └── workflows/
│ └── code_review.yml
├── .gitignore
├── LICENCE
├── README.md
├── action.yml
├── dist/
│ ├── index.js
│ ├── licenses.txt
│ └── sourcemap-register.js
├── package.json
├── src/
│ └── main.ts
└── tsconfig.json
================================================
FILE CONTENTS
================================================
================================================
FILE: .github/workflows/code_review.yml
================================================
name: Code Review with OpenAI
on:
pull_request:
types:
- opened
- synchronize
permissions: write-all
jobs:
code_review:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Code Review
uses: freeedcom/ai-codereviewer@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_MODEL: "gpt-4-1106-preview"
exclude: "yarn.lock,dist/**"
================================================
FILE: .gitignore
================================================
node_modules
.idea
lib/**/*
================================================
FILE: LICENCE
================================================
MIT License
Copyright (c) 2023 Ville Saukkonen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================
FILE: README.md
================================================
# AI Code Reviewer
AI Code Reviewer is a GitHub Action that leverages OpenAI's GPT-4 API to provide intelligent feedback and suggestions on
your pull requests. This powerful tool helps improve code quality and saves developers time by automating the code
review process.
## Features
- Reviews pull requests using OpenAI's GPT-4 API.
- Provides intelligent comments and suggestions for improving your code.
- Filters out files that match specified exclude patterns.
- Easy to set up and integrate into your GitHub workflow.
## Setup
1. To use this GitHub Action, you need an OpenAI API key. If you don't have one, sign up for an API key
at [OpenAI](https://beta.openai.com/signup).
2. Add the OpenAI API key as a GitHub Secret in your repository with the name `OPENAI_API_KEY`. You can find more
information about GitHub Secrets [here](https://docs.github.com/en/actions/reference/encrypted-secrets).
3. Create a `.github/workflows/main.yml` file in your repository and add the following content:
```yaml
name: AI Code Reviewer
on:
pull_request:
types:
- opened
- synchronize
permissions: write-all
jobs:
review:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: AI Code Reviewer
uses: your-username/ai-code-reviewer@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # The GITHUB_TOKEN is there by default so you just need to keep it like it is and not necessarily need to add it as secret as it will throw an error. [More Details](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret)
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_MODEL: "gpt-4" # Optional: defaults to "gpt-4"
exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas
```
4. Replace `your-username` with your GitHub username or organization name where the AI Code Reviewer repository is
located.
5. Customize the `exclude` input if you want to ignore certain file patterns from being reviewed.
6. Commit the changes to your repository, and AI Code Reviewer will start working on your future pull requests.
## How It Works
The AI Code Reviewer GitHub Action retrieves the pull request diff, filters out excluded files, and sends code chunks to
the OpenAI API. It then generates review comments based on the AI's response and adds them to the pull request.
## Contributing
Contributions are welcome! Please feel free to submit issues or pull requests to improve the AI Code Reviewer GitHub
Action.
Let the maintainer generate the final package (`yarn build` & `yarn package`).
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.
================================================
FILE: action.yml
================================================
name: "AI Code Review Action"
description: "Perform code reviews and comment on diffs using OpenAI API."
inputs:
GITHUB_TOKEN:
description: "GitHub token to interact with the repository."
required: true
OPENAI_API_KEY:
description: "OpenAI API key for GPT."
required: true
OPENAI_API_MODEL:
description: "OpenAI API model."
required: false
default: "gpt-4"
exclude:
description: "Glob patterns to exclude files from the diff analysis"
required: false
default: ""
runs:
using: "node16"
main: "dist/index.js"
branding:
icon: "aperture"
color: "green"
================================================
FILE: dist/index.js
================================================
require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ 3109:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const fs_1 = __nccwpck_require__(7147);
const core = __importStar(__nccwpck_require__(2186));
const openai_1 = __importDefault(__nccwpck_require__(47));
const rest_1 = __nccwpck_require__(5375);
const parse_diff_1 = __importDefault(__nccwpck_require__(4833));
const minimatch_1 = __importDefault(__nccwpck_require__(2002));
const GITHUB_TOKEN = core.getInput("GITHUB_TOKEN");
const OPENAI_API_KEY = core.getInput("OPENAI_API_KEY");
const OPENAI_API_MODEL = core.getInput("OPENAI_API_MODEL");
const octokit = new rest_1.Octokit({ auth: GITHUB_TOKEN });
const openai = new openai_1.default({
apiKey: OPENAI_API_KEY,
});
function getPRDetails() {
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {
const { repository, number } = JSON.parse((0, fs_1.readFileSync)(process.env.GITHUB_EVENT_PATH || "", "utf8"));
const prResponse = yield octokit.pulls.get({
owner: repository.owner.login,
repo: repository.name,
pull_number: number,
});
return {
owner: repository.owner.login,
repo: repository.name,
pull_number: number,
title: (_a = prResponse.data.title) !== null && _a !== void 0 ? _a : "",
description: (_b = prResponse.data.body) !== null && _b !== void 0 ? _b : "",
};
});
}
function getDiff(owner, repo, pull_number) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield octokit.pulls.get({
owner,
repo,
pull_number,
mediaType: { format: "diff" },
});
// @ts-expect-error - response.data is a string
return response.data;
});
}
function analyzeCode(parsedDiff, prDetails) {
return __awaiter(this, void 0, void 0, function* () {
const comments = [];
for (const file of parsedDiff) {
if (file.to === "/dev/null")
continue; // Ignore deleted files
for (const chunk of file.chunks) {
const prompt = createPrompt(file, chunk, prDetails);
const aiResponse = yield getAIResponse(prompt);
if (aiResponse) {
const newComments = createComment(file, chunk, aiResponse);
if (newComments) {
comments.push(...newComments);
}
}
}
}
return comments;
});
}
function createPrompt(file, chunk, prDetails) {
return `Your task is to review pull requests. Instructions:
- Provide the response in following JSON format: {"reviews": [{"lineNumber": <line_number>, "reviewComment": "<review comment>"}]}
- Do not give positive comments or compliments.
- Provide comments and suggestions ONLY if there is something to improve, otherwise "reviews" should be an empty array.
- Write the comment in GitHub Markdown format.
- Use the given description only for the overall context and only comment the code.
- IMPORTANT: NEVER suggest adding comments to the code.
Review the following code diff in the file "${file.to}" and take the pull request title and description into account when writing the response.
Pull request title: ${prDetails.title}
Pull request description:
---
${prDetails.description}
---
Git diff to review:
\`\`\`diff
${chunk.content}
${chunk.changes
// @ts-expect-error - ln and ln2 exists where needed
.map((c) => `${c.ln ? c.ln : c.ln2} ${c.content}`)
.join("\n")}
\`\`\`
`;
}
function getAIResponse(prompt) {
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {
const queryConfig = {
model: OPENAI_API_MODEL,
temperature: 0.2,
max_tokens: 700,
top_p: 1,
frequency_penalty: 0,
presence_penalty: 0,
};
try {
const response = yield openai.chat.completions.create(Object.assign(Object.assign(Object.assign({}, queryConfig), (OPENAI_API_MODEL === "gpt-4-1106-preview"
? { response_format: { type: "json_object" } }
: {})), { messages: [
{
role: "system",
content: prompt,
},
] }));
const res = ((_b = (_a = response.choices[0].message) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.trim()) || "{}";
return JSON.parse(res).reviews;
}
catch (error) {
console.error("Error:", error);
return null;
}
});
}
function createComment(file, chunk, aiResponses) {
return aiResponses.flatMap((aiResponse) => {
if (!file.to) {
return [];
}
return {
body: aiResponse.reviewComment,
path: file.to,
line: Number(aiResponse.lineNumber),
};
});
}
function createReviewComment(owner, repo, pull_number, comments) {
return __awaiter(this, void 0, void 0, function* () {
yield octokit.pulls.createReview({
owner,
repo,
pull_number,
comments,
event: "COMMENT",
});
});
}
function main() {
var _a;
return __awaiter(this, void 0, void 0, function* () {
const prDetails = yield getPRDetails();
let diff;
const eventData = JSON.parse((0, fs_1.readFileSync)((_a = process.env.GITHUB_EVENT_PATH) !== null && _a !== void 0 ? _a : "", "utf8"));
if (eventData.action === "opened") {
diff = yield getDiff(prDetails.owner, prDetails.repo, prDetails.pull_number);
}
else if (eventData.action === "synchronize") {
const newBaseSha = eventData.before;
const newHeadSha = eventData.after;
const response = yield octokit.repos.compareCommits({
headers: {
accept: "application/vnd.github.v3.diff",
},
owner: prDetails.owner,
repo: prDetails.repo,
base: newBaseSha,
head: newHeadSha,
});
diff = String(response.data);
}
else {
console.log("Unsupported event:", process.env.GITHUB_EVENT_NAME);
return;
}
if (!diff) {
console.log("No diff found");
return;
}
const parsedDiff = (0, parse_diff_1.default)(diff);
const excludePatterns = core
.getInput("exclude")
.split(",")
.map((s) => s.trim());
const filteredDiff = parsedDiff.filter((file) => {
return !excludePatterns.some((pattern) => { var _a; return (0, minimatch_1.default)((_a = file.to) !== null && _a !== void 0 ? _a : "", pattern); });
});
const comments = yield analyzeCode(filteredDiff, prDetails);
if (comments.length > 0) {
yield createReviewComment(prDetails.owner, prDetails.repo, prDetails.pull_number, comments);
}
});
}
main().catch((error) => {
console.error("Error:", error);
process.exit(1);
});
/***/ }),
/***/ 7351:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.issue = exports.issueCommand = void 0;
const os = __importStar(__nccwpck_require__(2037));
const utils_1 = __nccwpck_require__(5278);
/**
* Commands
*
* Command Format:
* ::name key=value,key=value::message
*
* Examples:
* ::warning::This is the message
* ::set-env name=MY_VAR::some value
*/
function issueCommand(command, properties, message) {
const cmd = new Command(command, properties, message);
process.stdout.write(cmd.toString() + os.EOL);
}
exports.issueCommand = issueCommand;
function issue(name, message = '') {
issueCommand(name, {}, message);
}
exports.issue = issue;
const CMD_STRING = '::';
class Command {
constructor(command, properties, message) {
if (!command) {
command = 'missing.command';
}
this.command = command;
this.properties = properties;
this.message = message;
}
toString() {
let cmdStr = CMD_STRING + this.command;
if (this.properties && Object.keys(this.properties).length > 0) {
cmdStr += ' ';
let first = true;
for (const key in this.properties) {
if (this.properties.hasOwnProperty(key)) {
const val = this.properties[key];
if (val) {
if (first) {
first = false;
}
else {
cmdStr += ',';
}
cmdStr += `${key}=${escapeProperty(val)}`;
}
}
}
}
cmdStr += `${CMD_STRING}${escapeData(this.message)}`;
return cmdStr;
}
}
function escapeData(s) {
return utils_1.toCommandValue(s)
.replace(/%/g, '%25')
.replace(/\r/g, '%0D')
.replace(/\n/g, '%0A');
}
function escapeProperty(s) {
return utils_1.toCommandValue(s)
.replace(/%/g, '%25')
.replace(/\r/g, '%0D')
.replace(/\n/g, '%0A')
.replace(/:/g, '%3A')
.replace(/,/g, '%2C');
}
//# sourceMappingURL=command.js.map
/***/ }),
/***/ 2186:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
const command_1 = __nccwpck_require__(7351);
const file_command_1 = __nccwpck_require__(717);
const utils_1 = __nccwpck_require__(5278);
const os = __importStar(__nccwpck_require__(2037));
const path = __importStar(__nccwpck_require__(1017));
const oidc_utils_1 = __nccwpck_require__(8041);
/**
* The code to exit an action
*/
var ExitCode;
(function (ExitCode) {
/**
* A code indicating that the action was successful
*/
ExitCode[ExitCode["Success"] = 0] = "Success";
/**
* A code indicating that the action was a failure
*/
ExitCode[ExitCode["Failure"] = 1] = "Failure";
})(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
//-----------------------------------------------------------------------
// Variables
//-----------------------------------------------------------------------
/**
* Sets env variable for this action and future actions in the job
* @param name the name of the variable to set
* @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function exportVariable(name, val) {
const convertedVal = utils_1.toCommandValue(val);
process.env[name] = convertedVal;
const filePath = process.env['GITHUB_ENV'] || '';
if (filePath) {
return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val));
}
command_1.issueCommand('set-env', { name }, convertedVal);
}
exports.exportVariable = exportVariable;
/**
* Registers a secret which will get masked from logs
* @param secret value of the secret
*/
function setSecret(secret) {
command_1.issueCommand('add-mask', {}, secret);
}
exports.setSecret = setSecret;
/**
* Prepends inputPath to the PATH (for this action and future actions)
* @param inputPath
*/
function addPath(inputPath) {
const filePath = process.env['GITHUB_PATH'] || '';
if (filePath) {
file_command_1.issueFileCommand('PATH', inputPath);
}
else {
command_1.issueCommand('add-path', {}, inputPath);
}
process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
}
exports.addPath = addPath;
/**
* Gets the value of an input.
* Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.
* Returns an empty string if the value is not defined.
*
* @param name name of the input to get
* @param options optional. See InputOptions.
* @returns string
*/
function getInput(name, options) {
const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';
if (options && options.required && !val) {
throw new Error(`Input required and not supplied: ${name}`);
}
if (options && options.trimWhitespace === false) {
return val;
}
return val.trim();
}
exports.getInput = getInput;
/**
* Gets the values of an multiline input. Each value is also trimmed.
*
* @param name name of the input to get
* @param options optional. See InputOptions.
* @returns string[]
*
*/
function getMultilineInput(name, options) {
const inputs = getInput(name, options)
.split('\n')
.filter(x => x !== '');
if (options && options.trimWhitespace === false) {
return inputs;
}
return inputs.map(input => input.trim());
}
exports.getMultilineInput = getMultilineInput;
/**
* Gets the input value of the boolean type in the YAML 1.2 "core schema" specification.
* Support boolean input list: `true | True | TRUE | false | False | FALSE` .
* The return value is also in boolean type.
* ref: https://yaml.org/spec/1.2/spec.html#id2804923
*
* @param name name of the input to get
* @param options optional. See InputOptions.
* @returns boolean
*/
function getBooleanInput(name, options) {
const trueValue = ['true', 'True', 'TRUE'];
const falseValue = ['false', 'False', 'FALSE'];
const val = getInput(name, options);
if (trueValue.includes(val))
return true;
if (falseValue.includes(val))
return false;
throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` +
`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
}
exports.getBooleanInput = getBooleanInput;
/**
* Sets the value of an output.
*
* @param name name of the output to set
* @param value value to store. Non-string values will be converted to a string via JSON.stringify
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setOutput(name, value) {
const filePath = process.env['GITHUB_OUTPUT'] || '';
if (filePath) {
return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value));
}
process.stdout.write(os.EOL);
command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value));
}
exports.setOutput = setOutput;
/**
* Enables or disables the echoing of commands into stdout for the rest of the step.
* Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
*
*/
function setCommandEcho(enabled) {
command_1.issue('echo', enabled ? 'on' : 'off');
}
exports.setCommandEcho = setCommandEcho;
//-----------------------------------------------------------------------
// Results
//-----------------------------------------------------------------------
/**
* Sets the action status to failed.
* When the action exits it will be with an exit code of 1
* @param message add error issue message
*/
function setFailed(message) {
process.exitCode = ExitCode.Failure;
error(message);
}
exports.setFailed = setFailed;
//-----------------------------------------------------------------------
// Logging Commands
//-----------------------------------------------------------------------
/**
* Gets whether Actions Step Debug is on or not
*/
function isDebug() {
return process.env['RUNNER_DEBUG'] === '1';
}
exports.isDebug = isDebug;
/**
* Writes debug message to user log
* @param message debug message
*/
function debug(message) {
command_1.issueCommand('debug', {}, message);
}
exports.debug = debug;
/**
* Adds an error issue
* @param message error issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/
function error(message, properties = {}) {
command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.error = error;
/**
* Adds a warning issue
* @param message warning issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/
function warning(message, properties = {}) {
command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.warning = warning;
/**
* Adds a notice issue
* @param message notice issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/
function notice(message, properties = {}) {
command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.notice = notice;
/**
* Writes info to log with console.log.
* @param message info message
*/
function info(message) {
process.stdout.write(message + os.EOL);
}
exports.info = info;
/**
* Begin an output group.
*
* Output until the next `groupEnd` will be foldable in this group
*
* @param name The name of the output group
*/
function startGroup(name) {
command_1.issue('group', name);
}
exports.startGroup = startGroup;
/**
* End an output group.
*/
function endGroup() {
command_1.issue('endgroup');
}
exports.endGroup = endGroup;
/**
* Wrap an asynchronous function call in a group.
*
* Returns the same type as the function itself.
*
* @param name The name of the group
* @param fn The function to wrap in the group
*/
function group(name, fn) {
return __awaiter(this, void 0, void 0, function* () {
startGroup(name);
let result;
try {
result = yield fn();
}
finally {
endGroup();
}
return result;
});
}
exports.group = group;
//-----------------------------------------------------------------------
// Wrapper action state
//-----------------------------------------------------------------------
/**
* Saves state for current action, the state can only be retrieved by this action's post job execution.
*
* @param name name of the state to store
* @param value value to store. Non-string values will be converted to a string via JSON.stringify
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function saveState(name, value) {
const filePath = process.env['GITHUB_STATE'] || '';
if (filePath) {
return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value));
}
command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value));
}
exports.saveState = saveState;
/**
* Gets the value of an state set by this action's main execution.
*
* @param name name of the state to get
* @returns string
*/
function getState(name) {
return process.env[`STATE_${name}`] || '';
}
exports.getState = getState;
function getIDToken(aud) {
return __awaiter(this, void 0, void 0, function* () {
return yield oidc_utils_1.OidcClient.getIDToken(aud);
});
}
exports.getIDToken = getIDToken;
/**
* Summary exports
*/
var summary_1 = __nccwpck_require__(1327);
Object.defineProperty(exports, "summary", ({ enumerable: true, get: function () { return summary_1.summary; } }));
/**
* @deprecated use core.summary
*/
var summary_2 = __nccwpck_require__(1327);
Object.defineProperty(exports, "markdownSummary", ({ enumerable: true, get: function () { return summary_2.markdownSummary; } }));
/**
* Path exports
*/
var path_utils_1 = __nccwpck_require__(2981);
Object.defineProperty(exports, "toPosixPath", ({ enumerable: true, get: function () { return path_utils_1.toPosixPath; } }));
Object.defineProperty(exports, "toWin32Path", ({ enumerable: true, get: function () { return path_utils_1.toWin32Path; } }));
Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: function () { return path_utils_1.toPlatformPath; } }));
//# sourceMappingURL=core.js.map
/***/ }),
/***/ 717:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
// For internal use, subject to change.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.prepareKeyValueMessage = exports.issueFileCommand = void 0;
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
const fs = __importStar(__nccwpck_require__(7147));
const os = __importStar(__nccwpck_require__(2037));
const uuid_1 = __nccwpck_require__(5840);
const utils_1 = __nccwpck_require__(5278);
function issueFileCommand(command, message) {
const filePath = process.env[`GITHUB_${command}`];
if (!filePath) {
throw new Error(`Unable to find environment variable for file command ${command}`);
}
if (!fs.existsSync(filePath)) {
throw new Error(`Missing file at path: ${filePath}`);
}
fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, {
encoding: 'utf8'
});
}
exports.issueFileCommand = issueFileCommand;
function prepareKeyValueMessage(key, value) {
const delimiter = `ghadelimiter_${uuid_1.v4()}`;
const convertedValue = utils_1.toCommandValue(value);
// These should realistically never happen, but just in case someone finds a
// way to exploit uuid generation let's not allow keys or values that contain
// the delimiter.
if (key.includes(delimiter)) {
throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`);
}
if (convertedValue.includes(delimiter)) {
throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`);
}
return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`;
}
exports.prepareKeyValueMessage = prepareKeyValueMessage;
//# sourceMappingURL=file-command.js.map
/***/ }),
/***/ 8041:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.OidcClient = void 0;
const http_client_1 = __nccwpck_require__(6255);
const auth_1 = __nccwpck_require__(5526);
const core_1 = __nccwpck_require__(2186);
class OidcClient {
static createHttpClient(allowRetry = true, maxRetry = 10) {
const requestOptions = {
allowRetries: allowRetry,
maxRetries: maxRetry
};
return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions);
}
static getRequestToken() {
const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN'];
if (!token) {
throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable');
}
return token;
}
static getIDTokenUrl() {
const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL'];
if (!runtimeUrl) {
throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable');
}
return runtimeUrl;
}
static getCall(id_token_url) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
const httpclient = OidcClient.createHttpClient();
const res = yield httpclient
.getJson(id_token_url)
.catch(error => {
throw new Error(`Failed to get ID Token. \n
Error Code : ${error.statusCode}\n
Error Message: ${error.result.message}`);
});
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
if (!id_token) {
throw new Error('Response json body do not have ID Token field');
}
return id_token;
});
}
static getIDToken(audience) {
return __awaiter(this, void 0, void 0, function* () {
try {
// New ID Token is requested from action service
let id_token_url = OidcClient.getIDTokenUrl();
if (audience) {
const encodedAudience = encodeURIComponent(audience);
id_token_url = `${id_token_url}&audience=${encodedAudience}`;
}
core_1.debug(`ID token url is ${id_token_url}`);
const id_token = yield OidcClient.getCall(id_token_url);
core_1.setSecret(id_token);
return id_token;
}
catch (error) {
throw new Error(`Error message: ${error.message}`);
}
});
}
}
exports.OidcClient = OidcClient;
//# sourceMappingURL=oidc-utils.js.map
/***/ }),
/***/ 2981:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0;
const path = __importStar(__nccwpck_require__(1017));
/**
* toPosixPath converts the given path to the posix form. On Windows, \\ will be
* replaced with /.
*
* @param pth. Path to transform.
* @return string Posix path.
*/
function toPosixPath(pth) {
return pth.replace(/[\\]/g, '/');
}
exports.toPosixPath = toPosixPath;
/**
* toWin32Path converts the given path to the win32 form. On Linux, / will be
* replaced with \\.
*
* @param pth. Path to transform.
* @return string Win32 path.
*/
function toWin32Path(pth) {
return pth.replace(/[/]/g, '\\');
}
exports.toWin32Path = toWin32Path;
/**
* toPlatformPath converts the given path to a platform-specific path. It does
* this by replacing instances of / and \ with the platform-specific path
* separator.
*
* @param pth The path to platformize.
* @return string The platform-specific path.
*/
function toPlatformPath(pth) {
return pth.replace(/[/\\]/g, path.sep);
}
exports.toPlatformPath = toPlatformPath;
//# sourceMappingURL=path-utils.js.map
/***/ }),
/***/ 1327:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0;
const os_1 = __nccwpck_require__(2037);
const fs_1 = __nccwpck_require__(7147);
const { access, appendFile, writeFile } = fs_1.promises;
exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY';
exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary';
class Summary {
constructor() {
this._buffer = '';
}
/**
* Finds the summary file path from the environment, rejects if env var is not found or file does not exist
* Also checks r/w permissions.
*
* @returns step summary file path
*/
filePath() {
return __awaiter(this, void 0, void 0, function* () {
if (this._filePath) {
return this._filePath;
}
const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];
if (!pathFromEnv) {
throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);
}
try {
yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);
}
catch (_a) {
throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);
}
this._filePath = pathFromEnv;
return this._filePath;
});
}
/**
* Wraps content in an HTML tag, adding any HTML attributes
*
* @param {string} tag HTML tag to wrap
* @param {string | null} content content within the tag
* @param {[attribute: string]: string} attrs key-value list of HTML attributes to add
*
* @returns {string} content wrapped in HTML element
*/
wrap(tag, content, attrs = {}) {
const htmlAttrs = Object.entries(attrs)
.map(([key, value]) => ` ${key}="${value}"`)
.join('');
if (!content) {
return `<${tag}${htmlAttrs}>`;
}
return `<${tag}${htmlAttrs}>${content}</${tag}>`;
}
/**
* Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.
*
* @param {SummaryWriteOptions} [options] (optional) options for write operation
*
* @returns {Promise<Summary>} summary instance
*/
write(options) {
return __awaiter(this, void 0, void 0, function* () {
const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);
const filePath = yield this.filePath();
const writeFunc = overwrite ? writeFile : appendFile;
yield writeFunc(filePath, this._buffer, { encoding: 'utf8' });
return this.emptyBuffer();
});
}
/**
* Clears the summary buffer and wipes the summary file
*
* @returns {Summary} summary instance
*/
clear() {
return __awaiter(this, void 0, void 0, function* () {
return this.emptyBuffer().write({ overwrite: true });
});
}
/**
* Returns the current summary buffer as a string
*
* @returns {string} string of summary buffer
*/
stringify() {
return this._buffer;
}
/**
* If the summary buffer is empty
*
* @returns {boolen} true if the buffer is empty
*/
isEmptyBuffer() {
return this._buffer.length === 0;
}
/**
* Resets the summary buffer without writing to summary file
*
* @returns {Summary} summary instance
*/
emptyBuffer() {
this._buffer = '';
return this;
}
/**
* Adds raw text to the summary buffer
*
* @param {string} text content to add
* @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false)
*
* @returns {Summary} summary instance
*/
addRaw(text, addEOL = false) {
this._buffer += text;
return addEOL ? this.addEOL() : this;
}
/**
* Adds the operating system-specific end-of-line marker to the buffer
*
* @returns {Summary} summary instance
*/
addEOL() {
return this.addRaw(os_1.EOL);
}
/**
* Adds an HTML codeblock to the summary buffer
*
* @param {string} code content to render within fenced code block
* @param {string} lang (optional) language to syntax highlight code
*
* @returns {Summary} summary instance
*/
addCodeBlock(code, lang) {
const attrs = Object.assign({}, (lang && { lang }));
const element = this.wrap('pre', this.wrap('code', code), attrs);
return this.addRaw(element).addEOL();
}
/**
* Adds an HTML list to the summary buffer
*
* @param {string[]} items list of items to render
* @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false)
*
* @returns {Summary} summary instance
*/
addList(items, ordered = false) {
const tag = ordered ? 'ol' : 'ul';
const listItems = items.map(item => this.wrap('li', item)).join('');
const element = this.wrap(tag, listItems);
return this.addRaw(element).addEOL();
}
/**
* Adds an HTML table to the summary buffer
*
* @param {SummaryTableCell[]} rows table rows
*
* @returns {Summary} summary instance
*/
addTable(rows) {
const tableBody = rows
.map(row => {
const cells = row
.map(cell => {
if (typeof cell === 'string') {
return this.wrap('td', cell);
}
const { header, data, colspan, rowspan } = cell;
const tag = header ? 'th' : 'td';
const attrs = Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan }));
return this.wrap(tag, data, attrs);
})
.join('');
return this.wrap('tr', cells);
})
.join('');
const element = this.wrap('table', tableBody);
return this.addRaw(element).addEOL();
}
/**
* Adds a collapsable HTML details element to the summary buffer
*
* @param {string} label text for the closed state
* @param {string} content collapsable content
*
* @returns {Summary} summary instance
*/
addDetails(label, content) {
const element = this.wrap('details', this.wrap('summary', label) + content);
return this.addRaw(element).addEOL();
}
/**
* Adds an HTML image tag to the summary buffer
*
* @param {string} src path to the image you to embed
* @param {string} alt text description of the image
* @param {SummaryImageOptions} options (optional) addition image attributes
*
* @returns {Summary} summary instance
*/
addImage(src, alt, options) {
const { width, height } = options || {};
const attrs = Object.assign(Object.assign({}, (width && { width })), (height && { height }));
const element = this.wrap('img', null, Object.assign({ src, alt }, attrs));
return this.addRaw(element).addEOL();
}
/**
* Adds an HTML section heading element
*
* @param {string} text heading text
* @param {number | string} [level=1] (optional) the heading level, default: 1
*
* @returns {Summary} summary instance
*/
addHeading(text, level) {
const tag = `h${level}`;
const allowedTag = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(tag)
? tag
: 'h1';
const element = this.wrap(allowedTag, text);
return this.addRaw(element).addEOL();
}
/**
* Adds an HTML thematic break (<hr>) to the summary buffer
*
* @returns {Summary} summary instance
*/
addSeparator() {
const element = this.wrap('hr', null);
return this.addRaw(element).addEOL();
}
/**
* Adds an HTML line break (<br>) to the summary buffer
*
* @returns {Summary} summary instance
*/
addBreak() {
const element = this.wrap('br', null);
return this.addRaw(element).addEOL();
}
/**
* Adds an HTML blockquote to the summary buffer
*
* @param {string} text quote text
* @param {string} cite (optional) citation url
*
* @returns {Summary} summary instance
*/
addQuote(text, cite) {
const attrs = Object.assign({}, (cite && { cite }));
const element = this.wrap('blockquote', text, attrs);
return this.addRaw(element).addEOL();
}
/**
* Adds an HTML anchor tag to the summary buffer
*
* @param {string} text link text/content
* @param {string} href hyperlink
*
* @returns {Summary} summary instance
*/
addLink(text, href) {
const element = this.wrap('a', text, { href });
return this.addRaw(element).addEOL();
}
}
const _summary = new Summary();
/**
* @deprecated use `core.summary`
*/
exports.markdownSummary = _summary;
exports.summary = _summary;
//# sourceMappingURL=summary.js.map
/***/ }),
/***/ 5278:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.toCommandProperties = exports.toCommandValue = void 0;
/**
* Sanitizes an input into a string so it can be passed into issueCommand safely
* @param input input to sanitize into a string
*/
function toCommandValue(input) {
if (input === null || input === undefined) {
return '';
}
else if (typeof input === 'string' || input instanceof String) {
return input;
}
return JSON.stringify(input);
}
exports.toCommandValue = toCommandValue;
/**
*
* @param annotationProperties
* @returns The command properties to send with the actual annotation command
* See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
*/
function toCommandProperties(annotationProperties) {
if (!Object.keys(annotationProperties).length) {
return {};
}
return {
title: annotationProperties.title,
file: annotationProperties.file,
line: annotationProperties.startLine,
endLine: annotationProperties.endLine,
col: annotationProperties.startColumn,
endColumn: annotationProperties.endColumn
};
}
exports.toCommandProperties = toCommandProperties;
//# sourceMappingURL=utils.js.map
/***/ }),
/***/ 5526:
/***/ (function(__unused_webpack_module, exports) {
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.PersonalAccessTokenCredentialHandler = exports.BearerCredentialHandler = exports.BasicCredentialHandler = void 0;
class BasicCredentialHandler {
constructor(username, password) {
this.username = username;
this.password = password;
}
prepareRequest(options) {
if (!options.headers) {
throw Error('The request has no headers');
}
options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`;
}
// This handler cannot handle 401
canHandleAuthentication() {
return false;
}
handleAuthentication() {
return __awaiter(this, void 0, void 0, function* () {
throw new Error('not implemented');
});
}
}
exports.BasicCredentialHandler = BasicCredentialHandler;
class BearerCredentialHandler {
constructor(token) {
this.token = token;
}
// currently implements pre-authorization
// TODO: support preAuth = false where it hooks on 401
prepareRequest(options) {
if (!options.headers) {
throw Error('The request has no headers');
}
options.headers['Authorization'] = `Bearer ${this.token}`;
}
// This handler cannot handle 401
canHandleAuthentication() {
return false;
}
handleAuthentication() {
return __awaiter(this, void 0, void 0, function* () {
throw new Error('not implemented');
});
}
}
exports.BearerCredentialHandler = BearerCredentialHandler;
class PersonalAccessTokenCredentialHandler {
constructor(token) {
this.token = token;
}
// currently implements pre-authorization
// TODO: support preAuth = false where it hooks on 401
prepareRequest(options) {
if (!options.headers) {
throw Error('The request has no headers');
}
options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`;
}
// This handler cannot handle 401
canHandleAuthentication() {
return false;
}
handleAuthentication() {
return __awaiter(this, void 0, void 0, function* () {
throw new Error('not implemented');
});
}
}
exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler;
//# sourceMappingURL=auth.js.map
/***/ }),
/***/ 6255:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
/* eslint-disable @typescript-eslint/no-explicit-any */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
const http = __importStar(__nccwpck_require__(3685));
const https = __importStar(__nccwpck_require__(5687));
const pm = __importStar(__nccwpck_require__(9835));
const tunnel = __importStar(__nccwpck_require__(4294));
var HttpCodes;
(function (HttpCodes) {
HttpCodes[HttpCodes["OK"] = 200] = "OK";
HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
var Headers;
(function (Headers) {
Headers["Accept"] = "accept";
Headers["ContentType"] = "content-type";
})(Headers = exports.Headers || (exports.Headers = {}));
var MediaTypes;
(function (MediaTypes) {
MediaTypes["ApplicationJson"] = "application/json";
})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}));
/**
* Returns the proxy URL, depending upon the supplied url and proxy environment variables.
* @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
*/
function getProxyUrl(serverUrl) {
const proxyUrl = pm.getProxyUrl(new URL(serverUrl));
return proxyUrl ? proxyUrl.href : '';
}
exports.getProxyUrl = getProxyUrl;
const HttpRedirectCodes = [
HttpCodes.MovedPermanently,
HttpCodes.ResourceMoved,
HttpCodes.SeeOther,
HttpCodes.TemporaryRedirect,
HttpCodes.PermanentRedirect
];
const HttpResponseRetryCodes = [
HttpCodes.BadGateway,
HttpCodes.ServiceUnavailable,
HttpCodes.GatewayTimeout
];
const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
const ExponentialBackoffCeiling = 10;
const ExponentialBackoffTimeSlice = 5;
class HttpClientError extends Error {
constructor(message, statusCode) {
super(message);
this.name = 'HttpClientError';
this.statusCode = statusCode;
Object.setPrototypeOf(this, HttpClientError.prototype);
}
}
exports.HttpClientError = HttpClientError;
class HttpClientResponse {
constructor(message) {
this.message = message;
}
readBody() {
return __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
let output = Buffer.alloc(0);
this.message.on('data', (chunk) => {
output = Buffer.concat([output, chunk]);
});
this.message.on('end', () => {
resolve(output.toString());
});
}));
});
}
}
exports.HttpClientResponse = HttpClientResponse;
function isHttps(requestUrl) {
const parsedUrl = new URL(requestUrl);
return parsedUrl.protocol === 'https:';
}
exports.isHttps = isHttps;
class HttpClient {
constructor(userAgent, handlers, requestOptions) {
this._ignoreSslError = false;
this._allowRedirects = true;
this._allowRedirectDowngrade = false;
this._maxRedirects = 50;
this._allowRetries = false;
this._maxRetries = 1;
this._keepAlive = false;
this._disposed = false;
this.userAgent = userAgent;
this.handlers = handlers || [];
this.requestOptions = requestOptions;
if (requestOptions) {
if (requestOptions.ignoreSslError != null) {
this._ignoreSslError = requestOptions.ignoreSslError;
}
this._socketTimeout = requestOptions.socketTimeout;
if (requestOptions.allowRedirects != null) {
this._allowRedirects = requestOptions.allowRedirects;
}
if (requestOptions.allowRedirectDowngrade != null) {
this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
}
if (requestOptions.maxRedirects != null) {
this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
}
if (requestOptions.keepAlive != null) {
this._keepAlive = requestOptions.keepAlive;
}
if (requestOptions.allowRetries != null) {
this._allowRetries = requestOptions.allowRetries;
}
if (requestOptions.maxRetries != null) {
this._maxRetries = requestOptions.maxRetries;
}
}
}
options(requestUrl, additionalHeaders) {
return __awaiter(this, void 0, void 0, function* () {
return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
});
}
get(requestUrl, additionalHeaders) {
return __awaiter(this, void 0, void 0, function* () {
return this.request('GET', requestUrl, null, additionalHeaders || {});
});
}
del(requestUrl, additionalHeaders) {
return __awaiter(this, void 0, void 0, function* () {
return this.request('DELETE', requestUrl, null, additionalHeaders || {});
});
}
post(requestUrl, data, additionalHeaders) {
return __awaiter(this, void 0, void 0, function* () {
return this.request('POST', requestUrl, data, additionalHeaders || {});
});
}
patch(requestUrl, data, additionalHeaders) {
return __awaiter(this, void 0, void 0, function* () {
return this.request('PATCH', requestUrl, data, additionalHeaders || {});
});
}
put(requestUrl, data, additionalHeaders) {
return __awaiter(this, void 0, void 0, function* () {
return this.request('PUT', requestUrl, data, additionalHeaders || {});
});
}
head(requestUrl, additionalHeaders) {
return __awaiter(this, void 0, void 0, function* () {
return this.request('HEAD', requestUrl, null, additionalHeaders || {});
});
}
sendStream(verb, requestUrl, stream, additionalHeaders) {
return __awaiter(this, void 0, void 0, function* () {
return this.request(verb, requestUrl, stream, additionalHeaders);
});
}
/**
* Gets a typed object from an endpoint
* Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
*/
getJson(requestUrl, additionalHeaders = {}) {
return __awaiter(this, void 0, void 0, function* () {
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
const res = yield this.get(requestUrl, additionalHeaders);
return this._processResponse(res, this.requestOptions);
});
}
postJson(requestUrl, obj, additionalHeaders = {}) {
return __awaiter(this, void 0, void 0, function* () {
const data = JSON.stringify(obj, null, 2);
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
const res = yield this.post(requestUrl, data, additionalHeaders);
return this._processResponse(res, this.requestOptions);
});
}
putJson(requestUrl, obj, additionalHeaders = {}) {
return __awaiter(this, void 0, void 0, function* () {
const data = JSON.stringify(obj, null, 2);
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
const res = yield this.put(requestUrl, data, additionalHeaders);
return this._processResponse(res, this.requestOptions);
});
}
patchJson(requestUrl, obj, additionalHeaders = {}) {
return __awaiter(this, void 0, void 0, function* () {
const data = JSON.stringify(obj, null, 2);
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
const res = yield this.patch(requestUrl, data, additionalHeaders);
return this._processResponse(res, this.requestOptions);
});
}
/**
* Makes a raw http request.
* All other methods such as get, post, patch, and request ultimately call this.
* Prefer get, del, post and patch
*/
request(verb, requestUrl, data, headers) {
return __awaiter(this, void 0, void 0, function* () {
if (this._disposed) {
throw new Error('Client has already been disposed.');
}
const parsedUrl = new URL(requestUrl);
let info = this._prepareRequest(verb, parsedUrl, headers);
// Only perform retries on reads since writes may not be idempotent.
const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb)
? this._maxRetries + 1
: 1;
let numTries = 0;
let response;
do {
response = yield this.requestRaw(info, data);
// Check if it's an authentication challenge
if (response &&
response.message &&
response.message.statusCode === HttpCodes.Unauthorized) {
let authenticationHandler;
for (const handler of this.handlers) {
if (handler.canHandleAuthentication(response)) {
authenticationHandler = handler;
break;
}
}
if (authenticationHandler) {
return authenticationHandler.handleAuthentication(this, info, data);
}
else {
// We have received an unauthorized response but have no handlers to handle it.
// Let the response return to the caller.
return response;
}
}
let redirectsRemaining = this._maxRedirects;
while (response.message.statusCode &&
HttpRedirectCodes.includes(response.message.statusCode) &&
this._allowRedirects &&
redirectsRemaining > 0) {
const redirectUrl = response.message.headers['location'];
if (!redirectUrl) {
// if there's no location to redirect to, we won't
break;
}
const parsedRedirectUrl = new URL(redirectUrl);
if (parsedUrl.protocol === 'https:' &&
parsedUrl.protocol !== parsedRedirectUrl.protocol &&
!this._allowRedirectDowngrade) {
throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.');
}
// we need to finish reading the response before reassigning response
// which will leak the open socket.
yield response.readBody();
// strip authorization header if redirected to a different hostname
if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
for (const header in headers) {
// header names are case insensitive
if (header.toLowerCase() === 'authorization') {
delete headers[header];
}
}
}
// let's make the request with the new redirectUrl
info = this._prepareRequest(verb, parsedRedirectUrl, headers);
response = yield this.requestRaw(info, data);
redirectsRemaining--;
}
if (!response.message.statusCode ||
!HttpResponseRetryCodes.includes(response.message.statusCode)) {
// If not a retry code, return immediately instead of retrying
return response;
}
numTries += 1;
if (numTries < maxTries) {
yield response.readBody();
yield this._performExponentialBackoff(numTries);
}
} while (numTries < maxTries);
return response;
});
}
/**
* Needs to be called if keepAlive is set to true in request options.
*/
dispose() {
if (this._agent) {
this._agent.destroy();
}
this._disposed = true;
}
/**
* Raw request.
* @param info
* @param data
*/
requestRaw(info, data) {
return __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve, reject) => {
function callbackForResult(err, res) {
if (err) {
reject(err);
}
else if (!res) {
// If `err` is not passed, then `res` must be passed.
reject(new Error('Unknown error'));
}
else {
resolve(res);
}
}
this.requestRawWithCallback(info, data, callbackForResult);
});
});
}
/**
* Raw request with callback.
* @param info
* @param data
* @param onResult
*/
requestRawWithCallback(info, data, onResult) {
if (typeof data === 'string') {
if (!info.options.headers) {
info.options.headers = {};
}
info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');
}
let callbackCalled = false;
function handleResult(err, res) {
if (!callbackCalled) {
callbackCalled = true;
onResult(err, res);
}
}
const req = info.httpModule.request(info.options, (msg) => {
const res = new HttpClientResponse(msg);
handleResult(undefined, res);
});
let socket;
req.on('socket', sock => {
socket = sock;
});
// If we ever get disconnected, we want the socket to timeout eventually
req.setTimeout(this._socketTimeout || 3 * 60000, () => {
if (socket) {
socket.end();
}
handleResult(new Error(`Request timeout: ${info.options.path}`));
});
req.on('error', function (err) {
// err has statusCode property
// res should have headers
handleResult(err);
});
if (data && typeof data === 'string') {
req.write(data, 'utf8');
}
if (data && typeof data !== 'string') {
data.on('close', function () {
req.end();
});
data.pipe(req);
}
else {
req.end();
}
}
/**
* Gets an http agent. This function is useful when you need an http agent that handles
* routing through a proxy server - depending upon the url and proxy environment variables.
* @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
*/
getAgent(serverUrl) {
const parsedUrl = new URL(serverUrl);
return this._getAgent(parsedUrl);
}
_prepareRequest(method, requestUrl, headers) {
const info = {};
info.parsedUrl = requestUrl;
const usingSsl = info.parsedUrl.protocol === 'https:';
info.httpModule = usingSsl ? https : http;
const defaultPort = usingSsl ? 443 : 80;
info.options = {};
info.options.host = info.parsedUrl.hostname;
info.options.port = info.parsedUrl.port
? parseInt(info.parsedUrl.port)
: defaultPort;
info.options.path =
(info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
info.options.method = method;
info.options.headers = this._mergeHeaders(headers);
if (this.userAgent != null) {
info.options.headers['user-agent'] = this.userAgent;
}
info.options.agent = this._getAgent(info.parsedUrl);
// gives handlers an opportunity to participate
if (this.handlers) {
for (const handler of this.handlers) {
handler.prepareRequest(info.options);
}
}
return info;
}
_mergeHeaders(headers) {
if (this.requestOptions && this.requestOptions.headers) {
return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {}));
}
return lowercaseKeys(headers || {});
}
_getExistingOrDefaultHeader(additionalHeaders, header, _default) {
let clientHeader;
if (this.requestOptions && this.requestOptions.headers) {
clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
}
return additionalHeaders[header] || clientHeader || _default;
}
_getAgent(parsedUrl) {
let agent;
const proxyUrl = pm.getProxyUrl(parsedUrl);
const useProxy = proxyUrl && proxyUrl.hostname;
if (this._keepAlive && useProxy) {
agent = this._proxyAgent;
}
if (this._keepAlive && !useProxy) {
agent = this._agent;
}
// if agent is already assigned use that agent.
if (agent) {
return agent;
}
const usingSsl = parsedUrl.protocol === 'https:';
let maxSockets = 100;
if (this.requestOptions) {
maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
}
// This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.
if (proxyUrl && proxyUrl.hostname) {
const agentOptions = {
maxSockets,
keepAlive: this._keepAlive,
proxy: Object.assign(Object.assign({}, ((proxyUrl.username || proxyUrl.password) && {
proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`
})), { host: proxyUrl.hostname, port: proxyUrl.port })
};
let tunnelAgent;
const overHttps = proxyUrl.protocol === 'https:';
if (usingSsl) {
tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
}
else {
tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
}
agent = tunnelAgent(agentOptions);
this._proxyAgent = agent;
}
// if reusing agent across request and tunneling agent isn't assigned create a new agent
if (this._keepAlive && !agent) {
const options = { keepAlive: this._keepAlive, maxSockets };
agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
this._agent = agent;
}
// if not using private agent and tunnel agent isn't setup then use global agent
if (!agent) {
agent = usingSsl ? https.globalAgent : http.globalAgent;
}
if (usingSsl && this._ignoreSslError) {
// we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
// http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
// we have to cast it to any and change it directly
agent.options = Object.assign(agent.options || {}, {
rejectUnauthorized: false
});
}
return agent;
}
_performExponentialBackoff(retryNumber) {
return __awaiter(this, void 0, void 0, function* () {
retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
return new Promise(resolve => setTimeout(() => resolve(), ms));
});
}
_processResponse(res, options) {
return __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
const statusCode = res.message.statusCode || 0;
const response = {
statusCode,
result: null,
headers: {}
};
// not found leads to null obj returned
if (statusCode === HttpCodes.NotFound) {
resolve(response);
}
// get the result from the body
function dateTimeDeserializer(key, value) {
if (typeof value === 'string') {
const a = new Date(value);
if (!isNaN(a.valueOf())) {
return a;
}
}
return value;
}
let obj;
let contents;
try {
contents = yield res.readBody();
if (contents && contents.length > 0) {
if (options && options.deserializeDates) {
obj = JSON.parse(contents, dateTimeDeserializer);
}
else {
obj = JSON.parse(contents);
}
response.result = obj;
}
response.headers = res.message.headers;
}
catch (err) {
// Invalid resource (contents not json); leaving result obj null
}
// note that 3xx redirects are handled by the http layer.
if (statusCode > 299) {
let msg;
// if exception/error in body, attempt to get better error
if (obj && obj.message) {
msg = obj.message;
}
else if (contents && contents.length > 0) {
// it may be the case that the exception is in the body message as string
msg = contents;
}
else {
msg = `Failed request: (${statusCode})`;
}
const err = new HttpClientError(msg, statusCode);
err.result = response.result;
reject(err);
}
else {
resolve(response);
}
}));
});
}
}
exports.HttpClient = HttpClient;
const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 9835:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.checkBypass = exports.getProxyUrl = void 0;
function getProxyUrl(reqUrl) {
const usingSsl = reqUrl.protocol === 'https:';
if (checkBypass(reqUrl)) {
return undefined;
}
const proxyVar = (() => {
if (usingSsl) {
return process.env['https_proxy'] || process.env['HTTPS_PROXY'];
}
else {
return process.env['http_proxy'] || process.env['HTTP_PROXY'];
}
})();
if (proxyVar) {
return new URL(proxyVar);
}
else {
return undefined;
}
}
exports.getProxyUrl = getProxyUrl;
function checkBypass(reqUrl) {
if (!reqUrl.hostname) {
return false;
}
const reqHost = reqUrl.hostname;
if (isLoopbackAddress(reqHost)) {
return true;
}
const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
if (!noProxy) {
return false;
}
// Determine the request port
let reqPort;
if (reqUrl.port) {
reqPort = Number(reqUrl.port);
}
else if (reqUrl.protocol === 'http:') {
reqPort = 80;
}
else if (reqUrl.protocol === 'https:') {
reqPort = 443;
}
// Format the request hostname and hostname with port
const upperReqHosts = [reqUrl.hostname.toUpperCase()];
if (typeof reqPort === 'number') {
upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
}
// Compare request host against noproxy
for (const upperNoProxyItem of noProxy
.split(',')
.map(x => x.trim().toUpperCase())
.filter(x => x)) {
if (upperNoProxyItem === '*' ||
upperReqHosts.some(x => x === upperNoProxyItem ||
x.endsWith(`.${upperNoProxyItem}`) ||
(upperNoProxyItem.startsWith('.') &&
x.endsWith(`${upperNoProxyItem}`)))) {
return true;
}
}
return false;
}
exports.checkBypass = checkBypass;
function isLoopbackAddress(host) {
const hostLower = host.toLowerCase();
return (hostLower === 'localhost' ||
hostLower.startsWith('127.') ||
hostLower.startsWith('[::1]') ||
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
}
//# sourceMappingURL=proxy.js.map
/***/ }),
/***/ 334:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
const REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
const REGEX_IS_INSTALLATION = /^ghs_/;
const REGEX_IS_USER_TO_SERVER = /^ghu_/;
async function auth(token) {
const isApp = token.split(/\./).length === 3;
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
return {
type: "token",
token: token,
tokenType
};
}
/**
* Prefix token for usage in the Authorization header
*
* @param token OAuth token or JSON Web Token
*/
function withAuthorizationPrefix(token) {
if (token.split(/\./).length === 3) {
return `bearer ${token}`;
}
return `token ${token}`;
}
async function hook(token, request, route, parameters) {
const endpoint = request.endpoint.merge(route, parameters);
endpoint.headers.authorization = withAuthorizationPrefix(token);
return request(endpoint);
}
const createTokenAuth = function createTokenAuth(token) {
if (!token) {
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
}
if (typeof token !== "string") {
throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
}
token = token.replace(/^(token|bearer) +/i, "");
return Object.assign(auth.bind(null, token), {
hook: hook.bind(null, token)
});
};
exports.createTokenAuth = createTokenAuth;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 6762:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
var universalUserAgent = __nccwpck_require__(5030);
var beforeAfterHook = __nccwpck_require__(3682);
var request = __nccwpck_require__(6234);
var graphql = __nccwpck_require__(8467);
var authToken = __nccwpck_require__(334);
const VERSION = "4.2.0";
class Octokit {
constructor(options = {}) {
const hook = new beforeAfterHook.Collection();
const requestDefaults = {
baseUrl: request.request.endpoint.DEFAULTS.baseUrl,
headers: {},
request: Object.assign({}, options.request, {
// @ts-ignore internal usage only, no need to type
hook: hook.bind(null, "request")
}),
mediaType: {
previews: [],
format: ""
}
}; // prepend default user agent with `options.userAgent` if set
requestDefaults.headers["user-agent"] = [options.userAgent, `octokit-core.js/${VERSION} ${universalUserAgent.getUserAgent()}`].filter(Boolean).join(" ");
if (options.baseUrl) {
requestDefaults.baseUrl = options.baseUrl;
}
if (options.previews) {
requestDefaults.mediaType.previews = options.previews;
}
if (options.timeZone) {
requestDefaults.headers["time-zone"] = options.timeZone;
}
this.request = request.request.defaults(requestDefaults);
this.graphql = graphql.withCustomRequest(this.request).defaults(requestDefaults);
this.log = Object.assign({
debug: () => {},
info: () => {},
warn: console.warn.bind(console),
error: console.error.bind(console)
}, options.log);
this.hook = hook; // (1) If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance
// is unauthenticated. The `this.auth()` method is a no-op and no request hook is registered.
// (2) If only `options.auth` is set, use the default token authentication strategy.
// (3) If `options.authStrategy` is set then use it and pass in `options.auth`. Always pass own request as many strategies accept a custom request instance.
// TODO: type `options.auth` based on `options.authStrategy`.
if (!options.authStrategy) {
if (!options.auth) {
// (1)
this.auth = async () => ({
type: "unauthenticated"
});
} else {
// (2)
const auth = authToken.createTokenAuth(options.auth); // @ts-ignore ¯\_(ツ)_/¯
hook.wrap("request", auth.hook);
this.auth = auth;
}
} else {
const {
authStrategy,
...otherOptions
} = options;
const auth = authStrategy(Object.assign({
request: this.request,
log: this.log,
// we pass the current octokit instance as well as its constructor options
// to allow for authentication strategies that return a new octokit instance
// that shares the same internal state as the current one. The original
// requirement for this was the "event-octokit" authentication strategy
// of https://github.com/probot/octokit-auth-probot.
octokit: this,
octokitOptions: otherOptions
}, options.auth)); // @ts-ignore ¯\_(ツ)_/¯
hook.wrap("request", auth.hook);
this.auth = auth;
} // apply plugins
// https://stackoverflow.com/a/16345172
const classConstructor = this.constructor;
classConstructor.plugins.forEach(plugin => {
Object.assign(this, plugin(this, options));
});
}
static defaults(defaults) {
const OctokitWithDefaults = class extends this {
constructor(...args) {
const options = args[0] || {};
if (typeof defaults === "function") {
super(defaults(options));
return;
}
super(Object.assign({}, defaults, options, options.userAgent && defaults.userAgent ? {
userAgent: `${options.userAgent} ${defaults.userAgent}`
} : null));
}
};
return OctokitWithDefaults;
}
/**
* Attach a plugin (or many) to your Octokit instance.
*
* @example
* const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
*/
static plugin(...newPlugins) {
var _a;
const currentPlugins = this.plugins;
const NewOctokit = (_a = class extends this {}, _a.plugins = currentPlugins.concat(newPlugins.filter(plugin => !currentPlugins.includes(plugin))), _a);
return NewOctokit;
}
}
Octokit.VERSION = VERSION;
Octokit.plugins = [];
exports.Octokit = Octokit;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 9440:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
var isPlainObject = __nccwpck_require__(3287);
var universalUserAgent = __nccwpck_require__(5030);
function lowercaseKeys(object) {
if (!object) {
return {};
}
return Object.keys(object).reduce((newObj, key) => {
newObj[key.toLowerCase()] = object[key];
return newObj;
}, {});
}
function mergeDeep(defaults, options) {
const result = Object.assign({}, defaults);
Object.keys(options).forEach(key => {
if (isPlainObject.isPlainObject(options[key])) {
if (!(key in defaults)) Object.assign(result, {
[key]: options[key]
});else result[key] = mergeDeep(defaults[key], options[key]);
} else {
Object.assign(result, {
[key]: options[key]
});
}
});
return result;
}
function removeUndefinedProperties(obj) {
for (const key in obj) {
if (obj[key] === undefined) {
delete obj[key];
}
}
return obj;
}
function merge(defaults, route, options) {
if (typeof route === "string") {
let [method, url] = route.split(" ");
options = Object.assign(url ? {
method,
url
} : {
url: method
}, options);
} else {
options = Object.assign({}, route);
}
// lowercase header names before merging with defaults to avoid duplicates
options.headers = lowercaseKeys(options.headers);
// remove properties with undefined values before merging
removeUndefinedProperties(options);
removeUndefinedProperties(options.headers);
const mergedOptions = mergeDeep(defaults || {}, options);
// mediaType.previews arrays are merged, instead of overwritten
if (defaults && defaults.mediaType.previews.length) {
mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(preview => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews);
}
mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(preview => preview.replace(/-preview/, ""));
return mergedOptions;
}
function addQueryParameters(url, parameters) {
const separator = /\?/.test(url) ? "&" : "?";
const names = Object.keys(parameters);
if (names.length === 0) {
return url;
}
return url + separator + names.map(name => {
if (name === "q") {
return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
}
return `${name}=${encodeURIComponent(parameters[name])}`;
}).join("&");
}
const urlVariableRegex = /\{[^}]+\}/g;
function removeNonChars(variableName) {
return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
}
function extractUrlVariableNames(url) {
const matches = url.match(urlVariableRegex);
if (!matches) {
return [];
}
return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
}
function omit(object, keysToOmit) {
return Object.keys(object).filter(option => !keysToOmit.includes(option)).reduce((obj, key) => {
obj[key] = object[key];
return obj;
}, {});
}
// Based on https://github.com/bramstein/url-template, licensed under BSD
// TODO: create separate package.
//
// Copyright (c) 2012-2014, Bram Stein
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. The name of the author may not be used to endorse or promote products
// derived from this software without specific prior written permission.
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
// EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/* istanbul ignore file */
function encodeReserved(str) {
return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) {
if (!/%[0-9A-Fa-f]/.test(part)) {
part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
}
return part;
}).join("");
}
function encodeUnreserved(str) {
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
return "%" + c.charCodeAt(0).toString(16).toUpperCase();
});
}
function encodeValue(operator, value, key) {
value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
if (key) {
return encodeUnreserved(key) + "=" + value;
} else {
return value;
}
}
function isDefined(value) {
return value !== undefined && value !== null;
}
function isKeyOperator(operator) {
return operator === ";" || operator === "&" || operator === "?";
}
function getValues(context, operator, key, modifier) {
var value = context[key],
result = [];
if (isDefined(value) && value !== "") {
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
value = value.toString();
if (modifier && modifier !== "*") {
value = value.substring(0, parseInt(modifier, 10));
}
result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
} else {
if (modifier === "*") {
if (Array.isArray(value)) {
value.filter(isDefined).forEach(function (value) {
result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
});
} else {
Object.keys(value).forEach(function (k) {
if (isDefined(value[k])) {
result.push(encodeValue(operator, value[k], k));
}
});
}
} else {
const tmp = [];
if (Array.isArray(value)) {
value.filter(isDefined).forEach(function (value) {
tmp.push(encodeValue(operator, value));
});
} else {
Object.keys(value).forEach(function (k) {
if (isDefined(value[k])) {
tmp.push(encodeUnreserved(k));
tmp.push(encodeValue(operator, value[k].toString()));
}
});
}
if (isKeyOperator(operator)) {
result.push(encodeUnreserved(key) + "=" + tmp.join(","));
} else if (tmp.length !== 0) {
result.push(tmp.join(","));
}
}
}
} else {
if (operator === ";") {
if (isDefined(value)) {
result.push(encodeUnreserved(key));
}
} else if (value === "" && (operator === "&" || operator === "?")) {
result.push(encodeUnreserved(key) + "=");
} else if (value === "") {
result.push("");
}
}
return result;
}
function parseUrl(template) {
return {
expand: expand.bind(null, template)
};
}
function expand(template, context) {
var operators = ["+", "#", ".", "/", ";", "?", "&"];
return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) {
if (expression) {
let operator = "";
const values = [];
if (operators.indexOf(expression.charAt(0)) !== -1) {
operator = expression.charAt(0);
expression = expression.substr(1);
}
expression.split(/,/g).forEach(function (variable) {
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
});
if (operator && operator !== "+") {
var separator = ",";
if (operator === "?") {
separator = "&";
} else if (operator !== "#") {
separator = operator;
}
return (values.length !== 0 ? operator : "") + values.join(separator);
} else {
return values.join(",");
}
} else {
return encodeReserved(literal);
}
});
}
function parse(options) {
// https://fetch.spec.whatwg.org/#methods
let method = options.method.toUpperCase();
// replace :varname with {varname} to make it RFC 6570 compatible
let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
let headers = Object.assign({}, options.headers);
let body;
let parameters = omit(options, ["method", "baseUrl", "url", "headers", "request", "mediaType"]);
// extract variable names from URL to calculate remaining variables later
const urlVariableNames = extractUrlVariableNames(url);
url = parseUrl(url).expand(parameters);
if (!/^http/.test(url)) {
url = options.baseUrl + url;
}
const omittedParameters = Object.keys(options).filter(option => urlVariableNames.includes(option)).concat("baseUrl");
const remainingParameters = omit(parameters, omittedParameters);
const isBinaryRequest = /application\/octet-stream/i.test(headers.accept);
if (!isBinaryRequest) {
if (options.mediaType.format) {
// e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw
headers.accept = headers.accept.split(/,/).map(preview => preview.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`)).join(",");
}
if (options.mediaType.previews.length) {
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map(preview => {
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
return `application/vnd.github.${preview}-preview${format}`;
}).join(",");
}
}
// for GET/HEAD requests, set URL query parameters from remaining parameters
// for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters
if (["GET", "HEAD"].includes(method)) {
url = addQueryParameters(url, remainingParameters);
} else {
if ("data" in remainingParameters) {
body = remainingParameters.data;
} else {
if (Object.keys(remainingParameters).length) {
body = remainingParameters;
}
}
}
// default content-type for JSON if body is set
if (!headers["content-type"] && typeof body !== "undefined") {
headers["content-type"] = "application/json; charset=utf-8";
}
// GitHub expects 'content-length: 0' header for PUT/PATCH requests without body.
// fetch does not allow to set `content-length` header, but we can set body to an empty string
if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
body = "";
}
// Only return body/request keys if present
return Object.assign({
method,
url,
headers
}, typeof body !== "undefined" ? {
body
} : null, options.request ? {
request: options.request
} : null);
}
function endpointWithDefaults(defaults, route, options) {
return parse(merge(defaults, route, options));
}
function withDefaults(oldDefaults, newDefaults) {
const DEFAULTS = merge(oldDefaults, newDefaults);
const endpoint = endpointWithDefaults.bind(null, DEFAULTS);
return Object.assign(endpoint, {
DEFAULTS,
defaults: withDefaults.bind(null, DEFAULTS),
merge: merge.bind(null, DEFAULTS),
parse
});
}
const VERSION = "7.0.5";
const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`;
// DEFAULTS has all properties set that EndpointOptions has, except url.
// So we use RequestParameters and add method as additional required property.
const DEFAULTS = {
method: "GET",
baseUrl: "https://api.github.com",
headers: {
accept: "application/vnd.github.v3+json",
"user-agent": userAgent
},
mediaType: {
format: "",
previews: []
}
};
const endpoint = withDefaults(null, DEFAULTS);
exports.endpoint = endpoint;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 8467:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
var request = __nccwpck_require__(6234);
var universalUserAgent = __nccwpck_require__(5030);
const VERSION = "5.0.5";
function _buildMessageForResponseErrors(data) {
return `Request failed due to following response errors:\n` + data.errors.map(e => ` - ${e.message}`).join("\n");
}
class GraphqlResponseError extends Error {
constructor(request, headers, response) {
super(_buildMessageForResponseErrors(response));
this.request = request;
this.headers = headers;
this.response = response;
this.name = "GraphqlResponseError";
// Expose the errors and response data in their shorthand properties.
this.errors = response.errors;
this.data = response.data;
// Maintains proper stack trace (only available on V8)
/* istanbul ignore next */
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
}
}
const NON_VARIABLE_OPTIONS = ["method", "baseUrl", "url", "headers", "request", "query", "mediaType"];
const FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
const GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
function graphql(request, query, options) {
if (options) {
if (typeof query === "string" && "query" in options) {
return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`));
}
for (const key in options) {
if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key)) continue;
return Promise.reject(new Error(`[@octokit/graphql] "${key}" cannot be used as variable name`));
}
}
const parsedOptions = typeof query === "string" ? Object.assign({
query
}, options) : query;
const requestOptions = Object.keys(parsedOptions).reduce((result, key) => {
if (NON_VARIABLE_OPTIONS.includes(key)) {
result[key] = parsedOptions[key];
return result;
}
if (!result.variables) {
result.variables = {};
}
result.variables[key] = parsedOptions[key];
return result;
}, {});
// workaround for GitHub Enterprise baseUrl set with /api/v3 suffix
// https://github.com/octokit/auth-app.js/issues/111#issuecomment-657610451
const baseUrl = parsedOptions.baseUrl || request.endpoint.DEFAULTS.baseUrl;
if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {
requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql");
}
return request(requestOptions).then(response => {
if (response.data.errors) {
const headers = {};
for (const key of Object.keys(response.headers)) {
headers[key] = response.headers[key];
}
throw new GraphqlResponseError(requestOptions, headers, response.data);
}
return response.data.data;
});
}
function withDefaults(request, newDefaults) {
const newRequest = request.defaults(newDefaults);
const newApi = (query, options) => {
return graphql(newRequest, query, options);
};
return Object.assign(newApi, {
defaults: withDefaults.bind(null, newRequest),
endpoint: newRequest.endpoint
});
}
const graphql$1 = withDefaults(request.request, {
headers: {
"user-agent": `octokit-graphql.js/${VERSION} ${universalUserAgent.getUserAgent()}`
},
method: "POST",
url: "/graphql"
});
function withCustomRequest(customRequest) {
return withDefaults(customRequest, {
method: "POST",
url: "/graphql"
});
}
exports.GraphqlResponseError = GraphqlResponseError;
exports.graphql = graphql$1;
exports.withCustomRequest = withCustomRequest;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 4193:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
const VERSION = "6.0.0";
/**
* Some “list” response that can be paginated have a different response structure
*
* They have a `total_count` key in the response (search also has `incomplete_results`,
* /installation/repositories also has `repository_selection`), as well as a key with
* the list of the items which name varies from endpoint to endpoint.
*
* Octokit normalizes these responses so that paginated results are always returned following
* the same structure. One challenge is that if the list response has only one page, no Link
* header is provided, so this header alone is not sufficient to check wether a response is
* paginated or not.
*
* We check if a "total_count" key is present in the response data, but also make sure that
* a "url" property is not, as the "Get the combined status for a specific ref" endpoint would
* otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref
*/
function normalizePaginatedListResponse(response) {
// endpoints can respond with 204 if repository is empty
if (!response.data) {
return {
...response,
data: []
};
}
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
if (!responseNeedsNormalization) return response;
// keep the additional properties intact as there is currently no other way
// to retrieve the same information.
const incompleteResults = response.data.incomplete_results;
const repositorySelection = response.data.repository_selection;
const totalCount = response.data.total_count;
delete response.data.incomplete_results;
delete response.data.repository_selection;
delete response.data.total_count;
const namespaceKey = Object.keys(response.data)[0];
const data = response.data[namespaceKey];
response.data = data;
if (typeof incompleteResults !== "undefined") {
response.data.incomplete_results = incompleteResults;
}
if (typeof repositorySelection !== "undefined") {
response.data.repository_selection = repositorySelection;
}
response.data.total_count = totalCount;
return response;
}
function iterator(octokit, route, parameters) {
const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
const requestMethod = typeof route === "function" ? route : octokit.request;
const method = options.method;
const headers = options.headers;
let url = options.url;
return {
[Symbol.asyncIterator]: () => ({
async next() {
if (!url) return {
done: true
};
try {
const response = await requestMethod({
method,
url,
headers
});
const normalizedResponse = normalizePaginatedListResponse(response);
// `response.headers.link` format:
// '<https://api.github.com/users/aseemk/followers?page=2>; rel="next", <https://api.github.com/users/aseemk/followers?page=2>; rel="last"'
// sets `url` to undefined if "next" URL is not present or `link` header is not set
url = ((normalizedResponse.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
return {
value: normalizedResponse
};
} catch (error) {
if (error.status !== 409) throw error;
url = "";
return {
value: {
status: 200,
headers: {},
data: []
}
};
}
}
})
};
}
function paginate(octokit, route, parameters, mapFn) {
if (typeof parameters === "function") {
mapFn = parameters;
parameters = undefined;
}
return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);
}
function gather(octokit, results, iterator, mapFn) {
return iterator.next().then(result => {
if (result.done) {
return results;
}
let earlyExit = false;
function done() {
earlyExit = true;
}
results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);
if (earlyExit) {
return results;
}
return gather(octokit, results, iterator, mapFn);
});
}
const composePaginateRest = Object.assign(paginate, {
iterator
});
const paginatingEndpoints = ["GET /app/hook/deliveries", "GET /app/installations", "GET /enterprises/{enterprise}/actions/runner-groups", "GET /enterprises/{enterprise}/dependabot/alerts", "GET /enterprises/{enterprise}/secret-scanning/alerts", "GET /events", "GET /gists", "GET /gists/public", "GET /gists/starred", "GET /gists/{gist_id}/comments", "GET /gists/{gist_id}/commits", "GET /gists/{gist_id}/forks", "GET /installation/repositories", "GET /issues", "GET /licenses", "GET /marketplace_listing/plans", "GET /marketplace_listing/plans/{plan_id}/accounts", "GET /marketplace_listing/stubbed/plans", "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts", "GET /networks/{owner}/{repo}/events", "GET /notifications", "GET /organizations", "GET /orgs/{org}/actions/cache/usage-by-repository", "GET /orgs/{org}/actions/permissions/repositories", "GET /orgs/{org}/actions/required_workflows", "GET /orgs/{org}/actions/runner-groups", "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories", "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners", "GET /orgs/{org}/actions/runners", "GET /orgs/{org}/actions/secrets", "GET /orgs/{org}/actions/secrets/{secret_name}/repositories", "GET /orgs/{org}/actions/variables", "GET /orgs/{org}/actions/variables/{name}/repositories", "GET /orgs/{org}/blocks", "GET /orgs/{org}/code-scanning/alerts", "GET /orgs/{org}/codespaces", "GET /orgs/{org}/codespaces/secrets", "GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories", "GET /orgs/{org}/dependabot/alerts", "GET /orgs/{org}/dependabot/secrets", "GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories", "GET /orgs/{org}/events", "GET /orgs/{org}/failed_invitations", "GET /orgs/{org}/hooks", "GET /orgs/{org}/hooks/{hook_id}/deliveries", "GET /orgs/{org}/installations", "GET /orgs/{org}/invitations", "GET /orgs/{org}/invitations/{invitation_id}/teams", "GET /orgs/{org}/issues", "GET /orgs/{org}/members", "GET /orgs/{org}/members/{username}/codespaces", "GET /orgs/{org}/migrations", "GET /orgs/{org}/migrations/{migration_id}/repositories", "GET /orgs/{org}/outside_collaborators", "GET /orgs/{org}/packages", "GET /orgs/{org}/packages/{package_type}/{package_name}/versions", "GET /orgs/{org}/projects", "GET /orgs/{org}/public_members", "GET /orgs/{org}/repos", "GET /orgs/{org}/secret-scanning/alerts", "GET /orgs/{org}/teams", "GET /orgs/{org}/teams/{team_slug}/discussions", "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", "GET /orgs/{org}/teams/{team_slug}/invitations", "GET /orgs/{org}/teams/{team_slug}/members", "GET /orgs/{org}/teams/{team_slug}/projects", "GET /orgs/{org}/teams/{team_slug}/repos", "GET /orgs/{org}/teams/{team_slug}/teams", "GET /projects/columns/{column_id}/cards", "GET /projects/{project_id}/collaborators", "GET /projects/{project_id}/columns", "GET /repos/{org}/{repo}/actions/required_workflows", "GET /repos/{owner}/{repo}/actions/artifacts", "GET /repos/{owner}/{repo}/actions/caches", "GET /repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs", "GET /repos/{owner}/{repo}/actions/runners", "GET /repos/{owner}/{repo}/actions/runs", "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs", "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs", "GET /repos/{owner}/{repo}/actions/secrets", "GET /repos/{owner}/{repo}/actions/variables", "GET /repos/{owner}/{repo}/actions/workflows", "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs", "GET /repos/{owner}/{repo}/assignees", "GET /repos/{owner}/{repo}/branches", "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations", "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs", "GET /repos/{owner}/{repo}/code-scanning/alerts", "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances", "GET /repos/{owner}/{repo}/code-scanning/analyses", "GET /repos/{owner}/{repo}/codespaces", "GET /repos/{owner}/{repo}/codespaces/devcontainers", "GET /repos/{owner}/{repo}/codespaces/secrets", "GET /repos/{owner}/{repo}/collaborators", "GET /repos/{owner}/{repo}/comments", "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions", "GET /repos/{owner}/{repo}/commits", "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments", "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls", "GET /repos/{owner}/{repo}/commits/{ref}/check-runs", "GET /repos/{owner}/{repo}/commits/{ref}/check-suites", "GET /repos/{owner}/{repo}/commits/{ref}/status", "GET /repos/{owner}/{repo}/commits/{ref}/statuses", "GET /repos/{owner}/{repo}/contributors", "GET /repos/{owner}/{repo}/dependabot/alerts", "GET /repos/{owner}/{repo}/dependabot/secrets", "GET /repos/{owner}/{repo}/deployments", "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "GET /repos/{owner}/{repo}/environments", "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies", "GET /repos/{owner}/{repo}/events", "GET /repos/{owner}/{repo}/forks", "GET /repos/{owner}/{repo}/hooks", "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries", "GET /repos/{owner}/{repo}/invitations", "GET /repos/{owner}/{repo}/issues", "GET /repos/{owner}/{repo}/issues/comments", "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", "GET /repos/{owner}/{repo}/issues/events", "GET /repos/{owner}/{repo}/issues/{issue_number}/comments", "GET /repos/{owner}/{repo}/issues/{issue_number}/events", "GET /repos/{owner}/{repo}/issues/{issue_number}/labels", "GET /repos/{owner}/{repo}/issues/{issue_number}/reactions", "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline", "GET /repos/{owner}/{repo}/keys", "GET /repos/{owner}/{repo}/labels", "GET /repos/{owner}/{repo}/milestones", "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels", "GET /repos/{owner}/{repo}/notifications", "GET /repos/{owner}/{repo}/pages/builds", "GET /repos/{owner}/{repo}/projects", "GET /repos/{owner}/{repo}/pulls", "GET /repos/{owner}/{repo}/pulls/comments", "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments", "GET /repos/{owner}/{repo}/pulls/{pull_number}/commits", "GET /repos/{owner}/{repo}/pulls/{pull_number}/files", "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews", "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments", "GET /repos/{owner}/{repo}/releases", "GET /repos/{owner}/{repo}/releases/{release_id}/assets", "GET /repos/{owner}/{repo}/releases/{release_id}/reactions", "GET /repos/{owner}/{repo}/secret-scanning/alerts", "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations", "GET /repos/{owner}/{repo}/stargazers", "GET /repos/{owner}/{repo}/subscribers", "GET /repos/{owner}/{repo}/tags", "GET /repos/{owner}/{repo}/teams", "GET /repos/{owner}/{repo}/topics", "GET /repositories", "GET /repositories/{repository_id}/environments/{environment_name}/secrets", "GET /repositories/{repository_id}/environments/{environment_name}/variables", "GET /search/code", "GET /search/commits", "GET /search/issues", "GET /search/labels", "GET /search/repositories", "GET /search/topics", "GET /search/users", "GET /teams/{team_id}/discussions", "GET /teams/{team_id}/discussions/{discussion_number}/comments", "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", "GET /teams/{team_id}/discussions/{discussion_number}/reactions", "GET /teams/{team_id}/invitations", "GET /teams/{team_id}/members", "GET /teams/{team_id}/projects", "GET /teams/{team_id}/repos", "GET /teams/{team_id}/teams", "GET /user/blocks", "GET /user/codespaces", "GET /user/codespaces/secrets", "GET /user/emails", "GET /user/followers", "GET /user/following", "GET /user/gpg_keys", "GET /user/installations", "GET /user/installations/{installation_id}/repositories", "GET /user/issues", "GET /user/keys", "GET /user/marketplace_purchases", "GET /user/marketplace_purchases/stubbed", "GET /user/memberships/orgs", "GET /user/migrations", "GET /user/migrations/{migration_id}/repositories", "GET /user/orgs", "GET /user/packages", "GET /user/packages/{package_type}/{package_name}/versions", "GET /user/public_emails", "GET /user/repos", "GET /user/repository_invitations", "GET /user/ssh_signing_keys", "GET /user/starred", "GET /user/subscriptions", "GET /user/teams", "GET /users", "GET /users/{username}/events", "GET /users/{username}/events/orgs/{org}", "GET /users/{username}/events/public", "GET /users/{username}/followers", "GET /users/{username}/following", "GET /users/{username}/gists", "GET /users/{username}/gpg_keys", "GET /users/{username}/keys", "GET /users/{username}/orgs", "GET /users/{username}/packages", "GET /users/{username}/projects", "GET /users/{username}/received_events", "GET /users/{username}/received_events/public", "GET /users/{username}/repos", "GET /users/{username}/ssh_signing_keys", "GET /users/{username}/starred", "GET /users/{username}/subscriptions"];
function isPaginatingEndpoint(arg) {
if (typeof arg === "string") {
return paginatingEndpoints.includes(arg);
} else {
return false;
}
}
/**
* @param octokit Octokit instance
* @param options Options passed to Octokit constructor
*/
function paginateRest(octokit) {
return {
paginate: Object.assign(paginate.bind(null, octokit), {
iterator: iterator.bind(null, octokit)
})
};
}
paginateRest.VERSION = VERSION;
exports.composePaginateRest = composePaginateRest;
exports.isPaginatingEndpoint = isPaginatingEndpoint;
exports.paginateRest = paginateRest;
exports.paginatingEndpoints = paginatingEndpoints;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 8883:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
const VERSION = "1.0.4";
/**
* @param octokit Octokit instance
* @param options Options passed to Octokit constructor
*/
function requestLog(octokit) {
octokit.hook.wrap("request", (request, options) => {
octokit.log.debug("request", options);
const start = Date.now();
const requestOptions = octokit.request.endpoint.parse(options);
const path = requestOptions.url.replace(options.baseUrl, "");
return request(options).then(response => {
octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);
return response;
}).catch(error => {
octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`);
throw error;
});
});
}
requestLog.VERSION = VERSION;
exports.requestLog = requestLog;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 3044:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
const Endpoints = {
actions: {
addCustomLabelsToSelfHostedRunnerForOrg: ["POST /orgs/{org}/actions/runners/{runner_id}/labels"],
addCustomLabelsToSelfHostedRunnerForRepo: ["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],
addSelectedRepoToOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],
addSelectedRepoToOrgVariable: ["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],
addSelectedRepoToRequiredWorkflow: ["PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"],
approveWorkflowRun: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],
cancelWorkflowRun: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],
createEnvironmentVariable: ["POST /repositories/{repository_id}/environments/{environment_name}/variables"],
createOrUpdateEnvironmentSecret: ["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],
createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"],
createOrUpdateRepoSecret: ["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
createOrgVariable: ["POST /orgs/{org}/actions/variables"],
createRegistrationTokenForOrg: ["POST /orgs/{org}/actions/runners/registration-token"],
createRegistrationTokenForRepo: ["POST /repos/{owner}/{repo}/actions/runners/registration-token"],
createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"],
createRemoveTokenForRepo: ["POST /repos/{owner}/{repo}/actions/runners/remove-token"],
createRepoVariable: ["POST /repos/{owner}/{repo}/actions/variables"],
createRequiredWorkflow: ["POST /orgs/{org}/actions/required_workflows"],
createWorkflowDispatch: ["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],
deleteActionsCacheById: ["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],
deleteActionsCacheByKey: ["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],
deleteArtifact: ["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
deleteEnvironmentSecret: ["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],
deleteEnvironmentVariable: ["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],
deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
deleteRepoSecret: ["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
deleteRepoVariable: ["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],
deleteRequiredWorkflow: ["DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}"],
deleteSelfHostedRunnerFromOrg: ["DELETE /orgs/{org}/actions/runners/{runner_id}"],
deleteSelfHostedRunnerFromRepo: ["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],
deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],
deleteWorkflowRunLogs: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],
disableSelectedRepositoryGithubActionsOrganization: ["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],
disableWorkflow: ["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],
downloadArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],
downloadJobLogsForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],
downloadWorkflowRunAttemptLogs: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],
downloadWorkflowRunLogs: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],
enableSelectedRepositoryGithubActionsOrganization: ["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],
enableWorkflow: ["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],
getActionsCacheList: ["GET /repos/{owner}/{repo}/actions/caches"],
getActionsCacheUsage: ["GET /repos/{owner}/{repo}/actions/cache/usage"],
getActionsCacheUsageByRepoForOrg: ["GET /orgs/{org}/actions/cache/usage-by-repository"],
getActionsCacheUsageForOrg: ["GET /orgs/{org}/actions/cache/usage"],
getAllowedActionsOrganization: ["GET /orgs/{org}/actions/permissions/selected-actions"],
getAllowedActionsRepository: ["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
getEnvironmentPublicKey: ["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],
getEnvironmentSecret: ["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],
getEnvironmentVariable: ["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],
getGithubActionsDefaultWorkflowPermissionsOrganization: ["GET /orgs/{org}/actions/permissions/workflow"],
getGithubActionsDefaultWorkflowPermissionsRepository: ["GET /repos/{owner}/{repo}/actions/permissions/workflow"],
getGithubActionsPermissionsOrganization: ["GET /orgs/{org}/actions/permissions"],
getGithubActionsPermissionsRepository: ["GET /repos/{owner}/{repo}/actions/permissions"],
getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
getOrgVariable: ["GET /orgs/{org}/actions/variables/{name}"],
getPendingDeploymentsForRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],
getRepoPermissions: ["GET /repos/{owner}/{repo}/actions/permissions", {}, {
renamed: ["actions", "getGithubActionsPermissionsRepository"]
}],
getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"],
getRepoRequiredWorkflow: ["GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}"],
getRepoRequiredWorkflowUsage: ["GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing"],
getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
getRepoVariable: ["GET /repos/{owner}/{repo}/actions/variables/{name}"],
getRequiredWorkflow: ["GET /orgs/{org}/actions/required_workflows/{required_workflow_id}"],
getReviewsForRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],
getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"],
getSelfHostedRunnerForRepo: ["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],
getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
getWorkflowAccessToRepository: ["GET /repos/{owner}/{repo}/actions/permissions/access"],
getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
getWorkflowRunAttempt: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],
getWorkflowRunUsage: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],
getWorkflowUsage: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],
listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
listEnvironmentSecrets: ["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],
listEnvironmentVariables: ["GET /repositories/{repository_id}/environments/{environment_name}/variables"],
listJobsForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],
listJobsForWorkflowRunAttempt: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],
listLabelsForSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}/labels"],
listLabelsForSelfHostedRunnerForRepo: ["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],
listOrgSecrets: ["GET /orgs/{org}/actions/secrets"],
listOrgVariables: ["GET /orgs/{org}/actions/variables"],
listRepoRequiredWorkflows: ["GET /repos/{org}/{repo}/actions/required_workflows"],
listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"],
listRepoVariables: ["GET /repos/{owner}/{repo}/actions/variables"],
listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"],
listRequiredWorkflowRuns: ["GET /repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs"],
listRequiredWorkflows: ["GET /orgs/{org}/actions/required_workflows"],
listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"],
listRunnerApplicationsForRepo: ["GET /repos/{owner}/{repo}/actions/runners/downloads"],
listSelectedReposForOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],
listSelectedReposForOrgVariable: ["GET /orgs/{org}/actions/variables/{name}/repositories"],
listSelectedRepositoriesEnabledGithubActionsOrganization: ["GET /orgs/{org}/actions/permissions/repositories"],
listSelectedRepositoriesRequiredWorkflow: ["GET /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"],
listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"],
listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"],
listWorkflowRunArtifacts: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],
listWorkflowRuns: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],
listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"],
reRunJobForWorkflowRun: ["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],
reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],
reRunWorkflowFailedJobs: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],
removeAllCustomLabelsFromSelfHostedRunnerForOrg: ["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],
removeAllCustomLabelsFromSelfHostedRunnerForRepo: ["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],
removeCustomLabelFromSelfHostedRunnerForOrg: ["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],
removeCustomLabelFromSelfHostedRunnerForRepo: ["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],
removeSelectedRepoFromOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],
removeSelectedRepoFromOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],
removeSelectedRepoFromRequiredWorkflow: ["DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"],
reviewPendingDeploymentsForRun: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],
setAllowedActionsOrganization: ["PUT /orgs/{org}/actions/permissions/selected-actions"],
setAllowedActionsRepository: ["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],
setCustomLabelsForSelfHostedRunnerForOrg: ["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],
setCustomLabelsForSelfHostedRunnerForRepo: ["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],
setGithubActionsDefaultWorkflowPermissionsOrganization: ["PUT /orgs/{org}/actions/permissions/workflow"],
setGithubActionsDefaultWorkflowPermissionsRepository: ["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],
setGithubActionsPermissionsOrganization: ["PUT /orgs/{org}/actions/permissions"],
setGithubActionsPermissionsRepository: ["PUT /repos/{owner}/{repo}/actions/permissions"],
setSelectedReposForOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],
setSelectedReposForOrgVariable: ["PUT /orgs/{org}/actions/variables/{name}/repositories"],
setSelectedReposToRequiredWorkflow: ["PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"],
setSelectedRepositoriesEnabledGithubActionsOrganization: ["PUT /orgs/{org}/actions/permissions/repositories"],
setWorkflowAccessToRepository: ["PUT /repos/{owner}/{repo}/actions/permissions/access"],
updateEnvironmentVariable: ["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],
updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
updateRepoVariable: ["PATCH /repos/{owner}/{repo}/actions/variables/{name}"],
updateRequiredWorkflow: ["PATCH /orgs/{org}/actions/required_workflows/{required_workflow_id}"]
},
activity: {
checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"],
deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"],
deleteThreadSubscription: ["DELETE /notifications/threads/{thread_id}/subscription"],
getFeeds: ["GET /feeds"],
getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"],
getThread: ["GET /notifications/threads/{thread_id}"],
getThreadSubscriptionForAuthenticatedUser: ["GET /notifications/threads/{thread_id}/subscription"],
listEventsForAuthenticatedUser: ["GET /users/{username}/events"],
listNotificationsForAuthenticatedUser: ["GET /notifications"],
listOrgEventsForAuthenticatedUser: ["GET /users/{username}/events/orgs/{org}"],
listPublicEvents: ["GET /events"],
listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"],
listPublicEventsForUser: ["GET /users/{username}/events/public"],
listPublicOrgEvents: ["GET /orgs/{org}/events"],
listReceivedEventsForUser: ["GET /users/{username}/received_events"],
listReceivedPublicEventsForUser: ["GET /users/{username}/received_events/public"],
listRepoEvents: ["GET /repos/{owner}/{repo}/events"],
listRepoNotificationsForAuthenticatedUser: ["GET /repos/{owner}/{repo}/notifications"],
listReposStarredByAuthenticatedUser: ["GET /user/starred"],
listReposStarredByUser: ["GET /users/{username}/starred"],
listReposWatchedByUser: ["GET /users/{username}/subscriptions"],
listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"],
listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"],
listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"],
markNotificationsAsRead: ["PUT /notifications"],
markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"],
markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"],
setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"],
setThreadSubscription: ["PUT /notifications/threads/{thread_id}/subscription"],
starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"],
unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"]
},
apps: {
addRepoToInstallation: ["PUT /user/installations/{installation_id}/repositories/{repository_id}", {}, {
renamed: ["apps", "addRepoToInstallationForAuthenticatedUser"]
}],
addRepoToInstallationForAuthenticatedUser: ["PUT /user/installations/{installation_id}/repositories/{repository_id}"],
checkToken: ["POST /applications/{client_id}/token"],
createFromManifest: ["POST /app-manifests/{code}/conversions"],
createInstallationAccessToken: ["POST /app/installations/{installation_id}/access_tokens"],
deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
deleteInstallation: ["DELETE /app/installations/{installation_id}"],
deleteToken: ["DELETE /applications/{client_id}/token"],
getAuthenticated: ["GET /app"],
getBySlug: ["GET /apps/{app_slug}"],
getInstallation: ["GET /app/installations/{installation_id}"],
getOrgInstallation: ["GET /orgs/{org}/installation"],
getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"],
getSubscriptionPlanForAccount: ["GET /marketplace_listing/accounts/{account_id}"],
getSubscriptionPlanForAccountStubbed: ["GET /marketplace_listing/stubbed/accounts/{account_id}"],
getUserInstallation: ["GET /users/{username}/installation"],
getWebhookConfigForApp: ["GET /app/hook/config"],
getWebhookDelivery: ["GET /app/hook/deliveries/{delivery_id}"],
listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
listAccountsForPlanStubbed: ["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],
listInstallationReposForAuthenticatedUser: ["GET /user/installations/{installation_id}/repositories"],
listInstallations: ["GET /app/installations"],
listInstallationsForAuthenticatedUser: ["GET /user/installations"],
listPlans: ["GET /marketplace_listing/plans"],
listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],
listReposAccessibleToInstallation: ["GET /installation/repositories"],
listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
listSubscriptionsForAuthenticatedUserStubbed: ["GET /user/marketplace_purchases/stubbed"],
listWebhookDeliveries: ["GET /app/hook/deliveries"],
redeliverWebhookDelivery: ["POST /app/hook/deliveries/{delivery_id}/attempts"],
removeRepoFromInstallation: ["DELETE /user/installations/{installation_id}/repositories/{repository_id}", {}, {
renamed: ["apps", "removeRepoFromInstallationForAuthenticatedUser"]
}],
removeRepoFromInstallationForAuthenticatedUser: ["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],
resetToken: ["PATCH /applications/{client_id}/token"],
revokeInstallationAccessToken: ["DELETE /installation/token"],
scopeToken: ["POST /applications/{client_id}/token/scoped"],
suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"],
unsuspendInstallation: ["DELETE /app/installations/{installation_id}/suspended"],
updateWebhookConfigForApp: ["PATCH /app/hook/config"]
},
billing: {
getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"],
getGithubActionsBillingUser: ["GET /users/{username}/settings/billing/actions"],
getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
getGithubPackagesBillingUser: ["GET /users/{username}/settings/billing/packages"],
getSharedStorageBillingOrg: ["GET /orgs/{org}/settings/billing/shared-storage"],
getSharedStorageBillingUser: ["GET /users/{username}/settings/billing/shared-storage"]
},
checks: {
create: ["POST /repos/{owner}/{repo}/check-runs"],
createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],
getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],
listAnnotations: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],
listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],
listForSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],
listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],
rerequestRun: ["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],
rerequestSuite: ["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],
setSuitesPreferences: ["PATCH /repos/{owner}/{repo}/check-suites/preferences"],
update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]
},
codeScanning: {
deleteAnalysis: ["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],
getAlert: ["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", {}, {
renamedParameters: {
alert_id: "alert_number"
}
}],
getAnalysis: ["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],
getCodeqlDatabase: ["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],
getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],
listAlertInstances: ["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],
listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"],
listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"],
listAlertsInstances: ["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances", {}, {
renamed: ["codeScanning", "listAlertInstances"]
}],
listCodeqlDatabases: ["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],
listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
updateAlert: ["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],
uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
},
codesOfConduct: {
getAllCodesOfConduct: ["GET /codes_of_conduct"],
getConductCode: ["GET /codes_of_conduct/{key}"]
},
codespaces: {
addRepositoryForSecretForAuthenticatedUser: ["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],
addSelectedRepoToOrgSecret: ["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],
codespaceMachinesForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}/machines"],
createForAuthenticatedUser: ["POST /user/codespaces"],
createOrUpdateOrgSecret: ["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],
createOrUpdateRepoSecret: ["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],
createOrUpdateSecretForAuthenticatedUser: ["PUT /user/codespaces/secrets/{secret_name}"],
createWithPrForAuthenticatedUser: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],
createWithRepoForAuthenticatedUser: ["POST /repos/{owner}/{repo}/codespaces"],
deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"],
deleteFromOrganization: ["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],
deleteOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],
deleteRepoSecret: ["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],
deleteSecretForAuthenticatedUser: ["DELETE /user/codespaces/secrets/{secret_name}"],
exportForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/exports"],
getCodespacesForUserInOrg: ["GET /orgs/{org}/members/{username}/codespaces"],
getExportDetailsForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}/exports/{export_id}"],
getForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}"],
getOrgPublicKey: ["GET /orgs/{org}/codespaces/secrets/public-key"],
getOrgSecret: ["GET /orgs/{org}/codespaces/secrets/{secret_name}"],
getPublicKeyForAuthenticatedUser: ["GET /user/codespaces/secrets/public-key"],
getRepoPublicKey: ["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],
getRepoSecret: ["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],
getSecretForAuthenticatedUser: ["GET /user/codespaces/secrets/{secret_name}"],
listDevcontainersInRepositoryForAuthenticatedUser: ["GET /repos/{owner}/{repo}/codespaces/devcontainers"],
listForAuthenticatedUser: ["GET /user/codespaces"],
listInOrganization: ["GET /orgs/{org}/codespaces", {}, {
renamedParameters: {
org_id: "org"
}
}],
listInRepositoryForAuthenticatedUser: ["GET /repos/{owner}/{repo}/codespaces"],
listOrgSecrets: ["GET /orgs/{org}/codespaces/secrets"],
listRepoSecrets: ["GET /repos/{owner}/{repo}/codespaces/secrets"],
listRepositoriesForSecretForAuthenticatedUser: ["GET /user/codespaces/secrets/{secret_name}/repositories"],
listSecretsForAuthenticatedUser: ["GET /user/codespaces/secrets"],
listSelectedReposForOrgSecret: ["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],
preFlightWithRepoForAuthenticatedUser: ["GET /repos/{owner}/{repo}/codespaces/new"],
publishForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/publish"],
removeRepositoryForSecretForAuthenticatedUser: ["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],
removeSelectedRepoFromOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],
repoMachinesForAuthenticatedUser: ["GET /repos/{owner}/{repo}/codespaces/machines"],
setCodespacesBilling: ["PUT /orgs/{org}/codespaces/billing"],
setRepositoriesForSecretForAuthenticatedUser: ["PUT /user/codespaces/secrets/{secret_name}/repositories"],
setSelectedReposForOrgSecret: ["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],
startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"],
stopForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/stop"],
stopInOrganization: ["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],
updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"]
},
dependabot: {
addSelectedRepoToOrgSecret: ["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],
createOrUpdateOrgSecret: ["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],
createOrUpdateRepoSecret: ["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],
deleteOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],
deleteRepoSecret: ["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],
getAlert: ["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],
getOrgPublicKey: ["GET /orgs/{org}/dependabot/secrets/public-key"],
getOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}"],
getRepoPublicKey: ["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],
getRepoSecret: ["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],
listAlertsForEnterprise: ["GET /enterprises/{enterprise}/dependabot/alerts"],
listAlertsForOrg: ["GET /orgs/{org}/dependabot/alerts"],
listAlertsForRepo: ["GET /repos/{owner}/{repo}/dependabot/alerts"],
listOrgSecrets: ["GET /orgs/{org}/dependabot/secrets"],
listRepoSecrets: ["GET /repos/{owner}/{repo}/dependabot/secrets"],
listSelectedReposForOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],
removeSelectedRepoFromOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],
setSelectedReposForOrgSecret: ["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],
updateAlert: ["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]
},
dependencyGraph: {
createRepositorySnapshot: ["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],
diffRange: ["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"]
},
emojis: {
get: ["GET /emojis"]
},
enterpriseAdmin: {
addCustomLabelsToSelfHostedRunnerForEnterprise: ["POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],
enableSelectedOrganizationGithubActionsEnterprise: ["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],
listLabelsForSelfHostedRunnerForEnterprise: ["GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels"]
},
gists: {
checkIsStarred: ["GET /gists/{gist_id}/star"],
create: ["POST /gists"],
createComment: ["POST /gists/{gist_id}/comments"],
delete: ["DELETE /gists/{gist_id}"],
deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"],
fork: ["POST /gists/{gist_id}/forks"],
get: ["GET /gists/{gist_id}"],
getComment: ["GET /gists/{gist_id}/comments/{comment_id}"],
getRevision: ["GET /gists/{gist_id}/{sha}"],
list: ["GET /gists"],
listComments: ["GET /gists/{gist_id}/comments"],
listCommits: ["GET /gists/{gist_id}/commits"],
listForUser: ["GET /users/{username}/gists"],
listForks: ["GET /gists/{gist_id}/forks"],
listPublic: ["GET /gists/public"],
listStarred: ["GET /gists/starred"],
star: ["PUT /gists/{gist_id}/star"],
unstar: ["DELETE /gists/{gist_id}/star"],
update: ["PATCH /gists/{gist_id}"],
updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"]
},
git: {
createBlob: ["POST /repos/{owner}/{repo}/git/blobs"],
createCommit: ["POST /repos/{owner}/{repo}/git/commits"],
createRef: ["POST /repos/{owner}/{repo}/git/refs"],
createTag: ["POST /repos/{owner}/{repo}/git/tags"],
createTree: ["POST /repos/{owner}/{repo}/git/trees"],
deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],
getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],
getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],
getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"],
getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],
getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],
listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],
updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]
},
gitignore: {
getAllTemplates: ["GET /gitignore/templates"],
getTemplate: ["GET /gitignore/templates/{name}"]
},
interactions: {
getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"],
getRestrictionsForYourPublicRepos: ["GET /user/interaction-limits", {}, {
renamed: ["interactions", "getRestrictionsForAuthenticatedUser"]
}],
removeRestrictionsForAuthenticatedUser: ["DELETE /user/interaction-limits"],
removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"],
removeRestrictionsForRepo: ["DELETE /repos/{owner}/{repo}/interaction-limits"],
removeRestrictionsForYourPublicRepos: ["DELETE /user/interaction-limits", {}, {
renamed: ["interactions", "removeRestrictionsForAuthenticatedUser"]
}],
setRestrictionsForAuthenticatedUser: ["PUT /user/interaction-limits"],
setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"],
setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"],
setRestrictionsForYourPublicRepos: ["PUT /user/interaction-limits", {}, {
renamed: ["interactions", "setRestrictionsForAuthenticatedUser"]
}]
},
issues: {
addAssignees: ["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],
addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"],
checkUserCanBeAssignedToIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],
create: ["POST /repos/{owner}/{repo}/issues"],
createComment: ["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],
createLabel: ["POST /repos/{owner}/{repo}/labels"],
createMilestone: ["POST /repos/{owner}/{repo}/milestones"],
deleteComment: ["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],
deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"],
deleteMilestone: ["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],
get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"],
getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],
getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"],
getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],
list: ["GET /issues"],
listAssignees: ["GET /repos/{owner}/{repo}/assignees"],
listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],
listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
listEventsForTimeline: ["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],
listForAuthenticatedUser: ["GET /user/issues"],
listForOrg: ["GET /orgs/{org}/issues"],
listForRepo: ["GET /repos/{owner}/{repo}/issues"],
listLabelsForMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],
listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"],
listLabelsOnIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],
listMilestones: ["GET /repos/{owner}/{repo}/milestones"],
lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
removeAllLabels: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],
removeAssignees: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],
removeLabel: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],
setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],
update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],
updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],
updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"],
updateMilestone: ["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]
},
licenses: {
get: ["GET /licenses/{license}"],
getAllCommonlyUsed: ["GET /licenses"],
getForRepo: ["GET /repos/{owner}/{repo}/license"]
},
markdown: {
render: ["POST /markdown"],
renderRaw: ["POST /markdown/raw", {
headers: {
"content-type": "text/plain; charset=utf-8"
}
}]
},
meta: {
get: ["GET /meta"],
getAllVersions: ["GET /versions"],
getOctocat: ["GET /octocat"],
getZen: ["GET /zen"],
root: ["GET /"]
},
migrations: {
cancelImport: ["DELETE /repos/{owner}/{repo}/import"],
deleteArchiveForAuthenticatedUser: ["DELETE /user/migrations/{migration_id}/archive"],
deleteArchiveForOrg: ["DELETE /orgs/{org}/migrations/{migration_id}/archive"],
downloadArchiveForOrg: ["GET /orgs/{org}/migrations/{migration_id}/archive"],
getArchiveForAuthenticatedUser: ["GET /user/migrations/{migration_id}/archive"],
getCommitAuthors: ["GET /repos/{owner}/{repo}/import/authors"],
getImportStatus: ["GET /repos/{owner}/{repo}/import"],
getLargeFiles: ["GET /repos/{owner}/{repo}/import/large_files"],
getStatusForAuthenticatedUser: ["GET /user/migrations/{migration_id}"],
getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"],
listForAuthenticatedUser: ["GET /user/migrations"],
listForOrg: ["GET /orgs/{org}/migrations"],
listReposForAuthenticatedUser: ["GET /user/migrations/{migration_id}/repositories"],
listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"],
listReposForUser: ["GET /user/migrations/{migration_id}/repositories", {}, {
renamed: ["migrations", "listReposForAuthenticatedUser"]
}],
mapCommitAuthor: ["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],
setLfsPreference: ["PATCH /repos/{owner}/{repo}/import/lfs"],
startForAuthenticatedUser: ["POST /user/migrations"],
startForOrg: ["POST /orgs/{org}/migrations"],
startImport: ["PUT /repos/{owner}/{repo}/import"],
unlockRepoForAuthenticatedUser: ["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],
unlockRepoForOrg: ["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],
updateImport: ["PATCH /repos/{owner}/{repo}/import"]
},
orgs: {
addSecurityManagerTeam: ["PUT /orgs/{org}/security-managers/teams/{team_slug}"],
blockUser: ["PUT /orgs/{org}/blocks/{username}"],
cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"],
checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"],
checkMembershipForUser: ["GET /orgs/{org}/members/{username}"],
checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"],
convertMemberToOutsideCollaborator: ["PUT /orgs/{org}/outside_collaborators/{username}"],
createInvitation: ["POST /orgs/{org}/invitations"],
createWebhook: ["POST /orgs/{org}/hooks"],
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
enableOrDisableSecurityProductOnAllOrgRepos: ["POST /orgs/{org}/{security_product}/{enablement}"],
get: ["GET /orgs/{org}"],
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
getWebhookDelivery: ["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],
list: ["GET /organizations"],
listAppInstallations: ["GET /orgs/{org}/installations"],
listBlockedUsers: ["GET /orgs/{org}/blocks"],
listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
listForAuthenticatedUser: ["GET /user/orgs"],
listForUser: ["GET /users/{username}/orgs"],
listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
listMembers: ["GET /orgs/{org}/members"],
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
listPendingInvitations: ["GET /orgs/{org}/invitations"],
listPublicMembers: ["GET /orgs/{org}/public_members"],
listSecurityManagerTeams: ["GET /orgs/{org}/security-managers"],
listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"],
listWebhooks: ["GET /orgs/{org}/hooks"],
pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"],
redeliverWebhookDelivery: ["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],
removeMember: ["DELETE /orgs/{org}/members/{username}"],
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
removeOutsideCollaborator: ["DELETE /orgs/{org}/outside_collaborators/{username}"],
removePublicMembershipForAuthenticatedUser: ["DELETE /orgs/{org}/public_members/{username}"],
removeSecurityManagerTeam: ["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
setPublicMembershipForAuthenticatedUser: ["PUT /orgs/{org}/public_members/{username}"],
unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
update: ["PATCH /orgs/{org}"],
updateMembershipForAuthenticatedUser: ["PATCH /user/memberships/orgs/{org}"],
updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"],
updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"]
},
packages: {
deletePackageForAuthenticatedUser: ["DELETE /user/packages/{package_type}/{package_name}"],
deletePackageForOrg: ["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],
deletePackageForUser: ["DELETE /users/{username}/packages/{package_type}/{package_name}"],
deletePackageVersionForAuthenticatedUser: ["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],
deletePackageVersionForOrg: ["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],
deletePackageVersionForUser: ["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],
getAllPackageVersionsForAPackageOwnedByAnOrg: ["GET /orgs/{org}/packages/{package_type}/{package_name}/versions", {}, {
renamed: ["packages", "getAllPackageVersionsForPackageOwnedByOrg"]
}],
getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: ["GET /user/packages/{package_type}/{package_name}/versions", {}, {
renamed: ["packages", "getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]
}],
getAllPackageVersionsForPackageOwnedByAuthenticatedUser: ["GET /user/packages/{package_type}/{package_name}/versions"],
getAllPackageVersionsForPackageOwnedByOrg: ["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],
getAllPackageVersionsForPackageOwnedByUser: ["GET /users/{username}/packages/{package_type}/{package_name}/versions"],
getPackageForAuthenticatedUser: ["GET /user/packages/{package_type}/{package_name}"],
getPackageForOrganization: ["GET /orgs/{org}/packages/{package_type}/{package_name}"],
getPackageForUser: ["GET /users/{username}/packages/{package_type}/{package_name}"],
getPackageVersionForAuthenticatedUser: ["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],
getPackageVersionForOrganization: ["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],
getPackageVersionForUser: ["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],
listPackagesForAuthenticatedUser: ["GET /user/packages"],
listPackagesForOrganization: ["GET /orgs/{org}/packages"],
listPackagesForUser: ["GET /users/{username}/packages"],
restorePackageForAuthenticatedUser: ["POST /user/packages/{package_type}/{package_name}/restore{?token}"],
restorePackageForOrg: ["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],
restorePackageForUser: ["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],
restorePackageVersionForAuthenticatedUser: ["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],
restorePackageVersionForOrg: ["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],
restorePackageVersionForUser: ["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]
},
projects: {
addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
createCard: ["POST /projects/columns/{column_id}/cards"],
createColumn: ["POST /projects/{project_id}/columns"],
createForAuthenticatedUser: ["POST /user/projects"],
createForOrg: ["POST /orgs/{org}/projects"],
createForRepo: ["POST /repos/{owner}/{repo}/projects"],
delete: ["DELETE /projects/{project_id}"],
deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
deleteColumn: ["DELETE /projects/columns/{column_id}"],
get: ["GET /projects/{project_id}"],
getCard: ["GET /projects/columns/cards/{card_id}"],
getColumn: ["GET /projects/columns/{column_id}"],
getPermissionForUser: ["GET /projects/{project_id}/collaborators/{username}/permission"],
listCards: ["GET /projects/columns/{column_id}/cards"],
listCollaborators: ["GET /projects/{project_id}/collaborators"],
listColumns: ["GET /projects/{project_id}/columns"],
listForOrg: ["GET /orgs/{org}/projects"],
listForRepo: ["GET /repos/{owner}/{repo}/projects"],
listForUser: ["GET /users/{username}/projects"],
moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
moveColumn: ["POST /projects/columns/{column_id}/moves"],
removeCollaborator: ["DELETE /projects/{project_id}/collaborators/{username}"],
update: ["PATCH /projects/{project_id}"],
updateCard: ["PATCH /projects/columns/cards/{card_id}"],
updateColumn: ["PATCH /projects/columns/{column_id}"]
},
pulls: {
checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
create: ["POST /repos/{owner}/{repo}/pulls"],
createReplyForReviewComment: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],
createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
createReviewComment: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],
deletePendingReview: ["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],
deleteReviewComment: ["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
dismissReview: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],
get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"],
getReview: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],
getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
list: ["GET /repos/{owner}/{repo}/pulls"],
listCommentsForReview: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],
listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],
listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],
listRequestedReviewers: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],
listReviewComments: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],
listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"],
listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
removeRequestedReviewers: ["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],
requestReviewers: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],
submitReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],
update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],
updateBranch: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],
updateReview: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],
updateReviewComment: ["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]
},
rateLimit: {
get: ["GET /rate_limit"]
},
reactions: {
createForCommitComment: ["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],
createForIssue: ["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
createForIssueComment: ["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],
createForPullRequestReviewComment: ["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],
createForRelease: ["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],
createForTeamDiscussionCommentInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],
createForTeamDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],
deleteForCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],
deleteForIssue: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],
deleteForIssueComment: ["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],
deleteForPullRequestComment: ["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],
deleteForRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],
deleteForTeamDiscussion: ["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],
deleteForTeamDiscussionComment: ["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],
listForCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],
listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
listForIssueComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],
listForPullRequestReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],
listForRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],
listForTeamDiscussionCommentInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],
listForTeamDiscussionInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]
},
repos: {
acceptInvitation: ["PATCH /user/repository_invitations/{invitation_id}", {}, {
renamed: ["repos", "acceptInvitationForAuthenticatedUser"]
}],
acceptInvitationForAuthenticatedUser: ["PATCH /user/repository_invitations/{invitation_id}"],
addAppAccessRestrictions: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", {}, {
mapToData: "apps"
}],
addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"],
addStatusCheckContexts: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", {}, {
mapToData: "contexts"
}],
addTeamAccessRestrictions: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", {}, {
mapToData: "teams"
}],
addUserAccessRestrictions: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", {}, {
mapToData: "users"
}],
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
checkVulnerabilityAlerts: ["GET /repos/{owner}/{repo}/vulnerability-alerts"],
codeownersErrors: ["GET /repos/{owner}/{repo}/codeowners/errors"],
compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"],
compareCommitsWithBasehead: ["GET /repos/{owner}/{repo}/compare/{basehead}"],
createAutolink: ["POST /repos/{owner}/{repo}/autolinks"],
createCommitComment: ["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],
createCommitSignatureProtection: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],
createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"],
createDeployKey: ["POST /repos/{owner}/{repo}/keys"],
createDeployment: ["POST /repos/{owner}/{repo}/deployments"],
createDeploymentBranchPolicy: ["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],
createDeploymentStatus: ["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],
createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"],
createForAuthenticatedUser: ["POST /user/repos"],
createFork: ["POST /repos/{owner}/{repo}/forks"],
createInOrg: ["POST /orgs/{org}/repos"],
createOrUpdateEnvironment: ["PUT /repos/{owner}/{repo}/environments/{environment_name}"],
createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployment"],
createPagesSite: ["POST /repos/{owner}/{repo}/pages"],
createRelease: ["POST /repos/{owner}/{repo}/releases"],
createTagProtection: ["POST /repos/{owner}/{repo}/tags/protection"],
createUsingTemplate: ["POST /repos/{template_owner}/{template_repo}/generate"],
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
declineInvitation: ["DELETE /user/repository_invitations/{invitation_id}", {}, {
renamed: ["repos", "declineInvitationForAuthenticatedUser"]
}],
declineInvitationForAuthenticatedUser: ["DELETE /user/repository_invitations/{invitation_id}"],
delete: ["DELETE /repos/{owner}/{repo}"],
deleteAccessRestrictions: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],
deleteAdminBranchProtection: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],
deleteAnEnvironment: ["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],
deleteAutolink: ["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],
deleteBranchProtection: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],
deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],
deleteCommitSignatureProtection: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],
deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"],
deleteDeployment: ["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],
deleteDeploymentBranchPolicy: ["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],
deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"],
deleteInvitation: ["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],
deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"],
deletePullRequestReviewProtection: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],
deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"],
deleteReleaseAsset: ["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],
deleteTagProtection: ["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],
deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],
disableAutomatedSecurityFixes: ["DELETE /repos/{owner}/{repo}/automated-security-fixes"],
disableLfsForRepo: ["DELETE /repos/{owner}/{repo}/lfs"],
disableVulnerabilityAlerts: ["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],
downloadArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}", {}, {
renamed: ["repos", "downloadZipballArchive"]
}],
downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"],
downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"],
enableAutomatedSecurityFixes: ["PUT /repos/{owner}/{repo}/automated-security-fixes"],
enableLfsForRepo: ["PUT /repos/{owner}/{repo}/lfs"],
enableVulnerabilityAlerts: ["PUT /repos/{owner}/{repo}/vulnerability-alerts"],
generateReleaseNotes: ["POST /repos/{owner}/{repo}/releases/generate-notes"],
get: ["GET /repos/{owner}/{repo}"],
getAccessRestrictions: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],
getAdminBranchProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],
getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"],
getAllStatusCheckContexts: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],
getAllTopics: ["GET /repos/{owner}/{repo}/topics"],
getAppsWithAccessToProtectedBranch: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],
getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],
getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"],
getBranchProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection"],
getClones: ["GET /repos/{owner}/{repo}/traffic/clones"],
getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"],
getCollaboratorPermissionLevel: ["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],
getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"],
getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"],
getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"],
getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"],
getCommitSignatureProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],
getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"],
getContent: ["GET /repos/{owner}/{repo}/contents/{path}"],
getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"],
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
getDeploymentBranchPolicy: ["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],
getDeploymentStatus: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],
getEnvironment: ["GET /repos/{owner}/{repo}/environments/{environment_name}"],
getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"],
getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"],
getPages: ["GET /repos/{owner}/{repo}/pages"],
getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"],
getPullRequestReviewProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],
getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"],
getReadme: ["GET /repos/{owner}/{repo}/readme"],
getReadmeInDirectory: ["GET /repos/{owner}/{repo}/readme/{dir}"],
getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"],
getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],
getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"],
getStatusChecksProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],
getTeamsWithAccessToProtectedBranch: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],
getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"],
getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"],
getUsersWithAccessToProtectedBranch: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],
getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"],
getWebhookConfigForRepo: ["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],
getWebhookDelivery: ["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],
listAutolinks: ["GET /repos/{owner}/{repo}/autolinks"],
listBranches: ["GET /repos/{owner}/{repo}/branches"],
listBranchesForHeadCommit: ["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],
listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"],
listCommentsForCommit: ["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],
listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"],
listCommitStatusesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],
listCommits: ["GET /repos/{owner}/{repo}/commits"],
listContributors: ["GET /repos/{owner}/{repo}/contributors"],
listDeployKeys: ["GET /repos/{owner}/{repo}/keys"],
listDeploymentBranchPolicies: ["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],
listDeploymentStatuses: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],
listDeployments: ["GET /repos/{owner}/{repo}/deployments"],
listForAuthenticatedUser: ["GET /user/repos"],
listForOrg: ["GET /orgs/{org}/repos"],
listForUser: ["GET /users/{username}/repos"],
listForks: ["GET /repos/{owner}/{repo}/forks"],
listInvitations: ["GET /repos/{owner}/{repo}/invitations"],
listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"],
listLanguages: ["GET /repos/{owner}/{repo}/languages"],
listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"],
listPublic: ["GET /repositories"],
listPullRequestsAssociatedWithCommit: ["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],
listReleaseAssets: ["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],
listReleases: ["GET /repos/{owner}/{repo}/releases"],
listTagProtection: ["GET /repos/{owner}/{repo}/tags/protection"],
listTags: ["GET /repos/{owner}/{repo}/tags"],
listTeams: ["GET /repos/{owner}/{repo}/teams"],
listWebhookDeliveries: ["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],
listWebhooks: ["GET /repos/{owner}/{repo}/hooks"],
merge: ["POST /repos/{owner}/{repo}/merges"],
mergeUpstream: ["POST /repos/{owner}/{repo}/merge-upstream"],
pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],
redeliverWebhookDelivery: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],
removeAppAccessRestrictions: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", {}, {
mapToData: "apps"
}],
removeCollaborator: ["DELETE /repos/{owner}/{repo}/collaborators/{username}"],
removeStatusCheckContexts: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", {}, {
mapToData: "contexts"
}],
removeStatusCheckProtection: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],
removeTeamAccessRestrictions: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", {}, {
mapToData: "teams"
}],
removeUserAccessRestrictions: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", {}, {
mapToData: "users"
}],
renameBranch: ["POST /repos/{owner}/{repo}/branches/{branch}/rename"],
replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics"],
requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"],
setAdminBranchProtection: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],
setAppAccessRestrictions: ["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", {}, {
mapToData: "apps"
}],
setStatusCheckContexts: ["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", {}, {
mapToData: "contexts"
}],
setTeamAccessRestrictions: ["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", {}, {
mapToData: "teams"
}],
setUserAccessRestrictions: ["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", {}, {
mapToData: "users"
}],
testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],
transfer: ["POST /repos/{owner}/{repo}/transfer"],
update: ["PATCH /repos/{owner}/{repo}"],
updateBranchProtection: ["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],
updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],
updateDeploymentBranchPolicy: ["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],
updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"],
updateInvitation: ["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],
updatePullRequestReviewProtection: ["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],
updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"],
updateReleaseAsset: ["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],
updateStatusCheckPotection: ["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", {}, {
renamed: ["repos", "updateStatusCheckProtection"]
}],
updateStatusCheckProtection: ["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],
updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],
updateWebhookConfigForRepo: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],
uploadReleaseAsset: ["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}", {
baseUrl: "https://uploads.github.com"
}]
},
search: {
code: ["GET /search/code"],
commits: ["GET /search/commits"],
issuesAndPullRequests: ["GET /search/issues"],
labels: ["GET /search/labels"],
repos: ["GET /search/repositories"],
topics: ["GET /search/topics"],
users: ["GET /search/users"]
},
secretScanning: {
getAlert: ["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],
getSecurityAnalysisSettingsForEnterprise: ["GET /enterprises/{enterprise}/code_security_and_analysis"],
listAlertsForEnterprise: ["GET /enterprises/{enterprise}/secret-scanning/alerts"],
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
listLocationsForAlert: ["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],
patchSecurityAnalysisSettingsForEnterprise: ["PATCH /enterprises/{enterprise}/code_security_and_analysis"],
postSecurityProductEnablementForEnterprise: ["POST /enterprises/{enterprise}/{security_product}/{enablement}"],
updateAlert: ["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]
},
teams: {
addOrUpdateMembershipForUserInOrg: ["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],
addOrUpdateProjectPermissionsInOrg: ["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],
addOrUpdateRepoPermissionsInOrg: ["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],
checkPermissionsForProjectInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],
checkPermissionsForRepoInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],
create: ["POST /orgs/{org}/teams"],
createDiscussionCommentInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],
createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"],
deleteDiscussionCommentInOrg: ["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],
deleteDiscussionInOrg: ["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],
deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"],
getByName: ["GET /orgs/{org}/teams/{team_slug}"],
getDiscussionCommentInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],
getDiscussionInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],
getMembershipForUserInOrg: ["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],
list: ["GET /orgs/{org}/teams"],
listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"],
listDiscussionCommentsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],
listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"],
listForAuthenticatedUser: ["GET /user/teams"],
listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"],
listPendingInvitationsInOrg: ["GET /orgs/{org}/teams/{team_slug}/invitations"],
listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
removeMembershipForUserInOrg: ["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],
removeProjectInOrg: ["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],
removeRepoInOrg: ["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],
updateDiscussionCommentInOrg: ["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],
updateDiscussionInOrg: ["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],
updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"]
},
users: {
addEmailForAuthenticated: ["POST /user/emails", {}, {
renamed: ["users", "addEmailForAuthenticatedUser"]
}],
addEmailForAuthenticatedUser: ["POST /user/emails"],
block: ["PUT /user/blocks/{username}"],
checkBlocked: ["GET /user/blocks/{username}"],
checkFollowingForUser: ["GET /users/{username}/following/{target_user}"],
checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"],
createGpgKeyForAuthenticated: ["POST /user/gpg_keys", {}, {
renamed: ["users", "createGpgKeyForAuthenticatedUser"]
}],
createGpgKeyForAuthenticatedUser: ["POST /user/gpg_keys"],
createPublicSshKeyForAuthenticated: ["POST /user/keys", {}, {
renamed: ["users", "createPublicSshKeyForAuthenticatedUser"]
}],
createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"],
deleteEmailForAuthenticated: ["DELETE /user/emails", {}, {
renamed: ["users", "deleteEmailForAuthenticatedUser"]
}],
deleteEmailForAuthenticatedUser: ["DELETE /user/emails"],
deleteGpgKeyForAuthenticated: ["DELETE /user/gpg_keys/{gpg_key_id}", {}, {
renamed: ["users", "deleteGpgKeyForAuthenticatedUser"]
}],
deleteGpgKeyForAuthenticatedUser: ["DELETE /user/gpg_keys/{gpg_key_id}"],
deletePublicSshKeyForAuthenticated: ["DELETE /user/keys/{key_id}", {}, {
renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"]
}],
deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"],
deleteSshSigningKeyForAuthenticatedUser: ["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],
follow: ["PUT /user/following/{username}"],
getAuthenticated: ["GET /user"],
getByUsername: ["GET /users/{username}"],
getContextForUser: ["GET /users/{username}/hovercard"],
getGpgKeyForAuthenticated: ["GET /user/gpg_keys/{gpg_key_id}", {}, {
renamed: ["users", "getGpgKeyForAuthenticatedUser"]
}],
getGpgKeyForAuthenticatedUser: ["GET /user/gpg_keys/{gpg_key_id}"],
getPublicSshKeyForAuthenticated: ["GET /user/keys/{key_id}", {}, {
renamed: ["users", "getPublicSshKeyForAuthenticatedUser"]
}],
getPublicSshKeyForAuthenticatedUser: ["GET /user/keys/{key_id}"],
getSshSigningKeyForAuthenticatedUser: ["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],
list: ["GET /users"],
listBlockedByAuthenticated: ["GET /user/blocks", {}, {
renamed: ["users", "listBlockedByAuthenticatedUser"]
}],
listBlockedByAuthenticatedUser: ["GET /user/blocks"],
listEmailsForAuthenticated: ["GET /user/emails", {}, {
renamed: ["users", "listEmailsForAuthenticatedUser"]
}],
listEmailsForAuthenticatedUser: ["GET /user/emails"],
listFollowedByAuthenticated: ["GET /user/following", {}, {
renamed: ["users", "listFollowedByAuthenticatedUser"]
}],
listFollowedByAuthenticatedUser: ["GET /user/following"],
listFollowersForAuthenticatedUser: ["GET /user/followers"],
listFollowersForUser: ["GET /users/{username}/followers"],
listFollowingForUser: ["GET /users/{username}/following"],
listGpgKeysForAuthenticated: ["GET /user/gpg_keys", {}, {
renamed: ["users", "listGpgKeysForAuthenticatedUser"]
}],
listGpgKeysForAuthenticatedUser: ["GET /user/gpg_keys"],
listGpgKeysForUser: ["GET /users/{username}/gpg_keys"],
listPublicEmailsForAuthenticated: ["GET /user/public_emails", {}, {
renamed: ["users", "listPublicEmailsForAuthenticatedUser"]
}],
listPublicEmailsForAuthenticatedUser: ["GET /user/public_emails"],
listPublicKeysForUser: ["GET /users/{username}/keys"],
listPublicSshKeysForAuthenticated: ["GET /user/keys", {}, {
renamed: ["users", "listPublicSshKeysForAuthenticatedUser"]
}],
listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"],
listSshSigningKeysForAuthenticatedUser: ["GET /user/ssh_signing_keys"],
listSshSigningKeysForUser: ["GET /users/{username}/ssh_signing_keys"],
setPrimaryEmailVisibilityForAuthenticated: ["PATCH /user/email/visibility", {}, {
renamed: ["users", "setPrimaryEmailVisibilityForAuthenticatedUser"]
}],
setPrimaryEmailVisibilityForAuthenticatedUser: ["PATCH /user/email/visibility"],
unblock: ["DELETE /user/blocks/{username}"],
unfollow: ["DELETE /user/following/{username}"],
updateAuthenticated: ["PATCH /user"]
}
};
const VERSION = "7.0.1";
function endpointsToMethods(octokit, endpointsMap) {
const newMethods = {};
for (const [scope, endpoints] of Object.entries(endpointsMap)) {
for (const [methodName, endpoint] of Object.entries(endpoints)) {
const [route, defaults, decorations] = endpoint;
const [method, url] = route.split(/ /);
const endpointDefaults = Object.assign({
method,
url
}, defaults);
if (!newMethods[scope]) {
newMethods[scope] = {};
}
const scopeMethods = newMethods[scope];
if (decorations) {
scopeMethods[methodName] = decorate(octokit, scope, methodName, endpointDefaults, decorations);
continue;
}
scopeMethods[methodName] = octokit.request.defaults(endpointDefaults);
}
}
return newMethods;
}
function decorate(octokit, scope, methodName, defaults, decorations) {
const requestWithDefaults = octokit.request.defaults(defaults);
/* istanbul ignore next */
function withDecorations(...args) {
// @ts-ignore https://github.com/microsoft/TypeScript/issues/25488
let options = requestWithDefaults.endpoint.merge(...args);
// There are currently no other decorations than `.mapToData`
if (decorations.mapToData) {
options = Object.assign({}, options, {
data: options[decorations.mapToData],
[decorations.mapToData]: undefined
});
return requestWithDefaults(options);
}
if (decorations.renamed) {
const [newScope, newMethodName] = decorations.renamed;
octokit.log.warn(`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`);
}
if (decorations.deprecated) {
octokit.log.warn(decorations.deprecated);
}
if (decorations.renamedParameters) {
// @ts-ignore https://github.com/microsoft/TypeScript/issues/25488
const options = requestWithDefaults.endpoint.merge(...args);
for (const [name, alias] of Object.entries(decorations.renamedParameters)) {
if (name in options) {
octokit.log.warn(`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`);
if (!(alias in options)) {
options[alias] = options[name];
}
delete options[name];
}
}
return requestWithDefaults(options);
}
// @ts-ignore https://github.com/microsoft/TypeScript/issues/25488
return requestWithDefaults(...args);
}
return Object.assign(withDecorations, requestWithDefaults);
}
function restEndpointMethods(octokit) {
const api = endpointsToMethods(octokit, Endpoints);
return {
rest: api
};
}
restEndpointMethods.VERSION = VERSION;
function legacyRestEndpointMethods(octokit) {
const api = endpointsToMethods(octokit, Endpoints);
return {
...api,
rest: api
};
}
legacyRestEndpointMethods.VERSION = VERSION;
exports.legacyRestEndpointMethods = legacyRestEndpointMethods;
exports.restEndpointMethods = restEndpointMethods;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 537:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var deprecation = __nccwpck_require__(8932);
var once = _interopDefault(__nccwpck_require__(1223));
const logOnceCode = once(deprecation => console.warn(deprecation));
const logOnceHeaders = once(deprecation => console.warn(deprecation));
/**
* Error with extra properties to help with debugging
*/
class RequestError extends Error {
constructor(message, statusCode, options) {
super(message);
// Maintains proper stack trace (only available on V8)
/* istanbul ignore next */
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
this.name = "HttpError";
this.status = statusCode;
let headers;
if ("headers" in options && typeof options.headers !== "undefined") {
headers = options.headers;
}
if ("response" in options) {
this.response = options.response;
headers = options.response.headers;
}
// redact request credentials without mutating original request options
const requestCopy = Object.assign({}, options.request);
if (options.request.headers.authorization) {
requestCopy.headers = Object.assign({}, options.request.headers, {
authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
});
}
requestCopy.url = requestCopy.url
// client_id & client_secret can be passed as URL query parameters to increase rate limit
// see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]")
// OAuth tokens can be passed as URL query parameters, although it is not recommended
// see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
.replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
this.request = requestCopy;
// deprecations
Object.defineProperty(this, "code", {
get() {
logOnceCode(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
return statusCode;
}
});
Object.defineProperty(this, "headers", {
get() {
logOnceHeaders(new deprecation.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));
return headers || {};
}
});
}
}
exports.RequestError = RequestError;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 6234:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var endpoint = __nccwpck_require__(9440);
var universalUserAgent = __nccwpck_require__(5030);
var isPlainObject = __nccwpck_require__(3287);
var nodeFetch = _interopDefault(__nccwpck_require__(467));
var requestError = __nccwpck_require__(537);
const VERSION = "6.2.3";
function getBufferResponse(response) {
return response.arrayBuffer();
}
function fetchWrapper(requestOptions) {
const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
if (isPlainObject.isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
requestOptions.body = JSON.stringify(requestOptions.body);
}
let headers = {};
let status;
let url;
const fetch = requestOptions.request && requestOptions.request.fetch || globalThis.fetch || /* istanbul ignore next */nodeFetch;
return fetch(requestOptions.url, Object.assign({
method: requestOptions.method,
body: requestOptions.body,
headers: requestOptions.headers,
redirect: requestOptions.redirect
},
// `requestOptions.request.agent` type is incompatible
// see https://github.com/octokit/types.ts/pull/264
requestOptions.request)).then(async response => {
url = response.url;
status = response.status;
for (const keyAndValue of response.headers) {
headers[keyAndValue[0]] = keyAndValue[1];
}
if ("deprecation" in headers) {
const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
const deprecationLink = matches
gitextract_v2qxbu2t/ ├── .github/ │ └── workflows/ │ └── code_review.yml ├── .gitignore ├── LICENCE ├── README.md ├── action.yml ├── dist/ │ ├── index.js │ ├── licenses.txt │ └── sourcemap-register.js ├── package.json ├── src/ │ └── main.ts └── tsconfig.json
SYMBOL INDEX (1549 symbols across 3 files)
FILE: dist/index.js
function adopt (line 33) | function adopt(value) { return value instanceof P ? value : new P(functi...
function fulfilled (line 35) | function fulfilled(value) { try { step(generator.next(value)); } catch (...
function rejected (line 36) | function rejected(value) { try { step(generator["throw"](value)); } catc...
function step (line 37) | function step(result) { result.done ? resolve(result.value) : adopt(resu...
function getPRDetails (line 58) | function getPRDetails() {
function getDiff (line 76) | function getDiff(owner, repo, pull_number) {
function analyzeCode (line 88) | function analyzeCode(parsedDiff, prDetails) {
function createPrompt (line 108) | function createPrompt(file, chunk, prDetails) {
function getAIResponse (line 137) | function getAIResponse(prompt) {
function createComment (line 166) | function createComment(file, chunk, aiResponses) {
function createReviewComment (line 178) | function createReviewComment(owner, repo, pull_number, comments) {
function main (line 189) | function main() {
function issueCommand (line 280) | function issueCommand(command, properties, message) {
function issue (line 285) | function issue(name, message = '') {
class Command (line 290) | class Command {
method constructor (line 291) | constructor(command, properties, message) {
method toString (line 299) | toString() {
function escapeData (line 323) | function escapeData(s) {
function escapeProperty (line 329) | function escapeProperty(s) {
function adopt (line 366) | function adopt(value) { return value instanceof P ? value : new P(functi...
function fulfilled (line 368) | function fulfilled(value) { try { step(generator.next(value)); } catch (...
function rejected (line 369) | function rejected(value) { try { step(generator["throw"](value)); } catc...
function step (line 370) | function step(result) { result.done ? resolve(result.value) : adopt(resu...
function exportVariable (line 405) | function exportVariable(name, val) {
function setSecret (line 419) | function setSecret(secret) {
function addPath (line 427) | function addPath(inputPath) {
function getInput (line 447) | function getInput(name, options) {
function getMultilineInput (line 466) | function getMultilineInput(name, options) {
function getBooleanInput (line 486) | function getBooleanInput(name, options) {
function setOutput (line 505) | function setOutput(name, value) {
function setCommandEcho (line 519) | function setCommandEcho(enabled) {
function setFailed (line 531) | function setFailed(message) {
function isDebug (line 542) | function isDebug() {
function debug (line 550) | function debug(message) {
function error (line 559) | function error(message, properties = {}) {
function warning (line 568) | function warning(message, properties = {}) {
function notice (line 577) | function notice(message, properties = {}) {
function info (line 585) | function info(message) {
function startGroup (line 596) | function startGroup(name) {
function endGroup (line 603) | function endGroup() {
function group (line 615) | function group(name, fn) {
function saveState (line 639) | function saveState(name, value) {
function getState (line 653) | function getState(name) {
function getIDToken (line 657) | function getIDToken(aud) {
function issueFileCommand (line 717) | function issueFileCommand(command, message) {
function prepareKeyValueMessage (line 730) | function prepareKeyValueMessage(key, value) {
function adopt (line 755) | function adopt(value) { return value instanceof P ? value : new P(functi...
function fulfilled (line 757) | function fulfilled(value) { try { step(generator.next(value)); } catch (...
function rejected (line 758) | function rejected(value) { try { step(generator["throw"](value)); } catc...
function step (line 759) | function step(result) { result.done ? resolve(result.value) : adopt(resu...
class OidcClient (line 768) | class OidcClient {
method createHttpClient (line 769) | static createHttpClient(allowRetry = true, maxRetry = 10) {
method getRequestToken (line 776) | static getRequestToken() {
method getIDTokenUrl (line 783) | static getIDTokenUrl() {
method getCall (line 790) | static getCall(id_token_url) {
method getIDToken (line 808) | static getIDToken(audience) {
function toPosixPath (line 867) | function toPosixPath(pth) {
function toWin32Path (line 878) | function toWin32Path(pth) {
function toPlatformPath (line 890) | function toPlatformPath(pth) {
function adopt (line 904) | function adopt(value) { return value instanceof P ? value : new P(functi...
function fulfilled (line 906) | function fulfilled(value) { try { step(generator.next(value)); } catch (...
function rejected (line 907) | function rejected(value) { try { step(generator["throw"](value)); } catc...
function step (line 908) | function step(result) { result.done ? resolve(result.value) : adopt(resu...
class Summary (line 919) | class Summary {
method constructor (line 920) | constructor() {
method filePath (line 929) | filePath() {
method wrap (line 957) | wrap(tag, content, attrs = {}) {
method write (line 973) | write(options) {
method clear (line 987) | clear() {
method stringify (line 997) | stringify() {
method isEmptyBuffer (line 1005) | isEmptyBuffer() {
method emptyBuffer (line 1013) | emptyBuffer() {
method addRaw (line 1025) | addRaw(text, addEOL = false) {
method addEOL (line 1034) | addEOL() {
method addCodeBlock (line 1045) | addCodeBlock(code, lang) {
method addList (line 1058) | addList(items, ordered = false) {
method addTable (line 1071) | addTable(rows) {
method addDetails (line 1099) | addDetails(label, content) {
method addImage (line 1112) | addImage(src, alt, options) {
method addHeading (line 1126) | addHeading(text, level) {
method addSeparator (line 1139) | addSeparator() {
method addBreak (line 1148) | addBreak() {
method addQuote (line 1160) | addQuote(text, cite) {
method addLink (line 1173) | addLink(text, href) {
function toCommandValue (line 1201) | function toCommandValue(input) {
function toCommandProperties (line 1217) | function toCommandProperties(annotationProperties) {
function adopt (line 1241) | function adopt(value) { return value instanceof P ? value : new P(functi...
function fulfilled (line 1243) | function fulfilled(value) { try { step(generator.next(value)); } catch (...
function rejected (line 1244) | function rejected(value) { try { step(generator["throw"](value)); } catc...
function step (line 1245) | function step(result) { result.done ? resolve(result.value) : adopt(resu...
class BasicCredentialHandler (line 1251) | class BasicCredentialHandler {
method constructor (line 1252) | constructor(username, password) {
method prepareRequest (line 1256) | prepareRequest(options) {
method canHandleAuthentication (line 1263) | canHandleAuthentication() {
method handleAuthentication (line 1266) | handleAuthentication() {
class BearerCredentialHandler (line 1273) | class BearerCredentialHandler {
method constructor (line 1274) | constructor(token) {
method prepareRequest (line 1279) | prepareRequest(options) {
method canHandleAuthentication (line 1286) | canHandleAuthentication() {
method handleAuthentication (line 1289) | handleAuthentication() {
class PersonalAccessTokenCredentialHandler (line 1296) | class PersonalAccessTokenCredentialHandler {
method constructor (line 1297) | constructor(token) {
method prepareRequest (line 1302) | prepareRequest(options) {
method canHandleAuthentication (line 1309) | canHandleAuthentication() {
method handleAuthentication (line 1312) | handleAuthentication() {
function adopt (line 1349) | function adopt(value) { return value instanceof P ? value : new P(functi...
function fulfilled (line 1351) | function fulfilled(value) { try { step(generator.next(value)); } catch (...
function rejected (line 1352) | function rejected(value) { try { step(generator["throw"](value)); } catc...
function step (line 1353) | function step(result) { result.done ? resolve(result.value) : adopt(resu...
function getProxyUrl (line 1406) | function getProxyUrl(serverUrl) {
class HttpClientError (line 1426) | class HttpClientError extends Error {
method constructor (line 1427) | constructor(message, statusCode) {
class HttpClientResponse (line 1435) | class HttpClientResponse {
method constructor (line 1436) | constructor(message) {
method readBody (line 1439) | readBody() {
function isHttps (line 1454) | function isHttps(requestUrl) {
class HttpClient (line 1459) | class HttpClient {
method constructor (line 1460) | constructor(userAgent, handlers, requestOptions) {
method options (line 1497) | options(requestUrl, additionalHeaders) {
method get (line 1502) | get(requestUrl, additionalHeaders) {
method del (line 1507) | del(requestUrl, additionalHeaders) {
method post (line 1512) | post(requestUrl, data, additionalHeaders) {
method patch (line 1517) | patch(requestUrl, data, additionalHeaders) {
method put (line 1522) | put(requestUrl, data, additionalHeaders) {
method head (line 1527) | head(requestUrl, additionalHeaders) {
method sendStream (line 1532) | sendStream(verb, requestUrl, stream, additionalHeaders) {
method getJson (line 1541) | getJson(requestUrl, additionalHeaders = {}) {
method postJson (line 1548) | postJson(requestUrl, obj, additionalHeaders = {}) {
method putJson (line 1557) | putJson(requestUrl, obj, additionalHeaders = {}) {
method patchJson (line 1566) | patchJson(requestUrl, obj, additionalHeaders = {}) {
method request (line 1580) | request(verb, requestUrl, data, headers) {
method dispose (line 1665) | dispose() {
method requestRaw (line 1676) | requestRaw(info, data) {
method requestRawWithCallback (line 1701) | requestRawWithCallback(info, data, onResult) {
method getAgent (line 1753) | getAgent(serverUrl) {
method _prepareRequest (line 1757) | _prepareRequest(method, requestUrl, headers) {
method _mergeHeaders (line 1784) | _mergeHeaders(headers) {
method _getExistingOrDefaultHeader (line 1790) | _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
method _getAgent (line 1797) | _getAgent(parsedUrl) {
method _performExponentialBackoff (line 1856) | _performExponentialBackoff(retryNumber) {
method _processResponse (line 1863) | _processResponse(res, options) {
function getProxyUrl (line 1942) | function getProxyUrl(reqUrl) {
function checkBypass (line 1963) | function checkBypass(reqUrl) {
function isLoopbackAddress (line 2007) | function isLoopbackAddress(host) {
function auth (line 2029) | async function auth(token) {
function withAuthorizationPrefix (line 2046) | function withAuthorizationPrefix(token) {
function hook (line 2053) | async function hook(token, request, route, parameters) {
class Octokit (line 2094) | class Octokit {
method constructor (line 2095) | constructor(options = {}) {
method defaults (line 2180) | static defaults(defaults) {
method plugin (line 2206) | static plugin(...newPlugins) {
function lowercaseKeys (line 2235) | function lowercaseKeys(object) {
function mergeDeep (line 2245) | function mergeDeep(defaults, options) {
function removeUndefinedProperties (line 2261) | function removeUndefinedProperties(obj) {
function merge (line 2270) | function merge(defaults, route, options) {
function addQueryParameters (line 2296) | function addQueryParameters(url, parameters) {
function removeNonChars (line 2311) | function removeNonChars(variableName) {
function extractUrlVariableNames (line 2314) | function extractUrlVariableNames(url) {
function omit (line 2322) | function omit(object, keysToOmit) {
function encodeReserved (line 2355) | function encodeReserved(str) {
function encodeUnreserved (line 2363) | function encodeUnreserved(str) {
function encodeValue (line 2368) | function encodeValue(operator, value, key) {
function isDefined (line 2376) | function isDefined(value) {
function isKeyOperator (line 2379) | function isKeyOperator(operator) {
function getValues (line 2382) | function getValues(context, operator, key, modifier) {
function parseUrl (line 2439) | function parseUrl(template) {
function expand (line 2444) | function expand(template, context) {
function parse (line 2475) | function parse(options) {
function endpointWithDefaults (line 2539) | function endpointWithDefaults(defaults, route, options) {
function withDefaults (line 2543) | function withDefaults(oldDefaults, newDefaults) {
function _buildMessageForResponseErrors (line 2593) | function _buildMessageForResponseErrors(data) {
class GraphqlResponseError (line 2596) | class GraphqlResponseError extends Error {
method constructor (line 2597) | constructor(request, headers, response) {
function graphql (line 2617) | function graphql(request, query, options) {
function withDefaults (line 2659) | function withDefaults(request, newDefaults) {
function withCustomRequest (line 2677) | function withCustomRequest(customRequest) {
function normalizePaginatedListResponse (line 2718) | function normalizePaginatedListResponse(response) {
function iterator (line 2749) | function iterator(octokit, route, parameters) {
function paginate (line 2791) | function paginate(octokit, route, parameters, mapFn) {
function gather (line 2798) | function gather(octokit, results, iterator, mapFn) {
function isPaginatingEndpoint (line 2821) | function isPaginatingEndpoint(arg) {
function paginateRest (line 2833) | function paginateRest(octokit) {
function requestLog (line 2866) | function requestLog(octokit) {
function endpointsToMethods (line 3903) | function endpointsToMethods(octokit, endpointsMap) {
function decorate (line 3926) | function decorate(octokit, scope, methodName, defaults, decorations) {
function restEndpointMethods (line 3967) | function restEndpointMethods(octokit) {
function legacyRestEndpointMethods (line 3974) | function legacyRestEndpointMethods(octokit) {
function _interopDefault (line 3998) | function _interopDefault (ex) { return (ex && (typeof ex === 'object') &...
class RequestError (line 4008) | class RequestError extends Error {
method constructor (line 4009) | constructor(message, statusCode, options) {
function _interopDefault (line 4071) | function _interopDefault (ex) { return (ex && (typeof ex === 'object') &...
function getBufferResponse (line 4081) | function getBufferResponse(response) {
function fetchWrapper (line 4085) | function fetchWrapper(requestOptions) {
function getResponseData (line 4170) | async function getResponseData(response) {
function toErrorMessage (line 4180) | function toErrorMessage(data) {
function withDefaults (line 4193) | function withDefaults(oldEndpoint, newDefaults) {
class AbortSignal (line 4270) | class AbortSignal extends eventTargetShim.EventTarget {
method constructor (line 4274) | constructor() {
method aborted (line 4281) | get aborted() {
function createAbortSignal (line 4293) | function createAbortSignal() {
function abortSignal (line 4302) | function abortSignal(signal) {
class AbortController (line 4329) | class AbortController {
method constructor (line 4333) | constructor() {
method signal (line 4339) | get signal() {
method abort (line 4345) | abort() {
function getSignal (line 4356) | function getSignal(controller) {
function deprecate (line 4432) | function deprecate(message) {
class Agent (line 4436) | class Agent extends OriginalAgent {
method constructor (line 4437) | constructor(options) {
method freeSocketKeepAliveTimeout (line 4507) | get freeSocketKeepAliveTimeout() {
method timeout (line 4512) | get timeout() {
method socketActiveTTL (line 4517) | get socketActiveTTL() {
method calcSocketTimeout (line 4522) | calcSocketTimeout(socket) {
method keepSocketAlive (line 4551) | keepSocketAlive(socket) {
method reuseSocket (line 4572) | reuseSocket(...args) {
method [CREATE_ID] (line 4590) | [CREATE_ID]() {
method [INIT_SOCKET] (line 4596) | [INIT_SOCKET](socket, options) {
method createConnection (line 4623) | createConnection(options, oncreate) {
method statusChanged (line 4642) | get statusChanged() {
method getCurrentStatus (line 4660) | getCurrentStatus() {
function getSocketTimeout (line 4677) | function getSocketTimeout(socket) {
function installListeners (line 4681) | function installListeners(agent, socket, options) {
function inspect (line 4799) | function inspect(obj) {
class HttpsAgent (line 4845) | class HttpsAgent extends HttpAgent {
method constructor (line 4846) | constructor(options) {
method createConnection (line 4863) | createConnection(options, oncreate) {
function balanced (line 4897) | function balanced(a, b, str) {
function maybeMatch (line 4912) | function maybeMatch(reg, str) {
function range (line 4918) | function range(a, b, str) {
function bindApi (line 4972) | function bindApi(hook, state, name) {
function HookSingular (line 4985) | function HookSingular() {
function HookCollection (line 4995) | function HookCollection() {
function Hook (line 5007) | function Hook() {
function addHook (line 5034) | function addHook(state, kind, name, hook) {
function register (line 5087) | function register(state, name, method, options) {
function removeHook (line 5121) | function removeHook(state, name, method) {
function numeric (line 5155) | function numeric(str) {
function escapeBraces (line 5161) | function escapeBraces(str) {
function unescapeBraces (line 5169) | function unescapeBraces(str) {
function parseCommaParts (line 5181) | function parseCommaParts(str) {
function expandTop (line 5208) | function expandTop(str) {
function embrace (line 5225) | function embrace(str) {
function isPadded (line 5228) | function isPadded(el) {
function lte (line 5232) | function lte(i, y) {
function gte (line 5235) | function gte(i, y) {
function expand (line 5239) | function expand(str, isTop) {
class Deprecation (line 5360) | class Deprecation extends Error {
method constructor (line 5361) | constructor(message) {
function pd (line 5427) | function pd(event) {
function setCancelFlag (line 5441) | function setCancelFlag(data) {
function Event (line 5474) | function Event(eventTarget, event) {
method type (line 5506) | get type() {
method target (line 5514) | get target() {
method currentTarget (line 5522) | get currentTarget() {
method composedPath (line 5529) | composedPath() {
method NONE (line 5541) | get NONE() {
method CAPTURING_PHASE (line 5549) | get CAPTURING_PHASE() {
method AT_TARGET (line 5557) | get AT_TARGET() {
method BUBBLING_PHASE (line 5565) | get BUBBLING_PHASE() {
method eventPhase (line 5573) | get eventPhase() {
method stopPropagation (line 5581) | stopPropagation() {
method stopImmediatePropagation (line 5594) | stopImmediatePropagation() {
method bubbles (line 5608) | get bubbles() {
method cancelable (line 5616) | get cancelable() {
method preventDefault (line 5624) | preventDefault() {
method defaultPrevented (line 5632) | get defaultPrevented() {
method composed (line 5640) | get composed() {
method timeStamp (line 5648) | get timeStamp() {
method srcElement (line 5657) | get srcElement() {
method cancelBubble (line 5666) | get cancelBubble() {
method cancelBubble (line 5669) | set cancelBubble(value) {
method returnValue (line 5686) | get returnValue() {
method returnValue (line 5689) | set returnValue(value) {
method initEvent (line 5702) | initEvent() {
function defineRedirectDescriptor (line 5728) | function defineRedirectDescriptor(key) {
function defineCallDescriptor (line 5747) | function defineCallDescriptor(key) {
function defineWrapper (line 5765) | function defineWrapper(BaseEvent, proto) {
function getWrapper (line 5805) | function getWrapper(proto) {
function wrapEvent (line 5825) | function wrapEvent(eventTarget, event) {
function isStopped (line 5836) | function isStopped(event) {
function setEventPhase (line 5847) | function setEventPhase(event, eventPhase) {
function setCurrentTarget (line 5858) | function setCurrentTarget(event, currentTarget) {
function setPassiveListener (line 5869) | function setPassiveListener(event, passiveListener) {
function isObject (line 5899) | function isObject(x) {
function getListeners (line 5909) | function getListeners(eventTarget) {
function defineEventAttributeDescriptor (line 5925) | function defineEventAttributeDescriptor(eventName) {
function defineEventAttribute (line 5992) | function defineEventAttribute(eventTargetPrototype, eventName) {
function defineCustomEventTarget (line 6006) | function defineCustomEventTarget(eventNames) {
function EventTarget (line 6040) | function EventTarget() {
method addEventListener (line 6069) | addEventListener(eventName, listener, options) {
method removeEventListener (line 6123) | removeEventListener(eventName, listener, options) {
method dispatchEvent (line 6161) | dispatchEvent(event) {
function r (line 6269) | function r(){}
function o (line 6269) | function o(e){return"object"==typeof e&&null!==e||"function"==typeof e}
function a (line 6269) | function a(e,t){try{Object.defineProperty(e,"name",{value:t,configurable...
function c (line 6269) | function c(e){return new i(e)}
function d (line 6269) | function d(e){return s(e)}
function f (line 6269) | function f(e){return u(e)}
function b (line 6269) | function b(e,t,r){return l.call(e,t,r)}
function h (line 6269) | function h(e,t,r){b(b(e,t,r),void 0,n)}
function _ (line 6269) | function _(e,t){h(e,t)}
function p (line 6269) | function p(e,t){h(e,void 0,t)}
function m (line 6269) | function m(e,t,r){return b(e,t,r)}
function y (line 6269) | function y(e){b(e,void 0,n)}
function S (line 6269) | function S(e,t,r){if("function"!=typeof e)throw new TypeError("Argument ...
function w (line 6269) | function w(e,t,r){try{return d(S(e,t,r))}catch(e){return f(e)}}
class v (line 6269) | class v{constructor(){this._cursor=0,this._size=0,this._front={_elements...
method constructor (line 6269) | constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_n...
method length (line 6269) | get length(){return this._size}
method push (line 6269) | push(e){const t=this._back;let r=t;16383===t._elements.length&&(r={_el...
method shift (line 6269) | shift(){const e=this._front;let t=e;const r=this._cursor;let o=r+1;con...
method forEach (line 6269) | forEach(e){let t=this._cursor,r=this._front,o=r._elements;for(;!(t===o...
method peek (line 6269) | peek(){const e=this._front,t=this._cursor;return e._elements[t]}
function E (line 6269) | function E(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._sta...
function W (line 6269) | function W(e,t){return Xt(e._ownerReadableStream,t)}
function O (line 6269) | function O(e){const t=e._ownerReadableStream;"readable"===t._state?j(e,n...
function k (line 6269) | function k(e){return new TypeError("Cannot "+e+" a stream using a releas...
function B (line 6269) | function B(e){e._closedPromise=c(((t,r)=>{e._closedPromise_resolve=t,e._...
function A (line 6269) | function A(e,t){B(e),j(e,t)}
function j (line 6269) | function j(e,t){void 0!==e._closedPromise_reject&&(y(e._closedPromise),e...
function z (line 6269) | function z(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resol...
function D (line 6269) | function D(e,t){if(void 0!==e&&("object"!=typeof(r=e)&&"function"!=typeo...
function I (line 6269) | function I(e,t){if("function"!=typeof e)throw new TypeError(`${t} is not...
function $ (line 6269) | function $(e,t){if(!function(e){return"object"==typeof e&&null!==e||"fun...
function M (line 6269) | function M(e,t,r){if(void 0===e)throw new TypeError(`Parameter ${t} is r...
function Y (line 6269) | function Y(e,t,r){if(void 0===e)throw new TypeError(`${t} is required in...
function Q (line 6269) | function Q(e){return Number(e)}
function N (line 6269) | function N(e){return 0===e?0:e}
function x (line 6269) | function x(e,t){const r=Number.MAX_SAFE_INTEGER;let o=Number(e);if(o=N(o...
function H (line 6269) | function H(e){if(!o(e))return!1;if("function"!=typeof e.getReader)return...
function V (line 6269) | function V(e){if(!o(e))return!1;if("function"!=typeof e.getWriter)return...
function U (line 6269) | function U(e,t){if(!Ut(e))throw new TypeError(`${t} is not a ReadableStr...
function G (line 6269) | function G(e,t){e._reader._readRequests.push(t)}
function X (line 6269) | function X(e,t,r){const o=e._reader._readRequests.shift();r?o._closeStep...
function J (line 6269) | function J(e){return e._reader._readRequests.length}
function K (line 6269) | function K(e){const t=e._reader;return void 0!==t&&!!Z(t)}
class ReadableStreamDefaultReader (line 6269) | class ReadableStreamDefaultReader{constructor(e){if(M(e,1,"ReadableStrea...
method constructor (line 6269) | constructor(e){if(M(e,1,"ReadableStreamDefaultReader"),U(e,"First para...
method closed (line 6269) | get closed(){return Z(this)?this._closedPromise:f(te("closed"))}
method cancel (line 6269) | cancel(e){return Z(this)?void 0===this._ownerReadableStream?f(k("cance...
method read (line 6269) | read(){if(!Z(this))return f(te("read"));if(void 0===this._ownerReadabl...
method releaseLock (line 6269) | releaseLock(){if(!Z(this))throw te("releaseLock");void 0!==this._owner...
method constructor (line 9949) | constructor(stream) {
method closed (line 9962) | get closed() {
method cancel (line 9971) | cancel(reason = undefined) {
method read (line 9985) | read() {
method releaseLock (line 10015) | releaseLock() {
function Z (line 6269) | function Z(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"_...
function ee (line 6269) | function ee(e,t){const r=e._readRequests;e._readRequests=new v,r.forEach...
function te (line 6269) | function te(e){return new TypeError(`ReadableStreamDefaultReader.prototy...
class re (line 6269) | class re{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!...
method constructor (line 6269) | constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this....
method next (line 6269) | next(){const e=()=>this._nextSteps();return this._ongoingPromise=this....
method return (line 6269) | return(e){const t=()=>this._returnSteps(e);return this._ongoingPromise...
method _nextSteps (line 6269) | _nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,...
method _returnSteps (line 6269) | _returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,do...
method next (line 6269) | next(){return ne(this)?this._asyncIteratorImpl.next():f(ae("next"))}
method return (line 6269) | return(e){return ne(this)?this._asyncIteratorImpl.return(e):f(ae("return...
function ne (line 6269) | function ne(e){if(!o(e))return!1;if(!Object.prototype.hasOwnProperty.cal...
function ae (line 6269) | function ae(e){return new TypeError(`ReadableStreamAsyncIterator.${e} ca...
method value (line 6269) | value(){return this}
function le (line 6269) | function le(e,t,r,o,n){new Uint8Array(e).set(new Uint8Array(r,o,n),t)}
function se (line 6269) | function se(e){const t=function(e,t,r){if(e.slice)return e.slice(t,r);co...
function ue (line 6269) | function ue(e){const t=e._queue.shift();return e._queueTotalSize-=t.size...
function ce (line 6269) | function ce(e,t,r){if("number"!=typeof(o=r)||ie(o)||o<0||r===1/0)throw n...
function de (line 6269) | function de(e){e._queue=new v,e._queueTotalSize=0}
class ReadableStreamBYOBRequest (line 6269) | class ReadableStreamBYOBRequest{constructor(){throw new TypeError("Illeg...
method constructor (line 6269) | constructor(){throw new TypeError("Illegal constructor")}
method view (line 6269) | get view(){if(!be(this))throw Ae("view");return this._view}
method respond (line 6269) | respond(e){if(!be(this))throw Ae("respond");if(M(e,1,"respond"),e=x(e,...
method respondWithNewView (line 6269) | respondWithNewView(e){if(!be(this))throw Ae("respondWithNewView");if(M...
method constructor (line 10277) | constructor() {
method view (line 10283) | get view() {
method respond (line 10289) | respond(bytesWritten) {
method respondWithNewView (line 10301) | respondWithNewView(view) {
class ReadableByteStreamController (line 6269) | class ReadableByteStreamController{constructor(){throw new TypeError("Il...
method constructor (line 6269) | constructor(){throw new TypeError("Illegal constructor")}
method byobRequest (line 6269) | get byobRequest(){if(!fe(this))throw je("byobRequest");return function...
method desiredSize (line 6269) | get desiredSize(){if(!fe(this))throw je("desiredSize");return ke(this)}
method close (line 6269) | close(){if(!fe(this))throw je("close");if(this._closeRequested)throw n...
method enqueue (line 6269) | enqueue(e){if(!fe(this))throw je("enqueue");if(M(e,1,"enqueue"),!Array...
method error (line 6269) | error(e){if(!fe(this))throw je("error");We(this,e)}
method [q] (line 6269) | [q](e){_e(this),de(this);const t=this._cancelAlgorithm(e);return Ee(th...
method [C] (line 6269) | [C](e){const t=this._controlledReadableByteStream;if(this._queueTotalS...
method [P] (line 6269) | [P](){if(this._pendingPullIntos.length>0){const e=this._pendingPullInt...
method constructor (line 10333) | constructor() {
method byobRequest (line 10339) | get byobRequest() {
method desiredSize (line 10349) | get desiredSize() {
method close (line 10359) | close() {
method enqueue (line 10372) | enqueue(chunk) {
method error (line 10398) | error(e = undefined) {
method [CancelSteps] (line 10405) | [CancelSteps](reason) {
method [PullSteps] (line 10413) | [PullSteps](readRequest) {
function fe (line 6269) | function fe(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"...
function be (line 6269) | function be(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"...
function he (line 6269) | function he(e){const t=function(e){const t=e._controlledReadableByteStre...
function _e (line 6269) | function _e(e){Te(e),e._pendingPullIntos=new v}
function pe (line 6269) | function pe(e,t){let r=!1;"closed"===e._state&&(r=!0);const o=me(t);"def...
function me (line 6269) | function me(e){const t=e.bytesFilled,r=e.elementSize;return new e.viewCo...
function ye (line 6269) | function ye(e,t,r,o){e._queue.push({buffer:t,byteOffset:r,byteLength:o})...
function ge (line 6269) | function ge(e,t,r,o){let n;try{n=t.slice(r,r+o)}catch(t){throw We(e,t),t...
function Se (line 6269) | function Se(e,t){t.bytesFilled>0&&ge(e,t.buffer,t.byteOffset,t.bytesFill...
function we (line 6269) | function we(e,t){const r=t.elementSize,o=t.bytesFilled-t.bytesFilled%r,n...
function ve (line 6269) | function ve(e,t,r){r.bytesFilled+=t}
function Re (line 6269) | function Re(e){0===e._queueTotalSize&&e._closeRequested?(Ee(e),Jt(e._con...
function Te (line 6269) | function Te(e){null!==e._byobRequest&&(e._byobRequest._associatedReadabl...
function qe (line 6269) | function qe(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalS...
function Ce (line 6269) | function Ce(e,t){const r=e._pendingPullIntos.peek();Te(e);"closed"===e._...
function Pe (line 6269) | function Pe(e){return e._pendingPullIntos.shift()}
function Ee (line 6269) | function Ee(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}
function We (line 6269) | function We(e,t){const r=e._controlledReadableByteStream;"readable"===r....
function Oe (line 6269) | function Oe(e,t){const r=e._queue.shift();e._queueTotalSize-=r.byteLengt...
function ke (line 6269) | function ke(e){const t=e._controlledReadableByteStream._state;return"err...
function Be (line 6269) | function Be(e,t,r){const o=Object.create(ReadableByteStreamController.pr...
function Ae (line 6269) | function Ae(e){return new TypeError(`ReadableStreamBYOBRequest.prototype...
function je (line 6269) | function je(e){return new TypeError(`ReadableByteStreamController.protot...
function ze (line 6269) | function ze(e,t){e._reader._readIntoRequests.push(t)}
function Le (line 6269) | function Le(e){return e._reader._readIntoRequests.length}
function Fe (line 6269) | function Fe(e){const t=e._reader;return void 0!==t&&!!De(t)}
class ReadableStreamBYOBReader (line 6269) | class ReadableStreamBYOBReader{constructor(e){if(M(e,1,"ReadableStreamBY...
method constructor (line 6269) | constructor(e){if(M(e,1,"ReadableStreamBYOBReader"),U(e,"First paramet...
method closed (line 6269) | get closed(){return De(this)?this._closedPromise:f($e("closed"))}
method cancel (line 6269) | cancel(e){return De(this)?void 0===this._ownerReadableStream?f(k("canc...
method read (line 6269) | read(e){if(!De(this))return f($e("read"));if(!ArrayBuffer.isView(e))re...
method releaseLock (line 6269) | releaseLock(){if(!De(this))throw $e("releaseLock");void 0!==this._owne...
method constructor (line 10941) | constructor(stream) {
method closed (line 10958) | get closed() {
method cancel (line 10967) | cancel(reason = undefined) {
method read (line 10981) | read(view) {
method releaseLock (line 11021) | releaseLock() {
function De (line 6269) | function De(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"...
function Ie (line 6269) | function Ie(e,t){const r=e._readIntoRequests;e._readIntoRequests=new v,r...
function $e (line 6269) | function $e(e){return new TypeError(`ReadableStreamBYOBReader.prototype....
function Me (line 6269) | function Me(e,t){const{highWaterMark:r}=e;if(void 0===r)return t;if(ie(r...
function Ye (line 6269) | function Ye(e){const{size:t}=e;return t||(()=>1)}
function Qe (line 6269) | function Qe(e,t){D(e,t);const r=null==e?void 0:e.highWaterMark,o=null==e...
function Ne (line 6269) | function Ne(e,t){return I(e,t),t=>Q(e(t))}
function xe (line 6269) | function xe(e,t,r){return I(e,r),r=>w(e,t,[r])}
function He (line 6269) | function He(e,t,r){return I(e,r),()=>w(e,t,[])}
function Ve (line 6269) | function Ve(e,t,r){return I(e,r),r=>S(e,t,[r])}
function Ue (line 6269) | function Ue(e,t,r){return I(e,r),(r,o)=>w(e,t,[r,o])}
class WritableStream (line 6269) | class WritableStream{constructor(e={},t={}){void 0===e?e=null:$(e,"First...
method constructor (line 6269) | constructor(e={},t={}){void 0===e?e=null:$(e,"First parameter");const ...
method locked (line 6269) | get locked(){if(!Xe(this))throw pt("locked");return Je(this)}
method abort (line 6269) | abort(e){return Xe(this)?Je(this)?f(new TypeError("Cannot abort a stre...
method close (line 6269) | close(){return Xe(this)?Je(this)?f(new TypeError("Cannot close a strea...
method getWriter (line 6269) | getWriter(){if(!Xe(this))throw pt("getWriter");return new WritableStre...
method constructor (line 11180) | constructor(rawUnderlyingSink = {}, rawStrategy = {}) {
method locked (line 11201) | get locked() {
method abort (line 11216) | abort(reason = undefined) {
method close (line 11233) | close() {
method getWriter (line 11253) | getWriter() {
function Xe (line 6269) | function Xe(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"...
function Je (line 6269) | function Je(e){return void 0!==e._writer}
function Ke (line 6269) | function Ke(e,t){var r;if("closed"===e._state||"errored"===e._state)retu...
function Ze (line 6269) | function Ze(e){const t=e._state;if("closed"===t||"errored"===t)return f(...
function et (line 6269) | function et(e,t){"writable"!==e._state?rt(e):tt(e,t)}
function tt (line 6269) | function tt(e,t){const r=e._writableStreamController;e._state="erroring"...
function rt (line 6269) | function rt(e){e._state="errored",e._writableStreamController[T]();const...
function ot (line 6269) | function ot(e){return void 0!==e._closeRequest||void 0!==e._inFlightClos...
function nt (line 6269) | function nt(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._sto...
function at (line 6269) | function at(e,t){const r=e._writer;void 0!==r&&t!==e._backpressure&&(t?f...
class WritableStreamDefaultWriter (line 6269) | class WritableStreamDefaultWriter{constructor(e){if(M(e,1,"WritableStrea...
method constructor (line 6269) | constructor(e){if(M(e,1,"WritableStreamDefaultWriter"),function(e,t){i...
method closed (line 6269) | get closed(){return it(this)?this._closedPromise:f(yt("closed"))}
method desiredSize (line 6269) | get desiredSize(){if(!it(this))throw yt("desiredSize");if(void 0===thi...
method ready (line 6269) | get ready(){return it(this)?this._readyPromise:f(yt("ready"))}
method abort (line 6269) | abort(e){return it(this)?void 0===this._ownerWritableStream?f(gt("abor...
method close (line 6269) | close(){if(!it(this))return f(yt("close"));const e=this._ownerWritable...
method releaseLock (line 6269) | releaseLock(){if(!it(this))throw yt("releaseLock");void 0!==this._owne...
method write (line 6269) | write(e){return it(this)?void 0===this._ownerWritableStream?f(gt("writ...
method constructor (line 11526) | constructor(stream) {
method closed (line 11562) | get closed() {
method desiredSize (line 11576) | get desiredSize() {
method ready (line 11593) | get ready() {
method abort (line 11602) | abort(reason = undefined) {
method close (line 11614) | close() {
method releaseLock (line 11637) | releaseLock() {
method write (line 11647) | write(chunk = undefined) {
function it (line 6269) | function it(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"...
function lt (line 6269) | function lt(e,t){"pending"===e._readyPromiseState?Pt(e,t):function(e,t){...
class WritableStreamDefaultController (line 6269) | class WritableStreamDefaultController{constructor(){throw new TypeError(...
method constructor (line 6269) | constructor(){throw new TypeError("Illegal constructor")}
method abortReason (line 6269) | get abortReason(){if(!ut(this))throw mt("abortReason");return this._ab...
method signal (line 6269) | get signal(){if(!ut(this))throw mt("signal");if(void 0===this._abortCo...
method error (line 6269) | error(e){if(!ut(this))throw mt("error");"writable"===this._controlledW...
method [R] (line 6269) | [R](e){const t=this._abortAlgorithm(e);return ct(this),t}
method [T] (line 6269) | [T](){de(this)}
method constructor (line 11767) | constructor() {
method abortReason (line 11777) | get abortReason() {
method signal (line 11786) | get signal() {
method error (line 11805) | error(e = undefined) {
method [AbortSteps] (line 11818) | [AbortSteps](reason) {
method [ErrorSteps] (line 11824) | [ErrorSteps]() {
function ut (line 6269) | function ut(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"...
function ct (line 6269) | function ct(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abor...
function dt (line 6269) | function dt(e){return e._strategyHWM-e._queueTotalSize}
function ft (line 6269) | function ft(e){const t=e._controlledWritableStream;if(!e._started)return...
function bt (line 6269) | function bt(e,t){"writable"===e._controlledWritableStream._state&&_t(e,t)}
function ht (line 6269) | function ht(e){return dt(e)<=0}
function _t (line 6269) | function _t(e,t){const r=e._controlledWritableStream;ct(e),tt(r,t)}
function pt (line 6269) | function pt(e){return new TypeError(`WritableStream.prototype.${e} can o...
function mt (line 6269) | function mt(e){return new TypeError(`WritableStreamDefaultController.pro...
function yt (line 6269) | function yt(e){return new TypeError(`WritableStreamDefaultWriter.prototy...
function gt (line 6269) | function gt(e){return new TypeError("Cannot "+e+" a stream using a relea...
function St (line 6269) | function St(e){e._closedPromise=c(((t,r)=>{e._closedPromise_resolve=t,e....
function wt (line 6269) | function wt(e,t){St(e),vt(e,t)}
function vt (line 6269) | function vt(e,t){void 0!==e._closedPromise_reject&&(y(e._closedPromise),...
function Rt (line 6269) | function Rt(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_reso...
function Tt (line 6269) | function Tt(e){e._readyPromise=c(((t,r)=>{e._readyPromise_resolve=t,e._r...
function qt (line 6269) | function qt(e,t){Tt(e),Pt(e,t)}
function Ct (line 6269) | function Ct(e){Tt(e),Et(e)}
function Pt (line 6269) | function Pt(e,t){void 0!==e._readyPromise_reject&&(y(e._readyPromise),e....
function Et (line 6269) | function Et(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolv...
function kt (line 6269) | function kt(e,t,r,o,n,a){const i=e.getReader(),l=t.getWriter();Ut(e)&&(e...
function Bt (line 6269) | function Bt(e,t){return function(e){try{return e.getReader({mode:"byob"}...
class ReadableStreamDefaultController (line 6269) | class ReadableStreamDefaultController{constructor(){throw new TypeError(...
method constructor (line 6269) | constructor(){throw new TypeError("Illegal constructor")}
method desiredSize (line 6269) | get desiredSize(){if(!At(this))throw $t("desiredSize");return Ft(this)}
method close (line 6269) | close(){if(!At(this))throw $t("close");if(!Dt(this))throw new TypeErro...
method enqueue (line 6269) | enqueue(e){if(!At(this))throw $t("enqueue");if(!Dt(this))throw new Typ...
method error (line 6269) | error(e){if(!At(this))throw $t("error");Lt(this,e)}
method [q] (line 6269) | [q](e){de(this);const t=this._cancelAlgorithm(e);return zt(this),t}
method [C] (line 6269) | [C](e){const t=this._controlledReadableStream;if(this._queue.length>0)...
method [P] (line 6269) | [P](){}
method constructor (line 12312) | constructor() {
method desiredSize (line 12319) | get desiredSize() {
method close (line 12329) | close() {
method enqueue (line 12338) | enqueue(chunk = undefined) {
method error (line 12350) | error(e = undefined) {
method [CancelSteps] (line 12357) | [CancelSteps](reason) {
method [PullSteps] (line 12364) | [PullSteps](readRequest) {
function At (line 6269) | function At(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"...
function jt (line 6269) | function jt(e){const t=function(e){const t=e._controlledReadableStream;i...
function zt (line 6269) | function zt(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._stra...
function Lt (line 6269) | function Lt(e,t){const r=e._controlledReadableStream;"readable"===r._sta...
function Ft (line 6269) | function Ft(e){const t=e._controlledReadableStream._state;return"errored...
function Dt (line 6269) | function Dt(e){return!e._closeRequested&&"readable"===e._controlledReada...
function It (line 6269) | function It(e,t,r,o){const n=Object.create(ReadableStreamDefaultControll...
function $t (line 6269) | function $t(e){return new TypeError(`ReadableStreamDefaultController.pro...
function Mt (line 6269) | function Mt(e,t,r){return I(e,r),r=>w(e,t,[r])}
function Yt (line 6269) | function Yt(e,t,r){return I(e,r),r=>w(e,t,[r])}
function Qt (line 6269) | function Qt(e,t,r){return I(e,r),r=>S(e,t,[r])}
function Nt (line 6269) | function Nt(e,t){if("bytes"!==(e=`${e}`))throw new TypeError(`${t} '${e}...
function xt (line 6269) | function xt(e,t){if("byob"!==(e=`${e}`))throw new TypeError(`${t} '${e}'...
function Ht (line 6269) | function Ht(e,t){D(e,t);const r=null==e?void 0:e.preventAbort,o=null==e?...
function Vt (line 6269) | function Vt(e,t){D(e,t);const r=null==e?void 0:e.readable;Y(r,"readable"...
class ReadableStream (line 6269) | class ReadableStream{constructor(e={},t={}){void 0===e?e=null:$(e,"First...
method constructor (line 6269) | constructor(e={},t={}){void 0===e?e=null:$(e,"First parameter");const ...
method locked (line 6269) | get locked(){if(!Ut(this))throw Zt("locked");return Gt(this)}
method cancel (line 6269) | cancel(e){return Ut(this)?Gt(this)?f(new TypeError("Cannot cancel a st...
method getReader (line 6269) | getReader(e){if(!Ut(this))throw Zt("getReader");return void 0===functi...
method pipeThrough (line 6269) | pipeThrough(e,t={}){if(!H(this))throw Zt("pipeThrough");M(e,1,"pipeThr...
method pipeTo (line 6269) | pipeTo(e,t={}){if(!H(this))return f(Zt("pipeTo"));if(void 0===e)return...
method tee (line 6269) | tee(){if(!H(this))throw Zt("tee");if(this.locked)throw new TypeError("...
method values (line 6269) | values(e){if(!H(this))throw Zt("values");return function(e,t){const r=...
method constructor (line 12998) | constructor(rawUnderlyingSource = {}, rawStrategy = {}) {
method locked (line 13024) | get locked() {
method cancel (line 13036) | cancel(reason = undefined) {
method getReader (line 13045) | getReader(rawOptions = undefined) {
method pipeThrough (line 13055) | pipeThrough(rawTransform, rawOptions = {}) {
method pipeTo (line 13072) | pipeTo(destination, rawOptions = {}) {
method tee (line 13108) | tee() {
method values (line 13115) | values(rawOptions = undefined) {
function Ut (line 6269) | function Ut(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"...
function Gt (line 6269) | function Gt(e){return void 0!==e._reader}
function Xt (line 6269) | function Xt(e,t){if(e._disturbed=!0,"closed"===e._state)return d(void 0)...
function Jt (line 6269) | function Jt(e){e._state="closed";const t=e._reader;if(void 0!==t&&(z(t),...
function Kt (line 6269) | function Kt(e,t){e._state="errored",e._storedError=t;const r=e._reader;v...
function Zt (line 6269) | function Zt(e){return new TypeError(`ReadableStream.prototype.${e} can o...
function er (line 6269) | function er(e,t){D(e,t);const r=null==e?void 0:e.highWaterMark;return Y(...
class ByteLengthQueuingStrategy (line 6269) | class ByteLengthQueuingStrategy{constructor(e){M(e,1,"ByteLengthQueuingS...
method constructor (line 6269) | constructor(e){M(e,1,"ByteLengthQueuingStrategy"),e=er(e,"First parame...
method highWaterMark (line 6269) | get highWaterMark(){if(!or(this))throw rr("highWaterMark");return this...
method size (line 6269) | get size(){if(!or(this))throw rr("size");return tr}
method constructor (line 13272) | constructor(options) {
method highWaterMark (line 13280) | get highWaterMark() {
method size (line 13289) | get size() {
function rr (line 6269) | function rr(e){return new TypeError(`ByteLengthQueuingStrategy.prototype...
function or (line 6269) | function or(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"...
class CountQueuingStrategy (line 6269) | class CountQueuingStrategy{constructor(e){M(e,1,"CountQueuingStrategy"),...
method constructor (line 6269) | constructor(e){M(e,1,"CountQueuingStrategy"),e=er(e,"First parameter")...
method highWaterMark (line 6269) | get highWaterMark(){if(!ir(this))throw ar("highWaterMark");return this...
method size (line 6269) | get size(){if(!ir(this))throw ar("size");return nr}
method constructor (line 13340) | constructor(options) {
method highWaterMark (line 13348) | get highWaterMark() {
method size (line 13358) | get size() {
function ar (line 6269) | function ar(e){return new TypeError(`CountQueuingStrategy.prototype.${e}...
function ir (line 6269) | function ir(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"...
function lr (line 6269) | function lr(e,t,r){return I(e,r),r=>w(e,t,[r])}
function sr (line 6269) | function sr(e,t,r){return I(e,r),r=>S(e,t,[r])}
function ur (line 6269) | function ur(e,t,r){return I(e,r),(r,o)=>w(e,t,[r,o])}
class TransformStream (line 6269) | class TransformStream{constructor(e={},t={},r={}){void 0===e&&(e=null);c...
method constructor (line 6269) | constructor(e={},t={},r={}){void 0===e&&(e=null);const o=Qe(t,"Second ...
method readable (line 6269) | get readable(){if(!cr(this))throw gr("readable");return this._readable}
method writable (line 6269) | get writable(){if(!cr(this))throw gr("writable");return this._writable}
method constructor (line 13433) | constructor(rawTransformer = {}, rawWritableStrategy = {}, rawReadable...
method readable (line 13466) | get readable() {
method writable (line 13475) | get writable() {
function cr (line 6269) | function cr(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"...
function dr (line 6269) | function dr(e,t){vr(e,t),fr(e,t)}
function fr (line 6269) | function fr(e,t){_r(e._transformStreamController),function(e,t){e._writa...
function br (line 6269) | function br(e,t){void 0!==e._backpressureChangePromise&&e._backpressureC...
class TransformStreamDefaultController (line 6269) | class TransformStreamDefaultController{constructor(){throw new TypeError...
method constructor (line 6269) | constructor(){throw new TypeError("Illegal constructor")}
method desiredSize (line 6269) | get desiredSize(){if(!hr(this))throw yr("desiredSize");return Rr(this....
method enqueue (line 6269) | enqueue(e){if(!hr(this))throw yr("enqueue");pr(this,e)}
method error (line 6269) | error(e){if(!hr(this))throw yr("error");var t;t=e,dr(this._controlledT...
method terminate (line 6269) | terminate(){if(!hr(this))throw yr("terminate");!function(e){const t=e....
method constructor (line 13562) | constructor() {
method desiredSize (line 13568) | get desiredSize() {
method enqueue (line 13575) | enqueue(chunk = undefined) {
method error (line 13585) | error(reason = undefined) {
method terminate (line 13595) | terminate() {
function hr (line 6269) | function hr(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"...
function _r (line 6269) | function _r(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}
function pr (line 6269) | function pr(e,t){const r=e._controlledTransformStream;if(!Sr(r))throw ne...
function mr (line 6269) | function mr(e,t){return m(e._transformAlgorithm(t),void 0,(t=>{throw dr(...
function yr (line 6269) | function yr(e){return new TypeError(`TransformStreamDefaultController.pr...
function gr (line 6269) | function gr(e){return new TypeError(`TransformStream.prototype.${e} can ...
function Sr (line 6269) | function Sr(e){return!e._readableCloseRequested&&"readable"===e._readabl...
function wr (line 6269) | function wr(e){e._readableState="closed",e._readableCloseRequested=!0,e....
function vr (line 6269) | function vr(e,t){"readable"===e._readableState&&(e._readableState="error...
function Rr (line 6269) | function Rr(e){return e._readableController.desiredSize}
function Tr (line 6269) | function Tr(e,t){"writable"!==e._writableState?Cr(e):qr(e,t)}
function qr (line 6269) | function qr(e,t){e._writableState="erroring",e._writableStoredError=t,!f...
function Cr (line 6269) | function Cr(e){e._writableState="errored"}
function Pr (line 6269) | function Pr(e){"erroring"===e._writableState&&Cr(e)}
function isObject (line 6321) | function isObject(o) {
function isPlainObject (line 6325) | function isPlainObject(o) {
function parse (line 6402) | function parse(str) {
function fmtShort (line 6467) | function fmtShort(ms) {
function fmtLong (line 6492) | function fmtLong(ms) {
function plural (line 6513) | function plural(ms, msAbs, n, name) {
function _interopDefault (line 6552) | function _interopDefault (ex) { return (ex && (typeof ex === 'object') &...
class Blob (line 6569) | class Blob {
method constructor (line 6570) | constructor() {
method size (line 6608) | get size() {
method type (line 6611) | get type() {
method text (line 6614) | text() {
method arrayBuffer (line 6617) | arrayBuffer() {
method stream (line 6622) | stream() {
method toString (line 6629) | toString() {
method slice (line 6632) | slice() {
method constructor (line 16262) | constructor(blobParts = [], options = {}) {
method type (line 16307) | get type() {
method size (line 16310) | get size() {
method slice (line 16313) | slice(start, end, contentType) {
method text (line 16318) | async text() {
method arrayBuffer (line 16327) | async arrayBuffer() {
method stream (line 16336) | stream() {
function FetchError (line 6689) | function FetchError(message, type, systemError) {
function Body (line 6727) | function Body(body) {
method body (line 6771) | get body() {
method bodyUsed (line 6775) | get bodyUsed() {
method arrayBuffer (line 6784) | arrayBuffer() {
method blob (line 6795) | blob() {
method json (line 6813) | json() {
method text (line 6830) | text() {
method buffer (line 6841) | buffer() {
method textConverted (line 6851) | textConverted() {
function consumeBody (line 6887) | function consumeBody() {
function convertBody (line 6991) | function convertBody(buffer, headers) {
function isURLSearchParams (line 7055) | function isURLSearchParams(obj) {
function isBlob (line 7070) | function isBlob(obj) {
function clone (line 7080) | function clone(instance) {
function extractContentType (line 7114) | function extractContentType(body) {
function getTotalBytes (line 7158) | function getTotalBytes(instance) {
function writeToStream (line 7190) | function writeToStream(dest, instance) {
function validateName (line 7221) | function validateName(name) {
function validateValue (line 7228) | function validateValue(value) {
function find (line 7243) | function find(map, name) {
class Headers (line 7254) | class Headers {
method constructor (line 7261) | constructor() {
method get (line 7322) | get(name) {
method forEach (line 7340) | forEach(callback) {
method set (line 7363) | set(name, value) {
method append (line 7379) | append(name, value) {
method has (line 7398) | has(name) {
method delete (line 7410) | delete(name) {
method raw (line 7424) | raw() {
method keys (line 7433) | keys() {
method values (line 7442) | values() {
method [Symbol.iterator] (line 7453) | [Symbol.iterator]() {
function getHeaders (line 7478) | function getHeaders(headers) {
function createHeadersIterator (line 7493) | function createHeadersIterator(target, kind) {
method next (line 7504) | next() {
function exportNodeCompatibleHeaders (line 7546) | function exportNodeCompatibleHeaders(headers) {
function createHeadersLenient (line 7566) | function createHeadersLenient(obj) {
class Response (line 7602) | class Response {
method constructor (line 7603) | constructor() {
method url (line 7628) | get url() {
method status (line 7632) | get status() {
method ok (line 7639) | get ok() {
method redirected (line 7643) | get redirected() {
method statusText (line 7647) | get statusText() {
method headers (line 7651) | get headers() {
method clone (line 7660) | clone() {
function parseURL (line 7704) | function parseURL(urlStr) {
function isRequest (line 7726) | function isRequest(input) {
function isAbortSignal (line 7730) | function isAbortSignal(signal) {
class Request (line 7742) | class Request {
method constructor (line 7743) | constructor(input) {
method method (line 7809) | get method() {
method url (line 7813) | get url() {
method headers (line 7817) | get headers() {
method redirect (line 7821) | get redirect() {
method signal (line 7825) | get signal() {
method clone (line 7834) | clone() {
function getNodeRequestOptions (line 7863) | function getNodeRequestOptions(request) {
function AbortError (line 7941) | function AbortError(message) {
function fetch (line 7988) | function fetch(url, opts) {
function fixResponseChunkedTransferBadEnding (line 8280) | function fixResponseChunkedTransferBadEnding(request, errorCallback) {
function destroyStream (line 8305) | function destroyStream(stream, err) {
function once (line 8362) | function once (fn) {
function onceStrict (line 8372) | function onceStrict (fn) {
function _typeof (line 8392) | function _typeof(obj){"@babel/helpers - typeof";return _typeof="function...
function _createForOfIteratorHelper (line 8392) | function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symb...
function _defineProperty (line 8392) | function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key i...
function _toPropertyKey (line 8392) | function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _...
function _toPrimitive (line 8392) | function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===...
function _slicedToArray (line 8392) | function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToA...
function _nonIterableRest (line 8392) | function _nonIterableRest(){throw new TypeError("Invalid attempt to dest...
function _unsupportedIterableToArray (line 8392) | function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o=...
function _arrayLikeToArray (line 8392) | function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr...
function _iterableToArrayLimit (line 8392) | function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!...
function _arrayWithHoles (line 8392) | function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}
function normalize (line 8411) | function normalize(str) { // fix bug in v8
function findStatus (line 8415) | function findStatus(val) {
function countSymbols (line 8437) | function countSymbols(string) {
function mapChars (line 8445) | function mapChars(domain_name, useSTD3, processing_option) {
function validateLabel (line 8500) | function validateLabel(label, processing_option) {
function processing (line 8533) | function processing(domain_name, useSTD3, processing_option) {
function httpOverHttp (line 8627) | function httpOverHttp(options) {
function httpsOverHttp (line 8633) | function httpsOverHttp(options) {
function httpOverHttps (line 8641) | function httpOverHttps(options) {
function httpsOverHttps (line 8647) | function httpsOverHttps(options) {
function TunnelingAgent (line 8656) | function TunnelingAgent(options) {
function onFree (line 8699) | function onFree() {
function onCloseOrRemove (line 8703) | function onCloseOrRemove(err) {
function onResponse (line 8743) | function onResponse(res) {
function onUpgrade (line 8748) | function onUpgrade(res, socket, head) {
function onConnect (line 8755) | function onConnect(res, socket, head) {
function onError (line 8784) | function onError(cause) {
function createSecureSocket (line 8814) | function createSecureSocket(options, cb) {
function toOptions (line 8831) | function toOptions(host, port, localAddress) {
function mergeOptions (line 8842) | function mergeOptions(target) {
function getUserAgent (line 8886) | function getUserAgent() {
function _interopRequireDefault (line 8986) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function _interopRequireDefault (line 9003) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function md5 (line 9005) | function md5(bytes) {
function _interopRequireDefault (line 9048) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function parse (line 9050) | function parse(uuid) {
function _interopRequireDefault (line 9115) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function rng (line 9121) | function rng() {
function _interopRequireDefault (line 9146) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function sha1 (line 9148) | function sha1(bytes) {
function _interopRequireDefault (line 9176) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function stringify (line 9188) | function stringify(arr, offset = 0) {
function _interopRequireDefault (line 9224) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function v1 (line 9238) | function v1(options, buf, offset) {
function _interopRequireDefault (line 9338) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function _interopRequireDefault (line 9362) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function stringToBytes (line 9364) | function stringToBytes(str) {
function _default (line 9381) | function _default(name, version, hashfunc) {
function _interopRequireDefault (line 9446) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function v4 (line 9448) | function v4(options, buf, offset) {
function _interopRequireDefault (line 9490) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function _interopRequireDefault (line 9511) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function validate (line 9513) | function validate(uuid) {
function _interopRequireDefault (line 9535) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function version (line 9537) | function version(uuid) {
function noop (line 9567) | function noop() {
function getGlobals (line 9570) | function getGlobals() {
function typeIsObject (line 9584) | function typeIsObject(x) {
function newPromise (line 9593) | function newPromise(executor) {
function promiseResolvedWith (line 9596) | function promiseResolvedWith(value) {
function promiseRejectedWith (line 9599) | function promiseRejectedWith(reason) {
function PerformPromiseThen (line 9602) | function PerformPromiseThen(promise, onFulfilled, onRejected) {
function uponPromise (line 9607) | function uponPromise(promise, onFulfilled, onRejected) {
function uponFulfillment (line 9610) | function uponFulfillment(promise, onFulfilled) {
function uponRejection (line 9613) | function uponRejection(promise, onRejected) {
function transformPromiseWith (line 9616) | function transformPromiseWith(promise, fulfillmentHandler, rejectionHand...
function setPromiseIsHandledToTrue (line 9619) | function setPromiseIsHandledToTrue(promise) {
function reflectCall (line 9630) | function reflectCall(F, V, args) {
function promiseCall (line 9636) | function promiseCall(F, V, args) {
class SimpleQueue (line 9654) | class SimpleQueue {
method constructor (line 9655) | constructor() {
method length (line 9671) | get length() {
method push (line 9678) | push(element) {
method shift (line 9698) | shift() { // must not be called on an empty queue
method forEach (line 9727) | forEach(callback) {
method peek (line 9746) | peek() { // must not be called on an empty queue
function ReadableStreamReaderGenericInitialize (line 9753) | function ReadableStreamReaderGenericInitialize(reader, stream) {
function ReadableStreamReaderGenericCancel (line 9768) | function ReadableStreamReaderGenericCancel(reader, reason) {
function ReadableStreamReaderGenericRelease (line 9772) | function ReadableStreamReaderGenericRelease(reader) {
function readerLockException (line 9783) | function readerLockException(name) {
function defaultReaderClosedPromiseInitialize (line 9787) | function defaultReaderClosedPromiseInitialize(reader) {
function defaultReaderClosedPromiseInitializeAsRejected (line 9793) | function defaultReaderClosedPromiseInitializeAsRejected(reader, reason) {
function defaultReaderClosedPromiseInitializeAsResolved (line 9797) | function defaultReaderClosedPromiseInitializeAsResolved(reader) {
function defaultReaderClosedPromiseReject (line 9801) | function defaultReaderClosedPromiseReject(reader, reason) {
function defaultReaderClosedPromiseResetToRejected (line 9810) | function defaultReaderClosedPromiseResetToRejected(reader, reason) {
function defaultReaderClosedPromiseResolve (line 9813) | function defaultReaderClosedPromiseResolve(reader) {
function isDictionary (line 9840) | function isDictionary(x) {
function assertDictionary (line 9843) | function assertDictionary(obj, context) {
function assertFunction (line 9849) | function assertFunction(x, context) {
function isObject (line 9855) | function isObject(x) {
function assertObject (line 9858) | function assertObject(x, context) {
function assertRequiredArgument (line 9863) | function assertRequiredArgument(x, position, context) {
function assertRequiredField (line 9868) | function assertRequiredField(x, field, context) {
function convertUnrestrictedDouble (line 9874) | function convertUnrestrictedDouble(value) {
function censorNegativeZero (line 9877) | function censorNegativeZero(x) {
function integerPart (line 9880) | function integerPart(x) {
function convertUnsignedLongLongWithEnforceRange (line 9884) | function convertUnsignedLongLongWithEnforceRange(value, context) {
function assertReadableStream (line 9906) | function assertReadableStream(x, context) {
function AcquireReadableStreamDefaultReader (line 9913) | function AcquireReadableStreamDefaultReader(stream) {
function ReadableStreamAddReadRequest (line 9917) | function ReadableStreamAddReadRequest(stream, readRequest) {
function ReadableStreamFulfillReadRequest (line 9920) | function ReadableStreamFulfillReadRequest(stream, chunk, done) {
function ReadableStreamGetNumReadRequests (line 9930) | function ReadableStreamGetNumReadRequests(stream) {
function ReadableStreamHasDefaultReader (line 9933) | function ReadableStreamHasDefaultReader(stream) {
class ReadableStreamDefaultReader (line 9948) | class ReadableStreamDefaultReader {
method constructor (line 6269) | constructor(e){if(M(e,1,"ReadableStreamDefaultReader"),U(e,"First para...
method closed (line 6269) | get closed(){return Z(this)?this._closedPromise:f(te("closed"))}
method cancel (line 6269) | cancel(e){return Z(this)?void 0===this._ownerReadableStream?f(k("cance...
method read (line 6269) | read(){if(!Z(this))return f(te("read"));if(void 0===this._ownerReadabl...
method releaseLock (line 6269) | releaseLock(){if(!Z(this))throw te("releaseLock");void 0!==this._owner...
method constructor (line 9949) | constructor(stream) {
method closed (line 9962) | get closed() {
method cancel (line 9971) | cancel(reason = undefined) {
method read (line 9985) | read() {
method releaseLock (line 10015) | releaseLock() {
function IsReadableStreamDefaultReader (line 10041) | function IsReadableStreamDefaultReader(x) {
function ReadableStreamDefaultReaderRead (line 10050) | function ReadableStreamDefaultReaderRead(reader, readRequest) {
function defaultReaderBrandCheckException (line 10064) | function defaultReaderBrandCheckException(name) {
class ReadableStreamAsyncIteratorImpl (line 10073) | class ReadableStreamAsyncIteratorImpl {
method constructor (line 10074) | constructor(reader, preventCancel) {
method next (line 10080) | next() {
method return (line 10087) | return(value) {
method _nextSteps (line 10093) | _nextSteps() {
method _returnSteps (line 10130) | _returnSteps(value) {
method next (line 10149) | next() {
method return (line 10155) | return(value) {
function AcquireReadableStreamAsyncIterator (line 10166) | function AcquireReadableStreamAsyncIterator(stream, preventCancel) {
function IsReadableStreamAsyncIterator (line 10173) | function IsReadableStreamAsyncIterator(x) {
function streamAsyncIteratorBrandCheckException (line 10190) | function streamAsyncIteratorBrandCheckException(name) {
function CreateArrayFromList (line 10201) | function CreateArrayFromList(elements) {
function CopyDataBlockBytes (line 10206) | function CopyDataBlockBytes(dest, destOffset, src, srcOffset, n) {
function TransferArrayBuffer (line 10210) | function TransferArrayBuffer(O) {
function IsDetachedBuffer (line 10215) | function IsDetachedBuffer(O) {
function ArrayBufferSlice (line 10218) | function ArrayBufferSlice(buffer, begin, end) {
function IsNonNegativeNumber (line 10230) | function IsNonNegativeNumber(v) {
function CloneAsUint8Array (line 10242) | function CloneAsUint8Array(O) {
function DequeueValue (line 10247) | function DequeueValue(container) {
function EnqueueValueWithSize (line 10255) | function EnqueueValueWithSize(container, value, size) {
function PeekQueueValue (line 10262) | function PeekQueueValue(container) {
function ResetQueue (line 10266) | function ResetQueue(container) {
class ReadableStreamBYOBRequest (line 10276) | class ReadableStreamBYOBRequest {
method constructor (line 6269) | constructor(){throw new TypeError("Illegal constructor")}
method view (line 6269) | get view(){if(!be(this))throw Ae("view");return this._view}
method respond (line 6269) | respond(e){if(!be(this))throw Ae("respond");if(M(e,1,"respond"),e=x(e,...
method respondWithNewView (line 6269) | respondWithNewView(e){if(!be(this))throw Ae("respondWithNewView");if(M...
method constructor (line 10277) | constructor() {
method view (line 10283) | get view() {
method respond (line 10289) | respond(bytesWritten) {
method respondWithNewView (line 10301) | respondWithNewView(view) {
class ReadableByteStreamController (line 10332) | class ReadableByteStreamController {
method constructor (line 6269) | constructor(){throw new TypeError("Illegal constructor")}
method byobRequest (line 6269) | get byobRequest(){if(!fe(this))throw je("byobRequest");return function...
method desiredSize (line 6269) | get desiredSize(){if(!fe(this))throw je("desiredSize");return ke(this)}
method close (line 6269) | close(){if(!fe(this))throw je("close");if(this._closeRequested)throw n...
method enqueue (line 6269) | enqueue(e){if(!fe(this))throw je("enqueue");if(M(e,1,"enqueue"),!Array...
method error (line 6269) | error(e){if(!fe(this))throw je("error");We(this,e)}
method [q] (line 6269) | [q](e){_e(this),de(this);const t=this._cancelAlgorithm(e);return Ee(th...
method [C] (line 6269) | [C](e){const t=this._controlledReadableByteStream;if(this._queueTotalS...
method [P] (line 6269) | [P](){if(this._pendingPullIntos.length>0){const e=this._pendingPullInt...
method constructor (line 10333) | constructor() {
method byobRequest (line 10339) | get byobRequest() {
method desiredSize (line 10349) | get desiredSize() {
method close (line 10359) | close() {
method enqueue (line 10372) | enqueue(chunk) {
method error (line 10398) | error(e = undefined) {
method [CancelSteps] (line 10405) | [CancelSteps](reason) {
method [PullSteps] (line 10413) | [PullSteps](readRequest) {
function IsReadableByteStreamController (line 10463) | function IsReadableByteStreamController(x) {
function IsReadableStreamBYOBRequest (line 10472) | function IsReadableStreamBYOBRequest(x) {
function ReadableByteStreamControllerCallPullIfNeeded (line 10481) | function ReadableByteStreamControllerCallPullIfNeeded(controller) {
function ReadableByteStreamControllerClearPendingPullIntos (line 10503) | function ReadableByteStreamControllerClearPendingPullIntos(controller) {
function ReadableByteStreamControllerCommitPullIntoDescriptor (line 10507) | function ReadableByteStreamControllerCommitPullIntoDescriptor(stream, pu...
function ReadableByteStreamControllerConvertPullIntoDescriptor (line 10520) | function ReadableByteStreamControllerConvertPullIntoDescriptor(pullIntoD...
function ReadableByteStreamControllerEnqueueChunkToQueue (line 10525) | function ReadableByteStreamControllerEnqueueChunkToQueue(controller, buf...
function ReadableByteStreamControllerFillPullIntoDescriptorFromQueue (line 10529) | function ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(con...
function ReadableByteStreamControllerFillHeadPullIntoDescriptor (line 10560) | function ReadableByteStreamControllerFillHeadPullIntoDescriptor(controll...
function ReadableByteStreamControllerHandleQueueDrain (line 10563) | function ReadableByteStreamControllerHandleQueueDrain(controller) {
function ReadableByteStreamControllerInvalidateBYOBRequest (line 10572) | function ReadableByteStreamControllerInvalidateBYOBRequest(controller) {
function ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue (line 10580) | function ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueu...
function ReadableByteStreamControllerPullInto (line 10592) | function ReadableByteStreamControllerPullInto(controller, view, readInto...
function ReadableByteStreamControllerRespondInClosedState (line 10646) | function ReadableByteStreamControllerRespondInClosedState(controller, fi...
function ReadableByteStreamControllerRespondInReadableState (line 10655) | function ReadableByteStreamControllerRespondInReadableState(controller, ...
function ReadableByteStreamControllerRespondInternal (line 10671) | function ReadableByteStreamControllerRespondInternal(controller, bytesWr...
function ReadableByteStreamControllerShiftPendingPullInto (line 10683) | function ReadableByteStreamControllerShiftPendingPullInto(controller) {
function ReadableByteStreamControllerShouldCallPull (line 10687) | function ReadableByteStreamControllerShouldCallPull(controller) {
function ReadableByteStreamControllerClearAlgorithms (line 10710) | function ReadableByteStreamControllerClearAlgorithms(controller) {
function ReadableByteStreamControllerClose (line 10715) | function ReadableByteStreamControllerClose(controller) {
function ReadableByteStreamControllerEnqueue (line 10735) | function ReadableByteStreamControllerEnqueue(controller, chunk) {
function ReadableByteStreamControllerError (line 10772) | function ReadableByteStreamControllerError(controller, e) {
function ReadableByteStreamControllerGetBYOBRequest (line 10782) | function ReadableByteStreamControllerGetBYOBRequest(controller) {
function ReadableByteStreamControllerGetDesiredSize (line 10792) | function ReadableByteStreamControllerGetDesiredSize(controller) {
function ReadableByteStreamControllerRespond (line 10802) | function ReadableByteStreamControllerRespond(controller, bytesWritten) {
function ReadableByteStreamControllerRespondWithNewView (line 10821) | function ReadableByteStreamControllerRespondWithNewView(controller, view) {
function SetUpReadableByteStreamController (line 10847) | function SetUpReadableByteStreamController(stream, controller, startAlgo...
function SetUpReadableByteStreamControllerFromUnderlyingSource (line 10871) | function SetUpReadableByteStreamControllerFromUnderlyingSource(stream, u...
function SetUpReadableStreamBYOBRequest (line 10891) | function SetUpReadableStreamBYOBRequest(request, controller, view) {
function byobRequestBrandCheckException (line 10896) | function byobRequestBrandCheckException(name) {
function byteStreamControllerBrandCheckException (line 10900) | function byteStreamControllerBrandCheckException(name) {
function AcquireReadableStreamBYOBReader (line 10905) | function AcquireReadableStreamBYOBReader(stream) {
function ReadableStreamAddReadIntoRequest (line 10909) | function ReadableStreamAddReadIntoRequest(stream, readIntoRequest) {
function ReadableStreamFulfillReadIntoRequest (line 10912) | function ReadableStreamFulfillReadIntoRequest(stream, chunk, done) {
function ReadableStreamGetNumReadIntoRequests (line 10922) | function ReadableStreamGetNumReadIntoRequests(stream) {
function ReadableStreamHasBYOBReader (line 10925) | function ReadableStreamHasBYOBReader(stream) {
class ReadableStreamBYOBReader (line 10940) | class ReadableStreamBYOBReader {
method constructor (line 6269) | constructor(e){if(M(e,1,"ReadableStreamBYOBReader"),U(e,"First paramet...
method closed (line 6269) | get closed(){return De(this)?this._closedPromise:f($e("closed"))}
method cancel (line 6269) | cancel(e){return De(this)?void 0===this._ownerReadableStream?f(k("canc...
method read (line 6269) | read(e){if(!De(this))return f($e("read"));if(!ArrayBuffer.isView(e))re...
method releaseLock (line 6269) | releaseLock(){if(!De(this))throw $e("releaseLock");void 0!==this._owne...
method constructor (line 10941) | constructor(stream) {
method closed (line 10958) | get closed() {
method cancel (line 10967) | cancel(reason = undefined) {
method read (line 10981) | read(view) {
method releaseLock (line 11021) | releaseLock() {
function IsReadableStreamBYOBReader (line 11047) | function IsReadableStreamBYOBReader(x) {
function ReadableStreamBYOBReaderRead (line 11056) | function ReadableStreamBYOBReaderRead(reader, view, readIntoRequest) {
function byobReaderBrandCheckException (line 11067) | function byobReaderBrandCheckException(name) {
function ExtractHighWaterMark (line 11071) | function ExtractHighWaterMark(strategy, defaultHWM) {
function ExtractSizeAlgorithm (line 11081) | function ExtractSizeAlgorithm(strategy) {
function convertQueuingStrategy (line 11089) | function convertQueuingStrategy(init, context) {
function convertQueuingStrategySize (line 11098) | function convertQueuingStrategySize(fn, context) {
function convertUnderlyingSink (line 11103) | function convertUnderlyingSink(original, context) {
function convertUnderlyingSinkAbortCallback (line 11126) | function convertUnderlyingSinkAbortCallback(fn, original, context) {
function convertUnderlyingSinkCloseCallback (line 11130) | function convertUnderlyingSinkCloseCallback(fn, original, context) {
function convertUnderlyingSinkStartCallback (line 11134) | function convertUnderlyingSinkStartCallback(fn, original, context) {
function convertUnderlyingSinkWriteCallback (line 11138) | function convertUnderlyingSinkWriteCallback(fn, original, context) {
function assertWritableStream (line 11143) | function assertWritableStream(x, context) {
function isAbortSignal (line 11149) | function isAbortSignal(value) {
function createAbortController (line 11167) | function createAbortController() {
class WritableStream (line 11179) | class WritableStream {
method constructor (line 6269) | constructor(e={},t={}){void 0===e?e=null:$(e,"First parameter");const ...
method locked (line 6269) | get locked(){if(!Xe(this))throw pt("locked");return Je(this)}
method abort (line 6269) | abort(e){return Xe(this)?Je(this)?f(new TypeError("Cannot abort a stre...
method close (line 6269) | close(){return Xe(this)?Je(this)?f(new TypeError("Cannot close a strea...
method getWriter (line 6269) | getWriter(){if(!Xe(this))throw pt("getWriter");return new WritableStre...
method constructor (line 11180) | constructor(rawUnderlyingSink = {}, rawStrategy = {}) {
method locked (line 11201) | get locked() {
method abort (line 11216) | abort(reason = undefined) {
method close (line 11233) | close() {
method getWriter (line 11253) | getWriter() {
function AcquireWritableStreamDefaultWriter (line 11273) | function AcquireWritableStreamDefaultWriter(stream) {
function CreateWritableStream (line 11277) | function CreateWritableStream(startAlgorithm, writeAlgorithm, closeAlgor...
function InitializeWritableStream (line 11284) | function InitializeWritableStream(stream) {
function IsWritableStream (line 11310) | function IsWritableStream(x) {
function IsWritableStreamLocked (line 11319) | function IsWritableStreamLocked(stream) {
function WritableStreamAbort (line 11325) | function WritableStreamAbort(stream, reason) {
function WritableStreamClose (line 11363) | function WritableStreamClose(stream) {
function WritableStreamAddWriteRequest (line 11383) | function WritableStreamAddWriteRequest(stream) {
function WritableStreamDealWithRejection (line 11393) | function WritableStreamDealWithRejection(stream, error) {
function WritableStreamStartErroring (line 11401) | function WritableStreamStartErroring(stream, reason) {
function WritableStreamFinishErroring (line 11413) | function WritableStreamFinishErroring(stream) {
function WritableStreamFinishInFlightWrite (line 11441) | function WritableStreamFinishInFlightWrite(stream) {
function WritableStreamFinishInFlightWriteWithError (line 11445) | function WritableStreamFinishInFlightWriteWithError(stream, error) {
function WritableStreamFinishInFlightClose (line 11450) | function WritableStreamFinishInFlightClose(stream) {
function WritableStreamFinishInFlightCloseWithError (line 11468) | function WritableStreamFinishInFlightCloseWithError(stream, error) {
function WritableStreamCloseQueuedOrInFlight (line 11479) | function WritableStreamCloseQueuedOrInFlight(stream) {
function WritableStreamHasOperationMarkedInFlight (line 11485) | function WritableStreamHasOperationMarkedInFlight(stream) {
function WritableStreamMarkCloseRequestInFlight (line 11491) | function WritableStreamMarkCloseRequestInFlight(stream) {
function WritableStreamMarkFirstWriteRequestInFlight (line 11495) | function WritableStreamMarkFirstWriteRequestInFlight(stream) {
function WritableStreamRejectCloseAndClosedPromiseIfNeeded (line 11498) | function WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream) {
function WritableStreamUpdateBackpressure (line 11508) | function WritableStreamUpdateBackpressure(stream, backpressure) {
class WritableStreamDefaultWriter (line 11525) | class WritableStreamDefaultWriter {
method constructor (line 6269) | constructor(e){if(M(e,1,"WritableStreamDefaultWriter"),function(e,t){i...
method closed (line 6269) | get closed(){return it(this)?this._closedPromise:f(yt("closed"))}
method desiredSize (line 6269) | get desiredSize(){if(!it(this))throw yt("desiredSize");if(void 0===thi...
method ready (line 6269) | get ready(){return it(this)?this._readyPromise:f(yt("ready"))}
method abort (line 6269) | abort(e){return it(this)?void 0===this._ownerWritableStream?f(gt("abor...
method close (line 6269) | close(){if(!it(this))return f(yt("close"));const e=this._ownerWritable...
method releaseLock (line 6269) | releaseLock(){if(!it(this))throw yt("releaseLock");void 0!==this._owne...
method write (line 6269) | write(e){return it(this)?void 0===this._ownerWritableStream?f(gt("writ...
method constructor (line 11526) | constructor(stream) {
method closed (line 11562) | get closed() {
method desiredSize (line 11576) | get desiredSize() {
method ready (line 11593) | get ready() {
method abort (line 11602) | abort(reason = undefined) {
method close (line 11614) | close() {
method releaseLock (line 11637) | releaseLock() {
method write (line 11647) | write(chunk = undefined) {
function IsWritableStreamDefaultWriter (line 11673) | function IsWritableStreamDefaultWriter(x) {
function WritableStreamDefaultWriterAbort (line 11683) | function WritableStreamDefaultWriterAbort(writer, reason) {
function WritableStreamDefaultWriterClose (line 11687) | function WritableStreamDefaultWriterClose(writer) {
function WritableStreamDefaultWriterCloseWithErrorPropagation (line 11691) | function WritableStreamDefaultWriterCloseWithErrorPropagation(writer) {
function WritableStreamDefaultWriterEnsureClosedPromiseRejected (line 11702) | function WritableStreamDefaultWriterEnsureClosedPromiseRejected(writer, ...
function WritableStreamDefaultWriterEnsureReadyPromiseRejected (line 11710) | function WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, e...
function WritableStreamDefaultWriterGetDesiredSize (line 11718) | function WritableStreamDefaultWriterGetDesiredSize(writer) {
function WritableStreamDefaultWriterRelease (line 11729) | function WritableStreamDefaultWriterRelease(writer) {
function WritableStreamDefaultWriterWrite (line 11739) | function WritableStreamDefaultWriterWrite(writer, chunk) {
class WritableStreamDefaultController (line 11766) | class WritableStreamDefaultController {
method constructor (line 6269) | constructor(){throw new TypeError("Illegal constructor")}
method abortReason (line 6269) | get abortReason(){if(!ut(this))throw mt("abortReason");return this._ab...
method signal (line 6269) | get signal(){if(!ut(this))throw mt("signal");if(void 0===this._abortCo...
method error (line 6269) | error(e){if(!ut(this))throw mt("error");"writable"===this._controlledW...
method [R] (line 6269) | [R](e){const t=this._abortAlgorithm(e);return ct(this),t}
method [T] (line 6269) | [T](){de(this)}
method constructor (line 11767) | constructor() {
method abortReason (line 11777) | get abortReason() {
method signal (line 11786) | get signal() {
method error (line 11805) | error(e = undefined) {
method [AbortSteps] (line 11818) | [AbortSteps](reason) {
method [ErrorSteps] (line 11824) | [ErrorSteps]() {
function IsWritableStreamDefaultController (line 11840) | function IsWritableStreamDefaultController(x) {
function SetUpWritableStreamDefaultController (line 11849) | function SetUpWritableStreamDefaultController(stream, controller, startA...
function SetUpWritableStreamDefaultControllerFromUnderlyingSink (line 11876) | function SetUpWritableStreamDefaultControllerFromUnderlyingSink(stream, ...
function WritableStreamDefaultControllerClearAlgorithms (line 11897) | function WritableStreamDefaultControllerClearAlgorithms(controller) {
function WritableStreamDefaultControllerClose (line 11903) | function WritableStreamDefaultControllerClose(controller) {
function WritableStreamDefaultControllerGetChunkSize (line 11907) | function WritableStreamDefaultControllerGetChunkSize(controller, chunk) {
function WritableStreamDefaultControllerGetDesiredSize (line 11916) | function WritableStreamDefaultControllerGetDesiredSize(controller) {
function WritableStreamDefaultControllerWrite (line 11919) | function WritableStreamDefaultControllerWrite(controller, chunk, chunkSi...
function WritableStreamDefaultControllerAdvanceQueueIfNeeded (line 11935) | function WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller) {
function WritableStreamDefaultControllerErrorIfNeeded (line 11959) | function WritableStreamDefaultControllerErrorIfNeeded(controller, error) {
function WritableStreamDefaultControllerProcessClose (line 11964) | function WritableStreamDefaultControllerProcessClose(controller) {
function WritableStreamDefaultControllerProcessWrite (line 11976) | function WritableStreamDefaultControllerProcessWrite(controller, chunk) {
function WritableStreamDefaultControllerGetBackpressure (line 11996) | function WritableStreamDefaultControllerGetBackpressure(controller) {
function WritableStreamDefaultControllerError (line 12001) | function WritableStreamDefaultControllerError(controller, error) {
function streamBrandCheckException$2 (line 12007) | function streamBrandCheckException$2(name) {
function defaultControllerBrandCheckException$2 (line 12011) | function defaultControllerBrandCheckException$2(name) {
function defaultWriterBrandCheckException (line 12015) | function defaultWriterBrandCheckException(name) {
function defaultWriterLockException (line 12018) | function defaultWriterLockException(name) {
function defaultWriterClosedPromiseInitialize (line 12021) | function defaultWriterClosedPromiseInitialize(writer) {
function defaultWriterClosedPromiseInitializeAsRejected (line 12028) | function defaultWriterClosedPromiseInitializeAsRejected(writer, reason) {
function defaultWriterClosedPromiseInitializeAsResolved (line 12032) | function defaultWriterClosedPromiseInitializeAsResolved(writer) {
function defaultWriterClosedPromiseReject (line 12036) | function defaultWriterClosedPromiseReject(writer, reason) {
function defaultWriterClosedPromiseResetToRejected (line 12046) | function defaultWriterClosedPromiseResetToRejected(writer, reason) {
function defaultWriterClosedPromiseResolve (line 12049) | function defaultWriterClosedPromiseResolve(writer) {
function defaultWriterReadyPromiseInitialize (line 12058) | function defaultWriterReadyPromiseInitialize(writer) {
function defaultWriterReadyPromiseInitializeAsRejected (line 12065) | function defaultWriterReadyPromiseInitializeAsRejected(writer, reason) {
function defaultWriterReadyPromiseInitializeAsResolved (line 12069) | function defaultWriterReadyPromiseInitializeAsResolved(writer) {
function defaultWriterReadyPromiseReject (line 12073) | function defaultWriterReadyPromiseReject(writer, reason) {
function defaultWriterReadyPromiseReset (line 12083) | function defaultWriterReadyPromiseReset(writer) {
function defaultWriterReadyPromiseResetToRejected (line 12086) | function defaultWriterReadyPromiseResetToRejected(writer, reason) {
function defaultWriterReadyPromiseResolve (line 12089) | function defaultWriterReadyPromiseResolve(writer) {
function isDOMExceptionConstructor (line 12103) | function isDOMExceptionConstructor(ctor) {
function createDOMExceptionPolyfill (line 12115) | function createDOMExceptionPolyfill() {
function ReadableStreamPipeTo (line 12131) | function ReadableStreamPipeTo(source, dest, preventClose, preventAbort, ...
class ReadableStreamDefaultController (line 12311) | class ReadableStreamDefaultController {
method constructor (line 6269) | constructor(){throw new TypeError("Illegal constructor")}
method desiredSize (line 6269) | get desiredSize(){if(!At(this))throw $t("desiredSize");return Ft(this)}
method close (line 6269) | close(){if(!At(this))throw $t("close");if(!Dt(this))throw new TypeErro...
method enqueue (line 6269) | enqueue(e){if(!At(this))throw $t("enqueue");if(!Dt(this))throw new Typ...
method error (line 6269) | error(e){if(!At(this))throw $t("error");Lt(this,e)}
method [q] (line 6269) | [q](e){de(this);const t=this._cancelAlgorithm(e);return zt(this),t}
method [C] (line 6269) | [C](e){const t=this._controlledReadableStream;if(this._queue.length>0)...
method [P] (line 6269) | [P](){}
method constructor (line 12312) | constructor() {
method desiredSize (line 12319) | get desiredSize() {
method close (line 12329) | close() {
method enqueue (line 12338) | enqueue(chunk = undefined) {
method error (line 12350) | error(e = undefined) {
method [CancelSteps] (line 12357) | [CancelSteps](reason) {
method [PullSteps] (line 12364) | [PullSteps](readRequest) {
function IsReadableStreamDefaultController (line 12396) | function IsReadableStreamDefaultController(x) {
function ReadableStreamDefaultControllerCallPullIfNeeded (line 12405) | function ReadableStreamDefaultControllerCallPullIfNeeded(controller) {
function ReadableStreamDefaultControllerShouldCallPull (line 12426) | function ReadableStreamDefaultControllerShouldCallPull(controller) {
function ReadableStreamDefaultControllerClearAlgorithms (line 12443) | function ReadableStreamDefaultControllerClearAlgorithms(controller) {
function ReadableStreamDefaultControllerClose (line 12449) | function ReadableStreamDefaultControllerClose(controller) {
function ReadableStreamDefaultControllerEnqueue (line 12460) | function ReadableStreamDefaultControllerEnqueue(controller, chunk) {
function ReadableStreamDefaultControllerError (line 12487) | function ReadableStreamDefaultControllerError(controller, e) {
function ReadableStreamDefaultControllerGetDesiredSize (line 12496) | function ReadableStreamDefaultControllerGetDesiredSize(controller) {
function ReadableStreamDefaultControllerHasBackpressure (line 12507) | function ReadableStreamDefaultControllerHasBackpressure(controller) {
function ReadableStreamDefaultControllerCanCloseOrEnqueue (line 12513) | function ReadableStreamDefaultControllerCanCloseOrEnqueue(controller) {
function SetUpReadableStreamDefaultController (line 12520) | function SetUpReadableStreamDefaultController(stream, controller, startA...
function SetUpReadableStreamDefaultControllerFromUnderlyingSource (line 12542) | function SetUpReadableStreamDefaultControllerFromUnderlyingSource(stream...
function defaultControllerBrandCheckException$1 (line 12559) | function defaultControllerBrandCheckException$1(name) {
function ReadableStreamTee (line 12563) | function ReadableStreamTee(stream, cloneForBranch2) {
function ReadableStreamDefaultTee (line 12569) | function ReadableStreamDefaultTee(stream, cloneForBranch2) {
function ReadableByteStreamTee (line 12668) | function ReadableByteStreamTee(stream) {
function convertUnderlyingDefaultOrByteSource (line 12894) | function convertUnderlyingDefaultOrByteSource(source, context) {
function convertUnderlyingSourceCancelCallback (line 12918) | function convertUnderlyingSourceCancelCallback(fn, original, context) {
function convertUnderlyingSourcePullCallback (line 12922) | function convertUnderlyingSourcePullCallback(fn, original, context) {
function convertUnderlyingSourceStartCallback (line 12926) | function convertUnderlyingSourceStartCallback(fn, original, context) {
function convertReadableStreamType (line 12930) | function convertReadableStreamType(type, context) {
function convertReaderOptions (line 12938) | function convertReaderOptions(options, context) {
function convertReadableStreamReaderMode (line 12945) | function convertReadableStreamReaderMode(mode, context) {
function convertIteratorOptions (line 12953) | function convertIteratorOptions(options, context) {
function convertPipeOptions (line 12959) | function convertPipeOptions(options, context) {
function assertAbortSignal (line 12975) | function assertAbortSignal(signal, context) {
function convertReadableWritablePair (line 12981) | function convertReadableWritablePair(pair, context) {
class ReadableStream (line 12997) | class ReadableStream {
method constructor (line 6269) | constructor(e={},t={}){void 0===e?e=null:$(e,"First parameter");const ...
method locked (line 6269) | get locked(){if(!Ut(this))throw Zt("locked");return Gt(this)}
method cancel (line 6269) | cancel(e){return Ut(this)?Gt(this)?f(new TypeError("Cannot cancel a st...
method getReader (line 6269) | getReader(e){if(!Ut(this))throw Zt("getReader");return void 0===functi...
method pipeThrough (line 6269) | pipeThrough(e,t={}){if(!H(this))throw Zt("pipeThrough");M(e,1,"pipeThr...
method pipeTo (line 6269) | pipeTo(e,t={}){if(!H(this))return f(Zt("pipeTo"));if(void 0===e)return...
method tee (line 6269) | tee(){if(!H(this))throw Zt("tee");if(this.locked)throw new TypeError("...
method values (line 6269) | values(e){if(!H(this))throw Zt("values");return function(e,t){const r=...
method constructor (line 12998) | constructor(rawUnderlyingSource = {}, rawStrategy = {}) {
method locked (line 13024) | get locked() {
method cancel (line 13036) | cancel(reason = undefined) {
method getReader (line 13045) | getReader(rawOptions = undefined) {
method pipeThrough (line 13055) | pipeThrough(rawTransform, rawOptions = {}) {
method pipeTo (line 13072) | pipeTo(destination, rawOptions = {}) {
method tee (line 13108) | tee() {
method values (line 13115) | values(rawOptions = undefined) {
function CreateReadableStream (line 13147) | function CreateReadableStream(startAlgorithm, pullAlgorithm, cancelAlgor...
function CreateReadableByteStream (line 13155) | function CreateReadableByteStream(startAlgorithm, pullAlgorithm, cancelA...
function InitializeReadableStream (line 13162) | function InitializeReadableStream(stream) {
function IsReadableStream (line 13168) | function IsReadableStream(x) {
function IsReadableStreamLocked (line 13177) | function IsReadableStreamLocked(stream) {
function ReadableStreamCancel (line 13184) | function ReadableStreamCancel(stream, reason) {
function ReadableStreamClose (line 13203) | function ReadableStreamClose(stream) {
function ReadableStreamError (line 13217) | function ReadableStreamError(stream, e) {
function streamBrandCheckException$1 (line 13239) | function streamBrandCheckException$1(name) {
function convertQueuingStrategyInit (line 13243) | function convertQueuingStrategyInit(init, context) {
class ByteLengthQueuingStrategy (line 13271) | class ByteLengthQueuingStrategy {
method constructor (line 6269) | constructor(e){M(e,1,"ByteLengthQueuingStrategy"),e=er(e,"First parame...
method highWaterMark (line 6269) | get highWaterMark(){if(!or(this))throw rr("highWaterMark");return this...
method size (line 6269) | get size(){if(!or(this))throw rr("size");return tr}
method constructor (line 13272) | constructor(options) {
method highWaterMark (line 13280) | get highWaterMark() {
method size (line 13289) | get size() {
function byteLengthBrandCheckException (line 13307) | function byteLengthBrandCheckException(name) {
function IsByteLengthQueuingStrategy (line 13310) | function IsByteLengthQueuingStrategy(x) {
class CountQueuingStrategy (line 13339) | class CountQueuingStrategy {
method constructor (line 6269) | constructor(e){M(e,1,"CountQueuingStrategy"),e=er(e,"First parameter")...
method highWaterMark (line 6269) | get highWaterMark(){if(!ir(this))throw ar("highWaterMark");return this...
method size (line 6269) | get size(){if(!ir(this))throw ar("size");return nr}
method constructor (line 13340) | constructor(options) {
method highWaterMark (line 13348) | get highWaterMark() {
method size (line 13358) | get size() {
function countBrandCheckException (line 13376) | function countBrandCheckException(name) {
function IsCountQueuingStrategy (line 13379) | function IsCountQueuingStrategy(x) {
function convertTransformer (line 13389) | function convertTransformer(original, context) {
function convertTransformerFlushCallback (line 13410) | function convertTransformerFlushCallback(fn, original, context) {
function convertTransformerStartCallback (line 13414) | function convertTransformerStartCallback(fn, original, context) {
function convertTransformerTransformCallback (line 13418) | function convertTransformerTransformCallback(fn, original, context) {
class TransformStream (line 13432) | class TransformStream {
method constructor (line 6269) | constructor(e={},t={},r={}){void 0===e&&(e=null);const o=Qe(t,"Second ...
method readable (line 6269) | get readable(){if(!cr(this))throw gr("readable");return this._readable}
method writable (line 6269) | get writable(){if(!cr(this))throw gr("writable");return this._writable}
method constructor (line 13433) | constructor(rawTransformer = {}, rawWritableStrategy = {}, rawReadable...
method readable (line 13466) | get readable() {
method writable (line 13475) | get writable() {
function InitializeTransformStream (line 13492) | function InitializeTransformStream(stream, startPromise, writableHighWat...
function IsTransformStream (line 13521) | function IsTransformStream(x) {
function TransformStreamError (line 13531) | function TransformStreamError(stream, e) {
function TransformStreamErrorWritableAndUnblockWrite (line 13535) | function TransformStreamErrorWritableAndUnblockWrite(stream, e) {
function TransformStreamSetBackpressure (line 13545) | function TransformStreamSetBackpressure(stream, backpressure) {
class TransformStreamDefaultController (line 13561) | class TransformStreamDefaultController {
method constructor (line 6269) | constructor(){throw new TypeError("Illegal constructor")}
method desiredSize (line 6269) | get desiredSize(){if(!hr(this))throw yr("desiredSize");return Rr(this....
method enqueue (line 6269) | enqueue(e){if(!hr(this))throw yr("enqueue");pr(this,e)}
method error (line 6269) | error(e){if(!hr(this))throw yr("error");var t;t=e,dr(this._controlledT...
method terminate (line 6269) | terminate(){if(!hr(this))throw yr("terminate");!function(e){const t=e....
method constructor (line 13562) | constructor() {
method desiredSize (line 13568) | get desiredSize() {
method enqueue (line 13575) | enqueue(chunk = undefined) {
method error (line 13585) | error(reason = undefined) {
method terminate (line 13595) | terminate() {
function IsTransformStreamDefaultController (line 13615) | function IsTransformStreamDefaultController(x) {
function SetUpTransformStreamDefaultController (line 13624) | function SetUpTransformStreamDefaultController(stream, controller, trans...
function SetUpTransformStreamDefaultControllerFromTransformer (line 13630) | function SetUpTransformStreamDefaultControllerFromTransformer(stream, tr...
function TransformStreamDefaultControllerClearAlgorithms (line 13650) | function TransformStreamDefaultControllerClearAlgorithms(controller) {
function TransformStreamDefaultControllerEnqueue (line 13654) | function TransformStreamDefaultControllerEnqueue(controller, chunk) {
function TransformStreamDefaultControllerError (line 13675) | function TransformStreamDefaultControllerError(controller, e) {
function TransformStreamDefaultControllerPerformTransform (line 13678) | function TransformStreamDefaultControllerPerformTransform(controller, ch...
function TransformStreamDefaultControllerTerminate (line 13685) | function TransformStreamDefaultControllerTerminate(controller) {
function TransformStreamDefaultSinkWriteAlgorithm (line 13693) | function TransformStreamDefaultSinkWriteAlgorithm(stream, chunk) {
function TransformStreamDefaultSinkAbortAlgorithm (line 13708) | function TransformStreamDefaultSinkAbortAlgorithm(stream, reason) {
function TransformStreamDefaultSinkCloseAlgorithm (line 13714) | function TransformStreamDefaultSinkCloseAlgorithm(stream) {
function TransformStreamDefaultSourcePullAlgorithm (line 13732) | function TransformStreamDefaultSourcePullAlgorithm(stream) {
function defaultControllerBrandCheckException (line 13739) | function defaultControllerBrandCheckException(name) {
function streamBrandCheckException (line 13743) | function streamBrandCheckException(name) {
function sign (line 13778) | function sign(x) {
function evenRound (line 13782) | function evenRound(x) {
function createNumberConversion (line 13791) | function createNumberConversion(bitLength, typeOpts) {
method constructor (line 13974) | constructor(constructorArgs) {
method href (line 13996) | get href() {
method href (line 14000) | set href(v) {
method origin (line 14009) | get origin() {
method protocol (line 14013) | get protocol() {
method protocol (line 14017) | set protocol(v) {
method username (line 14021) | get username() {
method username (line 14025) | set username(v) {
method password (line 14033) | get password() {
method password (line 14037) | set password(v) {
method host (line 14045) | get host() {
method host (line 14059) | set host(v) {
method hostname (line 14067) | get hostname() {
method hostname (line 14075) | set hostname(v) {
method port (line 14083) | get port() {
method port (line 14091) | set port(v) {
method pathname (line 14103) | get pathname() {
method pathname (line 14115) | set pathname(v) {
method search (line 14124) | get search() {
method search (line 14132) | set search(v) {
method hash (line 14147) | get hash() {
method hash (line 14155) | set hash(v) {
method toJSON (line 14166) | toJSON() {
function URL (line 14186) | function URL(url) {
method get (line 14216) | get() {
method set (line 14219) | set(V) {
method get (line 14235) | get() {
method get (line 14243) | get() {
method set (line 14246) | set(V) {
method get (line 14255) | get() {
method set (line 14258) | set(V) {
method get (line 14267) | get() {
method set (line 14270) | set(V) {
method get (line 14279) | get() {
method set (line 14282) | set(V) {
method get (line 14291) | get() {
method set (line 14294) | set(V) {
method get (line 14303) | get() {
method set (line 14306) | set(V) {
method get (line 14315) | get() {
method set (line 14318) | set(V) {
method get (line 14327) | get() {
method set (line 14330) | set(V) {
method get (line 14339) | get() {
method set (line 14342) | set(V) {
method is (line 14352) | is(obj) {
method create (line 14355) | create(constructorArgs, privateData) {
method setup (line 14360) | setup(obj, constructorArgs, privateData) {
function countSymbols (line 14417) | function countSymbols(str) {
function at (line 14421) | function at(input, idx) {
function isASCIIDigit (line 14426) | function isASCIIDigit(c) {
function isASCIIAlpha (line 14430) | function isASCIIAlpha(c) {
function isASCIIAlphanumeric (line 14434) | function isASCIIAlphanumeric(c) {
function isASCIIHex (line 14438) | function isASCIIHex(c) {
function isSingleDot (line 14442) | function isSingleDot(buffer) {
function isDoubleDot (line 14446) | function isDoubleDot(buffer) {
function isWindowsDriveLetterCodePoints (line 14451) | function isWindowsDriveLetterCodePoints(cp1, cp2) {
function isWindowsDriveLetterString (line 14455) | function isWindowsDriveLetterString(string) {
function isNormalizedWindowsDriveLetterString (line 14459) | function isNormalizedWindowsDriveLetterString(string) {
function containsForbiddenHostCodePoint (line 14463) | function containsForbiddenHostCodePoint(string) {
function containsForbiddenHostCodePointExcludingPercent (line 14467) | function containsForbiddenHostCodePointExcludingPercent(string) {
function isSpecialScheme (line 14471) | function isSpecialScheme(scheme) {
function isSpecial (line 14475) | function isSpecial(url) {
function defaultPort (line 14479) | function defaultPort(scheme) {
function percentEncode (line 14483) | function percentEncode(c) {
function utf8PercentEncode (line 14492) | function utf8PercentEncode(c) {
function utf8PercentDecode (line 14504) | function utf8PercentDecode(str) {
function isC0ControlPercentEncode (line 14520) | function isC0ControlPercentEncode(c) {
function isPathPercentEncode (line 14525) | function isPathPercentEncode(c) {
function isUserinfoPercentEncode (line 14531) | function isUserinfoPercentEncode(c) {
function percentEncodeChar (line 14535) | function percentEncodeChar(c, encodeSetPredicate) {
function parseIPv4Number (line 14545) | function parseIPv4Number(input) {
function parseIPv4 (line 14568) | function parseIPv4(input) {
function serializeIPv4 (line 14613) | function serializeIPv4(address) {
function parseIPv6 (line 14628) | function parseIPv6(input) {
function serializeIPv6 (line 14757) | function serializeIPv6(address) {
function parseHost (line 14787) | function parseHost(input, isSpecialArg) {
function parseOpaqueHost (line 14818) | function parseOpaqueHost(input) {
function findLongestZeroSequence (line 14831) | function findLongestZeroSequence(arr) {
function serializeHost (line 14866) | function serializeHost(host) {
function trimControlChars (line 14879) | function trimControlChars(url) {
function trimTabAndNewline (line 14883) | function trimTabAndNewline(url) {
function shortenPath (line 14887) | function shortenPath(url) {
function includesCredentials (line 14899) | function includesCredentials(url) {
function cannotHaveAUsernamePasswordPort (line 14903) | function cannotHaveAUsernamePasswordPort(url) {
function isNormalizedWindowsDriveLetter (line 14907) | function isNormalizedWindowsDriveLetter(string) {
function URLStateMachine (line 14911) | function URLStateMachine(input, base, encodingOverride, url, stateOverri...
function serializeURL (line 15569) | function serializeURL(url, excludeFragment) {
function serializeOrigin (line 15610) | function serializeOrigin(tuple) {
function wrappy (line 15739) | function wrappy (fn, cb) {
class FormDataEncoder (line 15963) | class FormDataEncoder {
method constructor (line 15964) | constructor(form, boundaryOrOptions, options) {
method getContentLength (line 16012) | getContentLength() {
method values (line 16022) | *values() {
method encode (line 16031) | async *encode() {
method [(_FormDataEncoder_CRLF = new WeakMap(), _FormDataEncoder_CRLF_BYTES = new WeakMap(), _FormDataEncoder_CRLF_BYTES_LENGTH = new WeakMap(), _FormDataEncoder_DASHES = new WeakMap(), _FormDataEncoder_encoder = new WeakMap(), _FormDataEncoder_footer = new WeakMap(), _FormDataEncoder_form = new WeakMap(), _FormDataEncoder_options = new WeakMap(), _FormDataEncoder_instances = new WeakSet(), _FormDataEncoder_getFieldHeader = function _FormDataEncoder_getFieldHeader(name, value) {
let header = "";
header += `${__classPrivateFieldGet(this, _FormDataEncoder_DASHES, "f")}${this.boundary}${__classPrivateFieldGet(this, _FormDataEncoder_CRLF, "f")}`;
header += `Content-Disposition: form-data; name="${(0, escapeName_1.default)(name)}"`;
if ((0, isFileLike_1.isFileLike)(value)) {
header += `; filename="${(0, escapeName_1.default)(value.name)}"${__classPrivateFieldGet(this, _FormDataEncoder_CRLF, "f")}`;
header += `Content-Type: ${value.type || "application/octet-stream"}`;
}
if (__classPrivateFieldGet(this, _FormDataEncoder_options, "f").enableAdditionalHeaders === true) {
header += `${__classPrivateFieldGet(this, _FormDataEncoder_CRLF, "f")}Content-Length: ${(0, isFileLike_1.isFileLike)(value) ? value.size : value.byteLength}`;
}
return __classPrivateFieldGet(this, _FormDataEncoder_encoder, "f").encode(`${header}${__classPrivateFieldGet(this, _FormDataEncoder_CRLF, "f").repeat(2)}`);
}, Symbol.iterator)] (line 16041) | [(_FormDataEncoder_CRLF = new WeakMap(), _FormDataEncoder_CRLF_BYTES = n...
method [Symbol.asyncIterator] (line 16056) | [Symbol.asyncIterator]() {
function createBoundary (line 16108) | function createBoundary() {
function isPlainObject (line 16203) | function isPlainObject(value) {
class Blob (line 16261) | class Blob {
method constructor (line 6570) | constructor() {
method size (line 6608) | get size() {
method type (line 6611) | get type() {
method text (line 6614) | text() {
method arrayBuffer (line 6617) | arrayBuffer() {
method stream (line 6622) | stream() {
method toString (line 6629) | toString() {
method slice (line 6632) | slice() {
method constructor (line 16262) | constructor(blobParts = [], options = {}) {
method type (line 16307) | get type() {
method size (line 16310) | get size() {
method slice (line 16313) | slice(start, end, contentType) {
method text (line 16318) | async text() {
method arrayBuffer (line 16327) | async arrayBuffer() {
method stream (line 16336) | stream() {
method [(_Blob_parts = new WeakMap(), _Blob_type = new WeakMap(), _Blob_size = new WeakMap(), Symbol.hasInstance)] (line 16299) | static [(_Blob_parts = new WeakMap(), _Blob_type = new WeakMap(), _Blob_...
method [Symbol.toStringTag] (line 16351) | get [Symbol.toStringTag]() {
class File (line 16388) | class File extends Blob_1.Blob {
method constructor (line 16389) | constructor(fileBits, name, options = {}) {
method name (line 16410) | get name() {
method lastModified (line 16413) | get lastModified() {
method webkitRelativePath (line 16416) | get webkitRelativePath() {
method [(_File_name = new WeakMap(), _File_lastModified = new WeakMap(), Symbol.hasInstance)] (line 16405) | static [(_File_name = new WeakMap(), _File_lastModified = new WeakMap(),...
method [Symbol.toStringTag] (line 16419) | get [Symbol.toStringTag]() {
class FormData (line 16447) | class FormData {
method constructor (line 16448) | constructor(entries) {
method append (line 16472) | append(name, value, fileName) {
method set (line 16481) | set(name, value, fileName) {
method get (line 16490) | get(name) {
method getAll (line 16497) | getAll(name) {
method has (line 16504) | has(name) {
method delete (line 16507) | delete(name) {
method keys (line 16510) | *keys() {
method entries (line 16515) | *entries() {
method values (line 16523) | *values() {
method forEach (line 16567) | forEach(callback, thisArg) {
method [(_FormData_entries = new WeakMap(), _FormData_instances = new WeakSet(), Symbol.hasInstance)] (line 16456) | static [(_FormData_entries = new WeakMap(), _FormData_instances = new We...
method [(_FormData_setEntry = function _FormData_setEntry({ name, rawValue, append, fileName, argsLength }) {
const methodName = append ? "append" : "set";
if (argsLength < 2) {
throw new TypeError(`Failed to execute '${methodName}' on 'FormData': `
+ `2 arguments required, but only ${argsLength} present.`);
}
name = String(name);
let value;
if ((0, isFile_1.isFile)(rawValue)) {
value = fileName === undefined
? rawValue
: new File_1.File([rawValue], fileName, {
type: rawValue.type,
lastModified: rawValue.lastModified
});
}
else if ((0, isBlob_1.isBlob)(rawValue)) {
value = new File_1.File([rawValue], fileName === undefined ? "blob" : fileName, {
type: rawValue.type
});
}
else if (fileName) {
throw new TypeError(`Failed to execute '${methodName}' on 'FormData': `
+ "parameter 2 is not of type 'Blob'.");
}
else {
value = String(rawValue);
}
const values = __classPrivateFieldGet(this, _FormData_entries, "f").get(name);
if (!values) {
return void __classPrivateFieldGet(this, _FormData_entries, "f").set(name, [value]);
}
if (!append) {
return void __classPrivateFieldGet(this, _FormData_entries, "f").set(name, [value]);
}
values.push(value);
}, Symbol.iterator)] (line 16528) | [(_FormData_setEntry = function _FormData_setEntry({ name, rawValue, app...
method [Symbol.toStringTag] (line 16572) | get [Symbol.toStringTag]() {
method [util_1.inspect.custom] (line 16575) | [util_1.inspect.custom]() {
class FileFromPath (line 16727) | class FileFromPath {
method constructor (line 16728) | constructor(input) {
method slice (line 16737) | slice(start, end) {
method stream (line 16745) | async *stream() {
method [(_FileFromPath_path = new WeakMap(), _FileFromPath_start = new WeakMap(), Symbol.toStringTag)] (line 16757) | get [(_FileFromPath_path = new WeakMap(), _FileFromPath_start = new Weak...
function createFileFromPath (line 16761) | function createFileFromPath(path, { mtimeMs, size }, filenameOrOptions, ...
function fileFromPathSync (line 16777) | function fileFromPathSync(path, filenameOrOptions, options = {}) {
function fileFromPath (line 16782) | async function fileFromPath(path, filenameOrOptions, options) {
function isPlainObject (line 16862) | function isPlainObject(value) {
method constructor (line 17211) | constructor(pattern, options = {}) {
method defaults (line 17214) | static defaults(options) {
class Minimatch (line 17290) | class Minimatch {
method constructor (line 17308) | constructor(pattern, options = {}) {
method hasMagic (line 17338) | hasMagic() {
method debug (line 17350) | debug(..._) { }
method make (line 17351) | make() {
method preprocess (line 17424) | preprocess(globParts) {
method adjascentGlobstarOptimize (line 17451) | adjascentGlobstarOptimize(globParts) {
method levelOneOptimize (line 17467) | levelOneOptimize(globParts) {
method levelTwoFileOptimize (line 17486) | levelTwoFileOptimize(parts) {
method firstPhasePreProcess (line 17544) | firstPhasePreProcess(globParts) {
method secondPhasePreProcess (line 17628) | secondPhasePreProcess(globParts) {
method partsMatch (line 17640) | partsMatch(a, b, emptyGSMatch = false) {
method parseNegate (line 17689) | parseNegate() {
method matchOne (line 17708) | matchOne(file, pattern, partial = false) {
method braceExpand (line 17896) | braceExpand() {
method parse (line 17899) | parse(pattern) {
method makeRe (line 18226) | makeRe() {
method slashSplit (line 18302) | slashSplit(p) {
method match (line 18318) | match(f, partial = this.partial) {
method defaults (line 18373) | static defaults(def) {
class MultipartBody (line 18432) | class MultipartBody {
method constructor (line 18433) | constructor(body) {
method [Symbol.toStringTag] (line 18436) | get [Symbol.toStringTag]() {
method get (line 18484) | get() {
function fileFromPath (line 18540) | async function fileFromPath(path, ...args) {
function getMultipartRequestOptions (line 18552) | async function getMultipartRequestOptions(form, opts) {
function getRuntime (line 18563) | function getRuntime() {
function setShims (line 18611) | function setShims(shims, options = { auto: false }) {
function defaultParseResponse (line 18666) | async function defaultParseResponse(props) {
class APIPromise (line 18696) | class APIPromise extends Promise {
method constructor (line 18697) | constructor(responsePromise, parseResponse = defaultParseResponse) {
method _thenUnwrap (line 18707) | _thenUnwrap(transform) {
method asResponse (line 18723) | asResponse() {
method withResponse (line 18739) | async withResponse() {
method parse (line 18743) | parse() {
method then (line 18749) | then(onfulfilled, onrejected) {
method catch (line 18752) | catch(onrejected) {
method finally (line 18755) | finally(onfinally) {
class APIClient (line 18760) | class APIClient {
method constructor (line 18761) | constructor({ baseURL, maxRetries = 2, timeout = 600000, // 10 minutes
method authHeaders (line 18769) | authHeaders(opts) {
method defaultHeaders (line 18780) | defaultHeaders(opts) {
method validateHeaders (line 18792) | validateHeaders(headers, customHeaders) { }
method defaultIdempotencyKey (line 18793) | defaultIdempotencyKey() {
method get (line 18796) | get(path, opts) {
method post (line 18799) | post(path, opts) {
method patch (line 18802) | patch(path, opts) {
method put (line 18805) | put(path, opts) {
method delete (line 18808) | delete(path, opts) {
method methodRequest (line 18811) | methodRequest(method, path, opts) {
method getAPIList (line 18814) | getAPIList(path, Page, opts) {
method calculateContentLength (line 18817) | calculateContentLength(body) {
method buildRequest (line 18830) | buildRequest(options) {
method prepareRequest (line 18884) | async prepareRequest(request, { url, options }) { }
method parseHeaders (line 18885) | parseHeaders(headers) {
method makeStatusError (line 18891) | makeStatusError(status, error, message, headers) {
method request (line 18894) | request(options, remainingRetries = null) {
method makeRequest (line 18897) | async makeRequest(optionsInput, retriesRemaining) {
method requestAPIList (line 18936) | requestAPIList(Page, options) {
method buildURL (line 18940) | buildURL(path, query) {
method stringifyQuery (line 18953) | stringifyQuery(query) {
method fetchWithTimeout (line 18967) | async fetchWithTimeout(url, init, ms, controller) {
method getRequestClient (line 18979) | getRequestClient() {
method shouldRetry (line 18982) | shouldRetry(response) {
method retryRequest (line 19004) | async retryRequest(options, retriesRemaining, responseHeaders) {
method calculateDefaultRetryTimeoutMillis (line 19029) | calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries) {
method getUserAgent (line 19039) | getUserAgent() {
class AbstractPage (line 19044) | class AbstractPage {
method constructor (line 19045) | constructor(client, response, body, options) {
method hasNextPage (line 19052) | hasNextPage() {
method getNextPage (line 19058) | async getNextPage() {
method iterPages (line 19077) | async *iterPages() {
method [(_AbstractPage_client = new WeakMap(), Symbol.asyncIterator)] (line 19086) | async *[(_AbstractPage_client = new WeakMap(), Symbol.asyncIterator)]() {
class PagePromise (line 19104) | class PagePromise extends APIPromise {
method constructor (line 19105) | constructor(client, request, Page) {
method [Symbol.asyncIterator] (line 19115) | async *[Symbol.asyncIterator]() {
method get (line 19127) | get(target, name) {
function getBrowserInfo (line 19212) | function getBrowserInfo() {
function isEmptyObj (line 19385) | function isEmptyObj(obj) {
function hasOwn (line 19394) | function hasOwn(obj, key) {
function debug (line 19398) | function debug(action, ...args) {
class OpenAIError (line 19483) | class OpenAIError extends Error {
class APIError (line 19486) | class APIError extends OpenAIError {
method constructor (line 19487) | constructor(status, error, message, headers) {
method makeMessage (line 19497) | static makeMessage(status, error, message) {
method generate (line 19514) | static generate(status, errorResponse, message, headers) {
class APIUserAbortError (line 19547) | class APIUserAbortError extends APIError {
method constructor (line 19548) | constructor({ message } = {}) {
class APIConnectionError (line 19554) | class APIConnectionError extends APIError {
method constructor (line 19555) | constructor({ message, cause }) {
class APIConnectionTimeoutError (line 19565) | class APIConnectionTimeoutError extends APIConnectionError {
method constructor (line 19566) | constructor({ message } = {}) {
class BadRequestError (line 19571) | class BadRequestError extends APIError {
method constructor (line 19572) | constructor() {
class AuthenticationError (line 19578) | class AuthenticationError extends APIError {
method constructor (line 19579) | constructor() {
class PermissionDeniedError (line 19585) | class PermissionDeniedError extends APIError {
method constructor (line 19586) | constructor() {
class NotFoundError (line 19592) | class NotFoundError extends APIError {
method constructor (line 19593) | constructor() {
class ConflictError (line 19599) | class ConflictError extends APIError {
method constructor (line 19600) | constructor() {
class UnprocessableEntityError (line 19606) | class UnprocessableEntityError extends APIError {
method constructor (line 19607) | constructor() {
class RateLimitError (line 19613) | class RateLimitError extends APIError {
method constructor (line 19614) | constructor() {
class InternalServerError (line 19620) | class InternalServerError extends APIError {
class OpenAI (line 19665) | class OpenAI extends Core.APIClient {
method constructor (line 19680) | constructor({ apiKey = Core.readEnv('OPENAI_API_KEY'), organization = ...
method defaultQuery (line 19716) | defaultQuery() {
method defaultHeaders (line 19719) | defaultHeaders(opts) {
method authHeaders (line 19726) | authHeaders(opts) {
class AbstractChatCompletionRunner (line 19800) | class AbstractChatCompletionRunner {
method constructor (line 19801) | constructor() {
method _run (line 19852) | _run(executor) {
method _addChatCompletion (line 19862) | _addChatCompletion(chatCompletion) {
method _addMessage (line 19870) | _addMessage(message, emit = true) {
method _connected (line 19890) | _connected() {
method ended (line 19896) | get ended() {
method errored (line 19899) | get errored() {
method aborted (line 19902) | get aborted() {
method abort (line 19905) | abort() {
method on (line 19915) | on(event, listener) {
method off (line 19927) | off(event, listener) {
method once (line 19941) | once(event, listener) {
method emitted (line 19957) | emitted(event) {
method done (line 19965) | async done() {
method finalChatCompletion (line 19973) | async finalChatCompletion() {
method finalContent (line 19984) | async finalContent() {
method finalMessage (line 19992) | async finalMessage() {
method finalFunctionCall (line 20000) | async finalFunctionCall() {
method finalFunctionCallResult (line 20004) | async finalFunctionCallResult() {
method totalUsage (line 20008) | async totalUsage() {
method allChatCompletions (line 20012) | allChatCompletions() {
method _emit (line 20015) | _emit(event, ...args) {
method _emitFinal (line 20055) | _emitFinal() {
method _createChatCompletion (line 20075) | async _createChatCompletion(completions, params, options) {
method _runChatCompletion (line 20087) | async _runChatCompletion(completions, params, options) {
method _runFunctions (line 20093) | async _runFunctions(completions, params, options) {
method _runTools (line 20157) | async _runTools(completions, params, options) {
class ChatCompletionRunner (line 20297) | class ChatCompletionRunner extends AbstractChatCompletionRunner_1.Abstra...
method runFunctions (line 20298) | static runFunctions(completions, params, options) {
method runTools (line 20303) | static runTools(completions, params, options) {
method _addMessage (line 20308) | _addMessage(message) {
class ChatCompletionStream (line 20342) | class ChatCompletionStream extends AbstractChatCompletionRunner_1.Abstra...
method constructor (line 20343) | constructor() {
method currentChatCompletionSnapshot (line 20348) | get currentChatCompletionSnapshot() {
method fromReadableStream (line 20358) | static fromReadableStream(stream) {
method createChatCompletion (line 20363) | static createChatCompletion(completions, params, options) {
method _createChatCompletion (line 20368) | async _createChatCompletion(completions, params, options) {
method _fromReadableStream (line 20386) | async _fromReadableStream(readableStream, options) {
method toReadableStream (line 20528) | toReadableStream() {
method [(_ChatCompletionStream_currentChatCompletionSnapshot = new WeakMap(), _ChatCompletionStream_instances = new WeakSet(), _ChatCompletionStream_beginRequest = function _ChatCompletionStream_beginRequest() {
if (this.ended)
return;
__classPrivateFieldSet(this, _ChatCompletionStream_currentChatCompletionSnapshot, undefined, "f");
}, _ChatCompletionStream_addChunk = function _ChatCompletionStream_addChunk(chunk) {
if (this.ended)
return;
const completion = __classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_accumulateChatCompletion).call(this, chunk);
this._emit('chunk', chunk, completion);
const delta = chunk.choices[0]?.delta?.content;
const snapshot = completion.choices[0]?.message;
if (delta != null && snapshot?.role === 'assistant' && snapshot?.content) {
this._emit('content', delta, snapshot.content);
}
}, _ChatCompletionStream_endRequest = function _ChatCompletionStream_endRequest() {
if (this.ended) {
throw new error_1.OpenAIError(`stream has ended, this shouldn't happen`);
}
const snapshot = __classPrivateFieldGet(this, _ChatCompletionStream_currentChatCompletionSnapshot, "f");
if (!snapshot) {
throw new error_1.OpenAIError(`request ended without sending any chunks`);
}
__classPrivateFieldSet(this, _ChatCompletionStream_currentChatCompletionSnapshot, undefined, "f");
return finalizeChatCompletion(snapshot);
}, _ChatCompletionStream_accumulateChatCompletion = function _ChatCompletionStream_accumulateChatCompletion(chunk) {
var _a, _b;
let snapshot = __classPrivateFieldGet(this, _ChatCompletionStream_currentChatCompletionSnapshot, "f");
const { choices, ...rest } = chunk;
if (!snapshot) {
snapshot = __classPrivateFieldSet(this, _ChatCompletionStream_currentChatCompletionSnapshot, {
...rest,
choices: [],
}, "f");
}
else {
Object.assign(snapshot, rest);
}
for (const { delta, finish_reason, index, ...other } of chunk.choices) {
let choice = snapshot.choices[index];
if (!choice) {
snapshot.choices[index] = { finish_reason, index, message: delta, ...other };
continue;
}
if (finish_reason)
choice.finish_reason = finish_reason;
Object.assign(choice, other);
if (!delta)
continue; // Shouldn't happen; just in case.
const { content, function_call, role, tool_calls } = delta;
if (content)
choice.message.content = (choice.message.content || '') + content;
if (role)
choice.message.role = role;
if (function_call) {
if (!choice.message.function_call) {
choice.message.function_call = function_call;
}
else {
if (function_call.name)
choice.message.function_call.name = function_call.name;
if (function_call.arguments) {
(_a = choice.message.function_call).arguments ?? (_a.arguments = '');
choice.message.function_call.arguments += function_call.arguments;
}
}
}
if (tool_calls) {
if (!choice.message.tool_calls)
choice.message.tool_calls = [];
for (const { index, id, type, function: fn } of tool_calls) {
const tool_call = ((_b = choice.message.tool_calls)[index] ?? (_b[index] = {}));
if (id)
tool_call.id = id;
if (type)
tool_call.type = type;
if (fn)
tool_call.function ?? (tool_call.function = { arguments: '' });
if (fn?.name)
tool_call.function.name = fn.name;
if (fn?.arguments)
tool_call.function.arguments += fn.arguments;
}
}
}
return snapshot;
}, Symbol.asyncIterator)] (line 20410) | [(_ChatCompletionStream_currentChatCompletionSnapshot = new WeakMap(), _...
function finalizeChatCompletion (line 20534) | function finalizeChatCompletion(snapshot) {
function str (line 20583) | function str(x) {
class ChatCompletionStreamingRunner (line 20598) | class ChatCompletionStreamingRunner extends ChatCompletionStream_1.ChatC...
method fromReadableStream (line 20599) | static fromReadableStream(stream) {
method runFunctions (line 20604) | static runFunctions(completions, params, options) {
method runTools (line 20612) | static runTools(completions, params, options) {
function isRunnableFunctionWithParse (line 20633) | function isRunnableFunctionWithParse(fn) {
class ParsingFunction (line 20641) | class ParsingFunction {
method constructor (line 20642) | constructor(input) {
function isPresent (line 20674) | function isPresent(obj) {
class Page (line 20694) | class Page extends core_1.AbstractPage {
method constructor (line 20695) | constructor(client, response, body, options) {
method getPaginatedItems (line 20700) | getPaginatedItems() {
method nextPageParams (line 20708) | nextPageParams() {
method nextPageInfo (line 20711) | nextPageInfo() {
class CursorPage (line 20716) | class CursorPage extends core_1.AbstractPage {
method constructor (line 20717) | constructor(client, response, body, options) {
method getPaginatedItems (line 20721) | getPaginatedItems() {
method nextPageParams (line 20725) | nextPageParams() {
method nextPageInfo (line 20736) | nextPageInfo() {
class APIResource (line 20759) | class APIResource {
method constructor (line 20760) | constructor(client) {
class Audio (line 20804) | class Audio extends resource_1.APIResource {
method constructor (line 20805) | constructor() {
class Speech (line 20831) | class Speech extends resource_1.APIResource {
method create (line 20835) | create(body, options) {
class Transcriptions (line 20856) | class Transcriptions extends resource_1.APIResource {
method create (line 20860) | create(body, options) {
class Translations (line 20881) | class Translations extends resource_1.APIResource {
method create (line 20885) | create(body, options) {
class Assistants (line 20932) | class Assistants extends resource_1.APIResource {
method constructor (line 20933) | constructor() {
method create (line 20940) | create(body, options) {
method retrieve (line 20950) | retrieve(assistantId, options) {
method update (line 20959) | update(assistantId, body, options) {
method list (line 20966) | list(query = {}, options) {
method del (line 20979) | del(assistantId, options) {
class AssistantsPage (line 20987) | class AssistantsPage extends pagination_1.CursorPage {
class Files (line 21034) | class Files extends resource_1.APIResource {
method create (line 21040) | create(assistantId, body, options) {
method retrieve (line 21050) | retrieve(assistantId, fileId, options) {
method list (line 21056) | list(assistantId, query = {}, options) {
method del (line 21069) | del(assistantId, fileId, options) {
method retrieve (line 21272) | retrieve(threadId, messageId, fileId, options) {
method list (line 21278) | list(threadId, messageId, query = {}, options) {
method create (line 21886) | create(body, options) {
method retrieve (line 21892) | retrieve(fileId, options) {
method list (line 21895) | list(query = {}, options) {
method del (line 21904) | del(fileId, options) {
method content (line 21910) | content(fileId, options) {
method retrieveContent (line 21918) | retrieveContent(fileId, options) {
method waitForProcessing (line 21927) | async waitForProcessing(id, { pollInterval = 5000, maxWait = 30 * 60 *...
class AssistantFilesPage (line 21077) | class AssistantFilesPage extends pagination_1.CursorPage {
class Beta (line 21122) | class Beta extends resource_1.APIResource {
method constructor (line 21123) | constructor() {
class Chat (line 21174) | class Chat extends resource_1.APIResource {
method constructor (line 21175) | constructor() {
method constructor (line 21712) | constructor() {
class Completions (line 21208) | class Completions extends resource_1.APIResource {
method runFunctions (line 21209) | runFunctions(body, options) {
method runTools (line 21215) | runTools(body, options) {
method stream (line 21224) | stream(body, options) {
method create (line 21735) | create(body, options) {
method create (line 21772) | create(body, options) {
class Files (line 21268) | class Files extends resource_1.APIResource {
method create (line 21040) | create(assistantId, body, options) {
method retrieve (line 21050) | retrieve(assistantId, fileId, options) {
method list (line 21056) | list(assistantId, query = {}, options) {
method del (line 21069) | del(assistantId, fileId, options) {
method retrieve (line 21272) | retrieve(threadId, messageId, fileId, options) {
method list (line 21278) | list(threadId, messageId, query = {}, options) {
method create (line 21886) | create(body, options) {
method retrieve (line 21892) | retrieve(fileId, options) {
method list (line 21895) | list(query = {}, options) {
method del (line 21904) | del(fileId, options) {
method content (line 21910) | content(fileId, options) {
method retrieveContent (line 21918) | retrieveContent(fileId, options) {
method waitForProcessing (line 21927) | async waitForProcessing(id, { pollInterval = 5000, maxWait = 30 * 60 *...
class MessageFilesPage (line 21290) | class MessageFilesPage extends pagination_1.CursorPage {
class Messages (line 21336) | class Messages extends resource_1.APIResource {
method constructor (line 21337) | constructor() {
method create (line 21344) | create(threadId, body, options) {
method retrieve (line 21354) | retrieve(threadId, messageId, options) {
method update (line 21363) | update(threadId, messageId, body, options) {
method list (line 21370) | list(threadId, query = {}, options) {
class ThreadMessagesPage (line 21382) | class ThreadMessagesPage extends pagination_1.CursorPage {
class Runs (line 21430) | class Runs extends resource_1.APIResource {
method constructor (line 21431) | constructor() {
method create (line 21438) | create(threadId, body, options) {
method retrieve (line 21448) | retrieve(threadId, runId, options) {
method update (line 21457) | update(threadId, runId, body, options) {
method list (line 21464) | list(threadId, query = {}, options) {
method cancel (line 21477) | cancel(threadId, runId, options) {
method submitToolOutputs (line 21489) | submitToolOutputs(threadId, runId, body, options) {
class RunsPage (line 21498) | class RunsPage extends pagination_1.CursorPage {
class Steps (line 21545) | class Steps extends resource_1.APIResource {
method retrieve (line 21549) | retrieve(threadId, runId, stepId, options) {
method list (line 21555) | list(threadId, runId, query = {}, options) {
class RunStepsPage (line 21567) | class RunStepsPage extends pagination_1.CursorPage {
class Threads (line 21612) | class Threads extends resource_1.APIResource {
method constructor (line 21613) | constructor() {
method create (line 21618) | create(body = {}, options) {
method retrieve (line 21631) | retrieve(threadId, options) {
method update (line 21640) | update(threadId, body, options) {
method del (line 21650) | del(threadId, options) {
method createAndRun (line 21659) | createAndRun(body, options) {
class Chat (line 21711) | class Chat extends resource_1.APIResource {
method constructor (line 21175) | constructor() {
method constructor (line 21712) | constructor() {
class Completions (line 21734) | class Completions extends resource_1.APIResource {
method runFunctions (line 21209) | runFunctions(body, options) {
method runTools (line 21215) | runTools(body, options) {
method stream (line 21224) | stream(body, options) {
method create (line 21735) | create(body, options) {
method create (line 21772) | create(body, options) {
class Completions (line 21771) | class Completions extends resource_1.APIResource {
method runFunctions (line 21209) | runFunctions(body, options) {
method runTools (line 21215) | runTools(body, options) {
method stream (line 21224) | stream(body, options) {
method create (line 21735) | create(body, options) {
method create (line 21772) | create(body, options) {
class Edits (line 21792) | class Edits extends resource_1.APIResource {
method create (line 21800) | create(body, options) {
class Embeddings (line 21820) | class Embeddings extends resource_1.APIResource {
method create (line 21824) | create(body, options) {
class Files (line 21873) | class Files extends resource_1.APIResource {
method create (line 21040) | create(assistantId, body, options) {
method retrieve (line 21050) | retrieve(assistantId, fileId, options) {
method list (line 21056) | list(assistantId, query = {}, options) {
method del (line 21069) | del(assistantId, fileId, options) {
method retrieve (line 21272) | retrieve(threadId, messageId, fileId, options) {
method list (line 21278) | list(threadId, messageId, query = {}, options) {
method create (line 21886) | create(body, options) {
method retrieve (line 21892) | retrieve(fileId, options) {
method list (line 21895) | list(query = {}, options) {
method del (line 21904) | del(fileId, options) {
method content (line 21910) | content(fileId, options) {
method retrieveContent (line 21918) | retrieveContent(fileId, options) {
method waitForProcessing (line 21927) | async waitForProcessing(id, { pollInterval = 5000, maxWait = 30 * 60 *...
class FileObjectsPage (line 21947) | class FileObjectsPage extends pagination_1.Page {
class FineTunes (line 21991) | class FineTunes extends resource_1.APIResource {
method create (line 22000) | create(body, options) {
method retrieve (line 22008) | retrieve(fineTuneId, options) {
method list (line 22014) | list(options) {
method cancel (line 22020) | cancel(fineTuneId, options) {
method listEvents (line 22023) | listEvents(fineTuneId, query, options) {
class FineTunesPage (line 22036) | class FineTunesPage extends pagination_1.Page {
class FineTuning (line 22079) | class FineTuning extends resource_1.APIResource {
method constructor (line 22080) | constructor() {
class Jobs (line 22130) | class Jobs extends resource_1.APIResource {
method create (line 22139) | create(body, options) {
method retrieve (line 22147) | retrieve(fineTuningJobId, options) {
method list (line 22150) | list(query = {}, options) {
method cancel (line 22159) | cancel(fineTuningJobId, options) {
method listEvents (line 22162) | listEvents(fineTuningJobId, query = {}, options) {
class FineTuningJobsPage (line 22173) | class FineTuningJobsPage extends pagination_1.CursorPage {
class FineTuningJobEventsPage (line 22176) | class FineTuningJobEventsPage extends pagination_1.CursorPage {
class Images (line 22197) | class Images extends resource_1.APIResource {
method createVariation (line 22201) | createVariation(body, options) {
method edit (line 22207) | edit(body, options) {
method generate (line 22213) | generate(body, options) {
class Models (line 22311) | class Models extends resource_1.APIResource {
method retrieve (line 22316) | retrieve(model, options) {
method list (line 22323) | list(options) {
method del (line 22330) | del(model, options) {
class ModelsPage (line 22338) | class ModelsPage extends pagination_1.Page {
class Moderations (line 22357) | class Moderations extends resource_1.APIResource {
method create (line 22361) | create(body, options) {
class Stream (line 22393) | class Stream {
method constructor (line 22394) | constructor(iterator, controller) {
method fromSSEResponse (line 22398) | static fromSSEResponse(response, controller) {
method fromReadableStream (line 22471) | static fromReadableStream(readableStream, controller) {
method tee (line 22521) | tee() {
method toReadableStream (line 22547) | toReadableStream() {
method [Symbol.asyncIterator] (line 22514) | [Symbol.asyncIterator]() {
class SSEDecoder (line 22574) | class SSEDecoder {
method constructor (line 22575) | constructor() {
method decode (line 22580) | decode(line) {
class LineDecoder (line 22621) | class LineDecoder {
method constructor (line 22622) | constructor() {
method decode (line 22626) | decode(chunk) {
method decodeText (line 22654) | decodeText(bytes) {
method flush (line 22679) | flush() {
function partition (line 22692) | function partition(str, delimiter) {
function readableStreamAsyncIterable (line 22705) | function readableStreamAsyncIterable(stream) {
function toFile (line 22783) | async function toFile(value, name, options = {}) {
function getBytes (line 22802) | async function getBytes(value) {
function propsForError (line 22823) | function propsForError(value) {
function getName (line 22827) | function getName(value) {
function __nccwpck_require__ (line 22932) | function __nccwpck_require__(moduleId) {
FILE: dist/sourcemap-register.js
function isArrayBuffer (line 1) | function isArrayBuffer(e){return r.call(e).slice(8,-1)==="ArrayBuffer"}
function fromArrayBuffer (line 1) | function fromArrayBuffer(e,r,t){r>>>=0;var o=e.byteLength-r;if(o<0){thro...
function fromString (line 1) | function fromString(e,r){if(typeof r!=="string"||r===""){r="utf8"}if(!Bu...
function bufferFrom (line 1) | function bufferFrom(e,r,t){if(typeof e==="number"){throw new TypeError('...
function ArraySet (line 1) | function ArraySet(){this._array=[];this._set=i?new Map:Object.create(null)}
function toVLQSigned (line 1) | function toVLQSigned(e){return e<0?(-e<<1)+1:(e<<1)+0}
function fromVLQSigned (line 1) | function fromVLQSigned(e){var r=(e&1)===1;var n=e>>1;return r?-n:n}
function recursiveSearch (line 1) | function recursiveSearch(e,n,t,o,i,a){var u=Math.floor((n-e)/2)+e;var s=...
function generatedPositionAfter (line 1) | function generatedPositionAfter(e,r){var n=e.generatedLine;var o=r.gener...
function MappingList (line 1) | function MappingList(){this._array=[];this._sorted=true;this._last={gene...
function swap (line 1) | function swap(e,r,n){var t=e[r];e[r]=e[n];e[n]=t}
function randomIntInRange (line 1) | function randomIntInRange(e,r){return Math.round(e+Math.random()*(r-e))}
function doQuickSort (line 1) | function doQuickSort(e,r,n,t){if(n<t){var o=randomIntInRange(n,t);var i=...
function SourceMapConsumer (line 1) | function SourceMapConsumer(e,r){var n=e;if(typeof e==="string"){n=o.pars...
function BasicSourceMapConsumer (line 1) | function BasicSourceMapConsumer(e,r){var n=e;if(typeof e==="string"){n=o...
function Mapping (line 1) | function Mapping(){this.generatedLine=0;this.generatedColumn=0;this.sour...
function IndexedSourceMapConsumer (line 1) | function IndexedSourceMapConsumer(e,r){var n=e;if(typeof e==="string"){n...
function SourceMapGenerator (line 1) | function SourceMapGenerator(e){if(!e){e={}}this._file=o.getArg(e,"file",...
function SourceNode (line 1) | function SourceNode(e,r,n,t,o){this.children=[];this.sourceContents={};t...
function getNextLine (line 1) | function getNextLine(){return u<o.length?o[u++]:undefined}
function addMappingWithCode (line 1) | function addMappingWithCode(e,r){if(e===null||e.source===undefined){t.ad...
function getArg (line 1) | function getArg(e,r,n){if(r in e){return e[r]}else if(arguments.length==...
function urlParse (line 1) | function urlParse(e){var r=e.match(n);if(!r){return null}return{scheme:r...
function urlGenerate (line 1) | function urlGenerate(e){var r="";if(e.scheme){r+=e.scheme+":"}r+="//";if...
function normalize (line 1) | function normalize(e){var n=e;var t=urlParse(e);if(t){if(!t.path){return...
function join (line 1) | function join(e,r){if(e===""){e="."}if(r===""){r="."}var n=urlParse(r);v...
function relative (line 1) | function relative(e,r){if(e===""){e="."}e=e.replace(/\/$/,"");var n=0;wh...
function identity (line 1) | function identity(e){return e}
function toSetString (line 1) | function toSetString(e){if(isProtoString(e)){return"$"+e}return e}
function fromSetString (line 1) | function fromSetString(e){if(isProtoString(e)){return e.slice(1)}return e}
function isProtoString (line 1) | function isProtoString(e){if(!e){return false}var r=e.length;if(r<9){ret...
function compareByOriginalPositions (line 1) | function compareByOriginalPositions(e,r,n){var t=strcmp(e.source,r.sourc...
function compareByGeneratedPositionsDeflated (line 1) | function compareByGeneratedPositionsDeflated(e,r,n){var t=e.generatedLin...
function strcmp (line 1) | function strcmp(e,r){if(e===r){return 0}if(e===null){return 1}if(r===nul...
function compareByGeneratedPositionsInflated (line 1) | function compareByGeneratedPositionsInflated(e,r){var n=e.generatedLine-...
function parseSourceMapInput (line 1) | function parseSourceMapInput(e){return JSON.parse(e.replace(/^\)]}'[^\n]...
function computeSourceURL (line 1) | function computeSourceURL(e,r,n){r=r||"";if(e){if(e[e.length-1]!=="/"&&r...
function dynamicRequire (line 1) | function dynamicRequire(e,r){return e.require(r)}
function isInBrowser (line 1) | function isInBrowser(){if(c==="browser")return true;if(c==="node")return...
function hasGlobalProcessEventEmitter (line 1) | function hasGlobalProcessEventEmitter(){return typeof process==="object"...
function globalProcessVersion (line 1) | function globalProcessVersion(){if(typeof process==="object"&&process!==...
function globalProcessStderr (line 1) | function globalProcessStderr(){if(typeof process==="object"&&process!==n...
function globalProcessExit (line 1) | function globalProcessExit(e){if(typeof process==="object"&&process!==nu...
function handlerExec (line 1) | function handlerExec(e){return function(r){for(var n=0;n<e.length;n++){v...
function supportRelativeURL (line 1) | function supportRelativeURL(e,r){if(!e)return r;var n=o.dirname(e);var t...
function retrieveSourceMapURL (line 1) | function retrieveSourceMapURL(e){var r;if(isInBrowser()){try{var n=new X...
function mapSourcePosition (line 1) | function mapSourcePosition(e){var r=f[e.source];if(!r){var n=v(e.source)...
function mapEvalOrigin (line 1) | function mapEvalOrigin(e){var r=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/...
function CallSiteToString (line 1) | function CallSiteToString(){var e;var r="";if(this.isNative()){r="native...
function cloneCallSite (line 1) | function cloneCallSite(e){var r={};Object.getOwnPropertyNames(Object.get...
function wrapCallSite (line 1) | function wrapCallSite(e,r){if(r===undefined){r={nextPosition:null,curPos...
function prepareStackTrace (line 1) | function prepareStackTrace(e,r){if(l){p={};f={}}var n=e.name||"Error";va...
function getErrorSource (line 1) | function getErrorSource(e){var r=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.e...
function printErrorAndExit (line 1) | function printErrorAndExit(e){var r=getErrorSource(e);var n=globalProces...
function shimEmitUncaughtException (line 1) | function shimEmitUncaughtException(){var e=process.emit;process.emit=fun...
function __webpack_require__ (line 1) | function __webpack_require__(n){var t=r[n];if(t!==undefined){return t.ex...
FILE: src/main.ts
constant GITHUB_TOKEN (line 8) | const GITHUB_TOKEN: string = core.getInput("GITHUB_TOKEN");
constant OPENAI_API_KEY (line 9) | const OPENAI_API_KEY: string = core.getInput("OPENAI_API_KEY");
constant OPENAI_API_MODEL (line 10) | const OPENAI_API_MODEL: string = core.getInput("OPENAI_API_MODEL");
type PRDetails (line 18) | interface PRDetails {
function getPRDetails (line 26) | async function getPRDetails(): Promise<PRDetails> {
function getDiff (line 44) | async function getDiff(
function analyzeCode (line 59) | async function analyzeCode(
function createPrompt (line 81) | function createPrompt(file: File, chunk: Chunk, prDetails: PRDetails): s...
function getAIResponse (line 113) | async function getAIResponse(prompt: string): Promise<Array<{
function createComment (line 149) | function createComment(
function createReviewComment (line 169) | async function createReviewComment(
function main (line 184) | async function main() {
Condensed preview — 11 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,360K chars).
[
{
"path": ".github/workflows/code_review.yml",
"chars": 527,
"preview": "name: Code Review with OpenAI\non:\n pull_request:\n types:\n - opened\n - synchronize\npermissions: write-all\nj"
},
{
"path": ".gitignore",
"chars": 27,
"preview": "node_modules\n.idea\nlib/**/*"
},
{
"path": "LICENCE",
"chars": 1071,
"preview": "MIT License\n\nCopyright (c) 2023 Ville Saukkonen\n\nPermission is hereby granted, free of charge, to any person obtaining a"
},
{
"path": "README.md",
"chars": 2819,
"preview": "# AI Code Reviewer\n\nAI Code Reviewer is a GitHub Action that leverages OpenAI's GPT-4 API to provide intelligent feedbac"
},
{
"path": "action.yml",
"chars": 605,
"preview": "name: \"AI Code Review Action\"\ndescription: \"Perform code reviews and comment on diffs using OpenAI API.\"\ninputs:\n GITHU"
},
{
"path": "dist/index.js",
"chars": 1191844,
"preview": "require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ 3"
},
{
"path": "dist/licenses.txt",
"chars": 61407,
"preview": "@actions/core\nMIT\nThe MIT License (MIT)\n\nCopyright 2019 GitHub\n\nPermission is hereby granted, free of charge, to any per"
},
{
"path": "dist/sourcemap-register.js",
"chars": 41034,
"preview": "(()=>{var e={650:e=>{var r=Object.prototype.toString;var n=typeof Buffer.alloc===\"function\"&&typeof Buffer.allocUnsafe=="
},
{
"path": "package.json",
"chars": 690,
"preview": "{\n \"name\": \"open-ai-reviewer\",\n \"version\": \"1.0.0\",\n \"description\": \"Open AI powered code reviews\",\n \"main\": \"lib/ma"
},
{
"path": "src/main.ts",
"chars": 6299,
"preview": "import { readFileSync } from \"fs\";\nimport * as core from \"@actions/core\";\nimport OpenAI from \"openai\";\nimport { Octokit "
},
{
"path": "tsconfig.json",
"chars": 247,
"preview": "{\n \"compilerOptions\": {\n \"target\": \"es6\",\n \"module\": \"commonjs\",\n \"outDir\": \"./lib\",\n \"rootDir\": \"./src\",\n "
}
]
About this extraction
This page contains the full source code of the aidar-freeed/ai-codereviewer GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 11 files (1.2 MB), approximately 349.0k tokens, and a symbol index with 1549 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.