From f8ca4008c42e00fa31ed4b491b3c67ac50183395 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Fri, 24 Sep 2021 09:47:00 -0700 Subject: [PATCH] fix: graduate previews `dorian`, `inertia`, `london`, `lydian`, `wyandotte` (#455) --- package-lock.json | 30 ++-- package.json | 2 +- .../update-endpoints/generated/endpoints.json | 139 ++++++--------- src/generated/endpoints.ts | 166 ++++-------------- 4 files changed, 97 insertions(+), 240 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7ff90607f..d722b8831 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.0-development", "license": "MIT", "dependencies": { - "@octokit/types": "^6.30.0", + "@octokit/types": "^6.31.0", "deprecation": "^2.3.1" }, "devDependencies": { @@ -2567,9 +2567,9 @@ } }, "node_modules/@octokit/openapi-types": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-10.4.0.tgz", - "integrity": "sha512-iA88Ke8FKnQ/HdAJ8J5X2mSwkp6zKCyKqXC161z7Xgnh0kJWWXXcDr8MNxkkGfPkaZ9RhnlDjKCoAasAvTTb1A==" + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-10.6.0.tgz", + "integrity": "sha512-/iQtZq+zuQJrwawFyjixh333xPu4/KJKk0bFM/Omm4kFlTGw0dWXfq6xCOe5DqONW0faW29Cc9r6p2mvl72aTQ==" }, "node_modules/@octokit/plugin-paginate-rest": { "version": "2.16.3", @@ -2643,11 +2643,11 @@ } }, "node_modules/@octokit/types": { - "version": "6.30.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.30.0.tgz", - "integrity": "sha512-aQ8kUJLOwbIXP9Sz1fDGsdNf9cLiOmvim3gUgRmDOJVwTV3/JfKawQi2W2csku9mAzaalER+DYhsjyaqnmVcSw==", + "version": "6.31.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.31.0.tgz", + "integrity": "sha512-xobpvYmMYoFSxZB6jL1TPTMMZkxZIBlY145ZKibBJDKCczP1FrLLougtuVOZywGVZdcYs8oq2Bxb3aMjqIFeiw==", "dependencies": { - "@octokit/openapi-types": "^10.4.0" + "@octokit/openapi-types": "^10.5.0" } }, "node_modules/@pika/babel-plugin-esm-import-rewrite": { @@ -19040,9 +19040,9 @@ } }, "@octokit/openapi-types": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-10.4.0.tgz", - "integrity": "sha512-iA88Ke8FKnQ/HdAJ8J5X2mSwkp6zKCyKqXC161z7Xgnh0kJWWXXcDr8MNxkkGfPkaZ9RhnlDjKCoAasAvTTb1A==" + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-10.6.0.tgz", + "integrity": "sha512-/iQtZq+zuQJrwawFyjixh333xPu4/KJKk0bFM/Omm4kFlTGw0dWXfq6xCOe5DqONW0faW29Cc9r6p2mvl72aTQ==" }, "@octokit/plugin-paginate-rest": { "version": "2.16.3", @@ -19108,11 +19108,11 @@ } }, "@octokit/types": { - "version": "6.30.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.30.0.tgz", - "integrity": "sha512-aQ8kUJLOwbIXP9Sz1fDGsdNf9cLiOmvim3gUgRmDOJVwTV3/JfKawQi2W2csku9mAzaalER+DYhsjyaqnmVcSw==", + "version": "6.31.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.31.0.tgz", + "integrity": "sha512-xobpvYmMYoFSxZB6jL1TPTMMZkxZIBlY145ZKibBJDKCczP1FrLLougtuVOZywGVZdcYs8oq2Bxb3aMjqIFeiw==", "requires": { - "@octokit/openapi-types": "^10.4.0" + "@octokit/openapi-types": "^10.5.0" } }, "@pika/babel-plugin-esm-import-rewrite": { diff --git a/package.json b/package.json index f20f1e8fb..1015fe976 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", "dependencies": { - "@octokit/types": "^6.30.0", + "@octokit/types": "^6.31.0", "deprecation": "^2.3.1" }, "devDependencies": { diff --git a/scripts/update-endpoints/generated/endpoints.json b/scripts/update-endpoints/generated/endpoints.json index 23e50fd95..fd3cf8804 100644 --- a/scripts/update-endpoints/generated/endpoints.json +++ b/scripts/update-endpoints/generated/endpoints.json @@ -20150,7 +20150,7 @@ "deprecationDate": null, "description": "Deletes a previous migration archive. Downloadable migration archives are automatically deleted after seven days. Migration metadata, which is returned in the [List user migrations](https://docs.github.com/rest/reference/migrations#list-user-migrations) and [Get a user migration status](https://docs.github.com/rest/reference/migrations#get-a-user-migration-status) endpoints, will continue to be available even after an archive is deleted.", "documentationUrl": "https://docs.github.com/rest/reference/migrations#delete-a-user-migration-archive", - "previews": [{ "name": "wyandotte" }], + "previews": [], "headers": [], "parameters": [ { @@ -20190,7 +20190,7 @@ "deprecationDate": null, "description": "Deletes a previous migration archive. Migration archives are automatically deleted after seven days.", "documentationUrl": "https://docs.github.com/rest/reference/migrations#delete-an-organization-migration-archive", - "previews": [{ "name": "wyandotte" }], + "previews": [], "headers": [], "parameters": [ { @@ -20236,7 +20236,7 @@ "deprecationDate": null, "description": "Fetches the URL to a migration archive.", "documentationUrl": "https://docs.github.com/rest/reference/migrations#download-an-organization-migration-archive", - "previews": [{ "name": "wyandotte" }], + "previews": [], "headers": [], "parameters": [ { @@ -20282,7 +20282,7 @@ "deprecationDate": null, "description": "Fetches the URL to download the migration archive as a `tar.gz` file. Depending on the resources your repository uses, the migration archive can contain JSON files with data for these objects:\n\n* attachments\n* bases\n* commit\\_comments\n* issue\\_comments\n* issue\\_events\n* issues\n* milestones\n* organizations\n* projects\n* protected\\_branches\n* pull\\_request\\_reviews\n* pull\\_requests\n* releases\n* repositories\n* review\\_comments\n* schema\n* users\n\nThe archive will also contain an `attachments` directory that includes all attachment files uploaded to GitHub.com and a `repositories` directory that contains the repository's Git data.", "documentationUrl": "https://docs.github.com/rest/reference/migrations#download-a-user-migration-archive", - "previews": [{ "name": "wyandotte" }], + "previews": [], "headers": [], "parameters": [ { @@ -20495,7 +20495,7 @@ "deprecationDate": null, "description": "Fetches a single user migration. The response includes the `state` of the migration, which can be one of the following values:\n\n* `pending` - the migration hasn't started yet.\n* `exporting` - the migration is in progress.\n* `exported` - the migration finished successfully.\n* `failed` - the migration failed.\n\nOnce the migration has been `exported` you can [download the migration archive](https://docs.github.com/rest/reference/migrations#download-a-user-migration-archive).", "documentationUrl": "https://docs.github.com/rest/reference/migrations#get-a-user-migration-status", - "previews": [{ "name": "wyandotte" }], + "previews": [], "headers": [], "parameters": [ { @@ -20556,7 +20556,7 @@ "deprecationDate": null, "description": "Fetches the status of a migration.\n\nThe `state` of a migration can be one of the following values:\n\n* `pending`, which means the migration hasn't started yet.\n* `exporting`, which means the migration is in progress.\n* `exported`, which means the migration finished successfully.\n* `failed`, which means the migration failed.", "documentationUrl": "https://docs.github.com/rest/reference/migrations#get-an-organization-migration-status", - "previews": [{ "name": "wyandotte" }], + "previews": [], "headers": [], "parameters": [ { @@ -20623,7 +20623,7 @@ "deprecationDate": null, "description": "Lists all migrations a user has started.", "documentationUrl": "https://docs.github.com/rest/reference/migrations#list-user-migrations", - "previews": [{ "name": "wyandotte" }], + "previews": [], "headers": [], "parameters": [ { @@ -20683,7 +20683,7 @@ "deprecationDate": null, "description": "Lists the most recent migrations.", "documentationUrl": "https://docs.github.com/rest/reference/migrations#list-organization-migrations", - "previews": [{ "name": "wyandotte" }], + "previews": [], "headers": [], "parameters": [ { @@ -20762,7 +20762,7 @@ "deprecationDate": null, "description": "List all the repositories for this organization migration.", "documentationUrl": "https://docs.github.com/rest/reference/migrations#list-repositories-in-an-organization-migration", - "previews": [{ "name": "wyandotte" }], + "previews": [], "headers": [], "parameters": [ { @@ -20842,7 +20842,7 @@ "deprecationDate": null, "description": "Lists all the repositories for this user migration.", "documentationUrl": "https://docs.github.com/rest/reference/migrations#list-repositories-for-a-user-migration", - "previews": [{ "name": "wyandotte" }], + "previews": [], "headers": [], "parameters": [ { @@ -21423,7 +21423,7 @@ "deprecationDate": null, "description": "Unlocks a repository. You can lock repositories when you [start a user migration](https://docs.github.com/rest/reference/migrations#start-a-user-migration). Once the migration is complete you can unlock each repository to begin using it again or [delete the repository](https://docs.github.com/rest/reference/repos#delete-a-repository) if you no longer need the source data. Returns a status of `404 Not Found` if the repository is not locked.", "documentationUrl": "https://docs.github.com/rest/reference/migrations#unlock-a-user-repository", - "previews": [{ "name": "wyandotte" }], + "previews": [], "headers": [], "parameters": [ { @@ -21476,7 +21476,7 @@ "deprecationDate": null, "description": "Unlocks a repository that was locked for migration. You should unlock each migrated repository and [delete them](https://docs.github.com/rest/reference/repos#delete-a-repository) when the migration is complete and you no longer need the source data.", "documentationUrl": "https://docs.github.com/rest/reference/migrations#unlock-an-organization-repository", - "previews": [{ "name": "wyandotte" }], + "previews": [], "headers": [], "parameters": [ { @@ -27381,7 +27381,7 @@ "deprecationDate": null, "description": "Adds a collaborator to an organization project and sets their permission level. You must be an organization owner or a project `admin` to add a collaborator.", "documentationUrl": "https://docs.github.com/rest/reference/projects#add-project-collaborator", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -27434,11 +27434,6 @@ }, { "code": 403, "description": "Forbidden", "examples": null }, { "code": 404, "description": "Resource not found", "examples": null }, - { - "code": 415, - "description": "Preview header missing", - "examples": null - }, { "code": 422, "description": "Validation failed", "examples": null } ], "renamed": null @@ -27453,7 +27448,7 @@ "deprecationDate": null, "description": "", "documentationUrl": "https://docs.github.com/rest/reference/projects#create-a-project-card", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -27541,7 +27536,7 @@ "deprecationDate": null, "description": "", "documentationUrl": "https://docs.github.com/rest/reference/projects#create-a-project-column", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -27602,7 +27597,7 @@ "deprecationDate": null, "description": "", "documentationUrl": "https://docs.github.com/rest/reference/projects#create-a-user-project", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -27668,7 +27663,7 @@ "deprecationDate": null, "description": "Creates an organization project board. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.", "documentationUrl": "https://docs.github.com/rest/reference/projects#create-an-organization-project", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -27743,7 +27738,7 @@ "deprecationDate": null, "description": "Creates a repository project board. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.", "documentationUrl": "https://docs.github.com/rest/reference/projects#create-a-repository-project", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -27831,7 +27826,7 @@ "deprecationDate": null, "description": "Deletes a project board. Returns a `404 Not Found` status if projects are disabled.", "documentationUrl": "https://docs.github.com/rest/reference/projects#delete-a-project", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -27872,7 +27867,7 @@ "deprecationDate": null, "description": "", "documentationUrl": "https://docs.github.com/rest/reference/projects#delete-a-project-card", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -27912,7 +27907,7 @@ "deprecationDate": null, "description": "", "documentationUrl": "https://docs.github.com/rest/reference/projects#delete-a-project-column", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -27951,7 +27946,7 @@ "deprecationDate": null, "description": "Gets a project by its `id`. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.", "documentationUrl": "https://docs.github.com/rest/reference/projects#get-a-project", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -27998,7 +27993,7 @@ "deprecationDate": null, "description": "", "documentationUrl": "https://docs.github.com/rest/reference/projects#get-a-project-card", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -28046,7 +28041,7 @@ "deprecationDate": null, "description": "", "documentationUrl": "https://docs.github.com/rest/reference/projects#get-a-project-column", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -28094,7 +28089,7 @@ "deprecationDate": null, "description": "Returns the collaborator's permission level for an organization project. Possible values for the `permission` key: `admin`, `write`, `read`, `none`. You must be an organization owner or a project `admin` to review a user's permission level.", "documentationUrl": "https://docs.github.com/rest/reference/projects#get-project-permission-for-a-user", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -28142,11 +28137,6 @@ }, { "code": 403, "description": "Forbidden", "examples": null }, { "code": 404, "description": "Resource not found", "examples": null }, - { - "code": 415, - "description": "Preview header missing", - "examples": null - }, { "code": 422, "description": "Validation failed", "examples": null } ], "renamed": null @@ -28161,7 +28151,7 @@ "deprecationDate": null, "description": "", "documentationUrl": "https://docs.github.com/rest/reference/projects#list-project-cards", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -28247,7 +28237,7 @@ "deprecationDate": null, "description": "Lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project `admin` to list collaborators.", "documentationUrl": "https://docs.github.com/rest/reference/projects#list-project-collaborators", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -28321,11 +28311,6 @@ }, { "code": 403, "description": "Forbidden", "examples": null }, { "code": 404, "description": "Resource not found", "examples": null }, - { - "code": 415, - "description": "Preview header missing", - "examples": null - }, { "code": 422, "description": "Validation failed", "examples": null } ], "renamed": null @@ -28340,7 +28325,7 @@ "deprecationDate": null, "description": "", "documentationUrl": "https://docs.github.com/rest/reference/projects#list-project-columns", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -28413,7 +28398,7 @@ "deprecationDate": null, "description": "Lists the projects in an organization. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.", "documentationUrl": "https://docs.github.com/rest/reference/projects#list-organization-projects", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -28493,7 +28478,7 @@ "deprecationDate": null, "description": "Lists the projects in a repository. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.", "documentationUrl": "https://docs.github.com/rest/reference/projects#list-repository-projects", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -28594,7 +28579,7 @@ "deprecationDate": null, "description": "", "documentationUrl": "https://docs.github.com/rest/reference/projects#list-user-projects", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -28660,11 +28645,6 @@ } ] }, - { - "code": 415, - "description": "Preview header missing", - "examples": null - }, { "code": 422, "description": "Validation failed", "examples": null } ], "renamed": null @@ -28679,7 +28659,7 @@ "deprecationDate": null, "description": "", "documentationUrl": "https://docs.github.com/rest/reference/projects#move-a-project-card", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -28746,7 +28726,7 @@ "deprecationDate": null, "description": "", "documentationUrl": "https://docs.github.com/rest/reference/projects#move-a-project-column", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -28799,7 +28779,7 @@ "deprecationDate": null, "description": "Removes a collaborator from an organization project. You must be an organization owner or a project `admin` to remove a collaborator.", "documentationUrl": "https://docs.github.com/rest/reference/projects#remove-project-collaborator", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -28839,11 +28819,6 @@ }, { "code": 403, "description": "Forbidden", "examples": null }, { "code": 404, "description": "Resource not found", "examples": null }, - { - "code": 415, - "description": "Preview header missing", - "examples": null - }, { "code": 422, "description": "Validation failed", "examples": null } ], "renamed": null @@ -28858,7 +28833,7 @@ "deprecationDate": null, "description": "Updates a project board's information. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.", "documentationUrl": "https://docs.github.com/rest/reference/projects#update-a-project", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -28977,7 +28952,7 @@ "deprecationDate": null, "description": "", "documentationUrl": "https://docs.github.com/rest/reference/projects#update-a-project-card", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -29052,7 +29027,7 @@ "deprecationDate": null, "description": "", "documentationUrl": "https://docs.github.com/rest/reference/projects#update-a-project-column", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -31709,7 +31684,7 @@ "deprecationDate": null, "description": "Updates the pull request branch with the latest upstream changes by merging HEAD from the base branch into the pull request branch.", "documentationUrl": "https://docs.github.com/rest/reference/pulls#update-a-pull-request-branch", - "previews": [{ "name": "lydian" }], + "previews": [], "headers": [], "parameters": [ { @@ -31776,11 +31751,6 @@ ] }, { "code": 403, "description": "Forbidden", "examples": null }, - { - "code": 415, - "description": "Preview header missing", - "examples": null - }, { "code": 422, "description": "Validation failed", "examples": null } ], "renamed": null @@ -34784,7 +34754,7 @@ "deprecationDate": null, "description": "Shows whether dependency alerts are enabled or disabled for a repository. The authenticated user must have admin access to the repository. For more information, see \"[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)\".", "documentationUrl": "https://docs.github.com/rest/reference/repos#check-if-vulnerability-alerts-are-enabled-for-a-repository", - "previews": [{ "name": "dorian" }], + "previews": [], "headers": [], "parameters": [ { @@ -38663,7 +38633,7 @@ "deprecationDate": null, "description": "Disables automated security fixes for a repository. The authenticated user must have admin access to the repository. For more information, see \"[Configuring automated security fixes](https://help.github.com/en/articles/configuring-automated-security-fixes)\".", "documentationUrl": "https://docs.github.com/rest/reference/repos#disable-automated-security-fixes", - "previews": [{ "name": "london" }], + "previews": [], "headers": [], "parameters": [ { @@ -38749,7 +38719,7 @@ "deprecationDate": null, "description": "Disables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see \"[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)\".", "documentationUrl": "https://docs.github.com/rest/reference/repos#disable-vulnerability-alerts", - "previews": [{ "name": "dorian" }], + "previews": [], "headers": [], "parameters": [ { @@ -39026,7 +38996,7 @@ "deprecationDate": null, "description": "Enables automated security fixes for a repository. The authenticated user must have admin access to the repository. For more information, see \"[Configuring automated security fixes](https://help.github.com/en/articles/configuring-automated-security-fixes)\".", "documentationUrl": "https://docs.github.com/rest/reference/repos#enable-automated-security-fixes", - "previews": [{ "name": "london" }], + "previews": [], "headers": [], "parameters": [ { @@ -39119,7 +39089,7 @@ "deprecationDate": null, "description": "Enables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see \"[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)\".", "documentationUrl": "https://docs.github.com/rest/reference/repos#enable-vulnerability-alerts", - "previews": [{ "name": "dorian" }], + "previews": [], "headers": [], "parameters": [ { @@ -49493,7 +49463,7 @@ "deprecationDate": null, "description": "Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/projects/{project_id}`.", "documentationUrl": "https://docs.github.com/rest/reference/teams#add-or-update-team-project-permissions", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -49573,7 +49543,7 @@ "deprecationDate": "2020-01-21", "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/rest/reference/teams#add-or-update-team-project-permissions) endpoint.\n\nAdds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization.", "documentationUrl": "https://docs.github.com/rest/reference/teams/#add-or-update-team-project-permissions-legacy", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -49628,11 +49598,6 @@ ] }, { "code": 404, "description": "Resource not found", "examples": null }, - { - "code": 415, - "description": "Preview header missing", - "examples": null - }, { "code": 422, "description": "Validation failed", "examples": null } ], "renamed": null @@ -49802,7 +49767,7 @@ "deprecationDate": null, "description": "Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/projects/{project_id}`.", "documentationUrl": "https://docs.github.com/rest/reference/teams#check-team-permissions-for-a-project", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -49873,7 +49838,7 @@ "deprecationDate": "2020-01-21", "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/rest/reference/teams#check-team-permissions-for-a-project) endpoint.\n\nChecks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team.", "documentationUrl": "https://docs.github.com/rest/reference/teams/#check-team-permissions-for-a-project-legacy", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -49917,8 +49882,7 @@ "code": 404, "description": "Not Found if project is not managed by this team", "examples": null - }, - { "code": 415, "description": "Preview header missing", "examples": null } + } ], "renamed": null }, @@ -52350,7 +52314,7 @@ "deprecationDate": null, "description": "Lists the organization projects for a team.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/projects`.", "documentationUrl": "https://docs.github.com/rest/reference/teams#list-team-projects", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -52429,7 +52393,7 @@ "deprecationDate": "2020-01-21", "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/rest/reference/teams#list-team-projects) endpoint.\n\nLists the organization projects for a team.", "documentationUrl": "https://docs.github.com/rest/reference/teams/#list-team-projects-legacy", - "previews": [{ "name": "inertia" }], + "previews": [], "headers": [], "parameters": [ { @@ -52482,8 +52446,7 @@ } ] }, - { "code": 404, "description": "Resource not found", "examples": null }, - { "code": 415, "description": "Preview header missing", "examples": null } + { "code": 404, "description": "Resource not found", "examples": null } ], "renamed": null }, diff --git a/src/generated/endpoints.ts b/src/generated/endpoints.ts index 2d2a7ae84..0a94f37e3 100644 --- a/src/generated/endpoints.ts +++ b/src/generated/endpoints.ts @@ -538,47 +538,25 @@ const Endpoints: EndpointsDefaultsAndDecorations = { cancelImport: ["DELETE /repos/{owner}/{repo}/import"], deleteArchiveForAuthenticatedUser: [ "DELETE /user/migrations/{migration_id}/archive", - { mediaType: { previews: ["wyandotte"] } }, ], deleteArchiveForOrg: [ "DELETE /orgs/{org}/migrations/{migration_id}/archive", - { mediaType: { previews: ["wyandotte"] } }, ], downloadArchiveForOrg: [ "GET /orgs/{org}/migrations/{migration_id}/archive", - { mediaType: { previews: ["wyandotte"] } }, ], getArchiveForAuthenticatedUser: [ "GET /user/migrations/{migration_id}/archive", - { mediaType: { previews: ["wyandotte"] } }, ], getCommitAuthors: ["GET /repos/{owner}/{repo}/import/authors"], getImportStatus: ["GET /repos/{owner}/{repo}/import"], getLargeFiles: ["GET /repos/{owner}/{repo}/import/large_files"], - getStatusForAuthenticatedUser: [ - "GET /user/migrations/{migration_id}", - { mediaType: { previews: ["wyandotte"] } }, - ], - getStatusForOrg: [ - "GET /orgs/{org}/migrations/{migration_id}", - { mediaType: { previews: ["wyandotte"] } }, - ], - listForAuthenticatedUser: [ - "GET /user/migrations", - { mediaType: { previews: ["wyandotte"] } }, - ], - listForOrg: [ - "GET /orgs/{org}/migrations", - { mediaType: { previews: ["wyandotte"] } }, - ], - listReposForOrg: [ - "GET /orgs/{org}/migrations/{migration_id}/repositories", - { mediaType: { previews: ["wyandotte"] } }, - ], - listReposForUser: [ - "GET /user/migrations/{migration_id}/repositories", - { mediaType: { previews: ["wyandotte"] } }, - ], + getStatusForAuthenticatedUser: ["GET /user/migrations/{migration_id}"], + getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"], + listForAuthenticatedUser: ["GET /user/migrations"], + listForOrg: ["GET /orgs/{org}/migrations"], + listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"], + listReposForUser: ["GET /user/migrations/{migration_id}/repositories"], mapCommitAuthor: ["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"], setLfsPreference: ["PATCH /repos/{owner}/{repo}/import/lfs"], startForAuthenticatedUser: ["POST /user/migrations"], @@ -586,11 +564,9 @@ const Endpoints: EndpointsDefaultsAndDecorations = { startImport: ["PUT /repos/{owner}/{repo}/import"], unlockRepoForAuthenticatedUser: [ "DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock", - { mediaType: { previews: ["wyandotte"] } }, ], unlockRepoForOrg: [ "DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock", - { mediaType: { previews: ["wyandotte"] } }, ], updateImport: ["PATCH /repos/{owner}/{repo}/import"], }, @@ -736,106 +712,35 @@ const Endpoints: EndpointsDefaultsAndDecorations = { ], }, projects: { - addCollaborator: [ - "PUT /projects/{project_id}/collaborators/{username}", - { mediaType: { previews: ["inertia"] } }, - ], - createCard: [ - "POST /projects/columns/{column_id}/cards", - { mediaType: { previews: ["inertia"] } }, - ], - createColumn: [ - "POST /projects/{project_id}/columns", - { mediaType: { previews: ["inertia"] } }, - ], - createForAuthenticatedUser: [ - "POST /user/projects", - { mediaType: { previews: ["inertia"] } }, - ], - createForOrg: [ - "POST /orgs/{org}/projects", - { mediaType: { previews: ["inertia"] } }, - ], - createForRepo: [ - "POST /repos/{owner}/{repo}/projects", - { mediaType: { previews: ["inertia"] } }, - ], - delete: [ - "DELETE /projects/{project_id}", - { mediaType: { previews: ["inertia"] } }, - ], - deleteCard: [ - "DELETE /projects/columns/cards/{card_id}", - { mediaType: { previews: ["inertia"] } }, - ], - deleteColumn: [ - "DELETE /projects/columns/{column_id}", - { mediaType: { previews: ["inertia"] } }, - ], - get: [ - "GET /projects/{project_id}", - { mediaType: { previews: ["inertia"] } }, - ], - getCard: [ - "GET /projects/columns/cards/{card_id}", - { mediaType: { previews: ["inertia"] } }, - ], - getColumn: [ - "GET /projects/columns/{column_id}", - { mediaType: { previews: ["inertia"] } }, - ], + addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"], + createCard: ["POST /projects/columns/{column_id}/cards"], + createColumn: ["POST /projects/{project_id}/columns"], + createForAuthenticatedUser: ["POST /user/projects"], + createForOrg: ["POST /orgs/{org}/projects"], + createForRepo: ["POST /repos/{owner}/{repo}/projects"], + delete: ["DELETE /projects/{project_id}"], + deleteCard: ["DELETE /projects/columns/cards/{card_id}"], + deleteColumn: ["DELETE /projects/columns/{column_id}"], + get: ["GET /projects/{project_id}"], + getCard: ["GET /projects/columns/cards/{card_id}"], + getColumn: ["GET /projects/columns/{column_id}"], getPermissionForUser: [ "GET /projects/{project_id}/collaborators/{username}/permission", - { mediaType: { previews: ["inertia"] } }, - ], - listCards: [ - "GET /projects/columns/{column_id}/cards", - { mediaType: { previews: ["inertia"] } }, - ], - listCollaborators: [ - "GET /projects/{project_id}/collaborators", - { mediaType: { previews: ["inertia"] } }, - ], - listColumns: [ - "GET /projects/{project_id}/columns", - { mediaType: { previews: ["inertia"] } }, - ], - listForOrg: [ - "GET /orgs/{org}/projects", - { mediaType: { previews: ["inertia"] } }, - ], - listForRepo: [ - "GET /repos/{owner}/{repo}/projects", - { mediaType: { previews: ["inertia"] } }, - ], - listForUser: [ - "GET /users/{username}/projects", - { mediaType: { previews: ["inertia"] } }, - ], - moveCard: [ - "POST /projects/columns/cards/{card_id}/moves", - { mediaType: { previews: ["inertia"] } }, - ], - moveColumn: [ - "POST /projects/columns/{column_id}/moves", - { mediaType: { previews: ["inertia"] } }, ], + listCards: ["GET /projects/columns/{column_id}/cards"], + listCollaborators: ["GET /projects/{project_id}/collaborators"], + listColumns: ["GET /projects/{project_id}/columns"], + listForOrg: ["GET /orgs/{org}/projects"], + listForRepo: ["GET /repos/{owner}/{repo}/projects"], + listForUser: ["GET /users/{username}/projects"], + moveCard: ["POST /projects/columns/cards/{card_id}/moves"], + moveColumn: ["POST /projects/columns/{column_id}/moves"], removeCollaborator: [ "DELETE /projects/{project_id}/collaborators/{username}", - { mediaType: { previews: ["inertia"] } }, - ], - update: [ - "PATCH /projects/{project_id}", - { mediaType: { previews: ["inertia"] } }, - ], - updateCard: [ - "PATCH /projects/columns/cards/{card_id}", - { mediaType: { previews: ["inertia"] } }, - ], - updateColumn: [ - "PATCH /projects/columns/{column_id}", - { mediaType: { previews: ["inertia"] } }, ], + update: ["PATCH /projects/{project_id}"], + updateCard: ["PATCH /projects/columns/cards/{card_id}"], + updateColumn: ["PATCH /projects/columns/{column_id}"], }, pulls: { checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"], @@ -888,7 +793,6 @@ const Endpoints: EndpointsDefaultsAndDecorations = { update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"], updateBranch: [ "PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch", - { mediaType: { previews: ["lydian"] } }, ], updateReview: [ "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", @@ -1010,7 +914,6 @@ const Endpoints: EndpointsDefaultsAndDecorations = { checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"], checkVulnerabilityAlerts: [ "GET /repos/{owner}/{repo}/vulnerability-alerts", - { mediaType: { previews: ["dorian"] } }, ], compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"], compareCommitsWithBasehead: [ @@ -1090,12 +993,10 @@ const Endpoints: EndpointsDefaultsAndDecorations = { deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"], disableAutomatedSecurityFixes: [ "DELETE /repos/{owner}/{repo}/automated-security-fixes", - { mediaType: { previews: ["london"] } }, ], disableLfsForRepo: ["DELETE /repos/{owner}/{repo}/lfs"], disableVulnerabilityAlerts: [ "DELETE /repos/{owner}/{repo}/vulnerability-alerts", - { mediaType: { previews: ["dorian"] } }, ], downloadArchive: [ "GET /repos/{owner}/{repo}/zipball/{ref}", @@ -1106,12 +1007,10 @@ const Endpoints: EndpointsDefaultsAndDecorations = { downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"], enableAutomatedSecurityFixes: [ "PUT /repos/{owner}/{repo}/automated-security-fixes", - { mediaType: { previews: ["london"] } }, ], enableLfsForRepo: ["PUT /repos/{owner}/{repo}/lfs"], enableVulnerabilityAlerts: [ "PUT /repos/{owner}/{repo}/vulnerability-alerts", - { mediaType: { previews: ["dorian"] } }, ], get: ["GET /repos/{owner}/{repo}"], getAccessRestrictions: [ @@ -1357,14 +1256,12 @@ const Endpoints: EndpointsDefaultsAndDecorations = { ], addOrUpdateProjectPermissionsInOrg: [ "PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}", - { mediaType: { previews: ["inertia"] } }, ], addOrUpdateRepoPermissionsInOrg: [ "PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", ], checkPermissionsForProjectInOrg: [ "GET /orgs/{org}/teams/{team_slug}/projects/{project_id}", - { mediaType: { previews: ["inertia"] } }, ], checkPermissionsForRepoInOrg: [ "GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", @@ -1402,10 +1299,7 @@ const Endpoints: EndpointsDefaultsAndDecorations = { listPendingInvitationsInOrg: [ "GET /orgs/{org}/teams/{team_slug}/invitations", ], - listProjectsInOrg: [ - "GET /orgs/{org}/teams/{team_slug}/projects", - { mediaType: { previews: ["inertia"] } }, - ], + listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"], listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"], removeMembershipForUserInOrg: [ "DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}",