forked from openapi-ts/openapi-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoctokit-ghes-3.6-diff-to-api.ts
11962 lines (11961 loc) · 487 KB
/
octokit-ghes-3.6-diff-to-api.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* This file was auto-generated by openapi-typescript.
* Do not make direct changes to the file.
*/
export interface paths {
"/admin/hooks": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** List global webhooks */
get: operations["enterprise-admin/list-global-webhooks"];
put?: never;
/** Create a global webhook */
post: operations["enterprise-admin/create-global-webhook"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/admin/hooks/{hook_id}": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Get a global webhook */
get: operations["enterprise-admin/get-global-webhook"];
put?: never;
post?: never;
/** Delete a global webhook */
delete: operations["enterprise-admin/delete-global-webhook"];
options?: never;
head?: never;
/**
* Update a global webhook
* @description Parameters that are not provided will be overwritten with the default value or removed if no default exists.
*/
patch: operations["enterprise-admin/update-global-webhook"];
trace?: never;
};
"/admin/hooks/{hook_id}/pings": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Ping a global webhook
* @description This will trigger a [ping event](https://docs.github.com/[email protected]/webhooks/#ping-event) to be sent to the webhook.
*/
post: operations["enterprise-admin/ping-global-webhook"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/admin/keys": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** List public keys */
get: operations["enterprise-admin/list-public-keys"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/admin/keys/{key_ids}": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
post?: never;
/** Delete a public key */
delete: operations["enterprise-admin/delete-public-key"];
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/admin/ldap/teams/{team_id}/mapping": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
/**
* Update LDAP mapping for a team
* @description Updates the [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. [LDAP synchronization](https://docs.github.com/[email protected]/admin/identity-and-access-management/using-ldap-for-enterprise-iam/using-ldap#enabling-ldap-sync) must be enabled to map LDAP entries to a team. Use the [Create a team](https://docs.github.com/[email protected]/rest/reference/teams/#create-a-team) endpoint to create a team with LDAP mapping.
*/
patch: operations["enterprise-admin/update-ldap-mapping-for-team"];
trace?: never;
};
"/admin/ldap/teams/{team_id}/sync": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Sync LDAP mapping for a team
* @description Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready.
*/
post: operations["enterprise-admin/sync-ldap-mapping-for-team"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/admin/ldap/users/{username}/mapping": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
/** Update LDAP mapping for a user */
patch: operations["enterprise-admin/update-ldap-mapping-for-user"];
trace?: never;
};
"/admin/ldap/users/{username}/sync": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Sync LDAP mapping for a user
* @description Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready.
*/
post: operations["enterprise-admin/sync-ldap-mapping-for-user"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/admin/organizations": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/** Create an organization */
post: operations["enterprise-admin/create-org"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/admin/organizations/{org}": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
/** Update an organization name */
patch: operations["enterprise-admin/update-org-name"];
trace?: never;
};
"/admin/pre-receive-environments": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** List pre-receive environments */
get: operations["enterprise-admin/list-pre-receive-environments"];
put?: never;
/** Create a pre-receive environment */
post: operations["enterprise-admin/create-pre-receive-environment"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/admin/pre-receive-environments/{pre_receive_environment_id}": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Get a pre-receive environment */
get: operations["enterprise-admin/get-pre-receive-environment"];
put?: never;
post?: never;
/**
* Delete a pre-receive environment
* @description If you attempt to delete an environment that cannot be deleted, you will receive a `422 Unprocessable Entity` response.
*
* The possible error messages are:
*
* * _Cannot modify or delete the default environment_
* * _Cannot delete environment that has hooks_
* * _Cannot delete environment when download is in progress_
*/
delete: operations["enterprise-admin/delete-pre-receive-environment"];
options?: never;
head?: never;
/**
* Update a pre-receive environment
* @description You cannot modify the default environment. If you attempt to modify the default environment, you will receive a `422 Unprocessable Entity` response.
*/
patch: operations["enterprise-admin/update-pre-receive-environment"];
trace?: never;
};
"/admin/pre-receive-environments/{pre_receive_environment_id}/downloads": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Start a pre-receive environment download
* @description Triggers a new download of the environment tarball from the environment's `image_url`. When the download is finished, the newly downloaded tarball will overwrite the existing environment.
*
* If a download cannot be triggered, you will receive a `422 Unprocessable Entity` response.
*
* The possible error messages are:
*
* * _Cannot modify or delete the default environment_
* * _Can not start a new download when a download is in progress_
*/
post: operations["enterprise-admin/start-pre-receive-environment-download"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* Get the download status for a pre-receive environment
* @description In addition to seeing the download status at the "[Get a pre-receive environment](#get-a-pre-receive-environment)" endpoint, there is also this separate endpoint for just the download status.
*/
get: operations["enterprise-admin/get-download-status-for-pre-receive-environment"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/admin/pre-receive-hooks": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** List pre-receive hooks */
get: operations["enterprise-admin/list-pre-receive-hooks"];
put?: never;
/** Create a pre-receive hook */
post: operations["enterprise-admin/create-pre-receive-hook"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/admin/pre-receive-hooks/{pre_receive_hook_id}": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Get a pre-receive hook */
get: operations["enterprise-admin/get-pre-receive-hook"];
put?: never;
post?: never;
/** Delete a pre-receive hook */
delete: operations["enterprise-admin/delete-pre-receive-hook"];
options?: never;
head?: never;
/** Update a pre-receive hook */
patch: operations["enterprise-admin/update-pre-receive-hook"];
trace?: never;
};
"/admin/tokens": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* List personal access tokens
* @description Lists personal access tokens for all users, including admin users.
*/
get: operations["enterprise-admin/list-personal-access-tokens"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/admin/tokens/{token_id}": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
post?: never;
/**
* Delete a personal access token
* @description Deletes a personal access token. Returns a `403 - Forbidden` status when a personal access token is in use. For example, if you access this endpoint with the same personal access token that you are trying to delete, you will receive this error.
*/
delete: operations["enterprise-admin/delete-personal-access-token"];
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/admin/users": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Create a user
* @description If an external authentication mechanism is used, the login name should match the login name in the external system. If you are using LDAP authentication, you should also [update the LDAP mapping](https://docs.github.com/[email protected]/rest/reference/enterprise-admin#update-ldap-mapping-for-a-user) for the user.
*
* The login name will be normalized to only contain alphanumeric characters or single hyphens. For example, if you send `"octo_cat"` as the login, a user named `"octo-cat"` will be created.
*
* If the login name or email address is already associated with an account, the server will return a `422` response.
*/
post: operations["enterprise-admin/create-user"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/admin/users/{username}": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
post?: never;
/**
* Delete a user
* @description Deleting a user will delete all their repositories, gists, applications, and personal settings. [Suspending a user](https://docs.github.com/[email protected]/rest/reference/enterprise-admin#suspend-a-user) is often a better option.
*
* You can delete any user account except your own.
*/
delete: operations["enterprise-admin/delete-user"];
options?: never;
head?: never;
/** Update the username for a user */
patch: operations["enterprise-admin/update-username-for-user"];
trace?: never;
};
"/admin/users/{username}/authorizations": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/** Create an impersonation OAuth token */
post: operations["enterprise-admin/create-impersonation-o-auth-token"];
/** Delete an impersonation OAuth token */
delete: operations["enterprise-admin/delete-impersonation-o-auth-token"];
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/app/installations": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* List installations for the authenticated app
* @description You must use a [JWT](https://docs.github.com/[email protected]/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
*
* The permissions the installation has are included under the `permissions` key.
*/
get: operations["apps/list-installations"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/app/installations/{installation_id}": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* Get an installation for the authenticated app
* @description Enables an authenticated GitHub App to find an installation's information using the installation id.
*
* You must use a [JWT](https://docs.github.com/[email protected]/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
*/
get: operations["apps/get-installation"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/app/installations/{installation_id}/access_tokens": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Create an installation access token for an app
* @description Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access. To restrict the access to specific repositories, you can provide the `repository_ids` when creating the token. When you omit `repository_ids`, the response does not contain the `repositories` key.
*
* You must use a [JWT](https://docs.github.com/[email protected]/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
*/
post: operations["apps/create-installation-access-token"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/applications/grants": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* List your grants
* @deprecated
* @description **Deprecation Notice:** GitHub Enterprise Server will discontinue the [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations/), which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our [web application flow](https://docs.github.com/[email protected]/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations) will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/).
*
* You can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the [list your authorizations](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations#list-your-authorizations) API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). The `scopes` returned are the union of scopes authorized for the application. For example, if an application has one token with `repo` scope and another token with `user` scope, the grant will return `["repo", "user"]`.
*/
get: operations["oauth-authorizations/list-grants"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/applications/grants/{grant_id}": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* Get a single grant
* @deprecated
* @description **Deprecation Notice:** GitHub Enterprise Server will discontinue the [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations), which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our [web application flow](https://docs.github.com/[email protected]/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations) will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/).
*/
get: operations["oauth-authorizations/get-grant"];
put?: never;
post?: never;
/**
* Delete a grant
* @deprecated
* @description **Deprecation Notice:** GitHub Enterprise Server will discontinue the [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations/), which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our [web application flow](https://docs.github.com/[email protected]/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations/) will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/).
*
* Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized).
*/
delete: operations["oauth-authorizations/delete-grant"];
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/applications/{client_id}/token": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Check a token
* @description OAuth applications can use a special API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://docs.github.com/[email protected]/rest/overview/other-authentication-methods#basic-authentication) to use this endpoint, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`.
*/
post: operations["apps/check-token"];
delete?: never;
options?: never;
head?: never;
/**
* Reset a token
* @description OAuth applications can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. You must use [Basic Authentication](https://docs.github.com/[email protected]/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`.
*/
patch: operations["apps/reset-token"];
trace?: never;
};
"/applications/{client_id}/token/scoped": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Create a scoped access token
* @description Use a non-scoped user-to-server OAuth access token to create a repository scoped and/or permission scoped user-to-server OAuth access token. You can specify which repositories the token can access and which permissions are granted to the token. You must use [Basic Authentication](https://docs.github.com/[email protected]/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`.
*/
post: operations["apps/scope-token"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/authorizations": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* List your authorizations
* @deprecated
* @description **Deprecation Notice:** GitHub Enterprise Server will discontinue the [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations), which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our [web application flow](https://docs.github.com/[email protected]/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations) will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/).
*/
get: operations["oauth-authorizations/list-authorizations"];
put?: never;
/**
* Create a new authorization
* @deprecated
* @description **Deprecation Notice:** GitHub Enterprise Server will discontinue the [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations), which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our [web application flow](https://docs.github.com/[email protected]/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations) will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/).
*
* **Warning:** Apps must use the [web application flow](https://docs.github.com/[email protected]/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api).
*
* Creates OAuth tokens using [Basic Authentication](https://docs.github.com/[email protected]/rest/overview/other-authentication-methods#basic-authentication). If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://docs.github.com/[email protected]/rest/overview/other-authentication-methods#working-with-two-factor-authentication)."
*
* To create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use `fingerprint` to differentiate between them.
*
* You can also create tokens on GitHub Enterprise Server from the [personal access tokens settings](https://github.com/settings/tokens) page. Read more about these tokens in [the GitHub Help documentation](https://docs.github.com/articles/creating-an-access-token-for-command-line-use).
*
* Organizations that enforce SAML SSO require personal access tokens to be allowed. Read more about allowing tokens in [the GitHub Help documentation](https://docs.github.com/articles/about-identity-and-access-management-with-saml-single-sign-on).
*/
post: operations["oauth-authorizations/create-authorization"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/authorizations/clients/{client_id}": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
/**
* Get-or-create an authorization for a specific app
* @deprecated
* @description **Deprecation Notice:** GitHub Enterprise Server will discontinue the [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations/), which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our [web application flow](https://docs.github.com/[email protected]/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations) will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/).
*
* **Warning:** Apps must use the [web application flow](https://docs.github.com/[email protected]/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api).
*
* Creates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
*
* If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://docs.github.com/[email protected]/rest/overview/other-authentication-methods#working-with-two-factor-authentication)."
*
* **Deprecation Notice:** GitHub Enterprise Server will discontinue the [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations/), which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our [web application flow](https://docs.github.com/[email protected]/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations) will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/).
*/
put: operations["oauth-authorizations/get-or-create-authorization-for-app"];
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/authorizations/clients/{client_id}/{fingerprint}": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
/**
* Get-or-create an authorization for a specific app and fingerprint
* @deprecated
* @description **Deprecation Notice:** GitHub Enterprise Server will discontinue the [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations/), which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our [web application flow](https://docs.github.com/[email protected]/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations) will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/).
*
* **Warning:** Apps must use the [web application flow](https://docs.github.com/[email protected]/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api).
*
* This method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. `fingerprint` is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
*
* If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://docs.github.com/[email protected]/rest/overview/other-authentication-methods#working-with-two-factor-authentication)."
*/
put: operations["oauth-authorizations/get-or-create-authorization-for-app-and-fingerprint"];
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/authorizations/{authorization_id}": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* Get a single authorization
* @deprecated
* @description **Deprecation Notice:** GitHub Enterprise Server will discontinue the [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations), which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our [web application flow](https://docs.github.com/[email protected]/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations) will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/).
*/
get: operations["oauth-authorizations/get-authorization"];
put?: never;
post?: never;
/**
* Delete an authorization
* @deprecated
* @description **Deprecation Notice:** GitHub Enterprise Server will discontinue the [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations), which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our [web application flow](https://docs.github.com/[email protected]/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations) will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/).
*/
delete: operations["oauth-authorizations/delete-authorization"];
options?: never;
head?: never;
/**
* Update an existing authorization
* @deprecated
* @description **Deprecation Notice:** GitHub Enterprise Server will discontinue the [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations/), which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our [web application flow](https://docs.github.com/[email protected]/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations) will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/).
*
* If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://docs.github.com/[email protected]/rest/overview/other-authentication-methods#working-with-two-factor-authentication)."
*
* You can only send one of these scope keys at a time.
*/
patch: operations["oauth-authorizations/update-authorization"];
trace?: never;
};
"/enterprise/announcement": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* Get the global announcement banner
* @description Gets the current message and expiration date of the global announcement banner in your enterprise.
*/
get: operations["enterprise-admin/get-announcement"];
put?: never;
post?: never;
/**
* Remove the global announcement banner
* @description Removes the global announcement banner in your enterprise.
*/
delete: operations["enterprise-admin/remove-announcement"];
options?: never;
head?: never;
/**
* Set the global announcement banner
* @description Sets the message and expiration time for the global announcement banner in your enterprise.
*/
patch: operations["enterprise-admin/set-announcement"];
trace?: never;
};
"/enterprise/settings/license": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Get license information */
get: operations["enterprise-admin/get-license-information"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/enterprise/stats/all": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Get all statistics */
get: operations["enterprise-admin/get-all-stats"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/enterprise/stats/comments": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Get comment statistics */
get: operations["enterprise-admin/get-comment-stats"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/enterprise/stats/gists": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Get gist statistics */
get: operations["enterprise-admin/get-gist-stats"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/enterprise/stats/hooks": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Get hooks statistics */
get: operations["enterprise-admin/get-hooks-stats"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/enterprise/stats/issues": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Get issue statistics */
get: operations["enterprise-admin/get-issue-stats"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/enterprise/stats/milestones": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Get milestone statistics */
get: operations["enterprise-admin/get-milestone-stats"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/enterprise/stats/orgs": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Get organization statistics */
get: operations["enterprise-admin/get-org-stats"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/enterprise/stats/pages": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Get pages statistics */
get: operations["enterprise-admin/get-pages-stats"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/enterprise/stats/pulls": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Get pull request statistics */
get: operations["enterprise-admin/get-pull-request-stats"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/enterprise/stats/repos": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Get repository statistics */
get: operations["enterprise-admin/get-repo-stats"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/enterprise/stats/users": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Get users statistics */
get: operations["enterprise-admin/get-user-stats"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/enterprises/{enterprise}/actions/cache/usage-policy": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* Get GitHub Actions cache usage policy for an enterprise
* @description Gets the GitHub Actions cache usage policy for an enterprise.
* You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.
* GitHub Apps must have the `enterprise_administration:write` permission to use this endpoint.
*/
get: operations["actions/get-actions-cache-usage-policy-for-enterprise"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
/**
* Set GitHub Actions cache usage policy for an enterprise
* @description Sets the GitHub Actions cache usage policy for an enterprise.
* You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.
* GitHub Apps must have the `enterprise_administration:write` permission to use this endpoint.
*/
patch: operations["actions/set-actions-cache-usage-policy-for-enterprise"];
trace?: never;
};
"/enterprises/{enterprise}/actions/permissions/selected-actions": {
parameters: {
query?: never;