Skip to content

Commit aacdecf

Browse files
committed
remainging deprecated endpoint methods removed
BREAKING CHANGE: remainging deprecated endpoint methods removed.
1 parent a340951 commit aacdecf

File tree

2 files changed

+44
-701
lines changed

2 files changed

+44
-701
lines changed

src/generated/endpoints.ts

Lines changed: 0 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,6 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
107107
checkAccountIsAssociatedWithAnyStubbed: [
108108
"GET /marketplace_listing/stubbed/accounts/{account_id}"
109109
],
110-
checkAuthorization: [
111-
"GET /applications/{client_id}/tokens/{access_token}",
112-
{},
113-
{
114-
deprecated:
115-
"octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization"
116-
}
117-
],
118110
checkToken: [
119111
"POST /applications/{client_id}/token",
120112
{ mediaType: { previews: ["doctor-strange"] } }
@@ -201,34 +193,10 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
201193
"DELETE /user/installations/{installation_id}/repositories/{repository_id}",
202194
{ mediaType: { previews: ["machine-man"] } }
203195
],
204-
resetAuthorization: [
205-
"POST /applications/{client_id}/tokens/{access_token}",
206-
{},
207-
{
208-
deprecated:
209-
"octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization"
210-
}
211-
],
212196
resetToken: [
213197
"PATCH /applications/{client_id}/token",
214198
{ mediaType: { previews: ["doctor-strange"] } }
215199
],
216-
revokeAuthorizationForApplication: [
217-
"DELETE /applications/{client_id}/tokens/{access_token}",
218-
{},
219-
{
220-
deprecated:
221-
"octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application"
222-
}
223-
],
224-
revokeGrantForApplication: [
225-
"DELETE /applications/{client_id}/grants/{access_token}",
226-
{},
227-
{
228-
deprecated:
229-
"octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application"
230-
}
231-
],
232200
revokeInstallationToken: [
233201
"DELETE /installation/token",
234202
{ mediaType: { previews: ["gambit"] } }
@@ -497,88 +465,6 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
497465
],
498466
updateImport: ["PATCH /repos/{owner}/{repo}/import"]
499467
},
500-
oauthAuthorizations: {
501-
createAuthorization: [
502-
"POST /authorizations",
503-
{},
504-
{
505-
deprecated:
506-
"octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization"
507-
}
508-
],
509-
deleteAuthorization: [
510-
"DELETE /authorizations/{authorization_id}",
511-
{},
512-
{
513-
deprecated:
514-
"octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization"
515-
}
516-
],
517-
deleteGrant: [
518-
"DELETE /applications/grants/{grant_id}",
519-
{},
520-
{
521-
deprecated:
522-
"octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant"
523-
}
524-
],
525-
getAuthorization: [
526-
"GET /authorizations/{authorization_id}",
527-
{},
528-
{
529-
deprecated:
530-
"octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization"
531-
}
532-
],
533-
getGrant: [
534-
"GET /applications/grants/{grant_id}",
535-
{},
536-
{
537-
deprecated:
538-
"octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant"
539-
}
540-
],
541-
getOrCreateAuthorizationForApp: [
542-
"PUT /authorizations/clients/{client_id}",
543-
{},
544-
{
545-
deprecated:
546-
"octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app"
547-
}
548-
],
549-
getOrCreateAuthorizationForAppAndFingerprint: [
550-
"PUT /authorizations/clients/{client_id}/{fingerprint}",
551-
{},
552-
{
553-
deprecated:
554-
"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint"
555-
}
556-
],
557-
listAuthorizations: [
558-
"GET /authorizations",
559-
{},
560-
{
561-
deprecated:
562-
"octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations"
563-
}
564-
],
565-
listGrants: [
566-
"GET /applications/grants",
567-
{},
568-
{
569-
deprecated:
570-
"octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants"
571-
}
572-
],
573-
updateAuthorization: [
574-
"PATCH /authorizations/{authorization_id}",
575-
{},
576-
{
577-
deprecated:
578-
"octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization"
579-
}
580-
]
581-
},
582468
orgs: {
583469
addOrUpdateMembership: ["PUT /orgs/{org}/memberships/{username}"],
584470
blockUser: ["PUT /orgs/{org}/blocks/{username}"],

0 commit comments

Comments
 (0)