diff --git a/scripts/update-endpoints/generated/endpoints.json b/scripts/update-endpoints/generated/endpoints.json index fb0a6b469..3fbd3bae9 100644 --- a/scripts/update-endpoints/generated/endpoints.json +++ b/scripts/update-endpoints/generated/endpoints.json @@ -2794,242 +2794,6 @@ ], "renamed": null }, - { - "name": "Search issues", - "scope": "search", - "id": "issuesLegacy", - "method": "GET", - "url": "/legacy/issues/search/{owner}/{repository}/{state}/{keyword}", - "documentationUrl": "https://developer.github.com/v3/search/legacy/#search-issues", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "repository parameter", - "enum": null, - "name": "repository", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Indicates the state of the issues to return. Can be either `open` or `closed`.", - "enum": ["open", "closed"], - "name": "state", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The search term.", - "enum": null, - "name": "keyword", - "type": "string", - "required": true - } - ], - "previews": [], - "headers": [], - "responses": [ - { - "code": 200, - "description": "response", - "examples": [ - { - "data": "{\"issues\":[{\"gravatar_id\":\"\",\"position\":10,\"number\":10,\"votes\":2,\"created_at\":\"2010-06-04T23:20:33Z\",\"comments\":5,\"body\":\"Issue body goes here\",\"title\":\"This is is the issue title\",\"updated_at\":\"2010-06-04T23:20:33Z\",\"html_url\":\"https://github.com/pengwynn/linkedin/issues/10\",\"user\":\"ckarbass\",\"labels\":[\"api\",\"feature request\",\"investigation\"],\"state\":\"open\"}]}" - } - ] - } - ], - "renamed": null - }, - { - "name": "Search repositories", - "scope": "search", - "id": "reposLegacy", - "method": "GET", - "url": "/legacy/repos/search/{keyword}", - "documentationUrl": "https://developer.github.com/v3/search/legacy/#search-repositories", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The search term.", - "enum": null, - "name": "keyword", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Filter results by language.", - "enum": null, - "name": "language", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The page number to fetch.", - "enum": null, - "name": "start_page", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.", - "enum": ["stars", "forks", "updated"], - "name": "sort", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The sort field. if `sort` param is provided. Can be either `asc` or `desc`.", - "enum": ["asc", "desc"], - "name": "order", - "type": "string", - "required": false - } - ], - "previews": [], - "headers": [], - "responses": [ - { - "code": 200, - "description": "response", - "examples": [ - { - "data": "{\"repositories\":[{\"type\":\"repo\",\"created\":\"2011-09-05T11:07:54Z\",\"watchers\":2913,\"has_downloads\":true,\"username\":\"mathiasbynens\",\"homepage\":\"http://mths.be/dotfiles\",\"url\":\"https://github.com/mathiasbynens/dotfiles\",\"fork\":false,\"has_issues\":true,\"has_wiki\":false,\"forks\":520,\"size\":192,\"private\":false,\"followers\":2913,\"name\":\"dotfiles\",\"owner\":\"mathiasbynens\",\"open_issues\":12,\"pushed_at\":\"2012-06-05T03:37:13Z\",\"score\":1,\"pushed\":\"2012-06-05T03:37:13Z\",\"description\":\"sensible hacker defaults for OS X\",\"language\":\"VimL\",\"created_at\":\"2011-09-05T11:07:54Z\"}]}" - } - ] - } - ], - "renamed": null - }, - { - "name": "Email search", - "scope": "search", - "id": "emailLegacy", - "method": "GET", - "url": "/legacy/user/email/{email}", - "documentationUrl": "https://developer.github.com/v3/search/legacy/#email-search", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The email address.", - "enum": null, - "name": "email", - "type": "string", - "required": true - } - ], - "previews": [], - "headers": [], - "responses": [ - { - "code": 200, - "description": "response", - "examples": [ - { - "data": "{\"user\":{\"public_repo_count\":2,\"public_gist_count\":1,\"followers_count\":20,\"following_count\":0,\"created\":\"2009-10-05T01:32:06Z\",\"created_at\":\"2009-10-05T01:32:06Z\",\"name\":\"monalisa octocat\",\"company\":\"GitHub\",\"blog\":\"https://github.com/blog\",\"location\":\"San Francisco\",\"email\":\"octocat@github.com\",\"id\":2,\"login\":\"octocat\",\"type\":\"User\",\"gravatar_id\":\"\"}}" - } - ] - } - ], - "renamed": null - }, - { - "name": "Search users", - "scope": "search", - "id": "usersLegacy", - "method": "GET", - "url": "/legacy/user/search/{keyword}", - "documentationUrl": "https://developer.github.com/v3/search/legacy/#search-users", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The search term.", - "enum": null, - "name": "keyword", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The page number to fetch.", - "enum": null, - "name": "start_page", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.", - "enum": ["stars", "forks", "updated"], - "name": "sort", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The sort field. if `sort` param is provided. Can be either `asc` or `desc`.", - "enum": ["asc", "desc"], - "name": "order", - "type": "string", - "required": false - } - ], - "previews": [], - "headers": [], - "responses": [ - { - "code": 200, - "description": "response", - "examples": [ - { - "data": "{\"users\":[{\"gravatar_id\":\"\",\"name\":\"Hirotaka Kawata\",\"created_at\":\"2009-10-05T01:32:06Z\",\"location\":\"Tsukuba, Ibaraki, Japan\",\"public_repo_count\":8,\"followers\":10,\"language\":\"Python\",\"fullname\":\"Hirotaka Kawata\",\"username\":\"techno\",\"id\":\"user-135050\",\"repos\":8,\"type\":\"user\",\"followers_count\":10,\"login\":\"techno\",\"score\":1,\"created\":\"2009-10-05T01:32:06Z\"}]}" - } - ] - } - ], - "renamed": null - }, { "name": "List commonly used licenses", "scope": "licenses", @@ -36242,7 +36006,7 @@ "headers": [], "responses": [], "renamed": { - "note": "\"Get team member\" is now \"Get team member (Legacy)\"" + "note": "The path for \"Get team member (Legacy)\" changed from \"/teams/{team_id}*\" to \"/orgs/{org}/teams/{team_slug}*\"). The operation ID for the old path now has a \"-legacy\" suffix. The route with the new path has a \"-for-org\" suffix in the operation ID to avoid breaking changes" } }, { @@ -36338,7 +36102,7 @@ } ], "renamed": { - "note": "\"Add team member\" is now \"Add team member (Legacy)\"" + "note": "The path for \"Add team member (Legacy)\" changed from \"/teams/{team_id}*\" to \"/orgs/{org}/teams/{team_slug}*\"). The operation ID for the old path now has a \"-legacy\" suffix. The route with the new path has a \"-for-org\" suffix in the operation ID to avoid breaking changes" } }, { @@ -36408,7 +36172,7 @@ "headers": [], "responses": [], "renamed": { - "note": "\"Remove team member\" is now \"Remove team member (Legacy)\"" + "note": "The path for \"Remove team member (Legacy)\" changed from \"/teams/{team_id}*\" to \"/orgs/{org}/teams/{team_slug}*\"). The operation ID for the old path now has a \"-legacy\" suffix. The route with the new path has a \"-for-org\" suffix in the operation ID to avoid breaking changes" } }, { @@ -40503,108 +40267,6 @@ ], "renamed": null }, - { - "name": "Check if you are watching a repository (LEGACY)", - "scope": "activity", - "id": "checkWatchingRepoLegacy", - "method": "GET", - "url": "/user/subscriptions/{owner}/{repo}", - "documentationUrl": "https://developer.github.com/v3/activity/watching/#check-if-you-are-watching-a-repository-legacy", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "repo parameter", - "enum": null, - "name": "repo", - "type": "string", - "required": true - } - ], - "previews": [], - "headers": [], - "responses": [], - "renamed": null - }, - { - "name": "Watch a repository (LEGACY)", - "scope": "activity", - "id": "watchRepoLegacy", - "method": "PUT", - "url": "/user/subscriptions/{owner}/{repo}", - "documentationUrl": "https://developer.github.com/v3/activity/watching/#watch-a-repository-legacy", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "repo parameter", - "enum": null, - "name": "repo", - "type": "string", - "required": true - } - ], - "previews": [], - "headers": [], - "responses": [], - "renamed": null - }, - { - "name": "Stop watching a repository (LEGACY)", - "scope": "activity", - "id": "stopWatchingRepoLegacy", - "method": "DELETE", - "url": "/user/subscriptions/{owner}/{repo}", - "documentationUrl": "https://developer.github.com/v3/activity/watching/#stop-watching-a-repository-legacy", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "repo parameter", - "enum": null, - "name": "repo", - "type": "string", - "required": true - } - ], - "previews": [], - "headers": [], - "responses": [], - "renamed": null - }, { "name": "List user teams", "scope": "teams", diff --git a/src/generated/Endpoints.ts b/src/generated/Endpoints.ts index 488ad483f..99e74fffc 100644 --- a/src/generated/Endpoints.ts +++ b/src/generated/Endpoints.ts @@ -826,14 +826,6 @@ export interface Endpoints { request: ActivityUnstarRepoForAuthenticatedUserRequestOptions; response: OctokitResponse; }; - /** - * @see https://developer.github.com/v3/activity/watching/#stop-watching-a-repository-legacy - */ - "DELETE /user/subscriptions/:owner/:repo": { - parameters: ActivityStopWatchingRepoLegacyEndpoint; - request: ActivityStopWatchingRepoLegacyRequestOptions; - response: OctokitResponse; - }; /** * @see https://developer.github.com/v3/apps/#get-the-authenticated-github-app */ @@ -1060,38 +1052,6 @@ export interface Endpoints { request: IssuesListRequestOptions; response: OctokitResponse; }; - /** - * @see https://developer.github.com/v3/search/legacy/#search-issues - */ - "GET /legacy/issues/search/:owner/:repository/:state/:keyword": { - parameters: SearchIssuesLegacyEndpoint; - request: SearchIssuesLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/search/legacy/#search-repositories - */ - "GET /legacy/repos/search/:keyword": { - parameters: SearchReposLegacyEndpoint; - request: SearchReposLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/search/legacy/#email-search - */ - "GET /legacy/user/email/:email": { - parameters: SearchEmailLegacyEndpoint; - request: SearchEmailLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/search/legacy/#search-users - */ - "GET /legacy/user/search/:keyword": { - parameters: SearchUsersLegacyEndpoint; - request: SearchUsersLegacyRequestOptions; - response: OctokitResponse; - }; /** * @see https://developer.github.com/v3/licenses/#list-commonly-used-licenses */ @@ -3304,14 +3264,6 @@ export interface Endpoints { ActivityListWatchedReposForAuthenticatedUserResponseData >; }; - /** - * @see https://developer.github.com/v3/activity/watching/#check-if-you-are-watching-a-repository-legacy - */ - "GET /user/subscriptions/:owner/:repo": { - parameters: ActivityCheckWatchingRepoLegacyEndpoint; - request: ActivityCheckWatchingRepoLegacyRequestOptions; - response: OctokitResponse; - }; /** * @see https://developer.github.com/v3/teams/#list-user-teams */ @@ -4976,14 +4928,6 @@ export interface Endpoints { request: ActivityStarRepoForAuthenticatedUserRequestOptions; response: OctokitResponse; }; - /** - * @see https://developer.github.com/v3/activity/watching/#watch-a-repository-legacy - */ - "PUT /user/subscriptions/:owner/:repo": { - parameters: ActivityWatchRepoLegacyEndpoint; - request: ActivityWatchRepoLegacyRequestOptions; - response: OctokitResponse; - }; } type AppsGetAuthenticatedEndpoint = {} & RequiredPreview<"machine-man">; @@ -8003,189 +7947,6 @@ type IssuesListResponseDataItem = { }; type IssuesListResponseData = Array; -type SearchIssuesLegacyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repository parameter - */ - repository: string; - /** - * Indicates the state of the issues to return. Can be either `open` or `closed`. - */ - state: "open" | "closed"; - /** - * The search term. - */ - keyword: string; -}; - -type SearchIssuesLegacyRequestOptions = { - method: "GET"; - url: "/legacy/issues/search/:owner/:repository/:state/:keyword"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type SearchIssuesLegacyResponseDataIssuesItem = { - gravatar_id: string; - position: number; - number: number; - votes: number; - created_at: string; - comments: number; - body: string; - title: string; - updated_at: string; - html_url: string; - user: string; - labels: Array; - state: string; -}; -type SearchIssuesLegacyResponseData = { - issues: Array; -}; - -type SearchReposLegacyEndpoint = { - /** - * The search term. - */ - keyword: string; - /** - * Filter results by language. - */ - language?: string; - /** - * The page number to fetch. - */ - start_page?: string; - /** - * The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match. - */ - sort?: "stars" | "forks" | "updated"; - /** - * The sort field. if `sort` param is provided. Can be either `asc` or `desc`. - */ - order?: "asc" | "desc"; -}; - -type SearchReposLegacyRequestOptions = { - method: "GET"; - url: "/legacy/repos/search/:keyword"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type SearchReposLegacyResponseDataRepositoriesItem = { - type: string; - created: string; - watchers: number; - has_downloads: boolean; - username: string; - homepage: string; - url: string; - fork: boolean; - has_issues: boolean; - has_wiki: boolean; - forks: number; - size: number; - private: boolean; - followers: number; - name: string; - owner: string; - open_issues: number; - pushed_at: string; - score: number; - pushed: string; - description: string; - language: string; - created_at: string; -}; -type SearchReposLegacyResponseData = { - repositories: Array; -}; - -type SearchEmailLegacyEndpoint = { - /** - * The email address. - */ - email: string; -}; - -type SearchEmailLegacyRequestOptions = { - method: "GET"; - url: "/legacy/user/email/:email"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type SearchEmailLegacyResponseDataUser = { - public_repo_count: number; - public_gist_count: number; - followers_count: number; - following_count: number; - created: string; - created_at: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - id: number; - login: string; - type: string; - gravatar_id: string; -}; -type SearchEmailLegacyResponseData = { - user: SearchEmailLegacyResponseDataUser; -}; - -type SearchUsersLegacyEndpoint = { - /** - * The search term. - */ - keyword: string; - /** - * The page number to fetch. - */ - start_page?: string; - /** - * The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match. - */ - sort?: "stars" | "forks" | "updated"; - /** - * The sort field. if `sort` param is provided. Can be either `asc` or `desc`. - */ - order?: "asc" | "desc"; -}; - -type SearchUsersLegacyRequestOptions = { - method: "GET"; - url: "/legacy/user/search/:keyword"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type SearchUsersLegacyResponseDataUsersItem = { - gravatar_id: string; - name: string; - created_at: string; - location: string; - public_repo_count: number; - followers: number; - language: string; - fullname: string; - username: string; - id: string; - repos: number; - type: string; - followers_count: number; - login: string; - score: number; - created: string; -}; -type SearchUsersLegacyResponseData = { - users: Array; -}; - type LicensesListCommonlyUsedEndpoint = {}; type LicensesListCommonlyUsedRequestOptions = { @@ -41507,60 +41268,6 @@ type ActivityListWatchedReposForAuthenticatedUserResponseData = Array< ActivityListWatchedReposForAuthenticatedUserResponseDataItem >; -type ActivityCheckWatchingRepoLegacyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; - -type ActivityCheckWatchingRepoLegacyRequestOptions = { - method: "GET"; - url: "/user/subscriptions/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; - -type ActivityWatchRepoLegacyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; - -type ActivityWatchRepoLegacyRequestOptions = { - method: "PUT"; - url: "/user/subscriptions/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; - -type ActivityStopWatchingRepoLegacyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; - -type ActivityStopWatchingRepoLegacyRequestOptions = { - method: "DELETE"; - url: "/user/subscriptions/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; - type TeamsListForAuthenticatedUserEndpoint = { /** * Results per page (max 100)