Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update @octokit/types and remove endpoints not in types #636

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"dependencies": {
"@octokit/types": "^9.0.0",
"@octokit/types": "^9.1.2",
"deprecation": "^2.3.1"
},
"devDependencies": {
Expand Down
84 changes: 0 additions & 84 deletions src/generated/method-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4859,50 +4859,6 @@ export type RestEndpointMethods = {
endpoint: EndpointInterface<{ url: string }>;
};
};
enterpriseAdmin: {
/**
* Add custom labels to a self-hosted runner configured in an enterprise.
*
* You must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.
*/
addCustomLabelsToSelfHostedRunnerForEnterprise: {
(
params?: RestEndpointMethodTypes["enterpriseAdmin"]["addCustomLabelsToSelfHostedRunnerForEnterprise"]["parameters"]
): Promise<
RestEndpointMethodTypes["enterpriseAdmin"]["addCustomLabelsToSelfHostedRunnerForEnterprise"]["response"]
>;
defaults: RequestInterface["defaults"];
endpoint: EndpointInterface<{ url: string }>;
};
/**
* Adds an organization to the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)."
*
* You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.
*/
enableSelectedOrganizationGithubActionsEnterprise: {
(
params?: RestEndpointMethodTypes["enterpriseAdmin"]["enableSelectedOrganizationGithubActionsEnterprise"]["parameters"]
): Promise<
RestEndpointMethodTypes["enterpriseAdmin"]["enableSelectedOrganizationGithubActionsEnterprise"]["response"]
>;
defaults: RequestInterface["defaults"];
endpoint: EndpointInterface<{ url: string }>;
};
/**
* Lists all labels for a self-hosted runner configured in an enterprise.
*
* You must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.
*/
listLabelsForSelfHostedRunnerForEnterprise: {
(
params?: RestEndpointMethodTypes["enterpriseAdmin"]["listLabelsForSelfHostedRunnerForEnterprise"]["parameters"]
): Promise<
RestEndpointMethodTypes["enterpriseAdmin"]["listLabelsForSelfHostedRunnerForEnterprise"]["response"]
>;
defaults: RequestInterface["defaults"];
endpoint: EndpointInterface<{ url: string }>;
};
};
gists: {
checkIsStarred: {
(
Expand Down Expand Up @@ -10927,19 +10883,6 @@ export type RestEndpointMethods = {
defaults: RequestInterface["defaults"];
endpoint: EndpointInterface<{ url: string }>;
};
/**
* Gets code security and analysis settings for the specified enterprise.
* To use this endpoint, you must be an administrator of the enterprise, and you must use an access token with the `admin:enterprise` scope.
*/
getSecurityAnalysisSettingsForEnterprise: {
(
params?: RestEndpointMethodTypes["secretScanning"]["getSecurityAnalysisSettingsForEnterprise"]["parameters"]
): Promise<
RestEndpointMethodTypes["secretScanning"]["getSecurityAnalysisSettingsForEnterprise"]["response"]
>;
defaults: RequestInterface["defaults"];
endpoint: EndpointInterface<{ url: string }>;
};
/**
* Lists secret scanning alerts for eligible repositories in an enterprise, from newest to oldest.
* To use this endpoint, you must be a member of the enterprise, and you must use an access token with the `repo` scope or `security_events` scope. Alerts are only returned for organizations in the enterprise for which you are an organization owner or a [security manager](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).
Expand Down Expand Up @@ -11001,33 +10944,6 @@ export type RestEndpointMethods = {
defaults: RequestInterface["defaults"];
endpoint: EndpointInterface<{ url: string }>;
};
/**
* Updates the settings for advanced security, secret scanning, and push protection for new repositories in an enterprise.
* To use this endpoint, you must be an administrator of the enterprise, and you must use an access token with the `admin:enterprise` scope.
*/
patchSecurityAnalysisSettingsForEnterprise: {
(
params?: RestEndpointMethodTypes["secretScanning"]["patchSecurityAnalysisSettingsForEnterprise"]["parameters"]
): Promise<
RestEndpointMethodTypes["secretScanning"]["patchSecurityAnalysisSettingsForEnterprise"]["response"]
>;
defaults: RequestInterface["defaults"];
endpoint: EndpointInterface<{ url: string }>;
};
/**
* Enables or disables the specified security feature for all repositories in an enterprise.
*
* To use this endpoint, you must be an administrator of the enterprise, and you must use an access token with the `admin:enterprise` scope.
*/
postSecurityProductEnablementForEnterprise: {
(
params?: RestEndpointMethodTypes["secretScanning"]["postSecurityProductEnablementForEnterprise"]["parameters"]
): Promise<
RestEndpointMethodTypes["secretScanning"]["postSecurityProductEnablementForEnterprise"]["response"]
>;
defaults: RequestInterface["defaults"];
endpoint: EndpointInterface<{ url: string }>;
};
/**
* Updates the status of a secret scanning alert in an eligible repository.
* To use this endpoint, you must be an administrator for the repository or for the organization that owns the repository, and you must use a personal access token with the `repo` scope or `security_events` scope.
Expand Down
50 changes: 0 additions & 50 deletions src/generated/parameters-and-response-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2415,32 +2415,6 @@ export type RestEndpointMethodTypes = {
response: Endpoints["GET /emojis"]["response"];
};
};
enterpriseAdmin: {
addCustomLabelsToSelfHostedRunnerForEnterprise: {
parameters: RequestParameters &
Omit<
Endpoints["POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels"]["parameters"],
"baseUrl" | "headers" | "mediaType"
>;
response: Endpoints["POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels"]["response"];
};
enableSelectedOrganizationGithubActionsEnterprise: {
parameters: RequestParameters &
Omit<
Endpoints["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"]["parameters"],
"baseUrl" | "headers" | "mediaType"
>;
response: Endpoints["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"]["response"];
};
listLabelsForSelfHostedRunnerForEnterprise: {
parameters: RequestParameters &
Omit<
Endpoints["GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels"]["parameters"],
"baseUrl" | "headers" | "mediaType"
>;
response: Endpoints["GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels"]["response"];
};
};
gists: {
checkIsStarred: {
parameters: RequestParameters &
Expand Down Expand Up @@ -6068,14 +6042,6 @@ export type RestEndpointMethodTypes = {
>;
response: Endpoints["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]["response"];
};
getSecurityAnalysisSettingsForEnterprise: {
parameters: RequestParameters &
Omit<
Endpoints["GET /enterprises/{enterprise}/code_security_and_analysis"]["parameters"],
"baseUrl" | "headers" | "mediaType"
>;
response: Endpoints["GET /enterprises/{enterprise}/code_security_and_analysis"]["response"];
};
listAlertsForEnterprise: {
parameters: RequestParameters &
Omit<
Expand Down Expand Up @@ -6108,22 +6074,6 @@ export type RestEndpointMethodTypes = {
>;
response: Endpoints["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"]["response"];
};
patchSecurityAnalysisSettingsForEnterprise: {
parameters: RequestParameters &
Omit<
Endpoints["PATCH /enterprises/{enterprise}/code_security_and_analysis"]["parameters"],
"baseUrl" | "headers" | "mediaType"
>;
response: Endpoints["PATCH /enterprises/{enterprise}/code_security_and_analysis"]["response"];
};
postSecurityProductEnablementForEnterprise: {
parameters: RequestParameters &
Omit<
Endpoints["POST /enterprises/{enterprise}/{security_product}/{enablement}"]["parameters"],
"baseUrl" | "headers" | "mediaType"
>;
response: Endpoints["POST /enterprises/{enterprise}/{security_product}/{enablement}"]["response"];
};
updateAlert: {
parameters: RequestParameters &
Omit<
Expand Down