Update checked-in dependencies
This commit is contained in:
parent
c9f0d30a86
commit
95d52b7807
647 changed files with 498055 additions and 3880 deletions
2
node_modules/@octokit/app/dist-node/index.js
generated
vendored
2
node_modules/@octokit/app/dist-node/index.js
generated
vendored
|
|
@ -4,7 +4,7 @@ import { createAppAuth as createAppAuth3 } from "@octokit/auth-app";
|
|||
import { OAuthApp } from "@octokit/oauth-app";
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var VERSION = "15.1.4";
|
||||
var VERSION = "15.1.6";
|
||||
|
||||
// pkg/dist-src/webhooks.js
|
||||
import { createAppAuth } from "@octokit/auth-app";
|
||||
|
|
|
|||
2
node_modules/@octokit/app/dist-node/index.js.map
generated
vendored
2
node_modules/@octokit/app/dist-node/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/@octokit/app/dist-src/version.js
generated
vendored
2
node_modules/@octokit/app/dist-src/version.js
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
const VERSION = "15.1.4";
|
||||
const VERSION = "15.1.6";
|
||||
export {
|
||||
VERSION
|
||||
};
|
||||
|
|
|
|||
34
node_modules/@octokit/app/dist-types/each-repository.d.ts
generated
vendored
34
node_modules/@octokit/app/dist-types/each-repository.d.ts
generated
vendored
|
|
@ -11,7 +11,14 @@ export declare function eachRepositoryIterator(app: App, query?: EachRepositoryQ
|
|||
node_id: string;
|
||||
name: string;
|
||||
full_name: string;
|
||||
license: import("@octokit/openapi-types").components["schemas"]["nullable-license-simple"];
|
||||
license: {
|
||||
key: string;
|
||||
name: string;
|
||||
url: string | null;
|
||||
spdx_id: string | null;
|
||||
node_id: string;
|
||||
html_url?: string;
|
||||
} | null;
|
||||
forks: number;
|
||||
permissions?: {
|
||||
admin: boolean;
|
||||
|
|
@ -20,7 +27,30 @@ export declare function eachRepositoryIterator(app: App, query?: EachRepositoryQ
|
|||
push: boolean;
|
||||
maintain?: boolean;
|
||||
};
|
||||
owner: import("@octokit/openapi-types").components["schemas"]["simple-user"];
|
||||
owner: {
|
||||
name?: string | null;
|
||||
email?: string | null;
|
||||
login: string;
|
||||
id: number;
|
||||
node_id: string;
|
||||
avatar_url: string;
|
||||
gravatar_id: string | null;
|
||||
url: string;
|
||||
html_url: string;
|
||||
followers_url: string;
|
||||
following_url: string;
|
||||
gists_url: string;
|
||||
starred_url: string;
|
||||
subscriptions_url: string;
|
||||
organizations_url: string;
|
||||
repos_url: string;
|
||||
events_url: string;
|
||||
received_events_url: string;
|
||||
type: string;
|
||||
site_admin: boolean;
|
||||
starred_at?: string;
|
||||
user_view_type?: string;
|
||||
};
|
||||
private: boolean;
|
||||
html_url: string;
|
||||
description: string | null;
|
||||
|
|
|
|||
2
node_modules/@octokit/app/dist-types/version.d.ts
generated
vendored
2
node_modules/@octokit/app/dist-types/version.d.ts
generated
vendored
|
|
@ -1 +1 @@
|
|||
export declare const VERSION = "15.1.4";
|
||||
export declare const VERSION = "15.1.6";
|
||||
|
|
|
|||
2
node_modules/@octokit/app/dist-web/index.js
generated
vendored
2
node_modules/@octokit/app/dist-web/index.js
generated
vendored
|
|
@ -4,7 +4,7 @@ import { createAppAuth as createAppAuth3 } from "@octokit/auth-app";
|
|||
import { OAuthApp } from "@octokit/oauth-app";
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var VERSION = "15.1.4";
|
||||
var VERSION = "15.1.6";
|
||||
|
||||
// pkg/dist-src/webhooks.js
|
||||
import { createAppAuth } from "@octokit/auth-app";
|
||||
|
|
|
|||
2
node_modules/@octokit/app/dist-web/index.js.map
generated
vendored
2
node_modules/@octokit/app/dist-web/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/@octokit/app/node_modules/@octokit/core/dist-src/version.js
generated
vendored
2
node_modules/@octokit/app/node_modules/@octokit/core/dist-src/version.js
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
const VERSION = "6.1.4";
|
||||
const VERSION = "6.1.5";
|
||||
export {
|
||||
VERSION
|
||||
};
|
||||
|
|
|
|||
5
node_modules/@octokit/app/node_modules/@octokit/core/dist-types/types.d.ts
generated
vendored
5
node_modules/@octokit/app/node_modules/@octokit/core/dist-types/types.d.ts
generated
vendored
|
|
@ -41,4 +41,9 @@ export type Hooks = {
|
|||
Error: unknown;
|
||||
};
|
||||
};
|
||||
export type StrictOmit<T, K extends keyof T> = {
|
||||
[P in keyof T as P extends K ? never : P]: T[P];
|
||||
} & {
|
||||
[parameter: string]: unknown;
|
||||
};
|
||||
export {};
|
||||
|
|
|
|||
2
node_modules/@octokit/app/node_modules/@octokit/core/dist-types/version.d.ts
generated
vendored
2
node_modules/@octokit/app/node_modules/@octokit/core/dist-types/version.d.ts
generated
vendored
|
|
@ -1 +1 @@
|
|||
export declare const VERSION = "6.1.4";
|
||||
export declare const VERSION = "6.1.5";
|
||||
|
|
|
|||
14
node_modules/@octokit/app/node_modules/@octokit/core/package.json
generated
vendored
14
node_modules/@octokit/app/node_modules/@octokit/core/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@octokit/core",
|
||||
"version": "6.1.4",
|
||||
"version": "6.1.5",
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"provenance": true
|
||||
|
|
@ -19,10 +19,10 @@
|
|||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/auth-token": "^5.0.0",
|
||||
"@octokit/graphql": "^8.1.2",
|
||||
"@octokit/request": "^9.2.1",
|
||||
"@octokit/request-error": "^6.1.7",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"@octokit/graphql": "^8.2.2",
|
||||
"@octokit/request": "^9.2.3",
|
||||
"@octokit/request-error": "^6.1.8",
|
||||
"@octokit/types": "^14.0.0",
|
||||
"before-after-hook": "^3.0.2",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
},
|
||||
|
|
@ -39,10 +39,10 @@
|
|||
"esbuild": "^0.25.0",
|
||||
"fetch-mock": "^12.0.0",
|
||||
"glob": "^11.0.0",
|
||||
"prettier": "3.4.2",
|
||||
"prettier": "3.5.3",
|
||||
"proxy": "^2.0.0",
|
||||
"semantic-release": "^24.0.0",
|
||||
"semantic-release-plugin-update-version-in-files": "^1.0.0",
|
||||
"semantic-release-plugin-update-version-in-files": "^2.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"undici": "^6.0.0",
|
||||
"vitest": "^3.0.5"
|
||||
|
|
|
|||
2
node_modules/@octokit/app/node_modules/@octokit/graphql/dist-src/version.js
generated
vendored
2
node_modules/@octokit/app/node_modules/@octokit/graphql/dist-src/version.js
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
const VERSION = "8.2.1";
|
||||
const VERSION = "8.2.2";
|
||||
export {
|
||||
VERSION
|
||||
};
|
||||
|
|
|
|||
2
node_modules/@octokit/app/node_modules/@octokit/graphql/dist-types/version.d.ts
generated
vendored
2
node_modules/@octokit/app/node_modules/@octokit/graphql/dist-types/version.d.ts
generated
vendored
|
|
@ -1 +1 @@
|
|||
export declare const VERSION = "8.2.1";
|
||||
export declare const VERSION = "8.2.2";
|
||||
|
|
|
|||
11
node_modules/@octokit/app/node_modules/@octokit/graphql/package.json
generated
vendored
11
node_modules/@octokit/app/node_modules/@octokit/graphql/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@octokit/graphql",
|
||||
"version": "8.2.1",
|
||||
"version": "8.2.2",
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"provenance": true
|
||||
|
|
@ -17,20 +17,19 @@
|
|||
"author": "Gregor Martynus (https://github.com/gr2m)",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/request": "^9.2.2",
|
||||
"@octokit/types": "^13.8.0",
|
||||
"@octokit/request": "^9.2.3",
|
||||
"@octokit/types": "^14.0.0",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@octokit/tsconfig": "^4.0.0",
|
||||
"@types/fetch-mock": "^7.2.5",
|
||||
"@types/node": "^22.0.0",
|
||||
"@vitest/coverage-v8": "^3.0.0",
|
||||
"esbuild": "^0.25.0",
|
||||
"fetch-mock": "^12.0.0",
|
||||
"glob": "^11.0.0",
|
||||
"prettier": "3.4.2",
|
||||
"semantic-release-plugin-update-version-in-files": "^1.0.0",
|
||||
"prettier": "3.5.3",
|
||||
"semantic-release-plugin-update-version-in-files": "^2.0.0",
|
||||
"typescript": "^5.3.0",
|
||||
"vitest": "^3.0.0"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -132,8 +132,10 @@ var paginatingEndpoints = [
|
|||
"GET /notifications",
|
||||
"GET /organizations",
|
||||
"GET /orgs/{org}/actions/cache/usage-by-repository",
|
||||
"GET /orgs/{org}/actions/hosted-runners",
|
||||
"GET /orgs/{org}/actions/permissions/repositories",
|
||||
"GET /orgs/{org}/actions/runner-groups",
|
||||
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners",
|
||||
"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",
|
||||
|
|
@ -143,6 +145,7 @@ var paginatingEndpoints = [
|
|||
"GET /orgs/{org}/actions/variables/{name}/repositories",
|
||||
"GET /orgs/{org}/attestations/{subject_digest}",
|
||||
"GET /orgs/{org}/blocks",
|
||||
"GET /orgs/{org}/campaigns",
|
||||
"GET /orgs/{org}/code-scanning/alerts",
|
||||
"GET /orgs/{org}/code-security/configurations",
|
||||
"GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories",
|
||||
|
|
@ -151,7 +154,6 @@ var paginatingEndpoints = [
|
|||
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories",
|
||||
"GET /orgs/{org}/copilot/billing/seats",
|
||||
"GET /orgs/{org}/copilot/metrics",
|
||||
"GET /orgs/{org}/copilot/usage",
|
||||
"GET /orgs/{org}/dependabot/alerts",
|
||||
"GET /orgs/{org}/dependabot/secrets",
|
||||
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories",
|
||||
|
|
@ -186,10 +188,11 @@ var paginatingEndpoints = [
|
|||
"GET /orgs/{org}/repos",
|
||||
"GET /orgs/{org}/rulesets",
|
||||
"GET /orgs/{org}/rulesets/rule-suites",
|
||||
"GET /orgs/{org}/rulesets/{ruleset_id}/history",
|
||||
"GET /orgs/{org}/secret-scanning/alerts",
|
||||
"GET /orgs/{org}/security-advisories",
|
||||
"GET /orgs/{org}/settings/network-configurations",
|
||||
"GET /orgs/{org}/team/{team_slug}/copilot/metrics",
|
||||
"GET /orgs/{org}/team/{team_slug}/copilot/usage",
|
||||
"GET /orgs/{org}/teams",
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions",
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
|
||||
|
|
@ -284,6 +287,7 @@ var paginatingEndpoints = [
|
|||
"GET /repos/{owner}/{repo}/rules/branches/{branch}",
|
||||
"GET /repos/{owner}/{repo}/rulesets",
|
||||
"GET /repos/{owner}/{repo}/rulesets/rule-suites",
|
||||
"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history",
|
||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts",
|
||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
|
||||
"GET /repos/{owner}/{repo}/security-advisories",
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -28,8 +28,10 @@ const paginatingEndpoints = [
|
|||
"GET /notifications",
|
||||
"GET /organizations",
|
||||
"GET /orgs/{org}/actions/cache/usage-by-repository",
|
||||
"GET /orgs/{org}/actions/hosted-runners",
|
||||
"GET /orgs/{org}/actions/permissions/repositories",
|
||||
"GET /orgs/{org}/actions/runner-groups",
|
||||
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners",
|
||||
"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",
|
||||
|
|
@ -39,6 +41,7 @@ const paginatingEndpoints = [
|
|||
"GET /orgs/{org}/actions/variables/{name}/repositories",
|
||||
"GET /orgs/{org}/attestations/{subject_digest}",
|
||||
"GET /orgs/{org}/blocks",
|
||||
"GET /orgs/{org}/campaigns",
|
||||
"GET /orgs/{org}/code-scanning/alerts",
|
||||
"GET /orgs/{org}/code-security/configurations",
|
||||
"GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories",
|
||||
|
|
@ -47,7 +50,6 @@ const paginatingEndpoints = [
|
|||
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories",
|
||||
"GET /orgs/{org}/copilot/billing/seats",
|
||||
"GET /orgs/{org}/copilot/metrics",
|
||||
"GET /orgs/{org}/copilot/usage",
|
||||
"GET /orgs/{org}/dependabot/alerts",
|
||||
"GET /orgs/{org}/dependabot/secrets",
|
||||
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories",
|
||||
|
|
@ -82,10 +84,11 @@ const paginatingEndpoints = [
|
|||
"GET /orgs/{org}/repos",
|
||||
"GET /orgs/{org}/rulesets",
|
||||
"GET /orgs/{org}/rulesets/rule-suites",
|
||||
"GET /orgs/{org}/rulesets/{ruleset_id}/history",
|
||||
"GET /orgs/{org}/secret-scanning/alerts",
|
||||
"GET /orgs/{org}/security-advisories",
|
||||
"GET /orgs/{org}/settings/network-configurations",
|
||||
"GET /orgs/{org}/team/{team_slug}/copilot/metrics",
|
||||
"GET /orgs/{org}/team/{team_slug}/copilot/usage",
|
||||
"GET /orgs/{org}/teams",
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions",
|
||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
|
||||
|
|
@ -180,6 +183,7 @@ const paginatingEndpoints = [
|
|||
"GET /repos/{owner}/{repo}/rules/branches/{branch}",
|
||||
"GET /repos/{owner}/{repo}/rulesets",
|
||||
"GET /repos/{owner}/{repo}/rulesets/rule-suites",
|
||||
"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history",
|
||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts",
|
||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
|
||||
"GET /repos/{owner}/{repo}/security-advisories",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
const VERSION = "11.4.2";
|
||||
const VERSION = "12.0.0";
|
||||
export {
|
||||
VERSION
|
||||
};
|
||||
|
|
|
|||
|
|
@ -207,6 +207,15 @@ export interface PaginatingEndpoints {
|
|||
data: Endpoints["GET /orgs/{org}/actions/cache/usage-by-repository"]["response"]["data"]["repository_cache_usages"];
|
||||
};
|
||||
};
|
||||
/**
|
||||
* @see https://docs.github.com/rest/actions/hosted-runners#list-github-hosted-runners-for-an-organization
|
||||
*/
|
||||
"GET /orgs/{org}/actions/hosted-runners": {
|
||||
parameters: Endpoints["GET /orgs/{org}/actions/hosted-runners"]["parameters"];
|
||||
response: Endpoints["GET /orgs/{org}/actions/hosted-runners"]["response"] & {
|
||||
data: Endpoints["GET /orgs/{org}/actions/hosted-runners"]["response"]["data"]["runners"];
|
||||
};
|
||||
};
|
||||
/**
|
||||
* @see https://docs.github.com/rest/actions/permissions#list-selected-repositories-enabled-for-github-actions-in-an-organization
|
||||
*/
|
||||
|
|
@ -225,6 +234,15 @@ export interface PaginatingEndpoints {
|
|||
data: Endpoints["GET /orgs/{org}/actions/runner-groups"]["response"]["data"]["runner_groups"];
|
||||
};
|
||||
};
|
||||
/**
|
||||
* @see https://docs.github.com/rest/actions/self-hosted-runner-groups#list-github-hosted-runners-in-a-group-for-an-organization
|
||||
*/
|
||||
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners": {
|
||||
parameters: Endpoints["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"]["parameters"];
|
||||
response: Endpoints["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"]["response"] & {
|
||||
data: Endpoints["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"]["response"]["data"]["runners"];
|
||||
};
|
||||
};
|
||||
/**
|
||||
* @see https://docs.github.com/rest/actions/self-hosted-runner-groups#list-repository-access-to-a-self-hosted-runner-group-in-an-organization
|
||||
*/
|
||||
|
|
@ -304,6 +322,13 @@ export interface PaginatingEndpoints {
|
|||
parameters: Endpoints["GET /orgs/{org}/blocks"]["parameters"];
|
||||
response: Endpoints["GET /orgs/{org}/blocks"]["response"];
|
||||
};
|
||||
/**
|
||||
* @see https://docs.github.com/rest/campaigns/campaigns#list-campaigns-for-an-organization
|
||||
*/
|
||||
"GET /orgs/{org}/campaigns": {
|
||||
parameters: Endpoints["GET /orgs/{org}/campaigns"]["parameters"];
|
||||
response: Endpoints["GET /orgs/{org}/campaigns"]["response"];
|
||||
};
|
||||
/**
|
||||
* @see https://docs.github.com/rest/code-scanning/code-scanning#list-code-scanning-alerts-for-an-organization
|
||||
*/
|
||||
|
|
@ -368,13 +393,6 @@ export interface PaginatingEndpoints {
|
|||
parameters: Endpoints["GET /orgs/{org}/copilot/metrics"]["parameters"];
|
||||
response: Endpoints["GET /orgs/{org}/copilot/metrics"]["response"];
|
||||
};
|
||||
/**
|
||||
* @see https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-organization-members
|
||||
*/
|
||||
"GET /orgs/{org}/copilot/usage": {
|
||||
parameters: Endpoints["GET /orgs/{org}/copilot/usage"]["parameters"];
|
||||
response: Endpoints["GET /orgs/{org}/copilot/usage"]["response"];
|
||||
};
|
||||
/**
|
||||
* @see https://docs.github.com/rest/dependabot/alerts#list-dependabot-alerts-for-an-organization
|
||||
*/
|
||||
|
|
@ -623,6 +641,13 @@ export interface PaginatingEndpoints {
|
|||
parameters: Endpoints["GET /orgs/{org}/rulesets/rule-suites"]["parameters"];
|
||||
response: Endpoints["GET /orgs/{org}/rulesets/rule-suites"]["response"];
|
||||
};
|
||||
/**
|
||||
* @see https://docs.github.com/rest/orgs/rules#get-organization-ruleset-history
|
||||
*/
|
||||
"GET /orgs/{org}/rulesets/{ruleset_id}/history": {
|
||||
parameters: Endpoints["GET /orgs/{org}/rulesets/{ruleset_id}/history"]["parameters"];
|
||||
response: Endpoints["GET /orgs/{org}/rulesets/{ruleset_id}/history"]["response"];
|
||||
};
|
||||
/**
|
||||
* @see https://docs.github.com/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-an-organization
|
||||
*/
|
||||
|
|
@ -637,6 +662,15 @@ export interface PaginatingEndpoints {
|
|||
parameters: Endpoints["GET /orgs/{org}/security-advisories"]["parameters"];
|
||||
response: Endpoints["GET /orgs/{org}/security-advisories"]["response"];
|
||||
};
|
||||
/**
|
||||
* @see https://docs.github.com/rest/orgs/network-configurations#list-hosted-compute-network-configurations-for-an-organization
|
||||
*/
|
||||
"GET /orgs/{org}/settings/network-configurations": {
|
||||
parameters: Endpoints["GET /orgs/{org}/settings/network-configurations"]["parameters"];
|
||||
response: Endpoints["GET /orgs/{org}/settings/network-configurations"]["response"] & {
|
||||
data: Endpoints["GET /orgs/{org}/settings/network-configurations"]["response"]["data"]["network_configurations"];
|
||||
};
|
||||
};
|
||||
/**
|
||||
* @see https://docs.github.com/rest/copilot/copilot-metrics#get-copilot-metrics-for-a-team
|
||||
*/
|
||||
|
|
@ -644,13 +678,6 @@ export interface PaginatingEndpoints {
|
|||
parameters: Endpoints["GET /orgs/{org}/team/{team_slug}/copilot/metrics"]["parameters"];
|
||||
response: Endpoints["GET /orgs/{org}/team/{team_slug}/copilot/metrics"]["response"];
|
||||
};
|
||||
/**
|
||||
* @see https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-a-team
|
||||
*/
|
||||
"GET /orgs/{org}/team/{team_slug}/copilot/usage": {
|
||||
parameters: Endpoints["GET /orgs/{org}/team/{team_slug}/copilot/usage"]["parameters"];
|
||||
response: Endpoints["GET /orgs/{org}/team/{team_slug}/copilot/usage"]["response"];
|
||||
};
|
||||
/**
|
||||
* @see https://docs.github.com/rest/teams/teams#list-teams
|
||||
*/
|
||||
|
|
@ -1363,6 +1390,13 @@ export interface PaginatingEndpoints {
|
|||
parameters: Endpoints["GET /repos/{owner}/{repo}/rulesets/rule-suites"]["parameters"];
|
||||
response: Endpoints["GET /repos/{owner}/{repo}/rulesets/rule-suites"]["response"];
|
||||
};
|
||||
/**
|
||||
* @see https://docs.github.com/rest/repos/rules#get-repository-ruleset-history
|
||||
*/
|
||||
"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history": {
|
||||
parameters: Endpoints["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history"]["parameters"];
|
||||
response: Endpoints["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history"]["response"];
|
||||
};
|
||||
/**
|
||||
* @see https://docs.github.com/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-a-repository
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,11 +3,12 @@ import type * as OctokitTypes from "@octokit/types";
|
|||
export type { EndpointOptions, RequestInterface, OctokitResponse, RequestParameters, Route, } from "@octokit/types";
|
||||
export type { PaginatingEndpoints } from "./generated/paginating-endpoints.js";
|
||||
import type { PaginatingEndpoints } from "./generated/paginating-endpoints.js";
|
||||
type PaginationMetadataKeys = "repository_selection" | "total_count" | "incomplete_results";
|
||||
type KnownKeys<T> = Extract<{
|
||||
[K in keyof T]: string extends K ? never : number extends K ? never : K;
|
||||
} extends {
|
||||
[_ in keyof T]: infer U;
|
||||
} ? U : never, Exclude<keyof T, "repository_selection" | "total_count" | "incomplete_results">>;
|
||||
} ? U : never, Exclude<keyof T, PaginationMetadataKeys>>;
|
||||
type KeysMatching<T, V> = {
|
||||
[K in keyof T]: T[K] extends V ? K : never;
|
||||
}[keyof T];
|
||||
|
|
@ -19,9 +20,9 @@ type GetResultsType<T> = T extends {
|
|||
} ? T["data"][KnownKeysMatching<T["data"], any[]>] : never;
|
||||
type GetPaginationKeys<T> = T extends {
|
||||
data: any[];
|
||||
} ? T : T extends {
|
||||
} ? {} : T extends {
|
||||
data: object;
|
||||
} ? Pick<T["data"], Extract<keyof T["data"], "repository_selection" | "total_count" | "incomplete_results">> : never;
|
||||
} ? Pick<T["data"], Extract<keyof T["data"], PaginationMetadataKeys>> : never;
|
||||
type NormalizeResponse<T> = Omit<T, "data"> & {
|
||||
data: GetResultsType<T> & GetPaginationKeys<T>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
export declare const VERSION = "11.4.2";
|
||||
export declare const VERSION = "12.0.0";
|
||||
|
|
|
|||
12
node_modules/@octokit/app/node_modules/@octokit/plugin-paginate-rest/package.json
generated
vendored
12
node_modules/@octokit/app/node_modules/@octokit/plugin-paginate-rest/package.json
generated
vendored
|
|
@ -5,7 +5,7 @@
|
|||
"provenance": true
|
||||
},
|
||||
"type": "module",
|
||||
"version": "11.4.2",
|
||||
"version": "12.0.0",
|
||||
"description": "Octokit plugin to paginate REST API endpoint responses",
|
||||
"repository": "github:octokit/plugin-paginate-rest.js",
|
||||
"keywords": [
|
||||
|
|
@ -16,14 +16,14 @@
|
|||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/types": "^13.7.0"
|
||||
"@octokit/types": "^14.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@octokit/core": ">=6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@octokit/core": "^6.1.3",
|
||||
"@octokit/plugin-rest-endpoint-methods": "^13.3.0",
|
||||
"@octokit/core": "^6.1.5",
|
||||
"@octokit/plugin-rest-endpoint-methods": "^14.0.0",
|
||||
"@octokit/tsconfig": "^4.0.0",
|
||||
"@types/node": "^22.0.0",
|
||||
"@vitest/coverage-v8": "^3.0.0",
|
||||
|
|
@ -32,8 +32,8 @@
|
|||
"github-openapi-graphql-query": "^4.0.0",
|
||||
"glob": "^11.0.0",
|
||||
"npm-run-all2": "^7.0.0",
|
||||
"prettier": "3.5.1",
|
||||
"semantic-release-plugin-update-version-in-files": "^1.0.0",
|
||||
"prettier": "3.5.3",
|
||||
"semantic-release-plugin-update-version-in-files": "^2.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"vitest": "^3.0.0"
|
||||
},
|
||||
|
|
|
|||
16
node_modules/@octokit/app/package.json
generated
vendored
16
node_modules/@octokit/app/package.json
generated
vendored
|
|
@ -5,19 +5,19 @@
|
|||
"provenance": true
|
||||
},
|
||||
"type": "module",
|
||||
"version": "15.1.4",
|
||||
"version": "15.1.6",
|
||||
"description": "GitHub Apps toolset for Node.js",
|
||||
"main": "./dist-node/index.js",
|
||||
"repository": "github:octokit/app.js",
|
||||
"author": "Gregor Martynus (https://github.com/gr2m)",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/auth-app": "^7.1.5",
|
||||
"@octokit/auth-unauthenticated": "^6.1.2",
|
||||
"@octokit/core": "^6.1.4",
|
||||
"@octokit/auth-app": "^7.2.1",
|
||||
"@octokit/auth-unauthenticated": "^6.1.3",
|
||||
"@octokit/core": "^6.1.5",
|
||||
"@octokit/oauth-app": "^7.1.6",
|
||||
"@octokit/plugin-paginate-rest": "^11.4.2",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"@octokit/plugin-paginate-rest": "^12.0.0",
|
||||
"@octokit/types": "^14.0.0",
|
||||
"@octokit/webhooks": "^13.6.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
@ -29,8 +29,8 @@
|
|||
"fetch-mock": "^12.0.0",
|
||||
"glob": "^10.0.0",
|
||||
"mockdate": "^3.0.2",
|
||||
"prettier": "3.5.1",
|
||||
"semantic-release-plugin-update-version-in-files": "^1.0.0",
|
||||
"prettier": "3.5.3",
|
||||
"semantic-release-plugin-update-version-in-files": "^2.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"vitest": "^3.0.0"
|
||||
},
|
||||
|
|
|
|||
40
node_modules/@octokit/auth-app/dist-node/index.js
generated
vendored
40
node_modules/@octokit/auth-app/dist-node/index.js
generated
vendored
|
|
@ -157,15 +157,30 @@ async function getInstallationAuthentication(state, options, customRequest) {
|
|||
};
|
||||
return factory(factoryAuthOptions);
|
||||
}
|
||||
const optionsWithInstallationTokenFromState = Object.assign(
|
||||
{ installationId },
|
||||
options
|
||||
const request = customRequest || state.request;
|
||||
return getInstallationAuthenticationConcurrently(
|
||||
state,
|
||||
{ ...options, installationId },
|
||||
request
|
||||
);
|
||||
}
|
||||
var pendingPromises = /* @__PURE__ */ new Map();
|
||||
function getInstallationAuthenticationConcurrently(state, options, request) {
|
||||
const cacheKey = optionsToCacheKey(options);
|
||||
if (pendingPromises.has(cacheKey)) {
|
||||
return pendingPromises.get(cacheKey);
|
||||
}
|
||||
const promise = getInstallationAuthenticationImpl(
|
||||
state,
|
||||
options,
|
||||
request
|
||||
).finally(() => pendingPromises.delete(cacheKey));
|
||||
pendingPromises.set(cacheKey, promise);
|
||||
return promise;
|
||||
}
|
||||
async function getInstallationAuthenticationImpl(state, options, request) {
|
||||
if (!options.refresh) {
|
||||
const result = await get(
|
||||
state.cache,
|
||||
optionsWithInstallationTokenFromState
|
||||
);
|
||||
const result = await get(state.cache, options);
|
||||
if (result) {
|
||||
const {
|
||||
token: token2,
|
||||
|
|
@ -178,7 +193,7 @@ async function getInstallationAuthentication(state, options, customRequest) {
|
|||
repositorySelection: repositorySelection2
|
||||
} = result;
|
||||
return toTokenAuthentication({
|
||||
installationId,
|
||||
installationId: options.installationId,
|
||||
token: token2,
|
||||
createdAt: createdAt2,
|
||||
expiresAt: expiresAt2,
|
||||
|
|
@ -191,9 +206,8 @@ async function getInstallationAuthentication(state, options, customRequest) {
|
|||
}
|
||||
}
|
||||
const appAuthentication = await getAppAuthentication(state);
|
||||
const request = customRequest || state.request;
|
||||
const payload = {
|
||||
installation_id: installationId,
|
||||
installation_id: options.installationId,
|
||||
mediaType: {
|
||||
previews: ["machine-man"]
|
||||
},
|
||||
|
|
@ -242,9 +256,9 @@ async function getInstallationAuthentication(state, options, customRequest) {
|
|||
if (singleFileName) {
|
||||
Object.assign(payload, { singleFileName });
|
||||
}
|
||||
await set(state.cache, optionsWithInstallationTokenFromState, cacheOptions);
|
||||
await set(state.cache, options, cacheOptions);
|
||||
const cacheData = {
|
||||
installationId,
|
||||
installationId: options.installationId,
|
||||
token,
|
||||
createdAt,
|
||||
expiresAt,
|
||||
|
|
@ -407,7 +421,7 @@ async function sendRequestWithRetries(state, request, options, createdAt, retrie
|
|||
}
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var VERSION = "7.1.5";
|
||||
var VERSION = "7.2.1";
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
import { createOAuthUserAuth } from "@octokit/auth-oauth-user";
|
||||
|
|
|
|||
4
node_modules/@octokit/auth-app/dist-node/index.js.map
generated
vendored
4
node_modules/@octokit/auth-app/dist-node/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
1
node_modules/@octokit/auth-app/dist-src/cache.js
generated
vendored
1
node_modules/@octokit/auth-app/dist-src/cache.js
generated
vendored
|
|
@ -74,5 +74,6 @@ function optionsToCacheKey({
|
|||
export {
|
||||
get,
|
||||
getCache,
|
||||
optionsToCacheKey,
|
||||
set
|
||||
};
|
||||
|
|
|
|||
40
node_modules/@octokit/auth-app/dist-src/get-installation-authentication.js
generated
vendored
40
node_modules/@octokit/auth-app/dist-src/get-installation-authentication.js
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
import { get, set } from "./cache.js";
|
||||
import { get, optionsToCacheKey, set } from "./cache.js";
|
||||
import { getAppAuthentication } from "./get-app-authentication.js";
|
||||
import { toTokenAuthentication } from "./to-token-authentication.js";
|
||||
async function getInstallationAuthentication(state, options, customRequest) {
|
||||
|
|
@ -15,15 +15,30 @@ async function getInstallationAuthentication(state, options, customRequest) {
|
|||
};
|
||||
return factory(factoryAuthOptions);
|
||||
}
|
||||
const optionsWithInstallationTokenFromState = Object.assign(
|
||||
{ installationId },
|
||||
options
|
||||
const request = customRequest || state.request;
|
||||
return getInstallationAuthenticationConcurrently(
|
||||
state,
|
||||
{ ...options, installationId },
|
||||
request
|
||||
);
|
||||
}
|
||||
const pendingPromises = /* @__PURE__ */ new Map();
|
||||
function getInstallationAuthenticationConcurrently(state, options, request) {
|
||||
const cacheKey = optionsToCacheKey(options);
|
||||
if (pendingPromises.has(cacheKey)) {
|
||||
return pendingPromises.get(cacheKey);
|
||||
}
|
||||
const promise = getInstallationAuthenticationImpl(
|
||||
state,
|
||||
options,
|
||||
request
|
||||
).finally(() => pendingPromises.delete(cacheKey));
|
||||
pendingPromises.set(cacheKey, promise);
|
||||
return promise;
|
||||
}
|
||||
async function getInstallationAuthenticationImpl(state, options, request) {
|
||||
if (!options.refresh) {
|
||||
const result = await get(
|
||||
state.cache,
|
||||
optionsWithInstallationTokenFromState
|
||||
);
|
||||
const result = await get(state.cache, options);
|
||||
if (result) {
|
||||
const {
|
||||
token: token2,
|
||||
|
|
@ -36,7 +51,7 @@ async function getInstallationAuthentication(state, options, customRequest) {
|
|||
repositorySelection: repositorySelection2
|
||||
} = result;
|
||||
return toTokenAuthentication({
|
||||
installationId,
|
||||
installationId: options.installationId,
|
||||
token: token2,
|
||||
createdAt: createdAt2,
|
||||
expiresAt: expiresAt2,
|
||||
|
|
@ -49,9 +64,8 @@ async function getInstallationAuthentication(state, options, customRequest) {
|
|||
}
|
||||
}
|
||||
const appAuthentication = await getAppAuthentication(state);
|
||||
const request = customRequest || state.request;
|
||||
const payload = {
|
||||
installation_id: installationId,
|
||||
installation_id: options.installationId,
|
||||
mediaType: {
|
||||
previews: ["machine-man"]
|
||||
},
|
||||
|
|
@ -100,9 +114,9 @@ async function getInstallationAuthentication(state, options, customRequest) {
|
|||
if (singleFileName) {
|
||||
Object.assign(payload, { singleFileName });
|
||||
}
|
||||
await set(state.cache, optionsWithInstallationTokenFromState, cacheOptions);
|
||||
await set(state.cache, options, cacheOptions);
|
||||
const cacheData = {
|
||||
installationId,
|
||||
installationId: options.installationId,
|
||||
token,
|
||||
createdAt,
|
||||
expiresAt,
|
||||
|
|
|
|||
2
node_modules/@octokit/auth-app/dist-src/version.js
generated
vendored
2
node_modules/@octokit/auth-app/dist-src/version.js
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
const VERSION = "7.1.5";
|
||||
const VERSION = "7.2.1";
|
||||
export {
|
||||
VERSION
|
||||
};
|
||||
|
|
|
|||
7
node_modules/@octokit/auth-app/dist-types/cache.d.ts
generated
vendored
7
node_modules/@octokit/auth-app/dist-types/cache.d.ts
generated
vendored
|
|
@ -1,5 +1,6 @@
|
|||
import { Lru } from "toad-cache";
|
||||
import type { InstallationAuthOptions, Cache, CacheData, InstallationAccessTokenData } from "./types.js";
|
||||
import type { CacheableInstallationAuthOptions, Cache, CacheData, InstallationAccessTokenData } from "./types.js";
|
||||
export declare function getCache(): Lru<string>;
|
||||
export declare function get(cache: Cache, options: InstallationAuthOptions): Promise<InstallationAccessTokenData | void>;
|
||||
export declare function set(cache: Cache, options: InstallationAuthOptions, data: CacheData): Promise<void>;
|
||||
export declare function get(cache: Cache, options: CacheableInstallationAuthOptions): Promise<InstallationAccessTokenData | void>;
|
||||
export declare function set(cache: Cache, options: CacheableInstallationAuthOptions, data: CacheData): Promise<void>;
|
||||
export declare function optionsToCacheKey({ installationId, permissions, repositoryIds, repositoryNames, }: CacheableInstallationAuthOptions): string;
|
||||
|
|
|
|||
3
node_modules/@octokit/auth-app/dist-types/types.d.ts
generated
vendored
3
node_modules/@octokit/auth-app/dist-types/types.d.ts
generated
vendored
|
|
@ -46,6 +46,9 @@ export type InstallationAuthOptionsWithFactory<T> = {
|
|||
factory: FactoryInstallation<T>;
|
||||
[key: string]: unknown;
|
||||
};
|
||||
export type CacheableInstallationAuthOptions = InstallationAuthOptions & {
|
||||
installationId: number;
|
||||
};
|
||||
export type OAuthAppAuthOptions = OAuthAppAuth.AppAuthOptions;
|
||||
export type OAuthWebFlowAuthOptions = OAuthAppAuth.WebFlowAuthOptions;
|
||||
export type OAuthDeviceFlowAuthOptions = OAuthAppAuth.GitHubAppDeviceFlowAuthOptions;
|
||||
|
|
|
|||
2
node_modules/@octokit/auth-app/dist-types/version.d.ts
generated
vendored
2
node_modules/@octokit/auth-app/dist-types/version.d.ts
generated
vendored
|
|
@ -1 +1 @@
|
|||
export declare const VERSION = "7.1.5";
|
||||
export declare const VERSION = "7.2.1";
|
||||
|
|
|
|||
22
node_modules/@octokit/auth-app/package.json
generated
vendored
22
node_modules/@octokit/auth-app/package.json
generated
vendored
|
|
@ -5,7 +5,7 @@
|
|||
"provenance": true
|
||||
},
|
||||
"type": "module",
|
||||
"version": "7.1.5",
|
||||
"version": "7.2.1",
|
||||
"description": "GitHub App authentication for JavaScript",
|
||||
"repository": "github:octokit/auth-app.js",
|
||||
"keywords": [
|
||||
|
|
@ -17,11 +17,11 @@
|
|||
"author": "Gregor Martynus (https://github.com/gr2m)",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/auth-oauth-app": "^8.1.3",
|
||||
"@octokit/auth-oauth-user": "^5.1.3",
|
||||
"@octokit/request": "^9.2.1",
|
||||
"@octokit/request-error": "^6.1.7",
|
||||
"@octokit/types": "^13.8.0",
|
||||
"@octokit/auth-oauth-app": "^8.1.4",
|
||||
"@octokit/auth-oauth-user": "^5.1.4",
|
||||
"@octokit/request": "^9.2.3",
|
||||
"@octokit/request-error": "^6.1.8",
|
||||
"@octokit/types": "^14.0.0",
|
||||
"toad-cache": "^3.7.0",
|
||||
"universal-github-app-jwt": "^2.2.0",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
|
|
@ -29,15 +29,15 @@
|
|||
"devDependencies": {
|
||||
"@octokit/tsconfig": "^4.0.0",
|
||||
"@types/node": "^22.0.0",
|
||||
"@vitest/coverage-v8": "^2.1.2",
|
||||
"@vitest/ui": "^2.1.2",
|
||||
"@vitest/coverage-v8": "^3.0.0",
|
||||
"@vitest/ui": "^3.0.0",
|
||||
"esbuild": "^0.25.0",
|
||||
"fetch-mock": "^11.0.0",
|
||||
"glob": "^11.0.0",
|
||||
"prettier": "3.5.1",
|
||||
"semantic-release-plugin-update-version-in-files": "^1.0.0",
|
||||
"prettier": "3.5.3",
|
||||
"semantic-release-plugin-update-version-in-files": "^2.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"vitest": "^2.1.2"
|
||||
"vitest": "^3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
|
|
|
|||
2
node_modules/@octokit/auth-oauth-app/dist-src/version.js
generated
vendored
2
node_modules/@octokit/auth-oauth-app/dist-src/version.js
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
const VERSION = "8.1.3";
|
||||
const VERSION = "8.1.4";
|
||||
export {
|
||||
VERSION
|
||||
};
|
||||
|
|
|
|||
2
node_modules/@octokit/auth-oauth-app/dist-types/version.d.ts
generated
vendored
2
node_modules/@octokit/auth-oauth-app/dist-types/version.d.ts
generated
vendored
|
|
@ -1 +1 @@
|
|||
export declare const VERSION = "8.1.3";
|
||||
export declare const VERSION = "8.1.4";
|
||||
|
|
|
|||
16
node_modules/@octokit/auth-oauth-app/package.json
generated
vendored
16
node_modules/@octokit/auth-oauth-app/package.json
generated
vendored
|
|
@ -5,7 +5,7 @@
|
|||
"provenance": true
|
||||
},
|
||||
"type": "module",
|
||||
"version": "8.1.3",
|
||||
"version": "8.1.4",
|
||||
"description": "GitHub OAuth App authentication for JavaScript",
|
||||
"repository": "github:octokit/auth-oauth-app.js",
|
||||
"keywords": [
|
||||
|
|
@ -18,22 +18,22 @@
|
|||
"author": "Gregor Martynus (https://github.com/gr2m)",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/auth-oauth-device": "^7.1.3",
|
||||
"@octokit/auth-oauth-user": "^5.1.3",
|
||||
"@octokit/request": "^9.2.1",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"@octokit/auth-oauth-device": "^7.1.5",
|
||||
"@octokit/auth-oauth-user": "^5.1.4",
|
||||
"@octokit/request": "^9.2.3",
|
||||
"@octokit/types": "^14.0.0",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@octokit/core": "^6.1.3",
|
||||
"@octokit/core": "^6.1.5",
|
||||
"@octokit/tsconfig": "^4.0.0",
|
||||
"@types/node": "^22.13.1",
|
||||
"@vitest/coverage-v8": "^3.0.5",
|
||||
"esbuild": "^0.25.0",
|
||||
"fetch-mock": "^12.0.0",
|
||||
"glob": "^11.0.0",
|
||||
"prettier": "3.5.1",
|
||||
"semantic-release-plugin-update-version-in-files": "^1.0.0",
|
||||
"prettier": "3.5.3",
|
||||
"semantic-release-plugin-update-version-in-files": "^2.0.0",
|
||||
"typescript": "^5.3.0",
|
||||
"vitest": "^3.0.5"
|
||||
},
|
||||
|
|
|
|||
2
node_modules/@octokit/auth-oauth-device/dist-bundle/index.js
generated
vendored
2
node_modules/@octokit/auth-oauth-device/dist-bundle/index.js
generated
vendored
|
|
@ -67,7 +67,7 @@ async function waitForAccessToken(request, clientId, clientType, verification) {
|
|||
return waitForAccessToken(request, clientId, clientType, verification);
|
||||
}
|
||||
if (errorType === "slow_down") {
|
||||
await wait(verification.interval + 5);
|
||||
await wait(verification.interval + 7);
|
||||
return waitForAccessToken(request, clientId, clientType, verification);
|
||||
}
|
||||
throw error;
|
||||
|
|
|
|||
2
node_modules/@octokit/auth-oauth-device/dist-bundle/index.js.map
generated
vendored
2
node_modules/@octokit/auth-oauth-device/dist-bundle/index.js.map
generated
vendored
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"version": 3,
|
||||
"sources": ["../dist-src/index.js", "../dist-src/get-oauth-access-token.js", "../dist-src/auth.js", "../dist-src/hook.js", "../dist-src/version.js"],
|
||||
"sourcesContent": ["import { getUserAgent } from \"universal-user-agent\";\nimport { request as octokitRequest } from \"@octokit/request\";\nimport { auth } from \"./auth.js\";\nimport { hook } from \"./hook.js\";\nimport { VERSION } from \"./version.js\";\nfunction createOAuthDeviceAuth(options) {\n const requestWithDefaults = options.request || octokitRequest.defaults({\n headers: {\n \"user-agent\": `octokit-auth-oauth-device.js/${VERSION} ${getUserAgent()}`\n }\n });\n const { request = requestWithDefaults, ...otherOptions } = options;\n const state = options.clientType === \"github-app\" ? {\n ...otherOptions,\n clientType: \"github-app\",\n request\n } : {\n ...otherOptions,\n clientType: \"oauth-app\",\n request,\n scopes: options.scopes || []\n };\n if (!options.clientId) {\n throw new Error(\n '[@octokit/auth-oauth-device] \"clientId\" option must be set (https://github.com/octokit/auth-oauth-device.js#usage)'\n );\n }\n if (!options.onVerification) {\n throw new Error(\n '[@octokit/auth-oauth-device] \"onVerification\" option must be a function (https://github.com/octokit/auth-oauth-device.js#usage)'\n );\n }\n return Object.assign(auth.bind(null, state), {\n hook: hook.bind(null, state)\n });\n}\nexport {\n createOAuthDeviceAuth\n};\n", "import { createDeviceCode, exchangeDeviceCode } from \"@octokit/oauth-methods\";\nasync function getOAuthAccessToken(state, options) {\n const cachedAuthentication = getCachedAuthentication(state, options.auth);\n if (cachedAuthentication) return cachedAuthentication;\n const { data: verification } = await createDeviceCode({\n clientType: state.clientType,\n clientId: state.clientId,\n request: options.request || state.request,\n // @ts-expect-error the extra code to make TS happy is not worth it\n scopes: options.auth.scopes || state.scopes\n });\n await state.onVerification(verification);\n const authentication = await waitForAccessToken(\n options.request || state.request,\n state.clientId,\n state.clientType,\n verification\n );\n state.authentication = authentication;\n return authentication;\n}\nfunction getCachedAuthentication(state, auth) {\n if (auth.refresh === true) return false;\n if (!state.authentication) return false;\n if (state.clientType === \"github-app\") {\n return state.authentication;\n }\n const authentication = state.authentication;\n const newScope = (\"scopes\" in auth && auth.scopes || state.scopes).join(\n \" \"\n );\n const currentScope = authentication.scopes.join(\" \");\n return newScope === currentScope ? authentication : false;\n}\nasync function wait(seconds) {\n await new Promise((resolve) => setTimeout(resolve, seconds * 1e3));\n}\nasync function waitForAccessToken(request, clientId, clientType, verification) {\n try {\n const options = {\n clientId,\n request,\n code: verification.device_code\n };\n const { authentication } = clientType === \"oauth-app\" ? await exchangeDeviceCode({\n ...options,\n clientType: \"oauth-app\"\n }) : await exchangeDeviceCode({\n ...options,\n clientType: \"github-app\"\n });\n return {\n type: \"token\",\n tokenType: \"oauth\",\n ...authentication\n };\n } catch (error) {\n if (!error.response) throw error;\n const errorType = error.response.data.error;\n if (errorType === \"authorization_pending\") {\n await wait(verification.interval);\n return waitForAccessToken(request, clientId, clientType, verification);\n }\n if (errorType === \"slow_down\") {\n await wait(verification.interval + 5);\n return waitForAccessToken(request, clientId, clientType, verification);\n }\n throw error;\n }\n}\nexport {\n getOAuthAccessToken\n};\n", "import { getOAuthAccessToken } from \"./get-oauth-access-token.js\";\nasync function auth(state, authOptions) {\n return getOAuthAccessToken(state, {\n auth: authOptions\n });\n}\nexport {\n auth\n};\n", "import { getOAuthAccessToken } from \"./get-oauth-access-token.js\";\nasync function hook(state, request, route, parameters) {\n let endpoint = request.endpoint.merge(\n route,\n parameters\n );\n if (/\\/login\\/(oauth\\/access_token|device\\/code)$/.test(endpoint.url)) {\n return request(endpoint);\n }\n const { token } = await getOAuthAccessToken(state, {\n request,\n auth: { type: \"oauth\" }\n });\n endpoint.headers.authorization = `token ${token}`;\n return request(endpoint);\n}\nexport {\n hook\n};\n", "const VERSION = \"0.0.0-development\";\nexport {\n VERSION\n};\n"],
|
||||
"sourcesContent": ["import { getUserAgent } from \"universal-user-agent\";\nimport { request as octokitRequest } from \"@octokit/request\";\nimport { auth } from \"./auth.js\";\nimport { hook } from \"./hook.js\";\nimport { VERSION } from \"./version.js\";\nfunction createOAuthDeviceAuth(options) {\n const requestWithDefaults = options.request || octokitRequest.defaults({\n headers: {\n \"user-agent\": `octokit-auth-oauth-device.js/${VERSION} ${getUserAgent()}`\n }\n });\n const { request = requestWithDefaults, ...otherOptions } = options;\n const state = options.clientType === \"github-app\" ? {\n ...otherOptions,\n clientType: \"github-app\",\n request\n } : {\n ...otherOptions,\n clientType: \"oauth-app\",\n request,\n scopes: options.scopes || []\n };\n if (!options.clientId) {\n throw new Error(\n '[@octokit/auth-oauth-device] \"clientId\" option must be set (https://github.com/octokit/auth-oauth-device.js#usage)'\n );\n }\n if (!options.onVerification) {\n throw new Error(\n '[@octokit/auth-oauth-device] \"onVerification\" option must be a function (https://github.com/octokit/auth-oauth-device.js#usage)'\n );\n }\n return Object.assign(auth.bind(null, state), {\n hook: hook.bind(null, state)\n });\n}\nexport {\n createOAuthDeviceAuth\n};\n", "import { createDeviceCode, exchangeDeviceCode } from \"@octokit/oauth-methods\";\nasync function getOAuthAccessToken(state, options) {\n const cachedAuthentication = getCachedAuthentication(state, options.auth);\n if (cachedAuthentication) return cachedAuthentication;\n const { data: verification } = await createDeviceCode({\n clientType: state.clientType,\n clientId: state.clientId,\n request: options.request || state.request,\n // @ts-expect-error the extra code to make TS happy is not worth it\n scopes: options.auth.scopes || state.scopes\n });\n await state.onVerification(verification);\n const authentication = await waitForAccessToken(\n options.request || state.request,\n state.clientId,\n state.clientType,\n verification\n );\n state.authentication = authentication;\n return authentication;\n}\nfunction getCachedAuthentication(state, auth) {\n if (auth.refresh === true) return false;\n if (!state.authentication) return false;\n if (state.clientType === \"github-app\") {\n return state.authentication;\n }\n const authentication = state.authentication;\n const newScope = (\"scopes\" in auth && auth.scopes || state.scopes).join(\n \" \"\n );\n const currentScope = authentication.scopes.join(\" \");\n return newScope === currentScope ? authentication : false;\n}\nasync function wait(seconds) {\n await new Promise((resolve) => setTimeout(resolve, seconds * 1e3));\n}\nasync function waitForAccessToken(request, clientId, clientType, verification) {\n try {\n const options = {\n clientId,\n request,\n code: verification.device_code\n };\n const { authentication } = clientType === \"oauth-app\" ? await exchangeDeviceCode({\n ...options,\n clientType: \"oauth-app\"\n }) : await exchangeDeviceCode({\n ...options,\n clientType: \"github-app\"\n });\n return {\n type: \"token\",\n tokenType: \"oauth\",\n ...authentication\n };\n } catch (error) {\n if (!error.response) throw error;\n const errorType = error.response.data.error;\n if (errorType === \"authorization_pending\") {\n await wait(verification.interval);\n return waitForAccessToken(request, clientId, clientType, verification);\n }\n if (errorType === \"slow_down\") {\n await wait(verification.interval + 7);\n return waitForAccessToken(request, clientId, clientType, verification);\n }\n throw error;\n }\n}\nexport {\n getOAuthAccessToken\n};\n", "import { getOAuthAccessToken } from \"./get-oauth-access-token.js\";\nasync function auth(state, authOptions) {\n return getOAuthAccessToken(state, {\n auth: authOptions\n });\n}\nexport {\n auth\n};\n", "import { getOAuthAccessToken } from \"./get-oauth-access-token.js\";\nasync function hook(state, request, route, parameters) {\n let endpoint = request.endpoint.merge(\n route,\n parameters\n );\n if (/\\/login\\/(oauth\\/access_token|device\\/code)$/.test(endpoint.url)) {\n return request(endpoint);\n }\n const { token } = await getOAuthAccessToken(state, {\n request,\n auth: { type: \"oauth\" }\n });\n endpoint.headers.authorization = `token ${token}`;\n return request(endpoint);\n}\nexport {\n hook\n};\n", "const VERSION = \"0.0.0-development\";\nexport {\n VERSION\n};\n"],
|
||||
"mappings": ";AAAA,SAAS,oBAAoB;AAC7B,SAAS,WAAW,sBAAsB;;;ACD1C,SAAS,kBAAkB,0BAA0B;AACrD,eAAe,oBAAoB,OAAO,SAAS;AACjD,QAAM,uBAAuB,wBAAwB,OAAO,QAAQ,IAAI;AACxE,MAAI,qBAAsB,QAAO;AACjC,QAAM,EAAE,MAAM,aAAa,IAAI,MAAM,iBAAiB;AAAA,IACpD,YAAY,MAAM;AAAA,IAClB,UAAU,MAAM;AAAA,IAChB,SAAS,QAAQ,WAAW,MAAM;AAAA;AAAA,IAElC,QAAQ,QAAQ,KAAK,UAAU,MAAM;AAAA,EACvC,CAAC;AACD,QAAM,MAAM,eAAe,YAAY;AACvC,QAAM,iBAAiB,MAAM;AAAA,IAC3B,QAAQ,WAAW,MAAM;AAAA,IACzB,MAAM;AAAA,IACN,MAAM;AAAA,IACN;AAAA,EACF;AACA,QAAM,iBAAiB;AACvB,SAAO;AACT;AACA,SAAS,wBAAwB,OAAOA,OAAM;AAC5C,MAAIA,MAAK,YAAY,KAAM,QAAO;AAClC,MAAI,CAAC,MAAM,eAAgB,QAAO;AAClC,MAAI,MAAM,eAAe,cAAc;AACrC,WAAO,MAAM;AAAA,EACf;AACA,QAAM,iBAAiB,MAAM;AAC7B,QAAM,YAAY,YAAYA,SAAQA,MAAK,UAAU,MAAM,QAAQ;AAAA,IACjE;AAAA,EACF;AACA,QAAM,eAAe,eAAe,OAAO,KAAK,GAAG;AACnD,SAAO,aAAa,eAAe,iBAAiB;AACtD;AACA,eAAe,KAAK,SAAS;AAC3B,QAAM,IAAI,QAAQ,CAAC,YAAY,WAAW,SAAS,UAAU,GAAG,CAAC;AACnE;AACA,eAAe,mBAAmB,SAAS,UAAU,YAAY,cAAc;AAC7E,MAAI;AACF,UAAM,UAAU;AAAA,MACd;AAAA,MACA;AAAA,MACA,MAAM,aAAa;AAAA,IACrB;AACA,UAAM,EAAE,eAAe,IAAI,eAAe,cAAc,MAAM,mBAAmB;AAAA,MAC/E,GAAG;AAAA,MACH,YAAY;AAAA,IACd,CAAC,IAAI,MAAM,mBAAmB;AAAA,MAC5B,GAAG;AAAA,MACH,YAAY;AAAA,IACd,CAAC;AACD,WAAO;AAAA,MACL,MAAM;AAAA,MACN,WAAW;AAAA,MACX,GAAG;AAAA,IACL;AAAA,EACF,SAAS,OAAO;AACd,QAAI,CAAC,MAAM,SAAU,OAAM;AAC3B,UAAM,YAAY,MAAM,SAAS,KAAK;AACtC,QAAI,cAAc,yBAAyB;AACzC,YAAM,KAAK,aAAa,QAAQ;AAChC,aAAO,mBAAmB,SAAS,UAAU,YAAY,YAAY;AAAA,IACvE;AACA,QAAI,cAAc,aAAa;AAC7B,YAAM,KAAK,aAAa,WAAW,CAAC;AACpC,aAAO,mBAAmB,SAAS,UAAU,YAAY,YAAY;AAAA,IACvE;AACA,UAAM;AAAA,EACR;AACF;;;ACpEA,eAAe,KAAK,OAAO,aAAa;AACtC,SAAO,oBAAoB,OAAO;AAAA,IAChC,MAAM;AAAA,EACR,CAAC;AACH;;;ACJA,eAAe,KAAK,OAAO,SAAS,OAAO,YAAY;AACrD,MAAI,WAAW,QAAQ,SAAS;AAAA,IAC9B;AAAA,IACA;AAAA,EACF;AACA,MAAI,+CAA+C,KAAK,SAAS,GAAG,GAAG;AACrE,WAAO,QAAQ,QAAQ;AAAA,EACzB;AACA,QAAM,EAAE,MAAM,IAAI,MAAM,oBAAoB,OAAO;AAAA,IACjD;AAAA,IACA,MAAM,EAAE,MAAM,QAAQ;AAAA,EACxB,CAAC;AACD,WAAS,QAAQ,gBAAgB,SAAS,KAAK;AAC/C,SAAO,QAAQ,QAAQ;AACzB;;;ACfA,IAAM,UAAU;;;AJKhB,SAAS,sBAAsB,SAAS;AACtC,QAAM,sBAAsB,QAAQ,WAAW,eAAe,SAAS;AAAA,IACrE,SAAS;AAAA,MACP,cAAc,gCAAgC,OAAO,IAAI,aAAa,CAAC;AAAA,IACzE;AAAA,EACF,CAAC;AACD,QAAM,EAAE,UAAU,qBAAqB,GAAG,aAAa,IAAI;AAC3D,QAAM,QAAQ,QAAQ,eAAe,eAAe;AAAA,IAClD,GAAG;AAAA,IACH,YAAY;AAAA,IACZ;AAAA,EACF,IAAI;AAAA,IACF,GAAG;AAAA,IACH,YAAY;AAAA,IACZ;AAAA,IACA,QAAQ,QAAQ,UAAU,CAAC;AAAA,EAC7B;AACA,MAAI,CAAC,QAAQ,UAAU;AACrB,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,MAAI,CAAC,QAAQ,gBAAgB;AAC3B,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,SAAO,OAAO,OAAO,KAAK,KAAK,MAAM,KAAK,GAAG;AAAA,IAC3C,MAAM,KAAK,KAAK,MAAM,KAAK;AAAA,EAC7B,CAAC;AACH;",
|
||||
"names": ["auth"]
|
||||
}
|
||||
|
|
|
|||
2
node_modules/@octokit/auth-oauth-device/dist-src/get-oauth-access-token.js
generated
vendored
2
node_modules/@octokit/auth-oauth-device/dist-src/get-oauth-access-token.js
generated
vendored
|
|
@ -62,7 +62,7 @@ async function waitForAccessToken(request, clientId, clientType, verification) {
|
|||
return waitForAccessToken(request, clientId, clientType, verification);
|
||||
}
|
||||
if (errorType === "slow_down") {
|
||||
await wait(verification.interval + 5);
|
||||
await wait(verification.interval + 7);
|
||||
return waitForAccessToken(request, clientId, clientType, verification);
|
||||
}
|
||||
throw error;
|
||||
|
|
|
|||
2
node_modules/@octokit/auth-oauth-device/dist-src/version.js
generated
vendored
2
node_modules/@octokit/auth-oauth-device/dist-src/version.js
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
const VERSION = "7.1.3";
|
||||
const VERSION = "7.1.5";
|
||||
export {
|
||||
VERSION
|
||||
};
|
||||
|
|
|
|||
2
node_modules/@octokit/auth-oauth-device/dist-types/version.d.ts
generated
vendored
2
node_modules/@octokit/auth-oauth-device/dist-types/version.d.ts
generated
vendored
|
|
@ -1 +1 @@
|
|||
export declare const VERSION = "7.1.3";
|
||||
export declare const VERSION = "7.1.5";
|
||||
|
|
|
|||
12
node_modules/@octokit/auth-oauth-device/package.json
generated
vendored
12
node_modules/@octokit/auth-oauth-device/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@octokit/auth-oauth-device",
|
||||
"version": "7.1.3",
|
||||
"version": "7.1.5",
|
||||
"description": "GitHub OAuth Device authentication strategy for JavaScript",
|
||||
"type": "module",
|
||||
"repository": "github:octokit/auth-oauth-device.js",
|
||||
|
|
@ -13,9 +13,9 @@
|
|||
"author": "Gregor Martynus (https://dev.to/gr2m)",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/oauth-methods": "^5.1.4",
|
||||
"@octokit/request": "^9.2.1",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"@octokit/oauth-methods": "^5.1.5",
|
||||
"@octokit/request": "^9.2.3",
|
||||
"@octokit/types": "^14.0.0",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
@ -25,8 +25,8 @@
|
|||
"esbuild": "^0.25.0",
|
||||
"fetch-mock": "^12.0.0",
|
||||
"glob": "^11.0.0",
|
||||
"prettier": "3.5.1",
|
||||
"semantic-release-plugin-update-version-in-files": "^1.1.0",
|
||||
"prettier": "3.5.3",
|
||||
"semantic-release-plugin-update-version-in-files": "^2.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"vitest": "^3.0.0"
|
||||
},
|
||||
|
|
|
|||
2
node_modules/@octokit/auth-oauth-user/dist-src/version.js
generated
vendored
2
node_modules/@octokit/auth-oauth-user/dist-src/version.js
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
const VERSION = "5.1.3";
|
||||
const VERSION = "5.1.4";
|
||||
export {
|
||||
VERSION
|
||||
};
|
||||
|
|
|
|||
2
node_modules/@octokit/auth-oauth-user/dist-types/version.d.ts
generated
vendored
2
node_modules/@octokit/auth-oauth-user/dist-types/version.d.ts
generated
vendored
|
|
@ -1 +1 @@
|
|||
export declare const VERSION = "5.1.3";
|
||||
export declare const VERSION = "5.1.4";
|
||||
|
|
|
|||
20
node_modules/@octokit/auth-oauth-user/package.json
generated
vendored
20
node_modules/@octokit/auth-oauth-user/package.json
generated
vendored
|
|
@ -5,7 +5,7 @@
|
|||
"provenance": true
|
||||
},
|
||||
"type": "module",
|
||||
"version": "5.1.3",
|
||||
"version": "5.1.4",
|
||||
"description": "Octokit authentication strategy for OAuth clients",
|
||||
"repository": "https://github.com/octokit/auth-oauth-user.js",
|
||||
"keywords": [
|
||||
|
|
@ -17,25 +17,25 @@
|
|||
"author": "Gregor Martynus (https://dev.to/gr2m)",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/auth-oauth-device": "^7.1.3",
|
||||
"@octokit/oauth-methods": "^5.1.3",
|
||||
"@octokit/request": "^9.2.1",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"@octokit/auth-oauth-device": "^7.1.5",
|
||||
"@octokit/oauth-methods": "^5.1.5",
|
||||
"@octokit/request": "^9.2.3",
|
||||
"@octokit/types": "^14.0.0",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@octokit/core": "^6.1.3",
|
||||
"@octokit/core": "^6.1.5",
|
||||
"@octokit/tsconfig": "^4.0.0",
|
||||
"@types/node": "^22.0.0",
|
||||
"@vitest/coverage-v8": "^2.1.8",
|
||||
"@vitest/coverage-v8": "^3.0.0",
|
||||
"esbuild": "^0.25.0",
|
||||
"fetch-mock": "^11.0.0",
|
||||
"glob": "^11.0.0",
|
||||
"mockdate": "^3.0.4",
|
||||
"prettier": "3.5.1",
|
||||
"semantic-release-plugin-update-version-in-files": "^1.1.0",
|
||||
"prettier": "3.5.2",
|
||||
"semantic-release-plugin-update-version-in-files": "^2.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"vitest": "^2.1.8"
|
||||
"vitest": "^3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
|
|
|
|||
12
node_modules/@octokit/auth-unauthenticated/package.json
generated
vendored
12
node_modules/@octokit/auth-unauthenticated/package.json
generated
vendored
|
|
@ -5,7 +5,7 @@
|
|||
"provenance": true
|
||||
},
|
||||
"type": "module",
|
||||
"version": "6.1.2",
|
||||
"version": "6.1.3",
|
||||
"description": "GitHub API token authentication for browsers and Node.js",
|
||||
"repository": "github:octokit/auth-unauthenticated.js",
|
||||
"keywords": [
|
||||
|
|
@ -17,19 +17,19 @@
|
|||
"author": "Gregor Martynus (https://github.com/gr2m)",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/request-error": "^6.1.7",
|
||||
"@octokit/types": "^13.6.2"
|
||||
"@octokit/request-error": "^6.1.8",
|
||||
"@octokit/types": "^14.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@octokit/core": "^6.1.4",
|
||||
"@octokit/request": "^9.2.1",
|
||||
"@octokit/core": "^6.1.5",
|
||||
"@octokit/request": "^9.2.3",
|
||||
"@octokit/tsconfig": "^4.0.0",
|
||||
"@types/node": "^22.13.1",
|
||||
"@vitest/coverage-v8": "^3.0.0",
|
||||
"esbuild": "^0.25.0",
|
||||
"fetch-mock": "^12.0.0",
|
||||
"glob": "^11.0.0",
|
||||
"prettier": "3.5.1",
|
||||
"prettier": "3.5.3",
|
||||
"typescript": "^5.0.0",
|
||||
"vitest": "^3.0.0"
|
||||
},
|
||||
|
|
|
|||
7
node_modules/@octokit/core/node_modules/@octokit/openapi-types/LICENSE
generated
vendored
Normal file
7
node_modules/@octokit/core/node_modules/@octokit/openapi-types/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
Copyright 2020 Gregor Martynus
|
||||
|
||||
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.
|
||||
17
node_modules/@octokit/core/node_modules/@octokit/openapi-types/README.md
generated
vendored
Normal file
17
node_modules/@octokit/core/node_modules/@octokit/openapi-types/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# @octokit/openapi-types
|
||||
|
||||
> Generated TypeScript definitions based on GitHub's OpenAPI spec
|
||||
|
||||
This package is continuously updated based on [GitHub's OpenAPI specification](https://github.com/github/rest-api-description/)
|
||||
|
||||
## Usage
|
||||
|
||||
```ts
|
||||
import { components } from "@octokit/openapi-types";
|
||||
|
||||
type Repository = components["schemas"]["full-repository"];
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
[MIT](LICENSE)
|
||||
21
node_modules/@octokit/core/node_modules/@octokit/openapi-types/package.json
generated
vendored
Normal file
21
node_modules/@octokit/core/node_modules/@octokit/openapi-types/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"name": "@octokit/openapi-types",
|
||||
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/octokit/openapi-types.ts.git",
|
||||
"directory": "packages/openapi-types"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"provenance": true
|
||||
},
|
||||
"version": "24.2.0",
|
||||
"main": "",
|
||||
"types": "types.d.ts",
|
||||
"author": "Gregor Martynus (https://twitter.com/gr2m)",
|
||||
"license": "MIT",
|
||||
"octokit": {
|
||||
"openapi-version": "18.2.0"
|
||||
}
|
||||
}
|
||||
117609
node_modules/@octokit/core/node_modules/@octokit/openapi-types/types.d.ts
generated
vendored
Normal file
117609
node_modules/@octokit/core/node_modules/@octokit/openapi-types/types.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
7
node_modules/@octokit/core/node_modules/@octokit/types/LICENSE
generated
vendored
Normal file
7
node_modules/@octokit/core/node_modules/@octokit/types/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
MIT License Copyright (c) 2019 Octokit contributors
|
||||
|
||||
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 (including the next paragraph) 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.
|
||||
65
node_modules/@octokit/core/node_modules/@octokit/types/README.md
generated
vendored
Normal file
65
node_modules/@octokit/core/node_modules/@octokit/types/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
# types.ts
|
||||
|
||||
> Shared TypeScript definitions for Octokit projects
|
||||
|
||||
[](https://www.npmjs.com/package/@octokit/types)
|
||||
[](https://github.com/octokit/types.ts/actions?workflow=Test)
|
||||
|
||||
<!-- toc -->
|
||||
|
||||
- [Usage](#usage)
|
||||
- [Examples](#examples)
|
||||
- [Get parameter and response data types for a REST API endpoint](#get-parameter-and-response-data-types-for-a-rest-api-endpoint)
|
||||
- [Get response types from endpoint methods](#get-response-types-from-endpoint-methods)
|
||||
- [Contributing](#contributing)
|
||||
- [License](#license)
|
||||
|
||||
<!-- tocstop -->
|
||||
|
||||
## Usage
|
||||
|
||||
See all exported types at https://octokit.github.io/types.ts
|
||||
|
||||
## Examples
|
||||
|
||||
### Get parameter and response data types for a REST API endpoint
|
||||
|
||||
```ts
|
||||
import { Endpoints } from "@octokit/types";
|
||||
|
||||
type listUserReposParameters =
|
||||
Endpoints["GET /repos/{owner}/{repo}"]["parameters"];
|
||||
type listUserReposResponse = Endpoints["GET /repos/{owner}/{repo}"]["response"];
|
||||
|
||||
async function listRepos(
|
||||
options: listUserReposParameters,
|
||||
): listUserReposResponse["data"] {
|
||||
// ...
|
||||
}
|
||||
```
|
||||
|
||||
### Get response types from endpoint methods
|
||||
|
||||
```ts
|
||||
import {
|
||||
GetResponseTypeFromEndpointMethod,
|
||||
GetResponseDataTypeFromEndpointMethod,
|
||||
} from "@octokit/types";
|
||||
import { Octokit } from "@octokit/rest";
|
||||
|
||||
const octokit = new Octokit();
|
||||
type CreateLabelResponseType = GetResponseTypeFromEndpointMethod<
|
||||
typeof octokit.issues.createLabel
|
||||
>;
|
||||
type CreateLabelResponseDataType = GetResponseDataTypeFromEndpointMethod<
|
||||
typeof octokit.issues.createLabel
|
||||
>;
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
See [CONTRIBUTING.md](CONTRIBUTING.md)
|
||||
|
||||
## License
|
||||
|
||||
[MIT](LICENSE)
|
||||
31
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/AuthInterface.d.ts
generated
vendored
Normal file
31
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/AuthInterface.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import type { EndpointOptions } from "./EndpointOptions.js";
|
||||
import type { OctokitResponse } from "./OctokitResponse.js";
|
||||
import type { RequestInterface } from "./RequestInterface.js";
|
||||
import type { RequestParameters } from "./RequestParameters.js";
|
||||
import type { Route } from "./Route.js";
|
||||
/**
|
||||
* Interface to implement complex authentication strategies for Octokit.
|
||||
* An object Implementing the AuthInterface can directly be passed as the
|
||||
* `auth` option in the Octokit constructor.
|
||||
*
|
||||
* For the official implementations of the most common authentication
|
||||
* strategies, see https://github.com/octokit/auth.js
|
||||
*/
|
||||
export interface AuthInterface<AuthOptions extends any[], Authentication extends any> {
|
||||
(...args: AuthOptions): Promise<Authentication>;
|
||||
hook: {
|
||||
/**
|
||||
* Sends a request using the passed `request` instance
|
||||
*
|
||||
* @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*/
|
||||
<T = any>(request: RequestInterface, options: EndpointOptions): Promise<OctokitResponse<T>>;
|
||||
/**
|
||||
* Sends a request using the passed `request` instance
|
||||
*
|
||||
* @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
|
||||
* @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*/
|
||||
<T = any>(request: RequestInterface, route: Route, parameters?: RequestParameters): Promise<OctokitResponse<T>>;
|
||||
};
|
||||
}
|
||||
21
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts
generated
vendored
Normal file
21
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import type { RequestHeaders } from "./RequestHeaders.js";
|
||||
import type { RequestMethod } from "./RequestMethod.js";
|
||||
import type { RequestParameters } from "./RequestParameters.js";
|
||||
import type { Url } from "./Url.js";
|
||||
/**
|
||||
* The `.endpoint()` method is guaranteed to set all keys defined by RequestParameters
|
||||
* as well as the method property.
|
||||
*/
|
||||
export type EndpointDefaults = RequestParameters & {
|
||||
baseUrl: Url;
|
||||
method: RequestMethod;
|
||||
url?: Url;
|
||||
headers: RequestHeaders & {
|
||||
accept: string;
|
||||
"user-agent": string;
|
||||
};
|
||||
mediaType: {
|
||||
format: string;
|
||||
previews?: string[];
|
||||
};
|
||||
};
|
||||
65
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts
generated
vendored
Normal file
65
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
import type { EndpointDefaults } from "./EndpointDefaults.js";
|
||||
import type { RequestOptions } from "./RequestOptions.js";
|
||||
import type { RequestParameters } from "./RequestParameters.js";
|
||||
import type { Route } from "./Route.js";
|
||||
import type { Endpoints } from "./generated/Endpoints.js";
|
||||
export interface EndpointInterface<D extends object = object> {
|
||||
/**
|
||||
* Transforms a GitHub REST API endpoint into generic request options
|
||||
*
|
||||
* @param {object} endpoint Must set `url` unless it's set defaults. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*/
|
||||
<O extends RequestParameters = RequestParameters>(options: O & {
|
||||
method?: string;
|
||||
} & ("url" extends keyof D ? {
|
||||
url?: string;
|
||||
} : {
|
||||
url: string;
|
||||
})): RequestOptions & Pick<D & O, keyof RequestOptions>;
|
||||
/**
|
||||
* Transforms a GitHub REST API endpoint into generic request options
|
||||
*
|
||||
* @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
|
||||
* @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*/
|
||||
<R extends Route, P extends RequestParameters = R extends keyof Endpoints ? Endpoints[R]["parameters"] & RequestParameters : RequestParameters>(route: keyof Endpoints | R, parameters?: P): (R extends keyof Endpoints ? Endpoints[R]["request"] : RequestOptions) & Pick<P, keyof RequestOptions>;
|
||||
/**
|
||||
* Object with current default route and parameters
|
||||
*/
|
||||
DEFAULTS: D & EndpointDefaults;
|
||||
/**
|
||||
* Returns a new `endpoint` interface with new defaults
|
||||
*/
|
||||
defaults: <O extends RequestParameters = RequestParameters>(newDefaults: O) => EndpointInterface<D & O>;
|
||||
merge: {
|
||||
/**
|
||||
* Merges current endpoint defaults with passed route and parameters,
|
||||
* without transforming them into request options.
|
||||
*
|
||||
* @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
|
||||
* @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*
|
||||
*/
|
||||
<R extends Route, P extends RequestParameters = R extends keyof Endpoints ? Endpoints[R]["parameters"] & RequestParameters : RequestParameters>(route: keyof Endpoints | R, parameters?: P): D & (R extends keyof Endpoints ? Endpoints[R]["request"] & Endpoints[R]["parameters"] : EndpointDefaults) & P;
|
||||
/**
|
||||
* Merges current endpoint defaults with passed route and parameters,
|
||||
* without transforming them into request options.
|
||||
*
|
||||
* @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*/
|
||||
<P extends RequestParameters = RequestParameters>(options: P): EndpointDefaults & D & P;
|
||||
/**
|
||||
* Returns current default options.
|
||||
*
|
||||
* @deprecated use endpoint.DEFAULTS instead
|
||||
*/
|
||||
(): D & EndpointDefaults;
|
||||
};
|
||||
/**
|
||||
* Stateless method to turn endpoint options into request options.
|
||||
* Calling `endpoint(options)` is the same as calling `endpoint.parse(endpoint.merge(options))`.
|
||||
*
|
||||
* @param {object} options `method`, `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*/
|
||||
parse: <O extends EndpointDefaults = EndpointDefaults>(options: O) => RequestOptions & Pick<O, keyof RequestOptions>;
|
||||
}
|
||||
7
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts
generated
vendored
Normal file
7
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import type { RequestMethod } from "./RequestMethod.js";
|
||||
import type { Url } from "./Url.js";
|
||||
import type { RequestParameters } from "./RequestParameters.js";
|
||||
export type EndpointOptions = RequestParameters & {
|
||||
method: RequestMethod;
|
||||
url: Url;
|
||||
};
|
||||
4
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Fetch.d.ts
generated
vendored
Normal file
4
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Fetch.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* Browser's fetch method (or compatible such as fetch-mock)
|
||||
*/
|
||||
export type Fetch = any;
|
||||
5
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts
generated
vendored
Normal file
5
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
type Unwrap<T> = T extends Promise<infer U> ? U : T;
|
||||
type AnyFunction = (...args: any[]) => any;
|
||||
export type GetResponseTypeFromEndpointMethod<T extends AnyFunction> = Unwrap<ReturnType<T>>;
|
||||
export type GetResponseDataTypeFromEndpointMethod<T extends AnyFunction> = Unwrap<ReturnType<T>>["data"];
|
||||
export {};
|
||||
17
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts
generated
vendored
Normal file
17
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import type { ResponseHeaders } from "./ResponseHeaders.js";
|
||||
import type { Url } from "./Url.js";
|
||||
export interface OctokitResponse<T, S extends number = number> {
|
||||
headers: ResponseHeaders;
|
||||
/**
|
||||
* http response code
|
||||
*/
|
||||
status: S;
|
||||
/**
|
||||
* URL of response after all redirects
|
||||
*/
|
||||
url: Url;
|
||||
/**
|
||||
* Response data as documented in the REST API reference documentation at https://docs.github.com/rest/reference
|
||||
*/
|
||||
data: T;
|
||||
}
|
||||
11
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestError.d.ts
generated
vendored
Normal file
11
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestError.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
export type RequestError = {
|
||||
name: string;
|
||||
status: number;
|
||||
documentation_url: string;
|
||||
errors?: Array<{
|
||||
resource: string;
|
||||
code: string;
|
||||
field: string;
|
||||
message?: string;
|
||||
}>;
|
||||
};
|
||||
15
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts
generated
vendored
Normal file
15
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
export type RequestHeaders = {
|
||||
/**
|
||||
* Avoid setting `headers.accept`, use `mediaType.{format|previews}` option instead.
|
||||
*/
|
||||
accept?: string;
|
||||
/**
|
||||
* Use `authorization` to send authenticated request, remember `token ` / `bearer ` prefixes. Example: `token 1234567890abcdef1234567890abcdef12345678`
|
||||
*/
|
||||
authorization?: string;
|
||||
/**
|
||||
* `user-agent` is set do a default and can be overwritten as needed.
|
||||
*/
|
||||
"user-agent"?: string;
|
||||
[header: string]: string | number | undefined;
|
||||
};
|
||||
34
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestInterface.d.ts
generated
vendored
Normal file
34
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestInterface.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import type { EndpointInterface } from "./EndpointInterface.js";
|
||||
import type { OctokitResponse } from "./OctokitResponse.js";
|
||||
import type { RequestParameters } from "./RequestParameters.js";
|
||||
import type { Route } from "./Route.js";
|
||||
import type { Endpoints } from "./generated/Endpoints.js";
|
||||
export interface RequestInterface<D extends object = object> {
|
||||
/**
|
||||
* Sends a request based on endpoint options
|
||||
*
|
||||
* @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*/
|
||||
<T = any, O extends RequestParameters = RequestParameters>(options: O & {
|
||||
method?: string;
|
||||
} & ("url" extends keyof D ? {
|
||||
url?: string;
|
||||
} : {
|
||||
url: string;
|
||||
})): Promise<OctokitResponse<T>>;
|
||||
/**
|
||||
* Sends a request based on endpoint options
|
||||
*
|
||||
* @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
|
||||
* @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*/
|
||||
<R extends Route>(route: keyof Endpoints | R, options?: R extends keyof Endpoints ? Endpoints[R]["parameters"] & RequestParameters : RequestParameters): R extends keyof Endpoints ? Promise<Endpoints[R]["response"]> : Promise<OctokitResponse<any>>;
|
||||
/**
|
||||
* Returns a new `request` with updated route and parameters
|
||||
*/
|
||||
defaults: <O extends RequestParameters = RequestParameters>(newDefaults: O) => RequestInterface<D & O>;
|
||||
/**
|
||||
* Octokit endpoint API, see {@link https://github.com/octokit/endpoint.js|@octokit/endpoint}
|
||||
*/
|
||||
endpoint: EndpointInterface<D>;
|
||||
}
|
||||
4
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestMethod.d.ts
generated
vendored
Normal file
4
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestMethod.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* HTTP Verb supported by GitHub's REST API
|
||||
*/
|
||||
export type RequestMethod = "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT";
|
||||
14
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestOptions.d.ts
generated
vendored
Normal file
14
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestOptions.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import type { RequestHeaders } from "./RequestHeaders.js";
|
||||
import type { RequestMethod } from "./RequestMethod.js";
|
||||
import type { RequestRequestOptions } from "./RequestRequestOptions.js";
|
||||
import type { Url } from "./Url.js";
|
||||
/**
|
||||
* Generic request options as they are returned by the `endpoint()` method
|
||||
*/
|
||||
export type RequestOptions = {
|
||||
method: RequestMethod;
|
||||
url: Url;
|
||||
headers: RequestHeaders;
|
||||
body?: any;
|
||||
request?: RequestRequestOptions;
|
||||
};
|
||||
55
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestParameters.d.ts
generated
vendored
Normal file
55
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestParameters.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
import type { RequestRequestOptions } from "./RequestRequestOptions.js";
|
||||
import type { RequestHeaders } from "./RequestHeaders.js";
|
||||
import type { Url } from "./Url.js";
|
||||
/**
|
||||
* Parameters that can be passed into `request(route, parameters)` or `endpoint(route, parameters)` methods
|
||||
*/
|
||||
export type RequestParameters = {
|
||||
/**
|
||||
* Base URL to be used when a relative URL is passed, such as `/orgs/{org}`.
|
||||
* If `baseUrl` is `https://enterprise.acme-inc.com/api/v3`, then the request
|
||||
* will be sent to `https://enterprise.acme-inc.com/api/v3/orgs/{org}`.
|
||||
*/
|
||||
baseUrl?: Url;
|
||||
/**
|
||||
* HTTP headers. Use lowercase keys.
|
||||
*/
|
||||
headers?: RequestHeaders;
|
||||
/**
|
||||
* Media type options, see {@link https://developer.github.com/v3/media/|GitHub Developer Guide}
|
||||
*/
|
||||
mediaType?: {
|
||||
/**
|
||||
* `json` by default. Can be `raw`, `text`, `html`, `full`, `diff`, `patch`, `sha`, `base64`. Depending on endpoint
|
||||
*/
|
||||
format?: string;
|
||||
/**
|
||||
* Custom media type names of {@link https://docs.github.com/en/graphql/overview/schema-previews|GraphQL API Previews} without the `-preview` suffix.
|
||||
* Example for single preview: `['squirrel-girl']`.
|
||||
* Example for multiple previews: `['squirrel-girl', 'mister-fantastic']`.
|
||||
*/
|
||||
previews?: string[];
|
||||
};
|
||||
/**
|
||||
* The name of the operation to execute.
|
||||
* Required only if multiple operations are present in the query document.
|
||||
*/
|
||||
operationName?: string;
|
||||
/**
|
||||
* The GraphQL query string to be sent in the request.
|
||||
* This is required and must contain a valid GraphQL document.
|
||||
*/
|
||||
query?: string;
|
||||
/**
|
||||
* Pass custom meta information for the request. The `request` object will be returned as is.
|
||||
*/
|
||||
request?: RequestRequestOptions;
|
||||
/**
|
||||
* Any additional parameter will be passed as follows
|
||||
* 1. URL parameter if `':parameter'` or `{parameter}` is part of `url`
|
||||
* 2. Query parameter if `method` is `'GET'` or `'HEAD'`
|
||||
* 3. Request body if `parameter` is `'data'`
|
||||
* 4. JSON in the request body in the form of `body[parameter]` unless `parameter` key is `'data'`
|
||||
*/
|
||||
[parameter: string]: unknown;
|
||||
};
|
||||
20
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts
generated
vendored
Normal file
20
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import type { Fetch } from "./Fetch.js";
|
||||
/**
|
||||
* Octokit-specific request options which are ignored for the actual request, but can be used by Octokit or plugins to manipulate how the request is sent or how a response is handled
|
||||
*/
|
||||
export type RequestRequestOptions = {
|
||||
/**
|
||||
* Custom replacement for built-in fetch method. Useful for testing or request hooks.
|
||||
*/
|
||||
fetch?: Fetch;
|
||||
/**
|
||||
* Use an `AbortController` instance to cancel a request. In node you can only cancel streamed requests.
|
||||
*/
|
||||
signal?: AbortSignal;
|
||||
/**
|
||||
* If set to `false`, the response body will not be parsed and will be returned as a stream.
|
||||
*/
|
||||
parseSuccessResponseBody?: boolean;
|
||||
redirect?: "follow" | "error" | "manual";
|
||||
[option: string]: any;
|
||||
};
|
||||
21
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts
generated
vendored
Normal file
21
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
export type ResponseHeaders = {
|
||||
"cache-control"?: string;
|
||||
"content-length"?: number;
|
||||
"content-type"?: string;
|
||||
date?: string;
|
||||
etag?: string;
|
||||
"last-modified"?: string;
|
||||
link?: string;
|
||||
location?: string;
|
||||
server?: string;
|
||||
status?: string;
|
||||
vary?: string;
|
||||
"x-accepted-github-permissions"?: string;
|
||||
"x-github-mediatype"?: string;
|
||||
"x-github-request-id"?: string;
|
||||
"x-oauth-scopes"?: string;
|
||||
"x-ratelimit-limit"?: string;
|
||||
"x-ratelimit-remaining"?: string;
|
||||
"x-ratelimit-reset"?: string;
|
||||
[header: string]: string | number | undefined;
|
||||
};
|
||||
4
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Route.d.ts
generated
vendored
Normal file
4
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Route.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* String consisting of an optional HTTP method and relative path or absolute URL. Examples: `'/orgs/{org}'`, `'PUT /orgs/{org}'`, `GET https://example.com/foo/bar`
|
||||
*/
|
||||
export type Route = string;
|
||||
4
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts
generated
vendored
Normal file
4
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import type { AuthInterface } from "./AuthInterface.js";
|
||||
export interface StrategyInterface<StrategyOptions extends any[], AuthOptions extends any[], Authentication extends object> {
|
||||
(...args: StrategyOptions): AuthInterface<AuthOptions, Authentication>;
|
||||
}
|
||||
4
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Url.d.ts
generated
vendored
Normal file
4
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Url.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* Relative or absolute URL. Examples: `'/orgs/{org}'`, `https://example.com/foo/bar`
|
||||
*/
|
||||
export type Url = string;
|
||||
1
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/VERSION.d.ts
generated
vendored
Normal file
1
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/VERSION.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
export declare const VERSION = "13.10.0";
|
||||
4173
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts
generated
vendored
Normal file
4173
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
20
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/index.d.ts
generated
vendored
Normal file
20
node_modules/@octokit/core/node_modules/@octokit/types/dist-types/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
export * from "./AuthInterface.js";
|
||||
export * from "./EndpointDefaults.js";
|
||||
export * from "./EndpointInterface.js";
|
||||
export * from "./EndpointOptions.js";
|
||||
export * from "./Fetch.js";
|
||||
export * from "./OctokitResponse.js";
|
||||
export * from "./RequestError.js";
|
||||
export * from "./RequestHeaders.js";
|
||||
export * from "./RequestInterface.js";
|
||||
export * from "./RequestMethod.js";
|
||||
export * from "./RequestOptions.js";
|
||||
export * from "./RequestParameters.js";
|
||||
export * from "./RequestRequestOptions.js";
|
||||
export * from "./ResponseHeaders.js";
|
||||
export * from "./Route.js";
|
||||
export * from "./StrategyInterface.js";
|
||||
export * from "./Url.js";
|
||||
export * from "./VERSION.js";
|
||||
export * from "./GetResponseTypeFromEndpointMethod.js";
|
||||
export * from "./generated/Endpoints.js";
|
||||
42
node_modules/@octokit/core/node_modules/@octokit/types/package.json
generated
vendored
Normal file
42
node_modules/@octokit/core/node_modules/@octokit/types/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"name": "@octokit/types",
|
||||
"version": "13.10.0",
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"provenance": true
|
||||
},
|
||||
"description": "Shared TypeScript definitions for Octokit projects",
|
||||
"dependencies": {
|
||||
"@octokit/openapi-types": "^24.2.0"
|
||||
},
|
||||
"repository": "github:octokit/types.ts",
|
||||
"keywords": [
|
||||
"github",
|
||||
"api",
|
||||
"sdk",
|
||||
"toolkit",
|
||||
"typescript"
|
||||
],
|
||||
"author": "Gregor Martynus (https://twitter.com/gr2m)",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@octokit/tsconfig": "^4.0.0",
|
||||
"github-openapi-graphql-query": "^4.5.0",
|
||||
"handlebars": "^4.7.6",
|
||||
"npm-run-all2": "^7.0.0",
|
||||
"prettier": "^3.0.0",
|
||||
"semantic-release": "^24.0.0",
|
||||
"semantic-release-plugin-update-version-in-files": "^2.0.0",
|
||||
"sort-keys": "^5.0.0",
|
||||
"typedoc": "^0.26.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"octokit": {
|
||||
"openapi-version": "18.2.0"
|
||||
},
|
||||
"files": [
|
||||
"dist-types/**"
|
||||
],
|
||||
"types": "dist-types/index.d.ts",
|
||||
"sideEffects": false
|
||||
}
|
||||
2
node_modules/@octokit/endpoint/dist-src/version.js
generated
vendored
2
node_modules/@octokit/endpoint/dist-src/version.js
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
const VERSION = "10.1.3";
|
||||
const VERSION = "10.1.4";
|
||||
export {
|
||||
VERSION
|
||||
};
|
||||
|
|
|
|||
2
node_modules/@octokit/endpoint/dist-types/version.d.ts
generated
vendored
2
node_modules/@octokit/endpoint/dist-types/version.d.ts
generated
vendored
|
|
@ -1 +1 @@
|
|||
export declare const VERSION = "10.1.3";
|
||||
export declare const VERSION = "10.1.4";
|
||||
|
|
|
|||
8
node_modules/@octokit/endpoint/package.json
generated
vendored
8
node_modules/@octokit/endpoint/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@octokit/endpoint",
|
||||
"version": "10.1.3",
|
||||
"version": "10.1.4",
|
||||
"type": "module",
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
|
|
@ -22,14 +22,14 @@
|
|||
"@vitest/coverage-v8": "^3.0.0",
|
||||
"esbuild": "^0.25.0",
|
||||
"glob": "^11.0.0",
|
||||
"prettier": "3.4.2",
|
||||
"prettier": "3.5.3",
|
||||
"semantic-release": "^24.0.0",
|
||||
"semantic-release-plugin-update-version-in-files": "^1.0.0",
|
||||
"semantic-release-plugin-update-version-in-files": "^2.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"vitest": "^3.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@octokit/types": "^13.6.2",
|
||||
"@octokit/types": "^14.0.0",
|
||||
"universal-user-agent": "^7.0.2"
|
||||
},
|
||||
"engines": {
|
||||
|
|
|
|||
7
node_modules/@octokit/graphql/node_modules/@octokit/openapi-types/LICENSE
generated
vendored
Normal file
7
node_modules/@octokit/graphql/node_modules/@octokit/openapi-types/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
Copyright 2020 Gregor Martynus
|
||||
|
||||
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.
|
||||
17
node_modules/@octokit/graphql/node_modules/@octokit/openapi-types/README.md
generated
vendored
Normal file
17
node_modules/@octokit/graphql/node_modules/@octokit/openapi-types/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# @octokit/openapi-types
|
||||
|
||||
> Generated TypeScript definitions based on GitHub's OpenAPI spec
|
||||
|
||||
This package is continuously updated based on [GitHub's OpenAPI specification](https://github.com/github/rest-api-description/)
|
||||
|
||||
## Usage
|
||||
|
||||
```ts
|
||||
import { components } from "@octokit/openapi-types";
|
||||
|
||||
type Repository = components["schemas"]["full-repository"];
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
[MIT](LICENSE)
|
||||
21
node_modules/@octokit/graphql/node_modules/@octokit/openapi-types/package.json
generated
vendored
Normal file
21
node_modules/@octokit/graphql/node_modules/@octokit/openapi-types/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"name": "@octokit/openapi-types",
|
||||
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/octokit/openapi-types.ts.git",
|
||||
"directory": "packages/openapi-types"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"provenance": true
|
||||
},
|
||||
"version": "24.2.0",
|
||||
"main": "",
|
||||
"types": "types.d.ts",
|
||||
"author": "Gregor Martynus (https://twitter.com/gr2m)",
|
||||
"license": "MIT",
|
||||
"octokit": {
|
||||
"openapi-version": "18.2.0"
|
||||
}
|
||||
}
|
||||
117609
node_modules/@octokit/graphql/node_modules/@octokit/openapi-types/types.d.ts
generated
vendored
Normal file
117609
node_modules/@octokit/graphql/node_modules/@octokit/openapi-types/types.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
7
node_modules/@octokit/graphql/node_modules/@octokit/types/LICENSE
generated
vendored
Normal file
7
node_modules/@octokit/graphql/node_modules/@octokit/types/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
MIT License Copyright (c) 2019 Octokit contributors
|
||||
|
||||
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 (including the next paragraph) 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.
|
||||
65
node_modules/@octokit/graphql/node_modules/@octokit/types/README.md
generated
vendored
Normal file
65
node_modules/@octokit/graphql/node_modules/@octokit/types/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
# types.ts
|
||||
|
||||
> Shared TypeScript definitions for Octokit projects
|
||||
|
||||
[](https://www.npmjs.com/package/@octokit/types)
|
||||
[](https://github.com/octokit/types.ts/actions?workflow=Test)
|
||||
|
||||
<!-- toc -->
|
||||
|
||||
- [Usage](#usage)
|
||||
- [Examples](#examples)
|
||||
- [Get parameter and response data types for a REST API endpoint](#get-parameter-and-response-data-types-for-a-rest-api-endpoint)
|
||||
- [Get response types from endpoint methods](#get-response-types-from-endpoint-methods)
|
||||
- [Contributing](#contributing)
|
||||
- [License](#license)
|
||||
|
||||
<!-- tocstop -->
|
||||
|
||||
## Usage
|
||||
|
||||
See all exported types at https://octokit.github.io/types.ts
|
||||
|
||||
## Examples
|
||||
|
||||
### Get parameter and response data types for a REST API endpoint
|
||||
|
||||
```ts
|
||||
import { Endpoints } from "@octokit/types";
|
||||
|
||||
type listUserReposParameters =
|
||||
Endpoints["GET /repos/{owner}/{repo}"]["parameters"];
|
||||
type listUserReposResponse = Endpoints["GET /repos/{owner}/{repo}"]["response"];
|
||||
|
||||
async function listRepos(
|
||||
options: listUserReposParameters,
|
||||
): listUserReposResponse["data"] {
|
||||
// ...
|
||||
}
|
||||
```
|
||||
|
||||
### Get response types from endpoint methods
|
||||
|
||||
```ts
|
||||
import {
|
||||
GetResponseTypeFromEndpointMethod,
|
||||
GetResponseDataTypeFromEndpointMethod,
|
||||
} from "@octokit/types";
|
||||
import { Octokit } from "@octokit/rest";
|
||||
|
||||
const octokit = new Octokit();
|
||||
type CreateLabelResponseType = GetResponseTypeFromEndpointMethod<
|
||||
typeof octokit.issues.createLabel
|
||||
>;
|
||||
type CreateLabelResponseDataType = GetResponseDataTypeFromEndpointMethod<
|
||||
typeof octokit.issues.createLabel
|
||||
>;
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
See [CONTRIBUTING.md](CONTRIBUTING.md)
|
||||
|
||||
## License
|
||||
|
||||
[MIT](LICENSE)
|
||||
31
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/AuthInterface.d.ts
generated
vendored
Normal file
31
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/AuthInterface.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import type { EndpointOptions } from "./EndpointOptions.js";
|
||||
import type { OctokitResponse } from "./OctokitResponse.js";
|
||||
import type { RequestInterface } from "./RequestInterface.js";
|
||||
import type { RequestParameters } from "./RequestParameters.js";
|
||||
import type { Route } from "./Route.js";
|
||||
/**
|
||||
* Interface to implement complex authentication strategies for Octokit.
|
||||
* An object Implementing the AuthInterface can directly be passed as the
|
||||
* `auth` option in the Octokit constructor.
|
||||
*
|
||||
* For the official implementations of the most common authentication
|
||||
* strategies, see https://github.com/octokit/auth.js
|
||||
*/
|
||||
export interface AuthInterface<AuthOptions extends any[], Authentication extends any> {
|
||||
(...args: AuthOptions): Promise<Authentication>;
|
||||
hook: {
|
||||
/**
|
||||
* Sends a request using the passed `request` instance
|
||||
*
|
||||
* @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*/
|
||||
<T = any>(request: RequestInterface, options: EndpointOptions): Promise<OctokitResponse<T>>;
|
||||
/**
|
||||
* Sends a request using the passed `request` instance
|
||||
*
|
||||
* @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
|
||||
* @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*/
|
||||
<T = any>(request: RequestInterface, route: Route, parameters?: RequestParameters): Promise<OctokitResponse<T>>;
|
||||
};
|
||||
}
|
||||
21
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts
generated
vendored
Normal file
21
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import type { RequestHeaders } from "./RequestHeaders.js";
|
||||
import type { RequestMethod } from "./RequestMethod.js";
|
||||
import type { RequestParameters } from "./RequestParameters.js";
|
||||
import type { Url } from "./Url.js";
|
||||
/**
|
||||
* The `.endpoint()` method is guaranteed to set all keys defined by RequestParameters
|
||||
* as well as the method property.
|
||||
*/
|
||||
export type EndpointDefaults = RequestParameters & {
|
||||
baseUrl: Url;
|
||||
method: RequestMethod;
|
||||
url?: Url;
|
||||
headers: RequestHeaders & {
|
||||
accept: string;
|
||||
"user-agent": string;
|
||||
};
|
||||
mediaType: {
|
||||
format: string;
|
||||
previews?: string[];
|
||||
};
|
||||
};
|
||||
65
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts
generated
vendored
Normal file
65
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
import type { EndpointDefaults } from "./EndpointDefaults.js";
|
||||
import type { RequestOptions } from "./RequestOptions.js";
|
||||
import type { RequestParameters } from "./RequestParameters.js";
|
||||
import type { Route } from "./Route.js";
|
||||
import type { Endpoints } from "./generated/Endpoints.js";
|
||||
export interface EndpointInterface<D extends object = object> {
|
||||
/**
|
||||
* Transforms a GitHub REST API endpoint into generic request options
|
||||
*
|
||||
* @param {object} endpoint Must set `url` unless it's set defaults. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*/
|
||||
<O extends RequestParameters = RequestParameters>(options: O & {
|
||||
method?: string;
|
||||
} & ("url" extends keyof D ? {
|
||||
url?: string;
|
||||
} : {
|
||||
url: string;
|
||||
})): RequestOptions & Pick<D & O, keyof RequestOptions>;
|
||||
/**
|
||||
* Transforms a GitHub REST API endpoint into generic request options
|
||||
*
|
||||
* @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
|
||||
* @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*/
|
||||
<R extends Route, P extends RequestParameters = R extends keyof Endpoints ? Endpoints[R]["parameters"] & RequestParameters : RequestParameters>(route: keyof Endpoints | R, parameters?: P): (R extends keyof Endpoints ? Endpoints[R]["request"] : RequestOptions) & Pick<P, keyof RequestOptions>;
|
||||
/**
|
||||
* Object with current default route and parameters
|
||||
*/
|
||||
DEFAULTS: D & EndpointDefaults;
|
||||
/**
|
||||
* Returns a new `endpoint` interface with new defaults
|
||||
*/
|
||||
defaults: <O extends RequestParameters = RequestParameters>(newDefaults: O) => EndpointInterface<D & O>;
|
||||
merge: {
|
||||
/**
|
||||
* Merges current endpoint defaults with passed route and parameters,
|
||||
* without transforming them into request options.
|
||||
*
|
||||
* @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
|
||||
* @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*
|
||||
*/
|
||||
<R extends Route, P extends RequestParameters = R extends keyof Endpoints ? Endpoints[R]["parameters"] & RequestParameters : RequestParameters>(route: keyof Endpoints | R, parameters?: P): D & (R extends keyof Endpoints ? Endpoints[R]["request"] & Endpoints[R]["parameters"] : EndpointDefaults) & P;
|
||||
/**
|
||||
* Merges current endpoint defaults with passed route and parameters,
|
||||
* without transforming them into request options.
|
||||
*
|
||||
* @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*/
|
||||
<P extends RequestParameters = RequestParameters>(options: P): EndpointDefaults & D & P;
|
||||
/**
|
||||
* Returns current default options.
|
||||
*
|
||||
* @deprecated use endpoint.DEFAULTS instead
|
||||
*/
|
||||
(): D & EndpointDefaults;
|
||||
};
|
||||
/**
|
||||
* Stateless method to turn endpoint options into request options.
|
||||
* Calling `endpoint(options)` is the same as calling `endpoint.parse(endpoint.merge(options))`.
|
||||
*
|
||||
* @param {object} options `method`, `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*/
|
||||
parse: <O extends EndpointDefaults = EndpointDefaults>(options: O) => RequestOptions & Pick<O, keyof RequestOptions>;
|
||||
}
|
||||
7
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts
generated
vendored
Normal file
7
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import type { RequestMethod } from "./RequestMethod.js";
|
||||
import type { Url } from "./Url.js";
|
||||
import type { RequestParameters } from "./RequestParameters.js";
|
||||
export type EndpointOptions = RequestParameters & {
|
||||
method: RequestMethod;
|
||||
url: Url;
|
||||
};
|
||||
4
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Fetch.d.ts
generated
vendored
Normal file
4
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Fetch.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* Browser's fetch method (or compatible such as fetch-mock)
|
||||
*/
|
||||
export type Fetch = any;
|
||||
5
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts
generated
vendored
Normal file
5
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
type Unwrap<T> = T extends Promise<infer U> ? U : T;
|
||||
type AnyFunction = (...args: any[]) => any;
|
||||
export type GetResponseTypeFromEndpointMethod<T extends AnyFunction> = Unwrap<ReturnType<T>>;
|
||||
export type GetResponseDataTypeFromEndpointMethod<T extends AnyFunction> = Unwrap<ReturnType<T>>["data"];
|
||||
export {};
|
||||
17
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts
generated
vendored
Normal file
17
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import type { ResponseHeaders } from "./ResponseHeaders.js";
|
||||
import type { Url } from "./Url.js";
|
||||
export interface OctokitResponse<T, S extends number = number> {
|
||||
headers: ResponseHeaders;
|
||||
/**
|
||||
* http response code
|
||||
*/
|
||||
status: S;
|
||||
/**
|
||||
* URL of response after all redirects
|
||||
*/
|
||||
url: Url;
|
||||
/**
|
||||
* Response data as documented in the REST API reference documentation at https://docs.github.com/rest/reference
|
||||
*/
|
||||
data: T;
|
||||
}
|
||||
11
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestError.d.ts
generated
vendored
Normal file
11
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestError.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
export type RequestError = {
|
||||
name: string;
|
||||
status: number;
|
||||
documentation_url: string;
|
||||
errors?: Array<{
|
||||
resource: string;
|
||||
code: string;
|
||||
field: string;
|
||||
message?: string;
|
||||
}>;
|
||||
};
|
||||
15
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts
generated
vendored
Normal file
15
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
export type RequestHeaders = {
|
||||
/**
|
||||
* Avoid setting `headers.accept`, use `mediaType.{format|previews}` option instead.
|
||||
*/
|
||||
accept?: string;
|
||||
/**
|
||||
* Use `authorization` to send authenticated request, remember `token ` / `bearer ` prefixes. Example: `token 1234567890abcdef1234567890abcdef12345678`
|
||||
*/
|
||||
authorization?: string;
|
||||
/**
|
||||
* `user-agent` is set do a default and can be overwritten as needed.
|
||||
*/
|
||||
"user-agent"?: string;
|
||||
[header: string]: string | number | undefined;
|
||||
};
|
||||
34
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestInterface.d.ts
generated
vendored
Normal file
34
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestInterface.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import type { EndpointInterface } from "./EndpointInterface.js";
|
||||
import type { OctokitResponse } from "./OctokitResponse.js";
|
||||
import type { RequestParameters } from "./RequestParameters.js";
|
||||
import type { Route } from "./Route.js";
|
||||
import type { Endpoints } from "./generated/Endpoints.js";
|
||||
export interface RequestInterface<D extends object = object> {
|
||||
/**
|
||||
* Sends a request based on endpoint options
|
||||
*
|
||||
* @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*/
|
||||
<T = any, O extends RequestParameters = RequestParameters>(options: O & {
|
||||
method?: string;
|
||||
} & ("url" extends keyof D ? {
|
||||
url?: string;
|
||||
} : {
|
||||
url: string;
|
||||
})): Promise<OctokitResponse<T>>;
|
||||
/**
|
||||
* Sends a request based on endpoint options
|
||||
*
|
||||
* @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
|
||||
* @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
||||
*/
|
||||
<R extends Route>(route: keyof Endpoints | R, options?: R extends keyof Endpoints ? Endpoints[R]["parameters"] & RequestParameters : RequestParameters): R extends keyof Endpoints ? Promise<Endpoints[R]["response"]> : Promise<OctokitResponse<any>>;
|
||||
/**
|
||||
* Returns a new `request` with updated route and parameters
|
||||
*/
|
||||
defaults: <O extends RequestParameters = RequestParameters>(newDefaults: O) => RequestInterface<D & O>;
|
||||
/**
|
||||
* Octokit endpoint API, see {@link https://github.com/octokit/endpoint.js|@octokit/endpoint}
|
||||
*/
|
||||
endpoint: EndpointInterface<D>;
|
||||
}
|
||||
4
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestMethod.d.ts
generated
vendored
Normal file
4
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestMethod.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* HTTP Verb supported by GitHub's REST API
|
||||
*/
|
||||
export type RequestMethod = "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT";
|
||||
14
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestOptions.d.ts
generated
vendored
Normal file
14
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestOptions.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import type { RequestHeaders } from "./RequestHeaders.js";
|
||||
import type { RequestMethod } from "./RequestMethod.js";
|
||||
import type { RequestRequestOptions } from "./RequestRequestOptions.js";
|
||||
import type { Url } from "./Url.js";
|
||||
/**
|
||||
* Generic request options as they are returned by the `endpoint()` method
|
||||
*/
|
||||
export type RequestOptions = {
|
||||
method: RequestMethod;
|
||||
url: Url;
|
||||
headers: RequestHeaders;
|
||||
body?: any;
|
||||
request?: RequestRequestOptions;
|
||||
};
|
||||
55
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestParameters.d.ts
generated
vendored
Normal file
55
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestParameters.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
import type { RequestRequestOptions } from "./RequestRequestOptions.js";
|
||||
import type { RequestHeaders } from "./RequestHeaders.js";
|
||||
import type { Url } from "./Url.js";
|
||||
/**
|
||||
* Parameters that can be passed into `request(route, parameters)` or `endpoint(route, parameters)` methods
|
||||
*/
|
||||
export type RequestParameters = {
|
||||
/**
|
||||
* Base URL to be used when a relative URL is passed, such as `/orgs/{org}`.
|
||||
* If `baseUrl` is `https://enterprise.acme-inc.com/api/v3`, then the request
|
||||
* will be sent to `https://enterprise.acme-inc.com/api/v3/orgs/{org}`.
|
||||
*/
|
||||
baseUrl?: Url;
|
||||
/**
|
||||
* HTTP headers. Use lowercase keys.
|
||||
*/
|
||||
headers?: RequestHeaders;
|
||||
/**
|
||||
* Media type options, see {@link https://developer.github.com/v3/media/|GitHub Developer Guide}
|
||||
*/
|
||||
mediaType?: {
|
||||
/**
|
||||
* `json` by default. Can be `raw`, `text`, `html`, `full`, `diff`, `patch`, `sha`, `base64`. Depending on endpoint
|
||||
*/
|
||||
format?: string;
|
||||
/**
|
||||
* Custom media type names of {@link https://docs.github.com/en/graphql/overview/schema-previews|GraphQL API Previews} without the `-preview` suffix.
|
||||
* Example for single preview: `['squirrel-girl']`.
|
||||
* Example for multiple previews: `['squirrel-girl', 'mister-fantastic']`.
|
||||
*/
|
||||
previews?: string[];
|
||||
};
|
||||
/**
|
||||
* The name of the operation to execute.
|
||||
* Required only if multiple operations are present in the query document.
|
||||
*/
|
||||
operationName?: string;
|
||||
/**
|
||||
* The GraphQL query string to be sent in the request.
|
||||
* This is required and must contain a valid GraphQL document.
|
||||
*/
|
||||
query?: string;
|
||||
/**
|
||||
* Pass custom meta information for the request. The `request` object will be returned as is.
|
||||
*/
|
||||
request?: RequestRequestOptions;
|
||||
/**
|
||||
* Any additional parameter will be passed as follows
|
||||
* 1. URL parameter if `':parameter'` or `{parameter}` is part of `url`
|
||||
* 2. Query parameter if `method` is `'GET'` or `'HEAD'`
|
||||
* 3. Request body if `parameter` is `'data'`
|
||||
* 4. JSON in the request body in the form of `body[parameter]` unless `parameter` key is `'data'`
|
||||
*/
|
||||
[parameter: string]: unknown;
|
||||
};
|
||||
20
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts
generated
vendored
Normal file
20
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import type { Fetch } from "./Fetch.js";
|
||||
/**
|
||||
* Octokit-specific request options which are ignored for the actual request, but can be used by Octokit or plugins to manipulate how the request is sent or how a response is handled
|
||||
*/
|
||||
export type RequestRequestOptions = {
|
||||
/**
|
||||
* Custom replacement for built-in fetch method. Useful for testing or request hooks.
|
||||
*/
|
||||
fetch?: Fetch;
|
||||
/**
|
||||
* Use an `AbortController` instance to cancel a request. In node you can only cancel streamed requests.
|
||||
*/
|
||||
signal?: AbortSignal;
|
||||
/**
|
||||
* If set to `false`, the response body will not be parsed and will be returned as a stream.
|
||||
*/
|
||||
parseSuccessResponseBody?: boolean;
|
||||
redirect?: "follow" | "error" | "manual";
|
||||
[option: string]: any;
|
||||
};
|
||||
21
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts
generated
vendored
Normal file
21
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
export type ResponseHeaders = {
|
||||
"cache-control"?: string;
|
||||
"content-length"?: number;
|
||||
"content-type"?: string;
|
||||
date?: string;
|
||||
etag?: string;
|
||||
"last-modified"?: string;
|
||||
link?: string;
|
||||
location?: string;
|
||||
server?: string;
|
||||
status?: string;
|
||||
vary?: string;
|
||||
"x-accepted-github-permissions"?: string;
|
||||
"x-github-mediatype"?: string;
|
||||
"x-github-request-id"?: string;
|
||||
"x-oauth-scopes"?: string;
|
||||
"x-ratelimit-limit"?: string;
|
||||
"x-ratelimit-remaining"?: string;
|
||||
"x-ratelimit-reset"?: string;
|
||||
[header: string]: string | number | undefined;
|
||||
};
|
||||
4
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Route.d.ts
generated
vendored
Normal file
4
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Route.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* String consisting of an optional HTTP method and relative path or absolute URL. Examples: `'/orgs/{org}'`, `'PUT /orgs/{org}'`, `GET https://example.com/foo/bar`
|
||||
*/
|
||||
export type Route = string;
|
||||
4
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts
generated
vendored
Normal file
4
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import type { AuthInterface } from "./AuthInterface.js";
|
||||
export interface StrategyInterface<StrategyOptions extends any[], AuthOptions extends any[], Authentication extends object> {
|
||||
(...args: StrategyOptions): AuthInterface<AuthOptions, Authentication>;
|
||||
}
|
||||
4
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Url.d.ts
generated
vendored
Normal file
4
node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Url.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* Relative or absolute URL. Examples: `'/orgs/{org}'`, `https://example.com/foo/bar`
|
||||
*/
|
||||
export type Url = string;
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue