import axios from "axios" ; export var ContentType ; ( function ( ContentType ) { ContentType [ "Json" ] = "application/json" ; ContentType [ "FormData" ] = "multipart/form-data" ; ContentType [ "UrlEncoded" ] = "application/x-www-form-urlencoded" ; } ) ( ContentType || ( ContentType = { } ) ) ; export class HttpClient { constructor ( { securityWorker , secure , format , ... axiosConfig } = { } ) { this . securityData = null ; this . setSecurityData = ( data ) => { this . securityData = data ; } ; this . request = async ( { secure , path , type , query , format , body , ... params } ) => { const secureParams = ( ( typeof secure === "boolean" ? secure : this . secure ) && this . securityWorker && ( await this . securityWorker ( this . securityData ) ) ) || { } ; const requestParams = this . mergeRequestParams ( params , secureParams ) ; const responseFormat = ( format && this . format ) || void 0 ; if ( type === ContentType . FormData && body && body !== null && typeof body === "object" ) { requestParams . headers . common = { Accept : "*/*" } ; requestParams . headers . post = { } ; requestParams . headers . put = { } ; body = this . createFormData ( body ) ; } return this . instance . request ( { ... requestParams , headers : { ... ( type && type !== ContentType . FormData ? { "Content-Type" : type } : { } ) , ... ( requestParams . headers || { } ) , } , params : query , responseType : responseFormat , data : body , url : path , } ) ; } ; this . instance = axios . create ( { ... axiosConfig , baseURL : axiosConfig . baseURL || "https://api.github.com" } ) ; this . secure = secure ; this . format = format ; this . securityWorker = securityWorker ; } mergeRequestParams ( params1 , params2 ) { return { ... this . instance . defaults , ... params1 , ... ( params2 || { } ) , headers : { ... ( this . instance . defaults . headers || { } ) , ... ( params1 . headers || { } ) , ... ( ( params2 && params2 . headers ) || { } ) , } , } ; } createFormData ( input ) { return Object . keys ( input || { } ) . reduce ( ( formData , key ) => { const property = input [ key ] ; formData . append ( key , property instanceof Blob ? property : typeof property === "object" && property !== null ? JSON . stringify ( property ) : `${ property }` ) ; return formData ; } , new FormData ( ) ) ; } } title version termsOfService baseUrl externalDocs export class Api extends HttpClient { constructor ( ) { super ( ... arguments ) ; this . emojis = { description name request emojisList : ( params = { } ) => this . request ( { path : `/emojis` , method : "GET" , format : "json" , ... params , } ) , } ; this . events = { description name request eventsList : ( params = { } ) => this . request ( { path : `/events` , method : "GET" , format : "json" , ... params , } ) , } ; this . feeds = { description name request feedsList : ( params = { } ) => this . request ( { path : `/feeds` , method : "GET" , format : "json" , ... params , } ) , } ; this . gists = { description name request gistsList : ( query , params = { } ) => this . request ( { path : `/gists` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request gistsCreate : ( body , params = { } ) => this . request ( { path : `/gists` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request publicList : ( query , params = { } ) => this . request ( { path : `/gists/public` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request starredList : ( query , params = { } ) => this . request ( { path : `/gists/starred` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request gistsDelete : ( id , params = { } ) => this . request ( { path : `/gists/${ id }` , method : "DELETE" , ... params , } ) , description name request gistsDetail : ( id , params = { } ) => this . request ( { path : `/gists/${ id }` , method : "GET" , format : "json" , ... params , } ) , description name request gistsPartialUpdate : ( id , body , params = { } ) => this . request ( { path : `/gists/${ id }` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request commentsDetail : ( id , params = { } ) => this . request ( { path : `/gists/${ id }/comments` , method : "GET" , format : "json" , ... params , } ) , description name request commentsCreate : ( id , body , params = { } ) => this . request ( { path : `/gists/${ id }/comments` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request commentsDelete : ( id , commentId , params = { } ) => this . request ( { path : `/gists/${ id }/comments/${ commentId }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate commentsDetail2 : ( id , commentId , params = { } ) => this . request ( { path : `/gists/${ id }/comments/${ commentId }` , method : "GET" , format : "json" , ... params , } ) , description name request commentsPartialUpdate : ( id , commentId , body , params = { } ) => this . request ( { path : `/gists/${ id }/comments/${ commentId }` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request forksCreate : ( id , params = { } ) => this . request ( { path : `/gists/${ id }/forks` , method : "POST" , ... params , } ) , description name request starDelete : ( id , params = { } ) => this . request ( { path : `/gists/${ id }/star` , method : "DELETE" , ... params , } ) , description name request starDetail : ( id , params = { } ) => this . request ( { path : `/gists/${ id }/star` , method : "GET" , ... params , } ) , description name request starUpdate : ( id , params = { } ) => this . request ( { path : `/gists/${ id }/star` , method : "PUT" , ... params , } ) , } ; this . gitignore = { description name request templatesList : ( params = { } ) => this . request ( { path : `/gitignore/templates` , method : "GET" , format : "json" , ... params , } ) , description name request templatesDetail : ( language , params = { } ) => this . request ( { path : `/gitignore/templates/${ language }` , method : "GET" , format : "json" , ... params , } ) , } ; this . issues = { description name request issuesList : ( query , params = { } ) => this . request ( { path : `/issues` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; this . legacy = { description name request deprecated issuesSearchDetail : ( keyword , state , owner , repository , params = { } ) => this . request ( { path : `/legacy/issues/search/${ owner }/${ repository }/${ state }/${ keyword }` , method : "GET" , format : "json" , ... params , } ) , description name request deprecated reposSearchDetail : ( keyword , query , params = { } ) => this . request ( { path : `/legacy/repos/search/${ keyword }` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request deprecated userEmailDetail : ( email , params = { } ) => this . request ( { path : `/legacy/user/email/${ email }` , method : "GET" , format : "json" , ... params , } ) , description name request deprecated userSearchDetail : ( keyword , query , params = { } ) => this . request ( { path : `/legacy/user/search/${ keyword }` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; this . markdown = { description name request markdownCreate : ( body , params = { } ) => this . request ( { path : `/markdown` , method : "POST" , body : body , type : ContentType . Json , ... params , } ) , description name request postMarkdown : ( params = { } ) => this . request ( { path : `/markdown/raw` , method : "POST" , ... params , } ) , } ; this . meta = { description name request metaList : ( params = { } ) => this . request ( { path : `/meta` , method : "GET" , format : "json" , ... params , } ) , } ; this . networks = { description name request eventsDetail : ( owner , repo , params = { } ) => this . request ( { path : `/networks/${ owner }/${ repo }/events` , method : "GET" , format : "json" , ... params , } ) , } ; this . notifications = { description name request notificationsList : ( query , params = { } ) => this . request ( { path : `/notifications` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request notificationsUpdate : ( body , params = { } ) => this . request ( { path : `/notifications` , method : "PUT" , body : body , ... params , } ) , description name request threadsDetail : ( id , params = { } ) => this . request ( { path : `/notifications/threads/${ id }` , method : "GET" , format : "json" , ... params , } ) , description name request threadsPartialUpdate : ( id , params = { } ) => this . request ( { path : `/notifications/threads/${ id }` , method : "PATCH" , ... params , } ) , description name request threadsSubscriptionDelete : ( id , params = { } ) => this . request ( { path : `/notifications/threads/${ id }/subscription` , method : "DELETE" , ... params , } ) , description name request threadsSubscriptionDetail : ( id , params = { } ) => this . request ( { path : `/notifications/threads/${ id }/subscription` , method : "GET" , format : "json" , ... params , } ) , description mentioned name request threadsSubscriptionUpdate : ( id , body , params = { } ) => this . request ( { path : `/notifications/threads/${ id }/subscription` , method : "PUT" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , } ; this . orgs = { description name request orgsDetail : ( org , params = { } ) => this . request ( { path : `/orgs/${ org }` , method : "GET" , format : "json" , ... params , } ) , description name request orgsPartialUpdate : ( org , body , params = { } ) => this . request ( { path : `/orgs/${ org }` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request eventsDetail : ( org , params = { } ) => this . request ( { path : `/orgs/${ org }/events` , method : "GET" , format : "json" , ... params , } ) , description name request issuesDetail : ( org , query , params = { } ) => this . request ( { path : `/orgs/${ org }/issues` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request membersDetail : ( org , params = { } ) => this . request ( { path : `/orgs/${ org }/members` , method : "GET" , format : "json" , ... params , } ) , description name request membersDelete : ( org , username , params = { } ) => this . request ( { path : `/orgs/${ org }/members/${ username }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate membersDetail2 : ( org , username , params = { } ) => this . request ( { path : `/orgs/${ org }/members/${ username }` , method : "GET" , ... params , } ) , description name request publicMembersDetail : ( org , params = { } ) => this . request ( { path : `/orgs/${ org }/public_members` , method : "GET" , format : "json" , ... params , } ) , description name request publicMembersDelete : ( org , username , params = { } ) => this . request ( { path : `/orgs/${ org }/public_members/${ username }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate publicMembersDetail2 : ( org , username , params = { } ) => this . request ( { path : `/orgs/${ org }/public_members/${ username }` , method : "GET" , ... params , } ) , description name request publicMembersUpdate : ( org , username , params = { } ) => this . request ( { path : `/orgs/${ org }/public_members/${ username }` , method : "PUT" , ... params , } ) , description name request reposDetail : ( org , query , params = { } ) => this . request ( { path : `/orgs/${ org }/repos` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request reposCreate : ( org , body , params = { } ) => this . request ( { path : `/orgs/${ org }/repos` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request teamsDetail : ( org , params = { } ) => this . request ( { path : `/orgs/${ org }/teams` , method : "GET" , format : "json" , ... params , } ) , description name request teamsCreate : ( org , body , params = { } ) => this . request ( { path : `/orgs/${ org }/teams` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , } ; this . rateLimit = { description name request rateLimitList : ( params = { } ) => this . request ( { path : `/rate_limit` , method : "GET" , format : "json" , ... params , } ) , } ; this . repos = { description name request reposDelete : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }` , method : "DELETE" , ... params , } ) , description name request reposDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }` , method : "GET" , format : "json" , ... params , } ) , description name request reposPartialUpdate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request assigneesDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/assignees` , method : "GET" , format : "json" , ... params , } ) , description name request originalName duplicate assigneesDetail2 : ( owner , repo , assignee , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/assignees/${ assignee }` , method : "GET" , ... params , } ) , description name request branchesDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/branches` , method : "GET" , format : "json" , ... params , } ) , description name request originalName duplicate branchesDetail2 : ( owner , repo , branch , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }` , method : "GET" , format : "json" , ... params , } ) , description name request collaboratorsDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/collaborators` , method : "GET" , format : "json" , ... params , } ) , description name request collaboratorsDelete : ( owner , repo , user , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/collaborators/${ user }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate collaboratorsDetail2 : ( owner , repo , user , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/collaborators/${ user }` , method : "GET" , ... params , } ) , description name request collaboratorsUpdate : ( owner , repo , user , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/collaborators/${ user }` , method : "PUT" , ... params , } ) , description name request commentsDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/comments` , method : "GET" , format : "json" , ... params , } ) , description name request commentsDelete : ( owner , repo , commentId , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/comments/${ commentId }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate commentsDetail2 : ( owner , repo , commentId , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/comments/${ commentId }` , method : "GET" , format : "json" , ... params , } ) , description name request commentsPartialUpdate : ( owner , repo , commentId , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/comments/${ commentId }` , method : "PATCH" , body : body , format : "json" , ... params , } ) , description name request commitsDetail : ( owner , repo , query , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/commits` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request commitsStatusDetail : ( owner , repo , ref , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/commits/${ ref }/status` , method : "GET" , format : "json" , ... params , } ) , description name request originalName duplicate commitsDetail2 : ( owner , repo , shaCode , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/commits/${ shaCode }` , method : "GET" , format : "json" , ... params , } ) , description name request commitsCommentsDetail : ( owner , repo , shaCode , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/commits/${ shaCode }/comments` , method : "GET" , format : "json" , ... params , } ) , description name request commitsCommentsCreate : ( owner , repo , shaCode , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/commits/${ shaCode }/comments` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request compareDetail : ( owner , repo , baseId , headId , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/compare/${ baseId }...${ headId }` , method : "GET" , format : "json" , ... params , } ) , description name request contentsDelete : ( owner , repo , path , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/contents/${ path }` , method : "DELETE" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request contentsDetail : ( owner , repo , path , query , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/contents/${ path }` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request contentsUpdate : ( owner , repo , path , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/contents/${ path }` , method : "PUT" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request contributorsDetail : ( owner , repo , query , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/contributors` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request deploymentsDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/deployments` , method : "GET" , format : "json" , ... params , } ) , description name request deploymentsCreate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/deployments` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request deploymentsStatusesDetail : ( owner , repo , id , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/deployments/${ id }/statuses` , method : "GET" , format : "json" , ... params , } ) , description name request deploymentsStatusesCreate : ( owner , repo , id , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/deployments/${ id }/statuses` , method : "POST" , body : body , type : ContentType . Json , ... params , } ) , description name request deprecated downloadsDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/downloads` , method : "GET" , format : "json" , ... params , } ) , description name request deprecated downloadsDelete : ( owner , repo , downloadId , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/downloads/${ downloadId }` , method : "DELETE" , ... params , } ) , description name request deprecated originalName duplicate downloadsDetail2 : ( owner , repo , downloadId , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/downloads/${ downloadId }` , method : "GET" , format : "json" , ... params , } ) , description name request eventsDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/events` , method : "GET" , format : "json" , ... params , } ) , description name request forksDetail : ( owner , repo , query , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/forks` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request forksCreate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/forks` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request gitBlobsCreate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/git/blobs` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request gitBlobsDetail : ( owner , repo , shaCode , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/git/blobs/${ shaCode }` , method : "GET" , format : "json" , ... params , } ) , description name request gitCommitsCreate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/git/commits` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request gitCommitsDetail : ( owner , repo , shaCode , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/git/commits/${ shaCode }` , method : "GET" , format : "json" , ... params , } ) , description name request gitRefsDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/git/refs` , method : "GET" , format : "json" , ... params , } ) , description name request gitRefsCreate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/git/refs` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request gitRefsDelete : ( owner , repo , ref , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/git/refs/${ ref }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate gitRefsDetail2 : ( owner , repo , ref , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/git/refs/${ ref }` , method : "GET" , format : "json" , ... params , } ) , description name request gitRefsPartialUpdate : ( owner , repo , ref , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/git/refs/${ ref }` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request gitTagsCreate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/git/tags` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request gitTagsDetail : ( owner , repo , shaCode , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/git/tags/${ shaCode }` , method : "GET" , format : "json" , ... params , } ) , description name request gitTreesCreate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/git/trees` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request gitTreesDetail : ( owner , repo , shaCode , query , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/git/trees/${ shaCode }` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request hooksDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/hooks` , method : "GET" , format : "json" , ... params , } ) , description name request hooksCreate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/hooks` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request hooksDelete : ( owner , repo , hookId , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/hooks/${ hookId }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate hooksDetail2 : ( owner , repo , hookId , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/hooks/${ hookId }` , method : "GET" , format : "json" , ... params , } ) , description name request hooksPartialUpdate : ( owner , repo , hookId , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/hooks/${ hookId }` , method : "PATCH" , body : body , format : "json" , ... params , } ) , description name request hooksTestsCreate : ( owner , repo , hookId , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/hooks/${ hookId }/tests` , method : "POST" , ... params , } ) , description name request issuesDetail : ( owner , repo , query , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request issuesCreate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request issuesCommentsDetail : ( owner , repo , query , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues/comments` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request issuesCommentsDelete : ( owner , repo , commentId , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues/comments/${ commentId }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate issuesCommentsDetail2 : ( owner , repo , commentId , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues/comments/${ commentId }` , method : "GET" , format : "json" , ... params , } ) , description name request issuesCommentsPartialUpdate : ( owner , repo , commentId , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues/comments/${ commentId }` , method : "PATCH" , body : body , format : "json" , ... params , } ) , description name request issuesEventsDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues/events` , method : "GET" , format : "json" , ... params , } ) , description name request originalName duplicate issuesEventsDetail2 : ( owner , repo , eventId , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues/events/${ eventId }` , method : "GET" , format : "json" , ... params , } ) , description name request originalName duplicate issuesDetail2 : ( owner , repo , number , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues/${ number }` , method : "GET" , format : "json" , ... params , } ) , description name request issuesPartialUpdate : ( owner , repo , number , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues/${ number }` , method : "PATCH" , body : body , format : "json" , ... params , } ) , description name request originalName duplicate issuesCommentsDetail3 : ( owner , repo , number , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues/${ number }/comments` , method : "GET" , format : "json" , ... params , } ) , description name request issuesCommentsCreate : ( owner , repo , number , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues/${ number }/comments` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request originalName duplicate issuesEventsDetail3 : ( owner , repo , number , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues/${ number }/events` , method : "GET" , format : "json" , ... params , } ) , description name request issuesLabelsDelete : ( owner , repo , number , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues/${ number }/labels` , method : "DELETE" , ... params , } ) , description name request issuesLabelsDetail : ( owner , repo , number , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues/${ number }/labels` , method : "GET" , format : "json" , ... params , } ) , description name request issuesLabelsCreate : ( owner , repo , number , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues/${ number }/labels` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request issuesLabelsUpdate : ( owner , repo , number , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues/${ number }/labels` , method : "PUT" , body : body , format : "json" , ... params , } ) , description name request originalName duplicate issuesLabelsDelete2 : ( owner , repo , number , name , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/issues/${ number }/labels/${ name }` , method : "DELETE" , ... params , } ) , description name request keysDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/keys` , method : "GET" , format : "json" , ... params , } ) , description name request keysCreate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/keys` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request keysDelete : ( owner , repo , keyId , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/keys/${ keyId }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate keysDetail2 : ( owner , repo , keyId , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/keys/${ keyId }` , method : "GET" , format : "json" , ... params , } ) , description name request labelsDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/labels` , method : "GET" , format : "json" , ... params , } ) , description name request labelsCreate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/labels` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request labelsDelete : ( owner , repo , name , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/labels/${ name }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate labelsDetail2 : ( owner , repo , name , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/labels/${ name }` , method : "GET" , format : "json" , ... params , } ) , description name request labelsPartialUpdate : ( owner , repo , name , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/labels/${ name }` , method : "PATCH" , body : body , format : "json" , ... params , } ) , description name request languagesDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/languages` , method : "GET" , format : "json" , ... params , } ) , description name request mergesCreate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/merges` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request milestonesDetail : ( owner , repo , query , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/milestones` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request milestonesCreate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/milestones` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request milestonesDelete : ( owner , repo , number , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/milestones/${ number }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate milestonesDetail2 : ( owner , repo , number , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/milestones/${ number }` , method : "GET" , format : "json" , ... params , } ) , description name request milestonesPartialUpdate : ( owner , repo , number , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/milestones/${ number }` , method : "PATCH" , body : body , format : "json" , ... params , } ) , description name request milestonesLabelsDetail : ( owner , repo , number , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/milestones/${ number }/labels` , method : "GET" , format : "json" , ... params , } ) , description name request notificationsDetail : ( owner , repo , query , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/notifications` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request notificationsUpdate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/notifications` , method : "PUT" , body : body , ... params , } ) , description name request pullsDetail : ( owner , repo , query , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/pulls` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request pullsCreate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/pulls` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request pullsCommentsDetail : ( owner , repo , query , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/pulls/comments` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request pullsCommentsDelete : ( owner , repo , commentId , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/pulls/comments/${ commentId }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate pullsCommentsDetail2 : ( owner , repo , commentId , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/pulls/comments/${ commentId }` , method : "GET" , format : "json" , ... params , } ) , description name request pullsCommentsPartialUpdate : ( owner , repo , commentId , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/pulls/comments/${ commentId }` , method : "PATCH" , body : body , format : "json" , ... params , } ) , description name request originalName duplicate pullsDetail2 : ( owner , repo , number , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/pulls/${ number }` , method : "GET" , format : "json" , ... params , } ) , description name request pullsPartialUpdate : ( owner , repo , number , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/pulls/${ number }` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request originalName duplicate pullsCommentsDetail3 : ( owner , repo , number , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/pulls/${ number }/comments` , method : "GET" , format : "json" , ... params , } ) , description name request pullsCommentsCreate : ( owner , repo , number , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/pulls/${ number }/comments` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request pullsCommitsDetail : ( owner , repo , number , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/pulls/${ number }/commits` , method : "GET" , format : "json" , ... params , } ) , description name request pullsFilesDetail : ( owner , repo , number , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/pulls/${ number }/files` , method : "GET" , format : "json" , ... params , } ) , description name request pullsMergeDetail : ( owner , repo , number , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/pulls/${ number }/merge` , method : "GET" , ... params , } ) , description name request pullsMergeUpdate : ( owner , repo , number , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/pulls/${ number }/merge` , method : "PUT" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request readmeDetail : ( owner , repo , query , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/readme` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request releasesDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/releases` , method : "GET" , format : "json" , ... params , } ) , description name request releasesCreate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/releases` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request releasesAssetsDelete : ( owner , repo , id , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/releases/assets/${ id }` , method : "DELETE" , ... params , } ) , description name request releasesAssetsDetail : ( owner , repo , id , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/releases/assets/${ id }` , method : "GET" , format : "json" , ... params , } ) , description name request releasesAssetsPartialUpdate : ( owner , repo , id , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/releases/assets/${ id }` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request releasesDelete : ( owner , repo , id , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/releases/${ id }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate releasesDetail2 : ( owner , repo , id , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/releases/${ id }` , method : "GET" , format : "json" , ... params , } ) , description name request releasesPartialUpdate : ( owner , repo , id , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/releases/${ id }` , method : "PATCH" , body : body , format : "json" , ... params , } ) , description name request originalName duplicate releasesAssetsDetail2 : ( owner , repo , id , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/releases/${ id }/assets` , method : "GET" , format : "json" , ... params , } ) , description name request stargazersDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/stargazers` , method : "GET" , format : "json" , ... params , } ) , description name request statsCodeFrequencyDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/stats/code_frequency` , method : "GET" , format : "json" , ... params , } ) , description name request statsCommitActivityDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/stats/commit_activity` , method : "GET" , format : "json" , ... params , } ) , description name request statsContributorsDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/stats/contributors` , method : "GET" , format : "json" , ... params , } ) , description name request statsParticipationDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/stats/participation` , method : "GET" , format : "json" , ... params , } ) , description name request statsPunchCardDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/stats/punch_card` , method : "GET" , format : "json" , ... params , } ) , description name request statusesDetail : ( owner , repo , ref , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/statuses/${ ref }` , method : "GET" , format : "json" , ... params , } ) , description name request statusesCreate : ( owner , repo , ref , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/statuses/${ ref }` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request subscribersDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/subscribers` , method : "GET" , format : "json" , ... params , } ) , description name request subscriptionDelete : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/subscription` , method : "DELETE" , ... params , } ) , description name request subscriptionDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/subscription` , method : "GET" , format : "json" , ... params , } ) , description name request subscriptionUpdate : ( owner , repo , body , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/subscription` , method : "PUT" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request tagsDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/tags` , method : "GET" , format : "json" , ... params , } ) , description name request teamsDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/teams` , method : "GET" , format : "json" , ... params , } ) , description name request watchersDetail : ( owner , repo , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/watchers` , method : "GET" , format : "json" , ... params , } ) , description name request originalName duplicate reposDetail2 : ( owner , repo , archiveFormat , path , params = { } ) => this . request ( { path : `/repos/${ owner }/${ repo }/${ archiveFormat }/${ path }` , method : "GET" , ... params , } ) , } ; this . repositories = { description name request repositoriesList : ( query , params = { } ) => this . request ( { path : `/repositories` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; this . search = { description name request codeList : ( query , params = { } ) => this . request ( { path : `/search/code` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request issuesList : ( query , params = { } ) => this . request ( { path : `/search/issues` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request repositoriesList : ( query , params = { } ) => this . request ( { path : `/search/repositories` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request usersList : ( query , params = { } ) => this . request ( { path : `/search/users` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; this . teams = { description name request teamsDelete : ( teamId , params = { } ) => this . request ( { path : `/teams/${ teamId }` , method : "DELETE" , ... params , } ) , description name request teamsDetail : ( teamId , params = { } ) => this . request ( { path : `/teams/${ teamId }` , method : "GET" , format : "json" , ... params , } ) , description name request teamsPartialUpdate : ( teamId , body , params = { } ) => this . request ( { path : `/teams/${ teamId }` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request membersDetail : ( teamId , params = { } ) => this . request ( { path : `/teams/${ teamId }/members` , method : "GET" , format : "json" , ... params , } ) , description name request deprecated membersDelete : ( teamId , username , params = { } ) => this . request ( { path : `/teams/${ teamId }/members/${ username }` , method : "DELETE" , ... params , } ) , description name request deprecated originalName duplicate membersDetail2 : ( teamId , username , params = { } ) => this . request ( { path : `/teams/${ teamId }/members/${ username }` , method : "GET" , ... params , } ) , description name request deprecated membersUpdate : ( teamId , username , params = { } ) => this . request ( { path : `/teams/${ teamId }/members/${ username }` , method : "PUT" , ... params , } ) , description name request membershipsDelete : ( teamId , username , params = { } ) => this . request ( { path : `/teams/${ teamId }/memberships/${ username }` , method : "DELETE" , ... params , } ) , description name request membershipsDetail : ( teamId , username , params = { } ) => this . request ( { path : `/teams/${ teamId }/memberships/${ username }` , method : "GET" , format : "json" , ... params , } ) , description name request membershipsUpdate : ( teamId , username , params = { } ) => this . request ( { path : `/teams/${ teamId }/memberships/${ username }` , method : "PUT" , format : "json" , ... params , } ) , description name request reposDetail : ( teamId , params = { } ) => this . request ( { path : `/teams/${ teamId }/repos` , method : "GET" , format : "json" , ... params , } ) , description name request reposDelete : ( teamId , owner , repo , params = { } ) => this . request ( { path : `/teams/${ teamId }/repos/${ owner }/${ repo }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate reposDetail2 : ( teamId , owner , repo , params = { } ) => this . request ( { path : `/teams/${ teamId }/repos/${ owner }/${ repo }` , method : "GET" , ... params , } ) , description name request reposUpdate : ( teamId , owner , repo , params = { } ) => this . request ( { path : `/teams/${ teamId }/repos/${ owner }/${ repo }` , method : "PUT" , ... params , } ) , } ; this . user = { description name request userList : ( params = { } ) => this . request ( { path : `/user` , method : "GET" , format : "json" , ... params , } ) , description name request userPartialUpdate : ( body , params = { } ) => this . request ( { path : `/user` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request emailsDelete : ( body , params = { } ) => this . request ( { path : `/user/emails` , method : "DELETE" , body : body , type : ContentType . Json , ... params , } ) , description name request emailsList : ( params = { } ) => this . request ( { path : `/user/emails` , method : "GET" , ... params , } ) , description name request emailsCreate : ( body , params = { } ) => this . request ( { path : `/user/emails` , method : "POST" , body : body , ... params , } ) , description name request followersList : ( params = { } ) => this . request ( { path : `/user/followers` , method : "GET" , format : "json" , ... params , } ) , description name request followingList : ( params = { } ) => this . request ( { path : `/user/following` , method : "GET" , format : "json" , ... params , } ) , description name request followingDelete : ( username , params = { } ) => this . request ( { path : `/user/following/${ username }` , method : "DELETE" , ... params , } ) , description name request followingDetail : ( username , params = { } ) => this . request ( { path : `/user/following/${ username }` , method : "GET" , ... params , } ) , description name request followingUpdate : ( username , params = { } ) => this . request ( { path : `/user/following/${ username }` , method : "PUT" , ... params , } ) , description name request issuesList : ( query , params = { } ) => this . request ( { path : `/user/issues` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request keysList : ( params = { } ) => this . request ( { path : `/user/keys` , method : "GET" , format : "json" , ... params , } ) , description name request keysCreate : ( body , params = { } ) => this . request ( { path : `/user/keys` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request keysDelete : ( keyId , params = { } ) => this . request ( { path : `/user/keys/${ keyId }` , method : "DELETE" , ... params , } ) , description name request keysDetail : ( keyId , params = { } ) => this . request ( { path : `/user/keys/${ keyId }` , method : "GET" , format : "json" , ... params , } ) , description name request orgsList : ( params = { } ) => this . request ( { path : `/user/orgs` , method : "GET" , format : "json" , ... params , } ) , description name request reposList : ( query , params = { } ) => this . request ( { path : `/user/repos` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request reposCreate : ( body , params = { } ) => this . request ( { path : `/user/repos` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request starredList : ( query , params = { } ) => this . request ( { path : `/user/starred` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request starredDelete : ( owner , repo , params = { } ) => this . request ( { path : `/user/starred/${ owner }/${ repo }` , method : "DELETE" , ... params , } ) , description name request starredDetail : ( owner , repo , params = { } ) => this . request ( { path : `/user/starred/${ owner }/${ repo }` , method : "GET" , ... params , } ) , description name request starredUpdate : ( owner , repo , params = { } ) => this . request ( { path : `/user/starred/${ owner }/${ repo }` , method : "PUT" , ... params , } ) , description name request subscriptionsList : ( params = { } ) => this . request ( { path : `/user/subscriptions` , method : "GET" , format : "json" , ... params , } ) , description name request deprecated subscriptionsDelete : ( owner , repo , params = { } ) => this . request ( { path : `/user/subscriptions/${ owner }/${ repo }` , method : "DELETE" , ... params , } ) , description name request deprecated subscriptionsDetail : ( owner , repo , params = { } ) => this . request ( { path : `/user/subscriptions/${ owner }/${ repo }` , method : "GET" , ... params , } ) , description name request deprecated subscriptionsUpdate : ( owner , repo , params = { } ) => this . request ( { path : `/user/subscriptions/${ owner }/${ repo }` , method : "PUT" , ... params , } ) , description name request teamsList : ( params = { } ) => this . request ( { path : `/user/teams` , method : "GET" , format : "json" , ... params , } ) , } ; this . users = { description name request usersList : ( query , params = { } ) => this . request ( { path : `/users` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request usersDetail : ( username , params = { } ) => this . request ( { path : `/users/${ username }` , method : "GET" , format : "json" , ... params , } ) , description name request eventsDetail : ( username , params = { } ) => this . request ( { path : `/users/${ username }/events` , method : "GET" , ... params , } ) , description name request eventsOrgsDetail : ( username , org , params = { } ) => this . request ( { path : `/users/${ username }/events/orgs/${ org }` , method : "GET" , ... params , } ) , description name request followersDetail : ( username , params = { } ) => this . request ( { path : `/users/${ username }/followers` , method : "GET" , format : "json" , ... params , } ) , description name request followingDetail : ( username , targetUser , params = { } ) => this . request ( { path : `/users/${ username }/following/${ targetUser }` , method : "GET" , ... params , } ) , description name request gistsDetail : ( username , query , params = { } ) => this . request ( { path : `/users/${ username }/gists` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request keysDetail : ( username , params = { } ) => this . request ( { path : `/users/${ username }/keys` , method : "GET" , format : "json" , ... params , } ) , description name request orgsDetail : ( username , params = { } ) => this . request ( { path : `/users/${ username }/orgs` , method : "GET" , format : "json" , ... params , } ) , description name request receivedEventsDetail : ( username , params = { } ) => this . request ( { path : `/users/${ username }/received_events` , method : "GET" , ... params , } ) , description name request receivedEventsPublicDetail : ( username , params = { } ) => this . request ( { path : `/users/${ username }/received_events/public` , method : "GET" , ... params , } ) , description name request reposDetail : ( username , query , params = { } ) => this . request ( { path : `/users/${ username }/repos` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request starredDetail : ( username , params = { } ) => this . request ( { path : `/users/${ username }/starred` , method : "GET" , ... params , } ) , description name request subscriptionsDetail : ( username , params = { } ) => this . request ( { path : `/users/${ username }/subscriptions` , method : "GET" , ... params , } ) , } ; } }