UNPKG

123 kBTypeScriptView Raw
1/**
2 * This declaration file requires TypeScript 2.1 or above.
3 */
4
5import * as http from 'http'
6
7declare namespace Github {
8 type json = any
9 type date = string
10
11 export interface AnyResponse {
12 /** This is the data you would see in https://developer.github.com/v3/ */
13 data: any
14
15 /** Request metadata */
16 meta:{
17 'x-ratelimit-limit': string,
18 'x-ratelimit-remaining': string,
19 'x-ratelimit-reset': string,
20 'x-github-request-id': string,
21 'x-github-media-type': string,
22 link: string,
23 'last-modified': string,
24 etag: string,
25 status: string
26 }
27
28 [Symbol.iterator](): Iterator<any>
29 }
30
31 export interface EmptyParams {
32 }
33
34 export interface Options {
35 timeout?: number;
36 host?: string;
37 pathPrefix?: string;
38 protocol?: string;
39 port?: number;
40 proxy?: string;
41 ca?: string;
42 headers?: {[header: string]: any};
43 requestMedia?: string;
44 rejectUnauthorized?: boolean;
45 family?: number;
46 agent: http.Agent;
47 }
48
49 export interface AuthBasic {
50 type: "basic";
51 username: string;
52 password: string;
53 }
54
55 export interface AuthOAuthToken {
56 type: "oauth";
57 token: string;
58 }
59
60 export interface AuthOAuthSecret {
61 type: "oauth";
62 key: string;
63 secret: string;
64 }
65
66 export interface AuthUserToken {
67 type: "token";
68 token: string;
69 }
70
71 export interface AuthJWT {
72 type: "integration";
73 token: string;
74 }
75
76 export type Auth =
77 | AuthBasic
78 | AuthOAuthToken
79 | AuthOAuthSecret
80 | AuthUserToken
81 | AuthJWT;
82
83 export type Link =
84 | { link: string; }
85 | { meta: { link: string; }; }
86 | string;
87
88 export interface Callback {
89 (error: Error | null, result: any): any;
90 }
91
92
93 export type AuthorizationGetParams =
94 & {
95 id: string;
96 };
97 export type AuthorizationCreateParams =
98 & {
99 scopes?: string[];
100 note?: string;
101 note_url?: string;
102 client_id?: string;
103 client_secret?: string;
104 fingerprint?: string;
105 };
106 export type AuthorizationUpdateParams =
107 & {
108 id: string;
109 scopes?: string[];
110 add_scopes?: string[];
111 remove_scopes?: string[];
112 note?: string;
113 note_url?: string;
114 fingerprint?: string;
115 };
116 export type AuthorizationDeleteParams =
117 & {
118 id: string;
119 };
120 export type AuthorizationCheckParams =
121 & {
122 client_id?: string;
123 access_token: string;
124 };
125 export type AuthorizationResetParams =
126 & {
127 client_id?: string;
128 access_token: string;
129 };
130 export type AuthorizationRevokeParams =
131 & {
132 client_id?: string;
133 access_token: string;
134 };
135 export type AuthorizationGetGrantsParams =
136 & {
137 page?: number;
138 per_page?: number;
139 };
140 export type AuthorizationGetGrantParams =
141 & {
142 id: string;
143 page?: number;
144 per_page?: number;
145 };
146 export type AuthorizationDeleteGrantParams =
147 & {
148 id: string;
149 };
150 export type AuthorizationGetAllParams =
151 & {
152 page?: number;
153 per_page?: number;
154 };
155 export type AuthorizationGetOrCreateAuthorizationForAppParams =
156 & {
157 client_id?: string;
158 client_secret: string;
159 scopes?: string[];
160 note?: string;
161 note_url?: string;
162 fingerprint?: string;
163 };
164 export type AuthorizationGetOrCreateAuthorizationForAppAndFingerprintParams =
165 & {
166 client_id?: string;
167 fingerprint?: string;
168 client_secret: string;
169 scopes?: string[];
170 note?: string;
171 note_url?: string;
172 };
173 export type AuthorizationRevokeGrantParams =
174 & {
175 client_id?: string;
176 access_token: string;
177 };
178 export type ActivityGetEventsParams =
179 & {
180 page?: number;
181 per_page?: number;
182 };
183 export type ActivityGetEventsForRepoParams =
184 & {
185 owner: string;
186 repo: string;
187 page?: number;
188 per_page?: number;
189 };
190 export type ActivityGetEventsForRepoIssuesParams =
191 & {
192 owner: string;
193 repo: string;
194 page?: number;
195 per_page?: number;
196 };
197 export type ActivityGetEventsForRepoNetworkParams =
198 & {
199 owner: string;
200 repo: string;
201 page?: number;
202 per_page?: number;
203 };
204 export type ActivityGetEventsForOrgParams =
205 & {
206 org: string;
207 page?: number;
208 per_page?: number;
209 };
210 export type ActivityGetEventsReceivedParams =
211 & {
212 username: string;
213 page?: number;
214 per_page?: number;
215 };
216 export type ActivityGetEventsReceivedPublicParams =
217 & {
218 username: string;
219 page?: number;
220 per_page?: number;
221 };
222 export type ActivityGetEventsForUserParams =
223 & {
224 username: string;
225 page?: number;
226 per_page?: number;
227 };
228 export type ActivityGetEventsForUserPublicParams =
229 & {
230 username: string;
231 page?: number;
232 per_page?: number;
233 };
234 export type ActivityGetEventsForUserOrgParams =
235 & {
236 username: string;
237 org: string;
238 page?: number;
239 per_page?: number;
240 };
241 export type ActivityGetNotificationsParams =
242 & {
243 all?: boolean;
244 participating?: boolean;
245 since?: date;
246 before?: string;
247 };
248 export type ActivityGetNotificationsForUserParams =
249 & {
250 owner: string;
251 repo: string;
252 all?: boolean;
253 participating?: boolean;
254 since?: date;
255 before?: string;
256 };
257 export type ActivityMarkNotificationsAsReadParams =
258 & {
259 last_read_at?: string;
260 };
261 export type ActivityMarkNotificationsAsReadForRepoParams =
262 & {
263 owner: string;
264 repo: string;
265 last_read_at?: string;
266 };
267 export type ActivityGetNotificationThreadParams =
268 & {
269 id: string;
270 };
271 export type ActivityMarkNotificationThreadAsReadParams =
272 & {
273 id: string;
274 };
275 export type ActivityCheckNotificationThreadSubscriptionParams =
276 & {
277 id: string;
278 };
279 export type ActivitySetNotificationThreadSubscriptionParams =
280 & {
281 id: string;
282 subscribed?: boolean;
283 ignored?: boolean;
284 };
285 export type ActivityDeleteNotificationThreadSubscriptionParams =
286 & {
287 id: string;
288 };
289 export type ActivityGetStargazersForRepoParams =
290 & {
291 owner: string;
292 repo: string;
293 page?: number;
294 per_page?: number;
295 };
296 export type ActivityGetStarredReposForUserParams =
297 & {
298 username: string;
299 sort?: "created"|"updated";
300 direction?: "asc"|"desc";
301 page?: number;
302 per_page?: number;
303 };
304 export type ActivityGetStarredReposParams =
305 & {
306 sort?: "created"|"updated";
307 direction?: "asc"|"desc";
308 page?: number;
309 per_page?: number;
310 };
311 export type ActivityCheckStarringRepoParams =
312 & {
313 owner: string;
314 repo: string;
315 page?: number;
316 per_page?: number;
317 };
318 export type ActivityStarRepoParams =
319 & {
320 owner: string;
321 repo: string;
322 };
323 export type ActivityUnstarRepoParams =
324 & {
325 owner: string;
326 repo: string;
327 };
328 export type ActivityGetWatchersForRepoParams =
329 & {
330 owner: string;
331 repo: string;
332 page?: number;
333 per_page?: number;
334 };
335 export type ActivityGetWatchedReposForUserParams =
336 & {
337 username: string;
338 page?: number;
339 per_page?: number;
340 };
341 export type ActivityGetWatchedReposParams =
342 & {
343 page?: number;
344 per_page?: number;
345 };
346 export type ActivityGetRepoSubscriptionParams =
347 & {
348 owner: string;
349 repo: string;
350 page?: number;
351 per_page?: number;
352 };
353 export type ActivitySetRepoSubscriptionParams =
354 & {
355 owner: string;
356 repo: string;
357 subscribed?: boolean;
358 ignored?: boolean;
359 };
360 export type ActivityUnwatchRepoParams =
361 & {
362 owner: string;
363 repo: string;
364 };
365 export type GistsGetParams =
366 & {
367 id: string;
368 };
369 export type GistsCreateParams =
370 & {
371 files: json;
372 description?: string;
373 public: boolean;
374 };
375 export type GistsEditParams =
376 & {
377 id: string;
378 description?: string;
379 files: json;
380 content?: string;
381 filename?: string;
382 };
383 export type GistsStarParams =
384 & {
385 id: string;
386 };
387 export type GistsUnstarParams =
388 & {
389 id: string;
390 };
391 export type GistsForkParams =
392 & {
393 id: string;
394 };
395 export type GistsDeleteParams =
396 & {
397 id: string;
398 };
399 export type GistsGetForUserParams =
400 & {
401 username: string;
402 since?: date;
403 page?: number;
404 per_page?: number;
405 };
406 export type GistsGetAllParams =
407 & {
408 since?: date;
409 page?: number;
410 per_page?: number;
411 };
412 export type GistsGetPublicParams =
413 & {
414 since?: date;
415 };
416 export type GistsGetStarredParams =
417 & {
418 since?: date;
419 };
420 export type GistsGetRevisionParams =
421 & {
422 id: string;
423 sha: string;
424 };
425 export type GistsGetCommitsParams =
426 & {
427 id: string;
428 };
429 export type GistsCheckStarParams =
430 & {
431 id: string;
432 };
433 export type GistsGetForksParams =
434 & {
435 id: string;
436 page?: number;
437 per_page?: number;
438 };
439 export type GistsGetCommentsParams =
440 & {
441 gist_id: string;
442 };
443 export type GistsGetCommentParams =
444 & {
445 gist_id: string;
446 id: string;
447 };
448 export type GistsCreateCommentParams =
449 & {
450 gist_id: string;
451 body: string;
452 };
453 export type GistsEditCommentParams =
454 & {
455 gist_id: string;
456 id: string;
457 body: string;
458 };
459 export type GistsDeleteCommentParams =
460 & {
461 gist_id: string;
462 id: string;
463 };
464 export type GitdataGetBlobParams =
465 & {
466 owner: string;
467 repo: string;
468 sha: string;
469 page?: number;
470 per_page?: number;
471 };
472 export type GitdataCreateBlobParams =
473 & {
474 owner: string;
475 repo: string;
476 content: string;
477 encoding: string;
478 };
479 export type GitdataGetCommitParams =
480 & {
481 owner: string;
482 repo: string;
483 sha: string;
484 };
485 export type GitdataCreateCommitParams =
486 & {
487 owner: string;
488 repo: string;
489 message: string;
490 tree: string;
491 parents: string[];
492 author?: json;
493 committer?: json;
494 };
495 export type GitdataGetCommitSignatureVerificationParams =
496 & {
497 owner: string;
498 repo: string;
499 sha: string;
500 };
501 export type GitdataGetReferenceParams =
502 & {
503 owner: string;
504 repo: string;
505 ref: string;
506 };
507 export type GitdataGetReferencesParams =
508 & {
509 owner: string;
510 repo: string;
511 page?: number;
512 per_page?: number;
513 };
514 export type GitdataGetTagsParams =
515 & {
516 owner: string;
517 repo: string;
518 page?: number;
519 per_page?: number;
520 };
521 export type GitdataCreateReferenceParams =
522 & {
523 owner: string;
524 repo: string;
525 ref: string;
526 sha: string;
527 };
528 export type GitdataUpdateReferenceParams =
529 & {
530 owner: string;
531 repo: string;
532 ref: string;
533 sha: string;
534 force?: boolean;
535 };
536 export type GitdataDeleteReferenceParams =
537 & {
538 owner: string;
539 repo: string;
540 ref: string;
541 };
542 export type GitdataGetTagParams =
543 & {
544 owner: string;
545 repo: string;
546 sha: string;
547 };
548 export type GitdataCreateTagParams =
549 & {
550 owner: string;
551 repo: string;
552 tag: string;
553 message: string;
554 object: string;
555 type: string;
556 tagger: json;
557 };
558 export type GitdataGetTagSignatureVerificationParams =
559 & {
560 owner: string;
561 repo: string;
562 sha: string;
563 };
564 export type GitdataGetTreeParams =
565 & {
566 owner: string;
567 repo: string;
568 sha: string;
569 recursive?: boolean;
570 };
571 export type GitdataCreateTreeParams =
572 & {
573 owner: string;
574 repo: string;
575 tree: json;
576 base_tree?: string;
577 };
578 export type IntegrationsGetInstallationsParams =
579 & {
580 page?: number;
581 per_page?: number;
582 };
583 export type IntegrationsCreateInstallationTokenParams =
584 & {
585 installation_id: string;
586 user_id?: string;
587 };
588 export type IntegrationsGetInstallationRepositoriesParams =
589 & {
590 user_id?: string;
591 };
592 export type IntegrationsAddRepoToInstallationParams =
593 & {
594 installation_id: string;
595 repository_id: string;
596 };
597 export type IntegrationsRemoveRepoFromInstallationParams =
598 & {
599 installation_id: string;
600 repository_id: string;
601 };
602 export type AppsGetForSlugParams =
603 & {
604 app_slug: string;
605 };
606 export type AppsGetInstallationsParams =
607 & {
608 page?: number;
609 per_page?: number;
610 };
611 export type AppsGetInstallationParams =
612 & {
613 installation_id: string;
614 };
615 export type AppsCreateInstallationTokenParams =
616 & {
617 installation_id: string;
618 user_id?: string;
619 };
620 export type AppsGetInstallationRepositoriesParams =
621 & {
622 user_id?: string;
623 };
624 export type AppsAddRepoToInstallationParams =
625 & {
626 installation_id: string;
627 repository_id: string;
628 };
629 export type AppsRemoveRepoFromInstallationParams =
630 & {
631 installation_id: string;
632 repository_id: string;
633 };
634 export type AppsGetMarketplaceListingPlansParams =
635 & {
636 page?: number;
637 per_page?: number;
638 };
639 export type AppsGetMarketplaceListingStubbedPlansParams =
640 & {
641 page?: number;
642 per_page?: number;
643 };
644 export type AppsGetMarketplaceListingPlanAccountsParams =
645 & {
646 id: string;
647 page?: number;
648 per_page?: number;
649 };
650 export type AppsGetMarketplaceListingStubbedPlanAccountsParams =
651 & {
652 id: string;
653 page?: number;
654 per_page?: number;
655 };
656 export type AppsCheckMarketplaceListingAccountParams =
657 & {
658 id: string;
659 };
660 export type AppsCheckMarketplaceListingStubbedAccountParams =
661 & {
662 id: string;
663 };
664 export type IssuesGetParams =
665 & {
666 owner: string;
667 repo: string;
668 number: number;
669 };
670 export type IssuesCreateParams =
671 & {
672 owner: string;
673 repo: string;
674 title: string;
675 body?: string;
676 assignee?: string;
677 milestone?: number;
678 labels?: string[];
679 assignees?: string[];
680 };
681 export type IssuesEditParams =
682 & {
683 owner: string;
684 repo: string;
685 number: number;
686 title?: string;
687 body?: string;
688 assignee?: string;
689 state?: "open"|"closed";
690 milestone?: number;
691 labels?: string[];
692 assignees?: string[];
693 };
694 export type IssuesLockParams =
695 & {
696 owner: string;
697 repo: string;
698 number: number;
699 };
700 export type IssuesUnlockParams =
701 & {
702 owner: string;
703 repo: string;
704 number: number;
705 };
706 export type IssuesGetAllParams =
707 & {
708 filter?: "all"|"assigned"|"created"|"mentioned"|"subscribed";
709 state?: "open"|"closed"|"all";
710 labels?: string;
711 sort?: "created"|"updated"|"comments";
712 direction?: "asc"|"desc";
713 since?: date;
714 page?: number;
715 per_page?: number;
716 };
717 export type IssuesGetForUserParams =
718 & {
719 filter?: "all"|"assigned"|"created"|"mentioned"|"subscribed";
720 state?: "open"|"closed"|"all";
721 labels?: string;
722 sort?: "created"|"updated"|"comments";
723 direction?: "asc"|"desc";
724 since?: date;
725 page?: number;
726 per_page?: number;
727 };
728 export type IssuesGetForOrgParams =
729 & {
730 org: string;
731 filter?: "all"|"assigned"|"created"|"mentioned"|"subscribed";
732 state?: "open"|"closed"|"all";
733 labels?: string;
734 sort?: "created"|"updated"|"comments";
735 direction?: "asc"|"desc";
736 since?: date;
737 page?: number;
738 per_page?: number;
739 };
740 export type IssuesGetForRepoParams =
741 & {
742 owner: string;
743 repo: string;
744 milestone?: string;
745 state?: "open"|"closed"|"all";
746 assignee?: string;
747 creator?: string;
748 mentioned?: string;
749 labels?: string;
750 sort?: "created"|"updated"|"comments";
751 direction?: "asc"|"desc";
752 since?: date;
753 page?: number;
754 per_page?: number;
755 };
756 export type IssuesGetAssigneesParams =
757 & {
758 owner: string;
759 repo: string;
760 };
761 export type IssuesCheckAssigneeParams =
762 & {
763 owner: string;
764 repo: string;
765 assignee: string;
766 };
767 export type IssuesAddAssigneesToIssueParams =
768 & {
769 owner: string;
770 repo: string;
771 number: number;
772 assignees: string[];
773 };
774 export type IssuesRemoveAssigneesFromIssueParams =
775 & {
776 owner: string;
777 repo: string;
778 number: number;
779 body: json;
780 };
781 export type IssuesGetCommentsParams =
782 & {
783 owner: string;
784 repo: string;
785 number: number;
786 since?: date;
787 page?: number;
788 per_page?: number;
789 };
790 export type IssuesGetCommentsForRepoParams =
791 & {
792 owner: string;
793 repo: string;
794 sort?: "created"|"updated";
795 direction?: "asc"|"desc";
796 since?: date;
797 page?: number;
798 per_page?: number;
799 };
800 export type IssuesGetCommentParams =
801 & {
802 owner: string;
803 repo: string;
804 id: string;
805 };
806 export type IssuesCreateCommentParams =
807 & {
808 owner: string;
809 repo: string;
810 number: number;
811 body: string;
812 };
813 export type IssuesEditCommentParams =
814 & {
815 owner: string;
816 repo: string;
817 id: string;
818 body: string;
819 };
820 export type IssuesDeleteCommentParams =
821 & {
822 owner: string;
823 repo: string;
824 id: string;
825 };
826 export type IssuesGetEventsParams =
827 & {
828 owner: string;
829 repo: string;
830 issue_number: number;
831 page?: number;
832 per_page?: number;
833 };
834 export type IssuesGetEventsForRepoParams =
835 & {
836 owner: string;
837 repo: string;
838 page?: number;
839 per_page?: number;
840 };
841 export type IssuesGetEventParams =
842 & {
843 owner: string;
844 repo: string;
845 id: string;
846 };
847 export type IssuesGetLabelsParams =
848 & {
849 owner: string;
850 repo: string;
851 page?: number;
852 per_page?: number;
853 };
854 export type IssuesGetLabelParams =
855 & {
856 owner: string;
857 repo: string;
858 name: string;
859 };
860 export type IssuesCreateLabelParams =
861 & {
862 owner: string;
863 repo: string;
864 name: string;
865 color: string;
866 };
867 export type IssuesUpdateLabelParams =
868 & {
869 owner: string;
870 repo: string;
871 oldname: string;
872 name: string;
873 color: string;
874 };
875 export type IssuesDeleteLabelParams =
876 & {
877 owner: string;
878 repo: string;
879 name: string;
880 };
881 export type IssuesGetIssueLabelsParams =
882 & {
883 owner: string;
884 repo: string;
885 number: number;
886 };
887 export type IssuesAddLabelsParams =
888 & {
889 owner: string;
890 repo: string;
891 number: number;
892 labels: string[];
893 };
894 export type IssuesRemoveLabelParams =
895 & {
896 owner: string;
897 repo: string;
898 number: number;
899 name: string;
900 };
901 export type IssuesReplaceAllLabelsParams =
902 & {
903 owner: string;
904 repo: string;
905 number: number;
906 labels: string[];
907 };
908 export type IssuesRemoveAllLabelsParams =
909 & {
910 owner: string;
911 repo: string;
912 number: number;
913 };
914 export type IssuesGetMilestoneLabelsParams =
915 & {
916 owner: string;
917 repo: string;
918 number: number;
919 };
920 export type IssuesGetMilestonesParams =
921 & {
922 owner: string;
923 repo: string;
924 state?: "open"|"closed"|"all";
925 sort?: "due_on"|"completeness";
926 direction?: "asc"|"desc";
927 page?: number;
928 per_page?: number;
929 };
930 export type IssuesGetMilestoneParams =
931 & {
932 owner: string;
933 repo: string;
934 number: number;
935 };
936 export type IssuesCreateMilestoneParams =
937 & {
938 owner: string;
939 repo: string;
940 title: string;
941 state?: "open"|"closed"|"all";
942 description?: string;
943 due_on?: date;
944 };
945 export type IssuesUpdateMilestoneParams =
946 & {
947 owner: string;
948 repo: string;
949 number: number;
950 title: string;
951 state?: "open"|"closed"|"all";
952 description?: string;
953 due_on?: date;
954 };
955 export type IssuesDeleteMilestoneParams =
956 & {
957 owner: string;
958 repo: string;
959 number: number;
960 };
961 export type IssuesGetEventsTimelineParams =
962 & {
963 owner: string;
964 repo: string;
965 issue_number: number;
966 page?: number;
967 per_page?: number;
968 };
969 export type MigrationsStartMigrationParams =
970 & {
971 org: string;
972 repositories: string[];
973 lock_repositories?: boolean;
974 exclude_attachments?: boolean;
975 };
976 export type MigrationsGetMigrationsParams =
977 & {
978 org: string;
979 page?: number;
980 per_page?: number;
981 };
982 export type MigrationsGetMigrationStatusParams =
983 & {
984 org: string;
985 id: string;
986 };
987 export type MigrationsGetMigrationArchiveLinkParams =
988 & {
989 org: string;
990 id: string;
991 };
992 export type MigrationsDeleteMigrationArchiveParams =
993 & {
994 org: string;
995 id: string;
996 };
997 export type MigrationsUnlockRepoLockedForMigrationParams =
998 & {
999 org: string;
1000 id: string;
1001 repo_name: string;
1002 };
1003 export type MigrationsStartImportParams =
1004 & {
1005 owner: string;
1006 repo: string;
1007 vcs_url: string;
1008 vcs?: "subversion"|"git"|"mercurial"|"tfvc";
1009 vcs_username?: string;
1010 vcs_password?: string;
1011 tfvc_project?: string;
1012 };
1013 export type MigrationsGetImportProgressParams =
1014 & {
1015 owner: string;
1016 repo: string;
1017 };
1018 export type MigrationsUpdateImportParams =
1019 & {
1020 owner: string;
1021 repo: string;
1022 vcs_username?: string;
1023 vcs_password?: string;
1024 };
1025 export type MigrationsGetImportCommitAuthorsParams =
1026 & {
1027 owner: string;
1028 repo: string;
1029 since?: string;
1030 };
1031 export type MigrationsMapImportCommitAuthorParams =
1032 & {
1033 owner: string;
1034 repo: string;
1035 author_id: string;
1036 email?: string;
1037 name?: string;
1038 };
1039 export type MigrationsSetImportLfsPreferenceParams =
1040 & {
1041 owner: string;
1042 name: string;
1043 use_lfs: string;
1044 };
1045 export type MigrationsGetLargeImportFilesParams =
1046 & {
1047 owner: string;
1048 name: string;
1049 };
1050 export type MigrationsCancelImportParams =
1051 & {
1052 owner: string;
1053 repo: string;
1054 };
1055 export type MiscGetCodeOfConductParams =
1056 & {
1057 key: string;
1058 };
1059 export type MiscGetRepoCodeOfConductParams =
1060 & {
1061 owner: string;
1062 repo: string;
1063 };
1064 export type MiscGetGitignoreTemplateParams =
1065 & {
1066 name: string;
1067 };
1068 export type MiscGetLicenseParams =
1069 & {
1070 license: string;
1071 };
1072 export type MiscGetRepoLicenseParams =
1073 & {
1074 owner: string;
1075 repo: string;
1076 };
1077 export type MiscRenderMarkdownParams =
1078 & {
1079 text: string;
1080 mode?: "markdown"|"gfm";
1081 context?: string;
1082 };
1083 export type MiscRenderMarkdownRawParams =
1084 & {
1085 data: string;
1086 };
1087 export type OrgsGetParams =
1088 & {
1089 org: string;
1090 page?: number;
1091 per_page?: number;
1092 };
1093 export type OrgsUpdateParams =
1094 & {
1095 org: string;
1096 billing_email?: string;
1097 company?: string;
1098 email?: string;
1099 location?: string;
1100 name?: string;
1101 description?: string;
1102 default_repository_permission?: "read"|"write"|"admin"|"none";
1103 members_can_create_repositories?: boolean;
1104 };
1105 export type OrgsGetAllParams =
1106 & {
1107 since?: string;
1108 page?: number;
1109 per_page?: number;
1110 };
1111 export type OrgsGetForUserParams =
1112 & {
1113 username: string;
1114 page?: number;
1115 per_page?: number;
1116 };
1117 export type OrgsGetMembersParams =
1118 & {
1119 org: string;
1120 filter?: "all"|"2fa_disabled";
1121 role?: "all"|"admin"|"member";
1122 page?: number;
1123 per_page?: number;
1124 };
1125 export type OrgsCheckMembershipParams =
1126 & {
1127 org: string;
1128 username: string;
1129 };
1130 export type OrgsRemoveMemberParams =
1131 & {
1132 org: string;
1133 username: string;
1134 };
1135 export type OrgsGetPublicMembersParams =
1136 & {
1137 org: string;
1138 };
1139 export type OrgsCheckPublicMembershipParams =
1140 & {
1141 org: string;
1142 username: string;
1143 };
1144 export type OrgsPublicizeMembershipParams =
1145 & {
1146 org: string;
1147 username: string;
1148 };
1149 export type OrgsConcealMembershipParams =
1150 & {
1151 org: string;
1152 username: string;
1153 };
1154 export type OrgsGetOrgMembershipParams =
1155 & {
1156 org: string;
1157 username: string;
1158 };
1159 export type OrgsAddOrgMembershipParams =
1160 & {
1161 org: string;
1162 username: string;
1163 role: "admin"|"member";
1164 };
1165 export type OrgsRemoveOrgMembershipParams =
1166 & {
1167 org: string;
1168 username: string;
1169 };
1170 export type OrgsGetPendingOrgInvitesParams =
1171 & {
1172 org: string;
1173 };
1174 export type OrgsGetOutsideCollaboratorsParams =
1175 & {
1176 org: string;
1177 filter?: "all"|"2fa_disabled";
1178 page?: number;
1179 per_page?: number;
1180 };
1181 export type OrgsRemoveOutsideCollaboratorParams =
1182 & {
1183 org: string;
1184 username: string;
1185 };
1186 export type OrgsConvertMemberToOutsideCollaboratorParams =
1187 & {
1188 org: string;
1189 username: string;
1190 };
1191 export type OrgsGetTeamsParams =
1192 & {
1193 org: string;
1194 page?: number;
1195 per_page?: number;
1196 };
1197 export type OrgsGetTeamParams =
1198 & {
1199 id: string;
1200 };
1201 export type OrgsCreateTeamParams =
1202 & {
1203 org: string;
1204 name: string;
1205 description?: string;
1206 maintainers?: string[];
1207 repo_names?: string[];
1208 privacy?: "secret"|"closed";
1209 parent_team_id?: string;
1210 };
1211 export type OrgsEditTeamParams =
1212 & {
1213 id: string;
1214 name: string;
1215 description?: string;
1216 privacy?: "secret"|"closed";
1217 parent_team_id?: string;
1218 };
1219 export type OrgsDeleteTeamParams =
1220 & {
1221 id: string;
1222 };
1223 export type OrgsGetTeamMembersParams =
1224 & {
1225 id: string;
1226 role?: "member"|"maintainer"|"all";
1227 page?: number;
1228 per_page?: number;
1229 };
1230 export type OrgsGetChildTeamsParams =
1231 & {
1232 id: string;
1233 page?: number;
1234 per_page?: number;
1235 };
1236 export type OrgsGetTeamMembershipParams =
1237 & {
1238 id: string;
1239 username: string;
1240 };
1241 export type OrgsAddTeamMembershipParams =
1242 & {
1243 id: string;
1244 username: string;
1245 role?: "member"|"maintainer";
1246 };
1247 export type OrgsRemoveTeamMembershipParams =
1248 & {
1249 id: string;
1250 username: string;
1251 };
1252 export type OrgsGetTeamReposParams =
1253 & {
1254 id: string;
1255 page?: number;
1256 per_page?: number;
1257 };
1258 export type OrgsGetPendingTeamInvitesParams =
1259 & {
1260 id: string;
1261 page?: number;
1262 per_page?: number;
1263 };
1264 export type OrgsCheckTeamRepoParams =
1265 & {
1266 id: string;
1267 owner: string;
1268 repo: string;
1269 };
1270 export type OrgsAddTeamRepoParams =
1271 & {
1272 id: string;
1273 org: string;
1274 repo: string;
1275 permission?: "pull"|"push"|"admin";
1276 };
1277 export type OrgsDeleteTeamRepoParams =
1278 & {
1279 id: string;
1280 owner: string;
1281 repo: string;
1282 };
1283 export type OrgsGetHooksParams =
1284 & {
1285 org: string;
1286 page?: number;
1287 per_page?: number;
1288 };
1289 export type OrgsGetHookParams =
1290 & {
1291 org: string;
1292 id: string;
1293 };
1294 export type OrgsCreateHookParams =
1295 & {
1296 org: string;
1297 name: string;
1298 config: json;
1299 events?: string[];
1300 active?: boolean;
1301 };
1302 export type OrgsEditHookParams =
1303 & {
1304 org: string;
1305 id: string;
1306 config: json;
1307 events?: string[];
1308 active?: boolean;
1309 };
1310 export type OrgsPingHookParams =
1311 & {
1312 org: string;
1313 id: string;
1314 };
1315 export type OrgsDeleteHookParams =
1316 & {
1317 org: string;
1318 id: string;
1319 };
1320 export type OrgsGetBlockedUsersParams =
1321 & {
1322 org: string;
1323 page?: number;
1324 per_page?: number;
1325 };
1326 export type OrgsCheckBlockedUserParams =
1327 & {
1328 org: string;
1329 username: string;
1330 };
1331 export type OrgsBlockUserParams =
1332 & {
1333 org: string;
1334 username: string;
1335 };
1336 export type OrgsUnblockUserParams =
1337 & {
1338 org: string;
1339 username: string;
1340 };
1341 export type ProjectsGetRepoProjectsParams =
1342 & {
1343 owner: string;
1344 repo: string;
1345 state?: "open"|"closed"|"all";
1346 };
1347 export type ProjectsGetOrgProjectsParams =
1348 & {
1349 org: string;
1350 state?: "open"|"closed"|"all";
1351 };
1352 export type ProjectsGetProjectParams =
1353 & {
1354 id: string;
1355 };
1356 export type ProjectsCreateRepoProjectParams =
1357 & {
1358 owner: string;
1359 repo: string;
1360 name: string;
1361 body?: string;
1362 };
1363 export type ProjectsCreateOrgProjectParams =
1364 & {
1365 org: string;
1366 name: string;
1367 body?: string;
1368 };
1369 export type ProjectsUpdateProjectParams =
1370 & {
1371 id: string;
1372 name: string;
1373 body?: string;
1374 state?: "open"|"closed"|"all";
1375 };
1376 export type ProjectsDeleteProjectParams =
1377 & {
1378 id: string;
1379 };
1380 export type ProjectsGetProjectCardsParams =
1381 & {
1382 column_id: string;
1383 };
1384 export type ProjectsGetProjectCardParams =
1385 & {
1386 id: string;
1387 };
1388 export type ProjectsCreateProjectCardParams =
1389 & {
1390 column_id: string;
1391 note?: string;
1392 content_id?: string;
1393 content_type?: string;
1394 };
1395 export type ProjectsUpdateProjectCardParams =
1396 & {
1397 id: string;
1398 note?: string;
1399 };
1400 export type ProjectsDeleteProjectCardParams =
1401 & {
1402 id: string;
1403 };
1404 export type ProjectsMoveProjectCardParams =
1405 & {
1406 id: string;
1407 position: string;
1408 column_id?: string;
1409 };
1410 export type ProjectsGetProjectColumnsParams =
1411 & {
1412 project_id: string;
1413 };
1414 export type ProjectsGetProjectColumnParams =
1415 & {
1416 id: string;
1417 };
1418 export type ProjectsCreateProjectColumnParams =
1419 & {
1420 project_id: string;
1421 name: string;
1422 };
1423 export type ProjectsUpdateProjectColumnParams =
1424 & {
1425 id: string;
1426 name: string;
1427 };
1428 export type ProjectsDeleteProjectColumnParams =
1429 & {
1430 id: string;
1431 };
1432 export type ProjectsMoveProjectColumnParams =
1433 & {
1434 id: string;
1435 position: string;
1436 };
1437 export type PullRequestsGetParams =
1438 & {
1439 owner: string;
1440 repo: string;
1441 number: number;
1442 };
1443 export type PullRequestsCreateParams =
1444 & {
1445 owner: string;
1446 repo: string;
1447 head: string;
1448 base: string;
1449 title: string;
1450 body?: string;
1451 maintainer_can_modify?: boolean;
1452 };
1453 export type PullRequestsUpdateParams =
1454 & {
1455 owner: string;
1456 repo: string;
1457 number: number;
1458 title?: string;
1459 body?: string;
1460 state?: "open"|"closed";
1461 base?: string;
1462 maintainer_can_modify?: boolean;
1463 };
1464 export type PullRequestsMergeParams =
1465 & {
1466 owner: string;
1467 repo: string;
1468 number: number;
1469 commit_title?: string;
1470 commit_message?: string;
1471 sha?: string;
1472 merge_method?: "merge"|"squash"|"rebase";
1473 };
1474 export type PullRequestsGetAllParams =
1475 & {
1476 owner: string;
1477 repo: string;
1478 state?: "open"|"closed"|"all";
1479 head?: string;
1480 base?: string;
1481 sort?: "created"|"updated"|"popularity"|"long-running";
1482 direction?: "asc"|"desc";
1483 page?: number;
1484 per_page?: number;
1485 };
1486 export type PullRequestsCreateFromIssueParams =
1487 & {
1488 owner: string;
1489 repo: string;
1490 issue: number;
1491 head: string;
1492 base: string;
1493 };
1494 export type PullRequestsGetCommitsParams =
1495 & {
1496 owner: string;
1497 repo: string;
1498 number: number;
1499 page?: number;
1500 per_page?: number;
1501 };
1502 export type PullRequestsGetFilesParams =
1503 & {
1504 owner: string;
1505 repo: string;
1506 number: number;
1507 page?: number;
1508 per_page?: number;
1509 };
1510 export type PullRequestsCheckMergedParams =
1511 & {
1512 owner: string;
1513 repo: string;
1514 number: number;
1515 page?: number;
1516 per_page?: number;
1517 };
1518 export type PullRequestsGetReviewsParams =
1519 & {
1520 owner: string;
1521 repo: string;
1522 number: number;
1523 page?: number;
1524 per_page?: number;
1525 };
1526 export type PullRequestsGetReviewParams =
1527 & {
1528 owner: string;
1529 repo: string;
1530 number: number;
1531 id: string;
1532 };
1533 export type PullRequestsDeletePendingReviewParams =
1534 & {
1535 owner: string;
1536 repo: string;
1537 number: number;
1538 id: string;
1539 };
1540 export type PullRequestsGetReviewCommentsParams =
1541 & {
1542 owner: string;
1543 repo: string;
1544 number: number;
1545 id: string;
1546 page?: number;
1547 per_page?: number;
1548 };
1549 export type PullRequestsCreateReviewParams =
1550 & {
1551 owner: string;
1552 repo: string;
1553 number: number;
1554 commit_id?: string;
1555 body?: string;
1556 event?: "APPROVE"|"REQUEST_CHANGES"|"COMMENT"|"PENDING";
1557 comments?: string[];
1558 };
1559 export type PullRequestsSubmitReviewParams =
1560 & {
1561 owner: string;
1562 repo: string;
1563 number: number;
1564 id: string;
1565 body?: string;
1566 event?: "APPROVE"|"REQUEST_CHANGES"|"COMMENT"|"PENDING";
1567 };
1568 export type PullRequestsDismissReviewParams =
1569 & {
1570 owner: string;
1571 repo: string;
1572 number: number;
1573 id: string;
1574 message?: string;
1575 page?: number;
1576 per_page?: number;
1577 };
1578 export type PullRequestsGetCommentsParams =
1579 & {
1580 owner: string;
1581 repo: string;
1582 number: number;
1583 page?: number;
1584 per_page?: number;
1585 };
1586 export type PullRequestsGetCommentsForRepoParams =
1587 & {
1588 owner: string;
1589 repo: string;
1590 sort?: "created"|"updated";
1591 direction?: "asc"|"desc";
1592 since?: date;
1593 page?: number;
1594 per_page?: number;
1595 };
1596 export type PullRequestsGetCommentParams =
1597 & {
1598 owner: string;
1599 repo: string;
1600 id: string;
1601 };
1602 export type PullRequestsCreateCommentParams =
1603 & {
1604 owner: string;
1605 repo: string;
1606 number: number;
1607 body: string;
1608 commit_id: string;
1609 path: string;
1610 position: number;
1611 };
1612 export type PullRequestsCreateCommentReplyParams =
1613 & {
1614 owner: string;
1615 repo: string;
1616 number: number;
1617 body: string;
1618 in_reply_to: number;
1619 };
1620 export type PullRequestsEditCommentParams =
1621 & {
1622 owner: string;
1623 repo: string;
1624 id: string;
1625 body: string;
1626 };
1627 export type PullRequestsDeleteCommentParams =
1628 & {
1629 owner: string;
1630 repo: string;
1631 id: string;
1632 };
1633 export type PullRequestsGetReviewRequestsParams =
1634 & {
1635 owner: string;
1636 repo: string;
1637 number: number;
1638 page?: number;
1639 per_page?: number;
1640 };
1641 export type PullRequestsCreateReviewRequestParams =
1642 & {
1643 owner: string;
1644 repo: string;
1645 number: number;
1646 reviewers?: string[];
1647 team_reviewers?: string[];
1648 };
1649 export type PullRequestsDeleteReviewRequestParams =
1650 & {
1651 owner: string;
1652 repo: string;
1653 number: number;
1654 reviewers?: string[];
1655 team_reviewers?: string[];
1656 };
1657 export type ReactionsDeleteParams =
1658 & {
1659 id: string;
1660 };
1661 export type ReactionsGetForCommitCommentParams =
1662 & {
1663 owner: string;
1664 repo: string;
1665 id: string;
1666 content?: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray";
1667 };
1668 export type ReactionsCreateForCommitCommentParams =
1669 & {
1670 owner: string;
1671 repo: string;
1672 id: string;
1673 content: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray";
1674 };
1675 export type ReactionsGetForIssueParams =
1676 & {
1677 owner: string;
1678 repo: string;
1679 number: number;
1680 content?: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray";
1681 };
1682 export type ReactionsCreateForIssueParams =
1683 & {
1684 owner: string;
1685 repo: string;
1686 number: number;
1687 content: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray";
1688 };
1689 export type ReactionsGetForIssueCommentParams =
1690 & {
1691 owner: string;
1692 repo: string;
1693 id: string;
1694 content?: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray";
1695 };
1696 export type ReactionsCreateForIssueCommentParams =
1697 & {
1698 owner: string;
1699 repo: string;
1700 id: string;
1701 content: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray";
1702 };
1703 export type ReactionsGetForPullRequestReviewCommentParams =
1704 & {
1705 owner: string;
1706 repo: string;
1707 id: string;
1708 content?: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray";
1709 };
1710 export type ReactionsCreateForPullRequestReviewCommentParams =
1711 & {
1712 owner: string;
1713 repo: string;
1714 id: string;
1715 content: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray";
1716 };
1717 export type ReposCreateParams =
1718 & {
1719 name: string;
1720 description?: string;
1721 homepage?: string;
1722 private?: boolean;
1723 has_issues?: boolean;
1724 has_projects?: boolean;
1725 has_wiki?: boolean;
1726 team_id?: number;
1727 auto_init?: boolean;
1728 gitignore_template?: string;
1729 license_template?: string;
1730 allow_squash_merge?: boolean;
1731 allow_merge_commit?: boolean;
1732 allow_rebase_merge?: boolean;
1733 };
1734 export type ReposGetParams =
1735 & {
1736 owner: string;
1737 repo: string;
1738 };
1739 export type ReposEditParams =
1740 & {
1741 owner: string;
1742 repo: string;
1743 name: string;
1744 description?: string;
1745 homepage?: string;
1746 private?: boolean;
1747 has_issues?: boolean;
1748 has_projects?: boolean;
1749 has_wiki?: boolean;
1750 default_branch?: string;
1751 allow_squash_merge?: boolean;
1752 allow_merge_commit?: boolean;
1753 allow_rebase_merge?: boolean;
1754 };
1755 export type ReposDeleteParams =
1756 & {
1757 owner: string;
1758 repo: string;
1759 };
1760 export type ReposForkParams =
1761 & {
1762 owner: string;
1763 repo: string;
1764 organization?: string;
1765 };
1766 export type ReposMergeParams =
1767 & {
1768 owner: string;
1769 repo: string;
1770 base: string;
1771 head: string;
1772 commit_message?: string;
1773 };
1774 export type ReposGetAllParams =
1775 & {
1776 visibility?: "all"|"public"|"private";
1777 affiliation?: string;
1778 type?: "all"|"owner"|"public"|"private"|"member";
1779 sort?: "created"|"updated"|"pushed"|"full_name";
1780 direction?: "asc"|"desc";
1781 page?: number;
1782 per_page?: number;
1783 };
1784 export type ReposGetForUserParams =
1785 & {
1786 username: string;
1787 type?: "all"|"owner"|"member";
1788 sort?: "created"|"updated"|"pushed"|"full_name";
1789 direction?: "asc"|"desc";
1790 page?: number;
1791 per_page?: number;
1792 };
1793 export type ReposGetForOrgParams =
1794 & {
1795 org: string;
1796 type?: "all"|"public"|"private"|"forks"|"sources"|"member";
1797 page?: number;
1798 per_page?: number;
1799 };
1800 export type ReposGetPublicParams =
1801 & {
1802 since?: string;
1803 page?: number;
1804 per_page?: number;
1805 };
1806 export type ReposCreateForOrgParams =
1807 & {
1808 org: string;
1809 name: string;
1810 description?: string;
1811 homepage?: string;
1812 private?: boolean;
1813 has_issues?: boolean;
1814 has_projects?: boolean;
1815 has_wiki?: boolean;
1816 team_id?: number;
1817 auto_init?: boolean;
1818 gitignore_template?: string;
1819 license_template?: string;
1820 allow_squash_merge?: boolean;
1821 allow_merge_commit?: boolean;
1822 allow_rebase_merge?: boolean;
1823 };
1824 export type ReposGetByIdParams =
1825 & {
1826 id: string;
1827 };
1828 export type ReposGetTopicsParams =
1829 & {
1830 owner: string;
1831 repo: string;
1832 page?: number;
1833 per_page?: number;
1834 };
1835 export type ReposReplaceTopicsParams =
1836 & {
1837 owner: string;
1838 repo: string;
1839 names: string[];
1840 };
1841 export type ReposGetContributorsParams =
1842 & {
1843 owner: string;
1844 repo: string;
1845 anon?: boolean;
1846 page?: number;
1847 per_page?: number;
1848 };
1849 export type ReposGetLanguagesParams =
1850 & {
1851 owner: string;
1852 repo: string;
1853 page?: number;
1854 per_page?: number;
1855 };
1856 export type ReposGetTeamsParams =
1857 & {
1858 owner: string;
1859 repo: string;
1860 page?: number;
1861 per_page?: number;
1862 };
1863 export type ReposGetTagsParams =
1864 & {
1865 owner: string;
1866 repo: string;
1867 page?: number;
1868 per_page?: number;
1869 };
1870 export type ReposGetBranchesParams =
1871 & {
1872 owner: string;
1873 repo: string;
1874 protected?: boolean;
1875 page?: number;
1876 per_page?: number;
1877 };
1878 export type ReposGetBranchParams =
1879 & {
1880 owner: string;
1881 repo: string;
1882 branch: string;
1883 page?: number;
1884 per_page?: number;
1885 };
1886 export type ReposGetBranchProtectionParams =
1887 & {
1888 owner: string;
1889 repo: string;
1890 branch: string;
1891 page?: number;
1892 per_page?: number;
1893 };
1894 export type ReposUpdateBranchProtectionParams =
1895 & {
1896 owner: string;
1897 repo: string;
1898 branch: string;
1899 required_status_checks: json;
1900 required_pull_request_reviews: json;
1901 dismissal_restrictions?: json;
1902 restrictions: json;
1903 enforce_admins: boolean;
1904 page?: number;
1905 per_page?: number;
1906 };
1907 export type ReposRemoveBranchProtectionParams =
1908 & {
1909 owner: string;
1910 repo: string;
1911 branch: string;
1912 };
1913 export type ReposGetProtectedBranchRequiredStatusChecksParams =
1914 & {
1915 owner: string;
1916 repo: string;
1917 branch: string;
1918 page?: number;
1919 per_page?: number;
1920 };
1921 export type ReposUpdateProtectedBranchRequiredStatusChecksParams =
1922 & {
1923 owner: string;
1924 repo: string;
1925 branch: string;
1926 strict?: boolean;
1927 contexts?: string[];
1928 };
1929 export type ReposRemoveProtectedBranchRequiredStatusChecksParams =
1930 & {
1931 owner: string;
1932 repo: string;
1933 branch: string;
1934 };
1935 export type ReposGetProtectedBranchRequiredStatusChecksContextsParams =
1936 & {
1937 owner: string;
1938 repo: string;
1939 branch: string;
1940 page?: number;
1941 per_page?: number;
1942 };
1943 export type ReposReplaceProtectedBranchRequiredStatusChecksContextsParams =
1944 & {
1945 owner: string;
1946 repo: string;
1947 branch: string;
1948 contexts: string[];
1949 };
1950 export type ReposAddProtectedBranchRequiredStatusChecksContextsParams =
1951 & {
1952 owner: string;
1953 repo: string;
1954 branch: string;
1955 contexts: string[];
1956 };
1957 export type ReposRemoveProtectedBranchRequiredStatusChecksContextsParams =
1958 & {
1959 owner: string;
1960 repo: string;
1961 branch: string;
1962 contexts: string[];
1963 };
1964 export type ReposGetProtectedBranchPullRequestReviewEnforcementParams =
1965 & {
1966 owner: string;
1967 repo: string;
1968 branch: string;
1969 page?: number;
1970 per_page?: number;
1971 };
1972 export type ReposUpdateProtectedBranchPullRequestReviewEnforcementParams =
1973 & {
1974 owner: string;
1975 repo: string;
1976 branch: string;
1977 dismissal_restrictions?: json;
1978 dismiss_stale_reviews?: boolean;
1979 require_code_owner_reviews?: boolean;
1980 };
1981 export type ReposRemoveProtectedBranchPullRequestReviewEnforcementParams =
1982 & {
1983 owner: string;
1984 repo: string;
1985 branch: string;
1986 };
1987 export type ReposGetProtectedBranchAdminEnforcementParams =
1988 & {
1989 owner: string;
1990 repo: string;
1991 branch: string;
1992 page?: number;
1993 per_page?: number;
1994 };
1995 export type ReposAddProtectedBranchAdminEnforcementParams =
1996 & {
1997 owner: string;
1998 repo: string;
1999 branch: string;
2000 page?: number;
2001 per_page?: number;
2002 };
2003 export type ReposRemoveProtectedBranchAdminEnforcementParams =
2004 & {
2005 owner: string;
2006 repo: string;
2007 branch: string;
2008 };
2009 export type ReposGetProtectedBranchRestrictionsParams =
2010 & {
2011 owner: string;
2012 repo: string;
2013 branch: string;
2014 page?: number;
2015 per_page?: number;
2016 };
2017 export type ReposRemoveProtectedBranchRestrictionsParams =
2018 & {
2019 owner: string;
2020 repo: string;
2021 branch: string;
2022 };
2023 export type ReposGetProtectedBranchTeamRestrictionsParams =
2024 & {
2025 owner: string;
2026 repo: string;
2027 branch: string;
2028 page?: number;
2029 per_page?: number;
2030 };
2031 export type ReposReplaceProtectedBranchTeamRestrictionsParams =
2032 & {
2033 owner: string;
2034 repo: string;
2035 branch: string;
2036 teams: string[];
2037 };
2038 export type ReposAddProtectedBranchTeamRestrictionsParams =
2039 & {
2040 owner: string;
2041 repo: string;
2042 branch: string;
2043 teams: string[];
2044 };
2045 export type ReposRemoveProtectedBranchTeamRestrictionsParams =
2046 & {
2047 owner: string;
2048 repo: string;
2049 branch: string;
2050 teams: string[];
2051 };
2052 export type ReposGetProtectedBranchUserRestrictionsParams =
2053 & {
2054 owner: string;
2055 repo: string;
2056 branch: string;
2057 page?: number;
2058 per_page?: number;
2059 };
2060 export type ReposReplaceProtectedBranchUserRestrictionsParams =
2061 & {
2062 owner: string;
2063 repo: string;
2064 branch: string;
2065 users: string[];
2066 };
2067 export type ReposAddProtectedBranchUserRestrictionsParams =
2068 & {
2069 owner: string;
2070 repo: string;
2071 branch: string;
2072 users: string[];
2073 };
2074 export type ReposRemoveProtectedBranchUserRestrictionsParams =
2075 & {
2076 owner: string;
2077 repo: string;
2078 branch: string;
2079 users: string[];
2080 };
2081 export type ReposGetCollaboratorsParams =
2082 & {
2083 owner: string;
2084 repo: string;
2085 affiliation?: "outside"|"all"|"direct";
2086 page?: number;
2087 per_page?: number;
2088 };
2089 export type ReposCheckCollaboratorParams =
2090 & {
2091 owner: string;
2092 repo: string;
2093 username: string;
2094 };
2095 export type ReposReviewUserPermissionLevelParams =
2096 & {
2097 owner: string;
2098 repo: string;
2099 username: string;
2100 };
2101 export type ReposAddCollaboratorParams =
2102 & {
2103 owner: string;
2104 repo: string;
2105 username: string;
2106 permission?: "pull"|"push"|"admin";
2107 };
2108 export type ReposRemoveCollaboratorParams =
2109 & {
2110 owner: string;
2111 repo: string;
2112 username: string;
2113 };
2114 export type ReposGetAllCommitCommentsParams =
2115 & {
2116 owner: string;
2117 repo: string;
2118 page?: number;
2119 per_page?: number;
2120 };
2121 export type ReposGetCommitCommentsParams =
2122 & {
2123 owner: string;
2124 repo: string;
2125 ref: string;
2126 page?: number;
2127 per_page?: number;
2128 };
2129 export type ReposCreateCommitCommentParams =
2130 & {
2131 owner: string;
2132 repo: string;
2133 sha: string;
2134 body: string;
2135 path?: string;
2136 position?: number;
2137 };
2138 export type ReposGetCommitCommentParams =
2139 & {
2140 owner: string;
2141 repo: string;
2142 id: string;
2143 };
2144 export type ReposUpdateCommitCommentParams =
2145 & {
2146 owner: string;
2147 repo: string;
2148 id: string;
2149 body: string;
2150 };
2151 export type ReposDeleteCommitCommentParams =
2152 & {
2153 owner: string;
2154 repo: string;
2155 id: string;
2156 };
2157 export type ReposGetCommunityProfileMetricsParams =
2158 & {
2159 owner: string;
2160 name: string;
2161 };
2162 export type ReposGetCommitsParams =
2163 & {
2164 owner: string;
2165 repo: string;
2166 sha?: string;
2167 path?: string;
2168 author?: string;
2169 since?: date;
2170 until?: date;
2171 page?: number;
2172 per_page?: number;
2173 };
2174 export type ReposGetCommitParams =
2175 & {
2176 owner: string;
2177 repo: string;
2178 sha: string;
2179 };
2180 export type ReposGetShaOfCommitRefParams =
2181 & {
2182 owner: string;
2183 repo: string;
2184 ref: string;
2185 };
2186 export type ReposCompareCommitsParams =
2187 & {
2188 owner: string;
2189 repo: string;
2190 base: string;
2191 head: string;
2192 };
2193 export type ReposGetReadmeParams =
2194 & {
2195 owner: string;
2196 repo: string;
2197 ref?: string;
2198 };
2199 export type ReposGetContentParams =
2200 & {
2201 owner: string;
2202 repo: string;
2203 path: string;
2204 ref?: string;
2205 };
2206 export type ReposCreateFileParams =
2207 & {
2208 owner: string;
2209 repo: string;
2210 path: string;
2211 message: string;
2212 content: string;
2213 branch?: string;
2214 committer?: json;
2215 author?: json;
2216 };
2217 export type ReposUpdateFileParams =
2218 & {
2219 owner: string;
2220 repo: string;
2221 path: string;
2222 message: string;
2223 content: string;
2224 sha: string;
2225 branch?: string;
2226 committer?: json;
2227 author?: json;
2228 };
2229 export type ReposDeleteFileParams =
2230 & {
2231 owner: string;
2232 repo: string;
2233 path: string;
2234 message: string;
2235 sha: string;
2236 branch?: string;
2237 committer?: json;
2238 author?: json;
2239 };
2240 export type ReposGetArchiveLinkParams =
2241 & {
2242 owner: string;
2243 repo: string;
2244 archive_format: "tarball"|"zipball";
2245 ref?: string;
2246 };
2247 export type ReposGetDeployKeysParams =
2248 & {
2249 owner: string;
2250 repo: string;
2251 page?: number;
2252 per_page?: number;
2253 };
2254 export type ReposGetDeployKeyParams =
2255 & {
2256 owner: string;
2257 repo: string;
2258 id: string;
2259 };
2260 export type ReposAddDeployKeyParams =
2261 & {
2262 owner: string;
2263 repo: string;
2264 title: string;
2265 key: string;
2266 read_only?: boolean;
2267 };
2268 export type ReposDeleteDeployKeyParams =
2269 & {
2270 owner: string;
2271 repo: string;
2272 id: string;
2273 };
2274 export type ReposGetDeploymentsParams =
2275 & {
2276 owner: string;
2277 repo: string;
2278 sha?: string;
2279 ref?: string;
2280 task?: string;
2281 environment?: string;
2282 page?: number;
2283 per_page?: number;
2284 };
2285 export type ReposGetDeploymentParams =
2286 & {
2287 owner: string;
2288 repo: string;
2289 deployment_id: string;
2290 };
2291 export type ReposCreateDeploymentParams =
2292 & {
2293 owner: string;
2294 repo: string;
2295 ref: string;
2296 task?: string;
2297 auto_merge?: boolean;
2298 required_contexts?: string[];
2299 payload?: string;
2300 environment?: string;
2301 description?: string;
2302 transient_environment?: boolean;
2303 production_environment?: boolean;
2304 };
2305 export type ReposGetDeploymentStatusesParams =
2306 & {
2307 owner: string;
2308 repo: string;
2309 id: string;
2310 };
2311 export type ReposGetDeploymentStatusParams =
2312 & {
2313 owner: string;
2314 repo: string;
2315 id: string;
2316 status_id: string;
2317 };
2318 export type ReposCreateDeploymentStatusParams =
2319 & {
2320 owner: string;
2321 repo: string;
2322 id: string;
2323 state?: string;
2324 target_url?: string;
2325 log_url?: string;
2326 description?: string;
2327 environment_url?: string;
2328 auto_inactive?: boolean;
2329 };
2330 export type ReposGetDownloadsParams =
2331 & {
2332 owner: string;
2333 repo: string;
2334 page?: number;
2335 per_page?: number;
2336 };
2337 export type ReposGetDownloadParams =
2338 & {
2339 owner: string;
2340 repo: string;
2341 id: string;
2342 };
2343 export type ReposDeleteDownloadParams =
2344 & {
2345 owner: string;
2346 repo: string;
2347 id: string;
2348 };
2349 export type ReposGetForksParams =
2350 & {
2351 owner: string;
2352 repo: string;
2353 sort?: "newest"|"oldest"|"stargazers";
2354 page?: number;
2355 per_page?: number;
2356 };
2357 export type ReposGetInvitesParams =
2358 & {
2359 owner: string;
2360 repo: string;
2361 };
2362 export type ReposDeleteInviteParams =
2363 & {
2364 owner: string;
2365 repo: string;
2366 invitation_id: string;
2367 };
2368 export type ReposUpdateInviteParams =
2369 & {
2370 owner: string;
2371 repo: string;
2372 invitation_id: string;
2373 permissions?: "read"|"write"|"admin";
2374 };
2375 export type ReposGetPagesParams =
2376 & {
2377 owner: string;
2378 repo: string;
2379 page?: number;
2380 per_page?: number;
2381 };
2382 export type ReposRequestPageBuildParams =
2383 & {
2384 owner: string;
2385 repo: string;
2386 };
2387 export type ReposGetPagesBuildsParams =
2388 & {
2389 owner: string;
2390 repo: string;
2391 page?: number;
2392 per_page?: number;
2393 };
2394 export type ReposGetLatestPagesBuildParams =
2395 & {
2396 owner: string;
2397 repo: string;
2398 };
2399 export type ReposGetPagesBuildParams =
2400 & {
2401 owner: string;
2402 repo: string;
2403 id: string;
2404 };
2405 export type ReposGetReleasesParams =
2406 & {
2407 owner: string;
2408 repo: string;
2409 page?: number;
2410 per_page?: number;
2411 };
2412 export type ReposGetReleaseParams =
2413 & {
2414 owner: string;
2415 repo: string;
2416 id: string;
2417 };
2418 export type ReposGetLatestReleaseParams =
2419 & {
2420 owner: string;
2421 repo: string;
2422 };
2423 export type ReposGetReleaseByTagParams =
2424 & {
2425 owner: string;
2426 repo: string;
2427 tag: string;
2428 };
2429 export type ReposCreateReleaseParams =
2430 & {
2431 owner: string;
2432 repo: string;
2433 tag_name: string;
2434 target_commitish?: string;
2435 name?: string;
2436 body?: string;
2437 draft?: boolean;
2438 prerelease?: boolean;
2439 };
2440 export type ReposEditReleaseParams =
2441 & {
2442 owner: string;
2443 repo: string;
2444 id: string;
2445 tag_name: string;
2446 target_commitish?: string;
2447 name?: string;
2448 body?: string;
2449 draft?: boolean;
2450 prerelease?: boolean;
2451 };
2452 export type ReposDeleteReleaseParams =
2453 & {
2454 owner: string;
2455 repo: string;
2456 id: string;
2457 };
2458 export type ReposGetAssetsParams =
2459 & {
2460 owner: string;
2461 repo: string;
2462 id: string;
2463 };
2464 export type ReposUploadAssetParams =
2465 & {
2466 url: string;
2467 file: string | object;
2468 contentType: string;
2469 contentLength: number;
2470 name: string;
2471 label?: string;
2472 };
2473 export type ReposGetAssetParams =
2474 & {
2475 owner: string;
2476 repo: string;
2477 id: string;
2478 };
2479 export type ReposEditAssetParams =
2480 & {
2481 owner: string;
2482 repo: string;
2483 id: string;
2484 name: string;
2485 label?: string;
2486 };
2487 export type ReposDeleteAssetParams =
2488 & {
2489 owner: string;
2490 repo: string;
2491 id: string;
2492 };
2493 export type ReposGetStatsContributorsParams =
2494 & {
2495 owner: string;
2496 repo: string;
2497 };
2498 export type ReposGetStatsCommitActivityParams =
2499 & {
2500 owner: string;
2501 repo: string;
2502 };
2503 export type ReposGetStatsCodeFrequencyParams =
2504 & {
2505 owner: string;
2506 repo: string;
2507 };
2508 export type ReposGetStatsParticipationParams =
2509 & {
2510 owner: string;
2511 repo: string;
2512 };
2513 export type ReposGetStatsPunchCardParams =
2514 & {
2515 owner: string;
2516 repo: string;
2517 };
2518 export type ReposCreateStatusParams =
2519 & {
2520 owner: string;
2521 repo: string;
2522 sha: string;
2523 state: "pending"|"success"|"error"|"failure";
2524 target_url?: string;
2525 description?: string;
2526 context?: string;
2527 };
2528 export type ReposGetStatusesParams =
2529 & {
2530 owner: string;
2531 repo: string;
2532 ref: string;
2533 page?: number;
2534 per_page?: number;
2535 };
2536 export type ReposGetCombinedStatusForRefParams =
2537 & {
2538 owner: string;
2539 repo: string;
2540 ref: string;
2541 page?: number;
2542 per_page?: number;
2543 };
2544 export type ReposGetReferrersParams =
2545 & {
2546 owner: string;
2547 repo: string;
2548 page?: number;
2549 per_page?: number;
2550 };
2551 export type ReposGetPathsParams =
2552 & {
2553 owner: string;
2554 repo: string;
2555 page?: number;
2556 per_page?: number;
2557 };
2558 export type ReposGetViewsParams =
2559 & {
2560 owner: string;
2561 repo: string;
2562 page?: number;
2563 per_page?: number;
2564 };
2565 export type ReposGetClonesParams =
2566 & {
2567 owner: string;
2568 repo: string;
2569 page?: number;
2570 per_page?: number;
2571 };
2572 export type ReposGetHooksParams =
2573 & {
2574 owner: string;
2575 repo: string;
2576 page?: number;
2577 per_page?: number;
2578 };
2579 export type ReposGetHookParams =
2580 & {
2581 owner: string;
2582 repo: string;
2583 id: string;
2584 };
2585 export type ReposCreateHookParams =
2586 & {
2587 owner: string;
2588 repo: string;
2589 name: string;
2590 config: json;
2591 events?: string[];
2592 active?: boolean;
2593 };
2594 export type ReposEditHookParams =
2595 & {
2596 owner: string;
2597 repo: string;
2598 id: string;
2599 name: string;
2600 config: json;
2601 events?: string[];
2602 add_events?: string[];
2603 remove_events?: string[];
2604 active?: boolean;
2605 };
2606 export type ReposTestHookParams =
2607 & {
2608 owner: string;
2609 repo: string;
2610 id: string;
2611 };
2612 export type ReposPingHookParams =
2613 & {
2614 owner: string;
2615 repo: string;
2616 id: string;
2617 };
2618 export type ReposDeleteHookParams =
2619 & {
2620 owner: string;
2621 repo: string;
2622 id: string;
2623 };
2624 export type SearchReposParams =
2625 & {
2626 q: string;
2627 sort?: "stars"|"forks"|"updated";
2628 order?: "asc"|"desc";
2629 page?: number;
2630 per_page?: number;
2631 };
2632 export type SearchCodeParams =
2633 & {
2634 q: string;
2635 sort?: "indexed";
2636 order?: "asc"|"desc";
2637 page?: number;
2638 per_page?: number;
2639 };
2640 export type SearchCommitsParams =
2641 & {
2642 q: string;
2643 sort?: "author-date"|"committer-date";
2644 order?: "asc"|"desc";
2645 page?: number;
2646 per_page?: number;
2647 };
2648 export type SearchIssuesParams =
2649 & {
2650 q: string;
2651 sort?: "comments"|"created"|"updated";
2652 order?: "asc"|"desc";
2653 page?: number;
2654 per_page?: number;
2655 };
2656 export type SearchUsersParams =
2657 & {
2658 q: string;
2659 sort?: "followers"|"repositories"|"joined";
2660 order?: "asc"|"desc";
2661 page?: number;
2662 per_page?: number;
2663 };
2664 export type SearchEmailParams =
2665 & {
2666 email: string;
2667 };
2668 export type UsersUpdateParams =
2669 & {
2670 name?: string;
2671 email?: string;
2672 blog?: string;
2673 company?: string;
2674 location?: string;
2675 hireable?: boolean;
2676 bio?: string;
2677 };
2678 export type UsersPromoteParams =
2679 & {
2680 username: string;
2681 };
2682 export type UsersDemoteParams =
2683 & {
2684 username: string;
2685 };
2686 export type UsersSuspendParams =
2687 & {
2688 username: string;
2689 };
2690 export type UsersUnsuspendParams =
2691 & {
2692 username: string;
2693 };
2694 export type UsersGetForUserParams =
2695 & {
2696 username: string;
2697 };
2698 export type UsersGetByIdParams =
2699 & {
2700 id: string;
2701 };
2702 export type UsersGetAllParams =
2703 & {
2704 since?: number;
2705 };
2706 export type UsersGetOrgsParams =
2707 & {
2708 page?: number;
2709 per_page?: number;
2710 };
2711 export type UsersGetOrgMembershipsParams =
2712 & {
2713 state?: "active"|"pending";
2714 };
2715 export type UsersGetOrgMembershipParams =
2716 & {
2717 org: string;
2718 };
2719 export type UsersEditOrgMembershipParams =
2720 & {
2721 org: string;
2722 state: "active";
2723 };
2724 export type UsersGetTeamsParams =
2725 & {
2726 page?: number;
2727 per_page?: number;
2728 };
2729 export type UsersGetEmailsParams =
2730 & {
2731 page?: number;
2732 per_page?: number;
2733 };
2734 export type UsersGetPublicEmailsParams =
2735 & {
2736 page?: number;
2737 per_page?: number;
2738 };
2739 export type UsersAddEmailsParams =
2740 & {
2741 emails: string[];
2742 };
2743 export type UsersDeleteEmailsParams =
2744 & {
2745 emails: string[];
2746 };
2747 export type UsersGetFollowersForUserParams =
2748 & {
2749 username: string;
2750 page?: number;
2751 per_page?: number;
2752 };
2753 export type UsersGetFollowersParams =
2754 & {
2755 page?: number;
2756 per_page?: number;
2757 };
2758 export type UsersGetFollowingForUserParams =
2759 & {
2760 username: string;
2761 page?: number;
2762 per_page?: number;
2763 };
2764 export type UsersGetFollowingParams =
2765 & {
2766 page?: number;
2767 per_page?: number;
2768 };
2769 export type UsersCheckFollowingParams =
2770 & {
2771 username: string;
2772 };
2773 export type UsersCheckIfOneFollowersOtherParams =
2774 & {
2775 username: string;
2776 target_user: string;
2777 };
2778 export type UsersFollowUserParams =
2779 & {
2780 username: string;
2781 };
2782 export type UsersUnfollowUserParams =
2783 & {
2784 username: string;
2785 };
2786 export type UsersGetKeysForUserParams =
2787 & {
2788 username: string;
2789 page?: number;
2790 per_page?: number;
2791 };
2792 export type UsersGetKeysParams =
2793 & {
2794 page?: number;
2795 per_page?: number;
2796 };
2797 export type UsersGetKeyParams =
2798 & {
2799 id: string;
2800 };
2801 export type UsersCreateKeyParams =
2802 & {
2803 title: string;
2804 key: string;
2805 };
2806 export type UsersDeleteKeyParams =
2807 & {
2808 id: string;
2809 };
2810 export type UsersGetGpgKeysForUserParams =
2811 & {
2812 username: string;
2813 page?: number;
2814 per_page?: number;
2815 };
2816 export type UsersGetGpgKeysParams =
2817 & {
2818 page?: number;
2819 per_page?: number;
2820 };
2821 export type UsersGetGpgKeyParams =
2822 & {
2823 id: string;
2824 };
2825 export type UsersCreateGpgKeyParams =
2826 & {
2827 armored_public_key: string;
2828 };
2829 export type UsersDeleteGpgKeyParams =
2830 & {
2831 id: string;
2832 };
2833 export type UsersCheckBlockedUserParams =
2834 & {
2835 username: string;
2836 };
2837 export type UsersBlockUserParams =
2838 & {
2839 username: string;
2840 };
2841 export type UsersUnblockUserParams =
2842 & {
2843 username: string;
2844 };
2845 export type UsersAcceptRepoInviteParams =
2846 & {
2847 invitation_id: string;
2848 };
2849 export type UsersDeclineRepoInviteParams =
2850 & {
2851 invitation_id: string;
2852 };
2853 export type UsersGetInstallationsParams =
2854 & {
2855 page?: number;
2856 per_page?: number;
2857 };
2858 export type UsersGetInstallationReposParams =
2859 & {
2860 installation_id: string;
2861 page?: number;
2862 per_page?: number;
2863 };
2864 export type UsersAddRepoToInstallationParams =
2865 & {
2866 installation_id: string;
2867 repository_id: string;
2868 };
2869 export type UsersRemoveRepoFromInstallationParams =
2870 & {
2871 installation_id: string;
2872 repository_id: string;
2873 };
2874 export type UsersGetMarketplacePurchasesParams =
2875 & {
2876 page?: number;
2877 per_page?: number;
2878 };
2879 export type UsersGetMarketplaceStubbedPurchasesParams =
2880 & {
2881 page?: number;
2882 per_page?: number;
2883 };
2884 export type EnterpriseStatsParams =
2885 & {
2886 type: "issues"|"hooks"|"milestones"|"orgs"|"comments"|"pages"|"users"|"gists"|"pulls"|"repos"|"all";
2887 };
2888 export type EnterpriseUpdateLdapForUserParams =
2889 & {
2890 username: string;
2891 ldap_dn: string;
2892 };
2893 export type EnterpriseSyncLdapForUserParams =
2894 & {
2895 username: string;
2896 };
2897 export type EnterpriseUpdateLdapForTeamParams =
2898 & {
2899 team_id: number;
2900 ldap_dn: string;
2901 };
2902 export type EnterpriseSyncLdapForTeamParams =
2903 & {
2904 team_id: number;
2905 };
2906 export type EnterpriseGetPreReceiveEnvironmentParams =
2907 & {
2908 id: string;
2909 };
2910 export type EnterpriseCreatePreReceiveEnvironmentParams =
2911 & {
2912 name: string;
2913 image_url: string;
2914 };
2915 export type EnterpriseEditPreReceiveEnvironmentParams =
2916 & {
2917 id: string;
2918 name: string;
2919 image_url: string;
2920 };
2921 export type EnterpriseDeletePreReceiveEnvironmentParams =
2922 & {
2923 id: string;
2924 };
2925 export type EnterpriseGetPreReceiveEnvironmentDownloadStatusParams =
2926 & {
2927 id: string;
2928 };
2929 export type EnterpriseTriggerPreReceiveEnvironmentDownloadParams =
2930 & {
2931 id: string;
2932 };
2933 export type EnterpriseGetPreReceiveHookParams =
2934 & {
2935 id: string;
2936 };
2937 export type EnterpriseCreatePreReceiveHookParams =
2938 & {
2939 name: string;
2940 script: string;
2941 script_repository: json;
2942 environment: json;
2943 enforcement?: string;
2944 allow_downstream_configuration?: boolean;
2945 };
2946 export type EnterpriseEditPreReceiveHookParams =
2947 & {
2948 id: string;
2949 hook: json;
2950 };
2951 export type EnterpriseDeletePreReceiveHookParams =
2952 & {
2953 id: string;
2954 };
2955 export type EnterpriseQueueIndexingJobParams =
2956 & {
2957 target: string;
2958 };
2959 export type EnterpriseCreateOrgParams =
2960 & {
2961 login: string;
2962 admin: string;
2963 profile_name?: string;
2964 };
2965}
2966
2967declare class Github {
2968 constructor(options?: Github.Options);
2969 authenticate(auth: Github.Auth): void;
2970 hasNextPage(link: Github.Link): string | undefined;
2971 hasPreviousPage(link: Github.Link): string | undefined;
2972 hasLastPage(link: Github.Link): string | undefined;
2973 hasFirstPage(link: Github.Link): string | undefined;
2974
2975 getNextPage(link: Github.Link, callback?: Github.Callback): Promise<Github.AnyResponse>;
2976 getNextPage(link: Github.Link, headers?: {[header: string]: any}, callback?: Github.Callback): Promise<Github.AnyResponse>;
2977
2978 getPreviousPage(link: Github.Link, callback?: Github.Callback): Promise<Github.AnyResponse>;
2979 getPreviousPage(link: Github.Link, headers?: {[header: string]: any}, callback?: Github.Callback): Promise<Github.AnyResponse>;
2980
2981 getLastPage(link: Github.Link, callback?: Github.Callback): Promise<Github.AnyResponse>;
2982 getLastPage(link: Github.Link, headers?: {[header: string]: any}, callback?: Github.Callback): Promise<Github.AnyResponse>;
2983
2984 getFirstPage(link: Github.Link, callback?: Github.Callback): Promise<Github.AnyResponse>;
2985 getFirstPage(link: Github.Link, headers?: {[header: string]: any}, callback?: Github.Callback): Promise<Github.AnyResponse>;
2986
2987 authorization: {
2988 get(params: Github.AuthorizationGetParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
2989 create(params: Github.AuthorizationCreateParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
2990 update(params: Github.AuthorizationUpdateParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
2991 delete(params: Github.AuthorizationDeleteParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
2992 check(params: Github.AuthorizationCheckParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
2993 reset(params: Github.AuthorizationResetParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
2994 revoke(params: Github.AuthorizationRevokeParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
2995 getGrants(params: Github.AuthorizationGetGrantsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
2996 getGrant(params: Github.AuthorizationGetGrantParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
2997 deleteGrant(params: Github.AuthorizationDeleteGrantParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
2998 getAll(params: Github.AuthorizationGetAllParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
2999 getOrCreateAuthorizationForApp(params: Github.AuthorizationGetOrCreateAuthorizationForAppParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3000 getOrCreateAuthorizationForAppAndFingerprint(params: Github.AuthorizationGetOrCreateAuthorizationForAppAndFingerprintParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3001 revokeGrant(params: Github.AuthorizationRevokeGrantParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3002 };
3003 activity: {
3004 getEvents(params: Github.ActivityGetEventsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3005 getEventsForRepo(params: Github.ActivityGetEventsForRepoParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3006 getEventsForRepoIssues(params: Github.ActivityGetEventsForRepoIssuesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3007 getEventsForRepoNetwork(params: Github.ActivityGetEventsForRepoNetworkParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3008 getEventsForOrg(params: Github.ActivityGetEventsForOrgParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3009 getEventsReceived(params: Github.ActivityGetEventsReceivedParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3010 getEventsReceivedPublic(params: Github.ActivityGetEventsReceivedPublicParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3011 getEventsForUser(params: Github.ActivityGetEventsForUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3012 getEventsForUserPublic(params: Github.ActivityGetEventsForUserPublicParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3013 getEventsForUserOrg(params: Github.ActivityGetEventsForUserOrgParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3014 getFeeds(params: Github.EmptyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3015 getNotifications(params: Github.ActivityGetNotificationsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3016 getNotificationsForUser(params: Github.ActivityGetNotificationsForUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3017 markNotificationsAsRead(params: Github.ActivityMarkNotificationsAsReadParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3018 markNotificationsAsReadForRepo(params: Github.ActivityMarkNotificationsAsReadForRepoParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3019 getNotificationThread(params: Github.ActivityGetNotificationThreadParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3020 markNotificationThreadAsRead(params: Github.ActivityMarkNotificationThreadAsReadParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3021 checkNotificationThreadSubscription(params: Github.ActivityCheckNotificationThreadSubscriptionParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3022 setNotificationThreadSubscription(params: Github.ActivitySetNotificationThreadSubscriptionParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3023 deleteNotificationThreadSubscription(params: Github.ActivityDeleteNotificationThreadSubscriptionParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3024 getStargazersForRepo(params: Github.ActivityGetStargazersForRepoParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3025 getStarredReposForUser(params: Github.ActivityGetStarredReposForUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3026 getStarredRepos(params: Github.ActivityGetStarredReposParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3027 checkStarringRepo(params: Github.ActivityCheckStarringRepoParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3028 starRepo(params: Github.ActivityStarRepoParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3029 unstarRepo(params: Github.ActivityUnstarRepoParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3030 getWatchersForRepo(params: Github.ActivityGetWatchersForRepoParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3031 getWatchedReposForUser(params: Github.ActivityGetWatchedReposForUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3032 getWatchedRepos(params: Github.ActivityGetWatchedReposParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3033 getRepoSubscription(params: Github.ActivityGetRepoSubscriptionParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3034 setRepoSubscription(params: Github.ActivitySetRepoSubscriptionParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3035 unwatchRepo(params: Github.ActivityUnwatchRepoParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3036 };
3037 gists: {
3038 get(params: Github.GistsGetParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3039 create(params: Github.GistsCreateParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3040 edit(params: Github.GistsEditParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3041 star(params: Github.GistsStarParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3042 unstar(params: Github.GistsUnstarParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3043 fork(params: Github.GistsForkParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3044 delete(params: Github.GistsDeleteParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3045 getForUser(params: Github.GistsGetForUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3046 getAll(params: Github.GistsGetAllParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3047 getPublic(params: Github.GistsGetPublicParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3048 getStarred(params: Github.GistsGetStarredParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3049 getRevision(params: Github.GistsGetRevisionParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3050 getCommits(params: Github.GistsGetCommitsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3051 checkStar(params: Github.GistsCheckStarParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3052 getForks(params: Github.GistsGetForksParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3053 getComments(params: Github.GistsGetCommentsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3054 getComment(params: Github.GistsGetCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3055 createComment(params: Github.GistsCreateCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3056 editComment(params: Github.GistsEditCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3057 deleteComment(params: Github.GistsDeleteCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3058 };
3059 gitdata: {
3060 getBlob(params: Github.GitdataGetBlobParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3061 createBlob(params: Github.GitdataCreateBlobParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3062 getCommit(params: Github.GitdataGetCommitParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3063 createCommit(params: Github.GitdataCreateCommitParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3064 getCommitSignatureVerification(params: Github.GitdataGetCommitSignatureVerificationParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3065 getReference(params: Github.GitdataGetReferenceParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3066 getReferences(params: Github.GitdataGetReferencesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3067 getTags(params: Github.GitdataGetTagsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3068 createReference(params: Github.GitdataCreateReferenceParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3069 updateReference(params: Github.GitdataUpdateReferenceParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3070 deleteReference(params: Github.GitdataDeleteReferenceParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3071 getTag(params: Github.GitdataGetTagParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3072 createTag(params: Github.GitdataCreateTagParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3073 getTagSignatureVerification(params: Github.GitdataGetTagSignatureVerificationParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3074 getTree(params: Github.GitdataGetTreeParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3075 createTree(params: Github.GitdataCreateTreeParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3076 };
3077 integrations: {
3078 getInstallations(params: Github.IntegrationsGetInstallationsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3079 createInstallationToken(params: Github.IntegrationsCreateInstallationTokenParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3080 getInstallationRepositories(params: Github.IntegrationsGetInstallationRepositoriesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3081 addRepoToInstallation(params: Github.IntegrationsAddRepoToInstallationParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3082 removeRepoFromInstallation(params: Github.IntegrationsRemoveRepoFromInstallationParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3083 };
3084 apps: {
3085 get(params: Github.EmptyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3086 getForSlug(params: Github.AppsGetForSlugParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3087 getInstallations(params: Github.AppsGetInstallationsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3088 getInstallation(params: Github.AppsGetInstallationParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3089 createInstallationToken(params: Github.AppsCreateInstallationTokenParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3090 getInstallationRepositories(params: Github.AppsGetInstallationRepositoriesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3091 addRepoToInstallation(params: Github.AppsAddRepoToInstallationParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3092 removeRepoFromInstallation(params: Github.AppsRemoveRepoFromInstallationParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3093 getMarketplaceListingPlans(params: Github.AppsGetMarketplaceListingPlansParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3094 getMarketplaceListingStubbedPlans(params: Github.AppsGetMarketplaceListingStubbedPlansParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3095 getMarketplaceListingPlanAccounts(params: Github.AppsGetMarketplaceListingPlanAccountsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3096 getMarketplaceListingStubbedPlanAccounts(params: Github.AppsGetMarketplaceListingStubbedPlanAccountsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3097 checkMarketplaceListingAccount(params: Github.AppsCheckMarketplaceListingAccountParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3098 checkMarketplaceListingStubbedAccount(params: Github.AppsCheckMarketplaceListingStubbedAccountParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3099 };
3100 issues: {
3101 get(params: Github.IssuesGetParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3102 create(params: Github.IssuesCreateParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3103 edit(params: Github.IssuesEditParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3104 lock(params: Github.IssuesLockParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3105 unlock(params: Github.IssuesUnlockParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3106 getAll(params: Github.IssuesGetAllParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3107 getForUser(params: Github.IssuesGetForUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3108 getForOrg(params: Github.IssuesGetForOrgParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3109 getForRepo(params: Github.IssuesGetForRepoParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3110 getAssignees(params: Github.IssuesGetAssigneesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3111 checkAssignee(params: Github.IssuesCheckAssigneeParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3112 addAssigneesToIssue(params: Github.IssuesAddAssigneesToIssueParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3113 removeAssigneesFromIssue(params: Github.IssuesRemoveAssigneesFromIssueParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3114 getComments(params: Github.IssuesGetCommentsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3115 getCommentsForRepo(params: Github.IssuesGetCommentsForRepoParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3116 getComment(params: Github.IssuesGetCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3117 createComment(params: Github.IssuesCreateCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3118 editComment(params: Github.IssuesEditCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3119 deleteComment(params: Github.IssuesDeleteCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3120 getEvents(params: Github.IssuesGetEventsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3121 getEventsForRepo(params: Github.IssuesGetEventsForRepoParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3122 getEvent(params: Github.IssuesGetEventParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3123 getLabels(params: Github.IssuesGetLabelsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3124 getLabel(params: Github.IssuesGetLabelParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3125 createLabel(params: Github.IssuesCreateLabelParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3126 updateLabel(params: Github.IssuesUpdateLabelParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3127 deleteLabel(params: Github.IssuesDeleteLabelParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3128 getIssueLabels(params: Github.IssuesGetIssueLabelsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3129 addLabels(params: Github.IssuesAddLabelsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3130 removeLabel(params: Github.IssuesRemoveLabelParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3131 replaceAllLabels(params: Github.IssuesReplaceAllLabelsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3132 removeAllLabels(params: Github.IssuesRemoveAllLabelsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3133 getMilestoneLabels(params: Github.IssuesGetMilestoneLabelsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3134 getMilestones(params: Github.IssuesGetMilestonesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3135 getMilestone(params: Github.IssuesGetMilestoneParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3136 createMilestone(params: Github.IssuesCreateMilestoneParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3137 updateMilestone(params: Github.IssuesUpdateMilestoneParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3138 deleteMilestone(params: Github.IssuesDeleteMilestoneParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3139 getEventsTimeline(params: Github.IssuesGetEventsTimelineParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3140 };
3141 migrations: {
3142 startMigration(params: Github.MigrationsStartMigrationParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3143 getMigrations(params: Github.MigrationsGetMigrationsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3144 getMigrationStatus(params: Github.MigrationsGetMigrationStatusParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3145 getMigrationArchiveLink(params: Github.MigrationsGetMigrationArchiveLinkParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3146 deleteMigrationArchive(params: Github.MigrationsDeleteMigrationArchiveParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3147 unlockRepoLockedForMigration(params: Github.MigrationsUnlockRepoLockedForMigrationParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3148 startImport(params: Github.MigrationsStartImportParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3149 getImportProgress(params: Github.MigrationsGetImportProgressParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3150 updateImport(params: Github.MigrationsUpdateImportParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3151 getImportCommitAuthors(params: Github.MigrationsGetImportCommitAuthorsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3152 mapImportCommitAuthor(params: Github.MigrationsMapImportCommitAuthorParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3153 setImportLfsPreference(params: Github.MigrationsSetImportLfsPreferenceParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3154 getLargeImportFiles(params: Github.MigrationsGetLargeImportFilesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3155 cancelImport(params: Github.MigrationsCancelImportParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3156 };
3157 misc: {
3158 getCodesOfConduct(params: Github.EmptyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3159 getCodeOfConduct(params: Github.MiscGetCodeOfConductParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3160 getRepoCodeOfConduct(params: Github.MiscGetRepoCodeOfConductParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3161 getEmojis(params: Github.EmptyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3162 getGitignoreTemplates(params: Github.EmptyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3163 getGitignoreTemplate(params: Github.MiscGetGitignoreTemplateParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3164 getLicenses(params: Github.EmptyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3165 getLicense(params: Github.MiscGetLicenseParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3166 getRepoLicense(params: Github.MiscGetRepoLicenseParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3167 renderMarkdown(params: Github.MiscRenderMarkdownParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3168 renderMarkdownRaw(params: Github.MiscRenderMarkdownRawParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3169 getMeta(params: Github.EmptyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3170 getRateLimit(params: Github.EmptyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3171 };
3172 orgs: {
3173 get(params: Github.OrgsGetParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3174 update(params: Github.OrgsUpdateParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3175 getAll(params: Github.OrgsGetAllParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3176 getForUser(params: Github.OrgsGetForUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3177 getMembers(params: Github.OrgsGetMembersParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3178 checkMembership(params: Github.OrgsCheckMembershipParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3179 removeMember(params: Github.OrgsRemoveMemberParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3180 getPublicMembers(params: Github.OrgsGetPublicMembersParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3181 checkPublicMembership(params: Github.OrgsCheckPublicMembershipParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3182 publicizeMembership(params: Github.OrgsPublicizeMembershipParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3183 concealMembership(params: Github.OrgsConcealMembershipParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3184 getOrgMembership(params: Github.OrgsGetOrgMembershipParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3185 addOrgMembership(params: Github.OrgsAddOrgMembershipParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3186 removeOrgMembership(params: Github.OrgsRemoveOrgMembershipParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3187 getPendingOrgInvites(params: Github.OrgsGetPendingOrgInvitesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3188 getOutsideCollaborators(params: Github.OrgsGetOutsideCollaboratorsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3189 removeOutsideCollaborator(params: Github.OrgsRemoveOutsideCollaboratorParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3190 convertMemberToOutsideCollaborator(params: Github.OrgsConvertMemberToOutsideCollaboratorParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3191 getTeams(params: Github.OrgsGetTeamsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3192 getTeam(params: Github.OrgsGetTeamParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3193 createTeam(params: Github.OrgsCreateTeamParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3194 editTeam(params: Github.OrgsEditTeamParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3195 deleteTeam(params: Github.OrgsDeleteTeamParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3196 getTeamMembers(params: Github.OrgsGetTeamMembersParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3197 getChildTeams(params: Github.OrgsGetChildTeamsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3198 getTeamMembership(params: Github.OrgsGetTeamMembershipParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3199 addTeamMembership(params: Github.OrgsAddTeamMembershipParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3200 removeTeamMembership(params: Github.OrgsRemoveTeamMembershipParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3201 getTeamRepos(params: Github.OrgsGetTeamReposParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3202 getPendingTeamInvites(params: Github.OrgsGetPendingTeamInvitesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3203 checkTeamRepo(params: Github.OrgsCheckTeamRepoParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3204 addTeamRepo(params: Github.OrgsAddTeamRepoParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3205 deleteTeamRepo(params: Github.OrgsDeleteTeamRepoParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3206 getHooks(params: Github.OrgsGetHooksParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3207 getHook(params: Github.OrgsGetHookParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3208 createHook(params: Github.OrgsCreateHookParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3209 editHook(params: Github.OrgsEditHookParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3210 pingHook(params: Github.OrgsPingHookParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3211 deleteHook(params: Github.OrgsDeleteHookParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3212 getBlockedUsers(params: Github.OrgsGetBlockedUsersParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3213 checkBlockedUser(params: Github.OrgsCheckBlockedUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3214 blockUser(params: Github.OrgsBlockUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3215 unblockUser(params: Github.OrgsUnblockUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3216 };
3217 projects: {
3218 getRepoProjects(params: Github.ProjectsGetRepoProjectsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3219 getOrgProjects(params: Github.ProjectsGetOrgProjectsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3220 getProject(params: Github.ProjectsGetProjectParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3221 createRepoProject(params: Github.ProjectsCreateRepoProjectParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3222 createOrgProject(params: Github.ProjectsCreateOrgProjectParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3223 updateProject(params: Github.ProjectsUpdateProjectParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3224 deleteProject(params: Github.ProjectsDeleteProjectParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3225 getProjectCards(params: Github.ProjectsGetProjectCardsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3226 getProjectCard(params: Github.ProjectsGetProjectCardParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3227 createProjectCard(params: Github.ProjectsCreateProjectCardParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3228 updateProjectCard(params: Github.ProjectsUpdateProjectCardParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3229 deleteProjectCard(params: Github.ProjectsDeleteProjectCardParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3230 moveProjectCard(params: Github.ProjectsMoveProjectCardParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3231 getProjectColumns(params: Github.ProjectsGetProjectColumnsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3232 getProjectColumn(params: Github.ProjectsGetProjectColumnParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3233 createProjectColumn(params: Github.ProjectsCreateProjectColumnParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3234 updateProjectColumn(params: Github.ProjectsUpdateProjectColumnParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3235 deleteProjectColumn(params: Github.ProjectsDeleteProjectColumnParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3236 moveProjectColumn(params: Github.ProjectsMoveProjectColumnParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3237 };
3238 pullRequests: {
3239 get(params: Github.PullRequestsGetParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3240 create(params: Github.PullRequestsCreateParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3241 update(params: Github.PullRequestsUpdateParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3242 merge(params: Github.PullRequestsMergeParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3243 getAll(params: Github.PullRequestsGetAllParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3244 createFromIssue(params: Github.PullRequestsCreateFromIssueParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3245 getCommits(params: Github.PullRequestsGetCommitsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3246 getFiles(params: Github.PullRequestsGetFilesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3247 checkMerged(params: Github.PullRequestsCheckMergedParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3248 getReviews(params: Github.PullRequestsGetReviewsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3249 getReview(params: Github.PullRequestsGetReviewParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3250 deletePendingReview(params: Github.PullRequestsDeletePendingReviewParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3251 getReviewComments(params: Github.PullRequestsGetReviewCommentsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3252 createReview(params: Github.PullRequestsCreateReviewParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3253 submitReview(params: Github.PullRequestsSubmitReviewParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3254 dismissReview(params: Github.PullRequestsDismissReviewParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3255 getComments(params: Github.PullRequestsGetCommentsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3256 getCommentsForRepo(params: Github.PullRequestsGetCommentsForRepoParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3257 getComment(params: Github.PullRequestsGetCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3258 createComment(params: Github.PullRequestsCreateCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3259 createCommentReply(params: Github.PullRequestsCreateCommentReplyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3260 editComment(params: Github.PullRequestsEditCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3261 deleteComment(params: Github.PullRequestsDeleteCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3262 getReviewRequests(params: Github.PullRequestsGetReviewRequestsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3263 createReviewRequest(params: Github.PullRequestsCreateReviewRequestParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3264 deleteReviewRequest(params: Github.PullRequestsDeleteReviewRequestParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3265 };
3266 reactions: {
3267 delete(params: Github.ReactionsDeleteParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3268 getForCommitComment(params: Github.ReactionsGetForCommitCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3269 createForCommitComment(params: Github.ReactionsCreateForCommitCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3270 getForIssue(params: Github.ReactionsGetForIssueParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3271 createForIssue(params: Github.ReactionsCreateForIssueParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3272 getForIssueComment(params: Github.ReactionsGetForIssueCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3273 createForIssueComment(params: Github.ReactionsCreateForIssueCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3274 getForPullRequestReviewComment(params: Github.ReactionsGetForPullRequestReviewCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3275 createForPullRequestReviewComment(params: Github.ReactionsCreateForPullRequestReviewCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3276 };
3277 repos: {
3278 create(params: Github.ReposCreateParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3279 get(params: Github.ReposGetParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3280 edit(params: Github.ReposEditParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3281 delete(params: Github.ReposDeleteParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3282 fork(params: Github.ReposForkParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3283 merge(params: Github.ReposMergeParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3284 getAll(params: Github.ReposGetAllParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3285 getForUser(params: Github.ReposGetForUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3286 getForOrg(params: Github.ReposGetForOrgParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3287 getPublic(params: Github.ReposGetPublicParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3288 createForOrg(params: Github.ReposCreateForOrgParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3289 getById(params: Github.ReposGetByIdParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3290 getTopics(params: Github.ReposGetTopicsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3291 replaceTopics(params: Github.ReposReplaceTopicsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3292 getContributors(params: Github.ReposGetContributorsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3293 getLanguages(params: Github.ReposGetLanguagesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3294 getTeams(params: Github.ReposGetTeamsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3295 getTags(params: Github.ReposGetTagsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3296 getBranches(params: Github.ReposGetBranchesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3297 getBranch(params: Github.ReposGetBranchParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3298 getBranchProtection(params: Github.ReposGetBranchProtectionParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3299 updateBranchProtection(params: Github.ReposUpdateBranchProtectionParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3300 removeBranchProtection(params: Github.ReposRemoveBranchProtectionParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3301 getProtectedBranchRequiredStatusChecks(params: Github.ReposGetProtectedBranchRequiredStatusChecksParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3302 updateProtectedBranchRequiredStatusChecks(params: Github.ReposUpdateProtectedBranchRequiredStatusChecksParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3303 removeProtectedBranchRequiredStatusChecks(params: Github.ReposRemoveProtectedBranchRequiredStatusChecksParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3304 getProtectedBranchRequiredStatusChecksContexts(params: Github.ReposGetProtectedBranchRequiredStatusChecksContextsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3305 replaceProtectedBranchRequiredStatusChecksContexts(params: Github.ReposReplaceProtectedBranchRequiredStatusChecksContextsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3306 addProtectedBranchRequiredStatusChecksContexts(params: Github.ReposAddProtectedBranchRequiredStatusChecksContextsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3307 removeProtectedBranchRequiredStatusChecksContexts(params: Github.ReposRemoveProtectedBranchRequiredStatusChecksContextsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3308 getProtectedBranchPullRequestReviewEnforcement(params: Github.ReposGetProtectedBranchPullRequestReviewEnforcementParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3309 updateProtectedBranchPullRequestReviewEnforcement(params: Github.ReposUpdateProtectedBranchPullRequestReviewEnforcementParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3310 removeProtectedBranchPullRequestReviewEnforcement(params: Github.ReposRemoveProtectedBranchPullRequestReviewEnforcementParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3311 getProtectedBranchAdminEnforcement(params: Github.ReposGetProtectedBranchAdminEnforcementParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3312 addProtectedBranchAdminEnforcement(params: Github.ReposAddProtectedBranchAdminEnforcementParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3313 removeProtectedBranchAdminEnforcement(params: Github.ReposRemoveProtectedBranchAdminEnforcementParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3314 getProtectedBranchRestrictions(params: Github.ReposGetProtectedBranchRestrictionsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3315 removeProtectedBranchRestrictions(params: Github.ReposRemoveProtectedBranchRestrictionsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3316 getProtectedBranchTeamRestrictions(params: Github.ReposGetProtectedBranchTeamRestrictionsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3317 replaceProtectedBranchTeamRestrictions(params: Github.ReposReplaceProtectedBranchTeamRestrictionsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3318 addProtectedBranchTeamRestrictions(params: Github.ReposAddProtectedBranchTeamRestrictionsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3319 removeProtectedBranchTeamRestrictions(params: Github.ReposRemoveProtectedBranchTeamRestrictionsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3320 getProtectedBranchUserRestrictions(params: Github.ReposGetProtectedBranchUserRestrictionsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3321 replaceProtectedBranchUserRestrictions(params: Github.ReposReplaceProtectedBranchUserRestrictionsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3322 addProtectedBranchUserRestrictions(params: Github.ReposAddProtectedBranchUserRestrictionsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3323 removeProtectedBranchUserRestrictions(params: Github.ReposRemoveProtectedBranchUserRestrictionsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3324 getCollaborators(params: Github.ReposGetCollaboratorsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3325 checkCollaborator(params: Github.ReposCheckCollaboratorParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3326 reviewUserPermissionLevel(params: Github.ReposReviewUserPermissionLevelParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3327 addCollaborator(params: Github.ReposAddCollaboratorParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3328 removeCollaborator(params: Github.ReposRemoveCollaboratorParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3329 getAllCommitComments(params: Github.ReposGetAllCommitCommentsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3330 getCommitComments(params: Github.ReposGetCommitCommentsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3331 createCommitComment(params: Github.ReposCreateCommitCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3332 getCommitComment(params: Github.ReposGetCommitCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3333 updateCommitComment(params: Github.ReposUpdateCommitCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3334 deleteCommitComment(params: Github.ReposDeleteCommitCommentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3335 getCommunityProfileMetrics(params: Github.ReposGetCommunityProfileMetricsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3336 getCommits(params: Github.ReposGetCommitsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3337 getCommit(params: Github.ReposGetCommitParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3338 getShaOfCommitRef(params: Github.ReposGetShaOfCommitRefParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3339 compareCommits(params: Github.ReposCompareCommitsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3340 getReadme(params: Github.ReposGetReadmeParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3341 getContent(params: Github.ReposGetContentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3342 createFile(params: Github.ReposCreateFileParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3343 updateFile(params: Github.ReposUpdateFileParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3344 deleteFile(params: Github.ReposDeleteFileParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3345 getArchiveLink(params: Github.ReposGetArchiveLinkParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3346 getDeployKeys(params: Github.ReposGetDeployKeysParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3347 getDeployKey(params: Github.ReposGetDeployKeyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3348 addDeployKey(params: Github.ReposAddDeployKeyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3349 deleteDeployKey(params: Github.ReposDeleteDeployKeyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3350 getDeployments(params: Github.ReposGetDeploymentsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3351 getDeployment(params: Github.ReposGetDeploymentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3352 createDeployment(params: Github.ReposCreateDeploymentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3353 getDeploymentStatuses(params: Github.ReposGetDeploymentStatusesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3354 getDeploymentStatus(params: Github.ReposGetDeploymentStatusParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3355 createDeploymentStatus(params: Github.ReposCreateDeploymentStatusParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3356 getDownloads(params: Github.ReposGetDownloadsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3357 getDownload(params: Github.ReposGetDownloadParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3358 deleteDownload(params: Github.ReposDeleteDownloadParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3359 getForks(params: Github.ReposGetForksParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3360 getInvites(params: Github.ReposGetInvitesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3361 deleteInvite(params: Github.ReposDeleteInviteParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3362 updateInvite(params: Github.ReposUpdateInviteParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3363 getPages(params: Github.ReposGetPagesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3364 requestPageBuild(params: Github.ReposRequestPageBuildParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3365 getPagesBuilds(params: Github.ReposGetPagesBuildsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3366 getLatestPagesBuild(params: Github.ReposGetLatestPagesBuildParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3367 getPagesBuild(params: Github.ReposGetPagesBuildParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3368 getReleases(params: Github.ReposGetReleasesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3369 getRelease(params: Github.ReposGetReleaseParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3370 getLatestRelease(params: Github.ReposGetLatestReleaseParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3371 getReleaseByTag(params: Github.ReposGetReleaseByTagParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3372 createRelease(params: Github.ReposCreateReleaseParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3373 editRelease(params: Github.ReposEditReleaseParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3374 deleteRelease(params: Github.ReposDeleteReleaseParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3375 getAssets(params: Github.ReposGetAssetsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3376 uploadAsset(params: Github.ReposUploadAssetParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3377 getAsset(params: Github.ReposGetAssetParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3378 editAsset(params: Github.ReposEditAssetParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3379 deleteAsset(params: Github.ReposDeleteAssetParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3380 getStatsContributors(params: Github.ReposGetStatsContributorsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3381 getStatsCommitActivity(params: Github.ReposGetStatsCommitActivityParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3382 getStatsCodeFrequency(params: Github.ReposGetStatsCodeFrequencyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3383 getStatsParticipation(params: Github.ReposGetStatsParticipationParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3384 getStatsPunchCard(params: Github.ReposGetStatsPunchCardParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3385 createStatus(params: Github.ReposCreateStatusParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3386 getStatuses(params: Github.ReposGetStatusesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3387 getCombinedStatusForRef(params: Github.ReposGetCombinedStatusForRefParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3388 getReferrers(params: Github.ReposGetReferrersParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3389 getPaths(params: Github.ReposGetPathsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3390 getViews(params: Github.ReposGetViewsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3391 getClones(params: Github.ReposGetClonesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3392 getHooks(params: Github.ReposGetHooksParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3393 getHook(params: Github.ReposGetHookParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3394 createHook(params: Github.ReposCreateHookParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3395 editHook(params: Github.ReposEditHookParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3396 testHook(params: Github.ReposTestHookParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3397 pingHook(params: Github.ReposPingHookParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3398 deleteHook(params: Github.ReposDeleteHookParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3399 };
3400 search: {
3401 repos(params: Github.SearchReposParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3402 code(params: Github.SearchCodeParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3403 commits(params: Github.SearchCommitsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3404 issues(params: Github.SearchIssuesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3405 users(params: Github.SearchUsersParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3406 email(params: Github.SearchEmailParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3407 };
3408 users: {
3409 get(params: Github.EmptyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3410 update(params: Github.UsersUpdateParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3411 promote(params: Github.UsersPromoteParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3412 demote(params: Github.UsersDemoteParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3413 suspend(params: Github.UsersSuspendParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3414 unsuspend(params: Github.UsersUnsuspendParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3415 getForUser(params: Github.UsersGetForUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3416 getById(params: Github.UsersGetByIdParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3417 getAll(params: Github.UsersGetAllParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3418 getOrgs(params: Github.UsersGetOrgsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3419 getOrgMemberships(params: Github.UsersGetOrgMembershipsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3420 getOrgMembership(params: Github.UsersGetOrgMembershipParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3421 editOrgMembership(params: Github.UsersEditOrgMembershipParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3422 getTeams(params: Github.UsersGetTeamsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3423 getEmails(params: Github.UsersGetEmailsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3424 getPublicEmails(params: Github.UsersGetPublicEmailsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3425 addEmails(params: Github.UsersAddEmailsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3426 deleteEmails(params: Github.UsersDeleteEmailsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3427 togglePrimaryEmailVisibility(params: Github.EmptyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3428 getFollowersForUser(params: Github.UsersGetFollowersForUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3429 getFollowers(params: Github.UsersGetFollowersParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3430 getFollowingForUser(params: Github.UsersGetFollowingForUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3431 getFollowing(params: Github.UsersGetFollowingParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3432 checkFollowing(params: Github.UsersCheckFollowingParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3433 checkIfOneFollowersOther(params: Github.UsersCheckIfOneFollowersOtherParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3434 followUser(params: Github.UsersFollowUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3435 unfollowUser(params: Github.UsersUnfollowUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3436 getKeysForUser(params: Github.UsersGetKeysForUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3437 getKeys(params: Github.UsersGetKeysParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3438 getKey(params: Github.UsersGetKeyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3439 createKey(params: Github.UsersCreateKeyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3440 deleteKey(params: Github.UsersDeleteKeyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3441 getGpgKeysForUser(params: Github.UsersGetGpgKeysForUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3442 getGpgKeys(params: Github.UsersGetGpgKeysParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3443 getGpgKey(params: Github.UsersGetGpgKeyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3444 createGpgKey(params: Github.UsersCreateGpgKeyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3445 deleteGpgKey(params: Github.UsersDeleteGpgKeyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3446 getBlockedUsers(params: Github.EmptyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3447 checkBlockedUser(params: Github.UsersCheckBlockedUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3448 blockUser(params: Github.UsersBlockUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3449 unblockUser(params: Github.UsersUnblockUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3450 getRepoInvites(params: Github.EmptyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3451 acceptRepoInvite(params: Github.UsersAcceptRepoInviteParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3452 declineRepoInvite(params: Github.UsersDeclineRepoInviteParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3453 getInstallations(params: Github.UsersGetInstallationsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3454 getInstallationRepos(params: Github.UsersGetInstallationReposParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3455 addRepoToInstallation(params: Github.UsersAddRepoToInstallationParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3456 removeRepoFromInstallation(params: Github.UsersRemoveRepoFromInstallationParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3457 getMarketplacePurchases(params: Github.UsersGetMarketplacePurchasesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3458 getMarketplaceStubbedPurchases(params: Github.UsersGetMarketplaceStubbedPurchasesParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3459 };
3460 enterprise: {
3461 stats(params: Github.EnterpriseStatsParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3462 updateLdapForUser(params: Github.EnterpriseUpdateLdapForUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3463 syncLdapForUser(params: Github.EnterpriseSyncLdapForUserParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3464 updateLdapForTeam(params: Github.EnterpriseUpdateLdapForTeamParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3465 syncLdapForTeam(params: Github.EnterpriseSyncLdapForTeamParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3466 getLicense(params: Github.EmptyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3467 getPreReceiveEnvironment(params: Github.EnterpriseGetPreReceiveEnvironmentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3468 getPreReceiveEnvironments(params: Github.EmptyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3469 createPreReceiveEnvironment(params: Github.EnterpriseCreatePreReceiveEnvironmentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3470 editPreReceiveEnvironment(params: Github.EnterpriseEditPreReceiveEnvironmentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3471 deletePreReceiveEnvironment(params: Github.EnterpriseDeletePreReceiveEnvironmentParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3472 getPreReceiveEnvironmentDownloadStatus(params: Github.EnterpriseGetPreReceiveEnvironmentDownloadStatusParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3473 triggerPreReceiveEnvironmentDownload(params: Github.EnterpriseTriggerPreReceiveEnvironmentDownloadParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3474 getPreReceiveHook(params: Github.EnterpriseGetPreReceiveHookParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3475 getPreReceiveHooks(params: Github.EmptyParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3476 createPreReceiveHook(params: Github.EnterpriseCreatePreReceiveHookParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3477 editPreReceiveHook(params: Github.EnterpriseEditPreReceiveHookParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3478 deletePreReceiveHook(params: Github.EnterpriseDeletePreReceiveHookParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3479 queueIndexingJob(params: Github.EnterpriseQueueIndexingJobParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3480 createOrg(params: Github.EnterpriseCreateOrgParams, callback?: Github.Callback): Promise<Github.AnyResponse>;
3481 };
3482}
3483
3484export = Github;