Packages

@octokit/openapi-types

29.0.1 · 29 Aug 2026MIT97.2M / weekRepositoryHomepagenpmAtom feed

Your version

13.0.0

major15 Aug 2022Where it was published

13.13.1 is the newest release of 13.x.

In short

1 breaking6 new8 fixed

  • Breaking

    This removes support for the now-defunkt OAuth Authorizations APIs. These were disabled on GitHub.com at the end of 2020, but the OpenAPI specs were not updated so this code was not cleaned up.

Release note

Breaking changes

  • Breaking

    This removes support for the now-defunkt OAuth Authorizations APIs. These were disabled on GitHub.com at the end of 2020, but the OpenAPI specs were not updated so this code was not cleaned up.

Other changes

  • Document the required scopes to use GET /orgs/{org}/code-scanning/alerts with public repos

  • Add new Security Managers APIs (GET /orgs/{org}/security-managers, PUT /orgs/{org}/security-managers/teams/{team_slug} and DELETE /orgs/{org}/security-managers/teams/{team_slug})

  • Add new deployment branch policy APIs (GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies, POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies, GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id} , PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}, DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id})

  • Add new GitHub Pages API (POST /repos/{owner}/{repo}/pages/deployment)

  • Correct types for GET /enterprise-installation/{enterprise_or_org}/server-statistics to reflect that it returns an array of results

  • Add new retention_period_minutes and retention_expires_at fields returned on Codespaces

  • Correct types for Commit Statuses in the API (e.g. returned by POST /repos/{owner}/{repo}/statuses/{sha}) to reflect that target_url and description can be null

  • Correct describe the type of items returned by the GET /repos/{owner}/{repo}/contents/{path} API as enum (dir, file, submodule, symlink)

  • Add new added_by and last_used attributes on Deploy Keys returned across the API

  • Correct type of permission request body parameter for PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo} and PUT /repos/{owner}/{repo}/collaborators/{username} to reflect that custom role names can be specified, not just values in a GitHub-set enum

  • Remove page and per_page parameters for GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers which are not actually supported

  • Add support for build_type parameter in POST /repos/{owner}/{repo}/pages and PUT /repos/{owner}/{repo}/pages

  • Mark that commit_id, path and line are in fact required for `POST /repos/{owner}/{repo}/pulls/{pull_number}/comments

  • Correct types for POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews to reflect that event must be sent to DISMISS

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.