@octokit/types 4.1.4 → 4.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const VERSION = "4.1.4";
5
+ const VERSION = "4.1.5";
6
6
 
7
7
  exports.VERSION = VERSION;
8
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export const VERSION = "4.1.4";
1
+ export const VERSION = "4.1.5";
@@ -1 +1 @@
1
- export declare const VERSION = "4.1.4";
1
+ export declare const VERSION = "4.1.5";
@@ -216,7 +216,7 @@ export interface Endpoints {
216
216
  response: OctokitResponse<any>;
217
217
  };
218
218
  /**
219
- * @see https://developer.github.com/v3/teams/#delete-team
219
+ * @see https://developer.github.com/v3/teams/#delete-a-team
220
220
  */
221
221
  "DELETE /orgs/:org/teams/:team_slug": {
222
222
  parameters: TeamsDeleteInOrgEndpoint;
@@ -232,7 +232,7 @@ export interface Endpoints {
232
232
  response: OctokitResponse<any>;
233
233
  };
234
234
  /**
235
- * @see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment
235
+ * @see https://developer.github.com/v3/teams/discussion_comments/#delete-a-discussion-comment
236
236
  */
237
237
  "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": {
238
238
  parameters: TeamsDeleteDiscussionCommentInOrgEndpoint;
@@ -256,15 +256,15 @@ export interface Endpoints {
256
256
  response: OctokitResponse<any>;
257
257
  };
258
258
  /**
259
- * @see https://developer.github.com/v3/teams/members/#remove-team-membership
259
+ * @see https://developer.github.com/v3/teams/members/#remove-team-membership-for-a-user
260
260
  */
261
261
  "DELETE /orgs/:org/teams/:team_slug/memberships/:username": {
262
- parameters: TeamsRemoveMembershipInOrgEndpoint;
263
- request: TeamsRemoveMembershipInOrgRequestOptions;
262
+ parameters: TeamsRemoveMembershipForUserInOrgEndpoint;
263
+ request: TeamsRemoveMembershipForUserInOrgRequestOptions;
264
264
  response: OctokitResponse<any>;
265
265
  };
266
266
  /**
267
- * @see https://developer.github.com/v3/teams/#remove-team-project
267
+ * @see https://developer.github.com/v3/teams/#remove-a-project-from-a-team
268
268
  */
269
269
  "DELETE /orgs/:org/teams/:team_slug/projects/:project_id": {
270
270
  parameters: TeamsRemoveProjectInOrgEndpoint;
@@ -272,7 +272,7 @@ export interface Endpoints {
272
272
  response: OctokitResponse<any>;
273
273
  };
274
274
  /**
275
- * @see https://developer.github.com/v3/teams/#remove-team-repository
275
+ * @see https://developer.github.com/v3/teams/#remove-a-repository-from-a-team
276
276
  */
277
277
  "DELETE /orgs/:org/teams/:team_slug/repos/:owner/:repo": {
278
278
  parameters: TeamsRemoveRepoInOrgEndpoint;
@@ -576,7 +576,7 @@ export interface Endpoints {
576
576
  response: OctokitResponse<any>;
577
577
  };
578
578
  /**
579
- * @see https://developer.github.com/v3/issues/comments/#delete-a-comment
579
+ * @see https://developer.github.com/v3/issues/comments/#delete-an-issue-comment
580
580
  */
581
581
  "DELETE /repos/:owner/:repo/issues/comments/:comment_id": {
582
582
  parameters: IssuesDeleteCommentEndpoint;
@@ -1360,7 +1360,7 @@ export interface Endpoints {
1360
1360
  response: OctokitResponse<MigrationsListForOrgResponseData>;
1361
1361
  };
1362
1362
  /**
1363
- * @see https://developer.github.com/v3/migrations/orgs/#get-the-status-of-an-organization-migration
1363
+ * @see https://developer.github.com/v3/migrations/orgs/#get-an-organization-migration-status
1364
1364
  */
1365
1365
  "GET /orgs/:org/migrations/:migration_id": {
1366
1366
  parameters: MigrationsGetStatusForOrgEndpoint;
@@ -1424,7 +1424,7 @@ export interface Endpoints {
1424
1424
  response: OctokitResponse<ReposListForOrgResponseData>;
1425
1425
  };
1426
1426
  /**
1427
- * @see https://developer.github.com/v3/teams/team_sync/#list-idp-groups-in-an-organization
1427
+ * @see https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-an-organization
1428
1428
  */
1429
1429
  "GET /orgs/:org/team-sync/groups": {
1430
1430
  parameters: TeamsListIdPGroupsForOrgEndpoint;
@@ -1440,7 +1440,7 @@ export interface Endpoints {
1440
1440
  response: OctokitResponse<TeamsListResponseData>;
1441
1441
  };
1442
1442
  /**
1443
- * @see https://developer.github.com/v3/teams/#get-team-by-name
1443
+ * @see https://developer.github.com/v3/teams/#get-a-team-by-name
1444
1444
  */
1445
1445
  "GET /orgs/:org/teams/:team_slug": {
1446
1446
  parameters: TeamsGetByNameEndpoint;
@@ -1456,7 +1456,7 @@ export interface Endpoints {
1456
1456
  response: OctokitResponse<TeamsListDiscussionsInOrgResponseData>;
1457
1457
  };
1458
1458
  /**
1459
- * @see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion
1459
+ * @see https://developer.github.com/v3/teams/discussions/#get-a-discussion
1460
1460
  */
1461
1461
  "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number": {
1462
1462
  parameters: TeamsGetDiscussionInOrgEndpoint;
@@ -1464,7 +1464,7 @@ export interface Endpoints {
1464
1464
  response: OctokitResponse<TeamsGetDiscussionInOrgResponseData>;
1465
1465
  };
1466
1466
  /**
1467
- * @see https://developer.github.com/v3/teams/discussion_comments/#list-comments
1467
+ * @see https://developer.github.com/v3/teams/discussion_comments/#list-discussion-comments
1468
1468
  */
1469
1469
  "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments": {
1470
1470
  parameters: TeamsListDiscussionCommentsInOrgEndpoint;
@@ -1472,7 +1472,7 @@ export interface Endpoints {
1472
1472
  response: OctokitResponse<TeamsListDiscussionCommentsInOrgResponseData>;
1473
1473
  };
1474
1474
  /**
1475
- * @see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment
1475
+ * @see https://developer.github.com/v3/teams/discussion_comments/#get-a-discussion-comment
1476
1476
  */
1477
1477
  "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": {
1478
1478
  parameters: TeamsGetDiscussionCommentInOrgEndpoint;
@@ -1512,12 +1512,12 @@ export interface Endpoints {
1512
1512
  response: OctokitResponse<TeamsListMembersInOrgResponseData>;
1513
1513
  };
1514
1514
  /**
1515
- * @see https://developer.github.com/v3/teams/members/#get-team-membership
1515
+ * @see https://developer.github.com/v3/teams/members/#get-team-membership-for-a-user
1516
1516
  */
1517
1517
  "GET /orgs/:org/teams/:team_slug/memberships/:username": {
1518
- parameters: TeamsGetMembershipInOrgEndpoint;
1519
- request: TeamsGetMembershipInOrgRequestOptions;
1520
- response: OctokitResponse<TeamsGetMembershipInOrgResponseData>;
1518
+ parameters: TeamsGetMembershipForUserInOrgEndpoint;
1519
+ request: TeamsGetMembershipForUserInOrgRequestOptions;
1520
+ response: OctokitResponse<TeamsGetMembershipForUserInOrgResponseData>;
1521
1521
  };
1522
1522
  /**
1523
1523
  * @see https://developer.github.com/v3/teams/#list-team-projects
@@ -1528,15 +1528,15 @@ export interface Endpoints {
1528
1528
  response: OctokitResponse<TeamsListProjectsInOrgResponseData>;
1529
1529
  };
1530
1530
  /**
1531
- * @see https://developer.github.com/v3/teams/#review-a-team-project
1531
+ * @see https://developer.github.com/v3/teams/#check-team-permissions-for-a-project
1532
1532
  */
1533
1533
  "GET /orgs/:org/teams/:team_slug/projects/:project_id": {
1534
- parameters: TeamsReviewProjectInOrgEndpoint;
1535
- request: TeamsReviewProjectInOrgRequestOptions;
1536
- response: OctokitResponse<TeamsReviewProjectInOrgResponseData>;
1534
+ parameters: TeamsCheckPermissionsForProjectInOrgEndpoint;
1535
+ request: TeamsCheckPermissionsForProjectInOrgRequestOptions;
1536
+ response: OctokitResponse<TeamsCheckPermissionsForProjectInOrgResponseData>;
1537
1537
  };
1538
1538
  /**
1539
- * @see https://developer.github.com/v3/teams/#list-team-repos
1539
+ * @see https://developer.github.com/v3/teams/#list-team-repositories
1540
1540
  */
1541
1541
  "GET /orgs/:org/teams/:team_slug/repos": {
1542
1542
  parameters: TeamsListReposInOrgEndpoint;
@@ -1544,12 +1544,12 @@ export interface Endpoints {
1544
1544
  response: OctokitResponse<TeamsListReposInOrgResponseData>;
1545
1545
  };
1546
1546
  /**
1547
- * @see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository
1547
+ * @see https://developer.github.com/v3/teams/#check-team-permissions-for-a-repository
1548
1548
  */
1549
1549
  "GET /orgs/:org/teams/:team_slug/repos/:owner/:repo": {
1550
- parameters: TeamsCheckManagesRepoInOrgEndpoint;
1551
- request: TeamsCheckManagesRepoInOrgRequestOptions;
1552
- response: OctokitResponse<TeamsCheckManagesRepoInOrgResponseData>;
1550
+ parameters: TeamsCheckPermissionsForRepoInOrgEndpoint;
1551
+ request: TeamsCheckPermissionsForRepoInOrgRequestOptions;
1552
+ response: OctokitResponse<TeamsCheckPermissionsForRepoInOrgResponseData>;
1553
1553
  };
1554
1554
  /**
1555
1555
  * @see https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team
@@ -1824,11 +1824,11 @@ export interface Endpoints {
1824
1824
  response: OctokitResponse<IssuesListAssigneesResponseData>;
1825
1825
  };
1826
1826
  /**
1827
- * @see https://developer.github.com/v3/issues/assignees/#check-assignee
1827
+ * @see https://developer.github.com/v3/issues/assignees/#check-if-a-user-can-be-assigned
1828
1828
  */
1829
1829
  "GET /repos/:owner/:repo/assignees/:assignee": {
1830
- parameters: IssuesCheckAssigneeEndpoint;
1831
- request: IssuesCheckAssigneeRequestOptions;
1830
+ parameters: IssuesCheckUserCanBeAssignedEndpoint;
1831
+ request: IssuesCheckUserCanBeAssignedRequestOptions;
1832
1832
  response: OctokitResponse<any>;
1833
1833
  };
1834
1834
  /**
@@ -2224,7 +2224,7 @@ export interface Endpoints {
2224
2224
  response: OctokitResponse<GitListMatchingRefsResponseData>;
2225
2225
  };
2226
2226
  /**
2227
- * @see https://developer.github.com/v3/git/refs/#get-a-single-reference
2227
+ * @see https://developer.github.com/v3/git/refs/#get-a-reference
2228
2228
  */
2229
2229
  "GET /repos/:owner/:repo/git/ref/:ref": {
2230
2230
  parameters: GitGetRefEndpoint;
@@ -2264,12 +2264,12 @@ export interface Endpoints {
2264
2264
  response: OctokitResponse<ReposGetHookResponseData>;
2265
2265
  };
2266
2266
  /**
2267
- * @see https://developer.github.com/v3/migrations/source_imports/#get-import-progress
2267
+ * @see https://developer.github.com/v3/migrations/source_imports/#get-an-import-status
2268
2268
  */
2269
2269
  "GET /repos/:owner/:repo/import": {
2270
- parameters: MigrationsGetImportProgressEndpoint;
2271
- request: MigrationsGetImportProgressRequestOptions;
2272
- response: OctokitResponse<MigrationsGetImportProgressResponseData>;
2270
+ parameters: MigrationsGetImportStatusEndpoint;
2271
+ request: MigrationsGetImportStatusRequestOptions;
2272
+ response: OctokitResponse<MigrationsGetImportStatusResponseData>;
2273
2273
  };
2274
2274
  /**
2275
2275
  * @see https://developer.github.com/v3/migrations/source_imports/#get-commit-authors
@@ -2328,7 +2328,7 @@ export interface Endpoints {
2328
2328
  response: OctokitResponse<IssuesGetResponseData>;
2329
2329
  };
2330
2330
  /**
2331
- * @see https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue
2331
+ * @see https://developer.github.com/v3/issues/comments/#list-issue-comments
2332
2332
  */
2333
2333
  "GET /repos/:owner/:repo/issues/:issue_number/comments": {
2334
2334
  parameters: IssuesListCommentsEndpoint;
@@ -2336,7 +2336,7 @@ export interface Endpoints {
2336
2336
  response: OctokitResponse<IssuesListCommentsResponseData>;
2337
2337
  };
2338
2338
  /**
2339
- * @see https://developer.github.com/v3/issues/events/#list-events-for-an-issue
2339
+ * @see https://developer.github.com/v3/issues/events/#list-issue-events
2340
2340
  */
2341
2341
  "GET /repos/:owner/:repo/issues/:issue_number/events": {
2342
2342
  parameters: IssuesListEventsEndpoint;
@@ -2344,7 +2344,7 @@ export interface Endpoints {
2344
2344
  response: OctokitResponse<IssuesListEventsResponseData>;
2345
2345
  };
2346
2346
  /**
2347
- * @see https://developer.github.com/v3/issues/labels/#list-labels-on-an-issue
2347
+ * @see https://developer.github.com/v3/issues/labels/#list-labels-for-an-issue
2348
2348
  */
2349
2349
  "GET /repos/:owner/:repo/issues/:issue_number/labels": {
2350
2350
  parameters: IssuesListLabelsOnIssueEndpoint;
@@ -2360,7 +2360,7 @@ export interface Endpoints {
2360
2360
  response: OctokitResponse<ReactionsListForIssueResponseData>;
2361
2361
  };
2362
2362
  /**
2363
- * @see https://developer.github.com/v3/issues/timeline/#list-events-for-an-issue
2363
+ * @see https://developer.github.com/v3/issues/timeline/#list-timeline-events-for-an-issue
2364
2364
  */
2365
2365
  "GET /repos/:owner/:repo/issues/:issue_number/timeline": {
2366
2366
  parameters: IssuesListEventsForTimelineEndpoint;
@@ -2368,7 +2368,7 @@ export interface Endpoints {
2368
2368
  response: OctokitResponse<IssuesListEventsForTimelineResponseData>;
2369
2369
  };
2370
2370
  /**
2371
- * @see https://developer.github.com/v3/issues/comments/#list-comments-in-a-repository
2371
+ * @see https://developer.github.com/v3/issues/comments/#list-issue-comments-for-a-repository
2372
2372
  */
2373
2373
  "GET /repos/:owner/:repo/issues/comments": {
2374
2374
  parameters: IssuesListCommentsForRepoEndpoint;
@@ -2376,7 +2376,7 @@ export interface Endpoints {
2376
2376
  response: OctokitResponse<IssuesListCommentsForRepoResponseData>;
2377
2377
  };
2378
2378
  /**
2379
- * @see https://developer.github.com/v3/issues/comments/#get-a-single-comment
2379
+ * @see https://developer.github.com/v3/issues/comments/#get-an-issue-comment
2380
2380
  */
2381
2381
  "GET /repos/:owner/:repo/issues/comments/:comment_id": {
2382
2382
  parameters: IssuesGetCommentEndpoint;
@@ -2392,7 +2392,7 @@ export interface Endpoints {
2392
2392
  response: OctokitResponse<ReactionsListForIssueCommentResponseData>;
2393
2393
  };
2394
2394
  /**
2395
- * @see https://developer.github.com/v3/issues/events/#list-events-for-a-repository
2395
+ * @see https://developer.github.com/v3/issues/events/#list-issue-events-for-a-repository
2396
2396
  */
2397
2397
  "GET /repos/:owner/:repo/issues/events": {
2398
2398
  parameters: IssuesListEventsForRepoEndpoint;
@@ -2400,7 +2400,7 @@ export interface Endpoints {
2400
2400
  response: OctokitResponse<IssuesListEventsForRepoResponseData>;
2401
2401
  };
2402
2402
  /**
2403
- * @see https://developer.github.com/v3/issues/events/#get-a-single-event
2403
+ * @see https://developer.github.com/v3/issues/events/#get-an-issue-event
2404
2404
  */
2405
2405
  "GET /repos/:owner/:repo/issues/events/:event_id": {
2406
2406
  parameters: IssuesGetEventEndpoint;
@@ -2424,7 +2424,7 @@ export interface Endpoints {
2424
2424
  response: OctokitResponse<ReposGetDeployKeyResponseData>;
2425
2425
  };
2426
2426
  /**
2427
- * @see https://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository
2427
+ * @see https://developer.github.com/v3/issues/labels/#list-labels-for-a-repository
2428
2428
  */
2429
2429
  "GET /repos/:owner/:repo/labels": {
2430
2430
  parameters: IssuesListLabelsForRepoEndpoint;
@@ -2432,7 +2432,7 @@ export interface Endpoints {
2432
2432
  response: OctokitResponse<IssuesListLabelsForRepoResponseData>;
2433
2433
  };
2434
2434
  /**
2435
- * @see https://developer.github.com/v3/issues/labels/#get-a-single-label
2435
+ * @see https://developer.github.com/v3/issues/labels/#get-a-label
2436
2436
  */
2437
2437
  "GET /repos/:owner/:repo/labels/:name": {
2438
2438
  parameters: IssuesGetLabelEndpoint;
@@ -2456,15 +2456,15 @@ export interface Endpoints {
2456
2456
  response: OctokitResponse<LicensesGetForRepoResponseData>;
2457
2457
  };
2458
2458
  /**
2459
- * @see https://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository
2459
+ * @see https://developer.github.com/v3/issues/milestones/#list-milestones
2460
2460
  */
2461
2461
  "GET /repos/:owner/:repo/milestones": {
2462
- parameters: IssuesListMilestonesForRepoEndpoint;
2463
- request: IssuesListMilestonesForRepoRequestOptions;
2464
- response: OctokitResponse<IssuesListMilestonesForRepoResponseData>;
2462
+ parameters: IssuesListMilestonesEndpoint;
2463
+ request: IssuesListMilestonesRequestOptions;
2464
+ response: OctokitResponse<IssuesListMilestonesResponseData>;
2465
2465
  };
2466
2466
  /**
2467
- * @see https://developer.github.com/v3/issues/milestones/#get-a-single-milestone
2467
+ * @see https://developer.github.com/v3/issues/milestones/#get-a-milestone
2468
2468
  */
2469
2469
  "GET /repos/:owner/:repo/milestones/:milestone_number": {
2470
2470
  parameters: IssuesGetMilestoneEndpoint;
@@ -2472,7 +2472,7 @@ export interface Endpoints {
2472
2472
  response: OctokitResponse<IssuesGetMilestoneResponseData>;
2473
2473
  };
2474
2474
  /**
2475
- * @see https://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone
2475
+ * @see https://developer.github.com/v3/issues/labels/#list-labels-for-issues-in-a-milestone
2476
2476
  */
2477
2477
  "GET /repos/:owner/:repo/milestones/:milestone_number/labels": {
2478
2478
  parameters: IssuesListLabelsForMilestoneEndpoint;
@@ -3192,7 +3192,7 @@ export interface Endpoints {
3192
3192
  response: OctokitResponse<MigrationsListForAuthenticatedUserResponseData>;
3193
3193
  };
3194
3194
  /**
3195
- * @see https://developer.github.com/v3/migrations/users/#get-the-status-of-a-user-migration
3195
+ * @see https://developer.github.com/v3/migrations/users/#get-a-user-migration-status
3196
3196
  */
3197
3197
  "GET /user/migrations/:migration_id": {
3198
3198
  parameters: MigrationsGetStatusForAuthenticatedUserEndpoint;
@@ -3264,7 +3264,7 @@ export interface Endpoints {
3264
3264
  response: OctokitResponse<ActivityListWatchedReposForAuthenticatedUserResponseData>;
3265
3265
  };
3266
3266
  /**
3267
- * @see https://developer.github.com/v3/teams/#list-user-teams
3267
+ * @see https://developer.github.com/v3/teams/#list-teams-for-the-authenticated-user
3268
3268
  */
3269
3269
  "GET /user/teams": {
3270
3270
  parameters: TeamsListForAuthenticatedUserEndpoint;
@@ -3488,7 +3488,7 @@ export interface Endpoints {
3488
3488
  response: OctokitResponse<OrgsUpdateHookResponseData>;
3489
3489
  };
3490
3490
  /**
3491
- * @see https://developer.github.com/v3/teams/#edit-team
3491
+ * @see https://developer.github.com/v3/teams/#update-a-team
3492
3492
  */
3493
3493
  "PATCH /orgs/:org/teams/:team_slug": {
3494
3494
  parameters: TeamsUpdateInOrgEndpoint;
@@ -3496,7 +3496,7 @@ export interface Endpoints {
3496
3496
  response: OctokitResponse<TeamsUpdateInOrgResponseData>;
3497
3497
  };
3498
3498
  /**
3499
- * @see https://developer.github.com/v3/teams/discussions/#edit-a-discussion
3499
+ * @see https://developer.github.com/v3/teams/discussions/#update-a-discussion
3500
3500
  */
3501
3501
  "PATCH /orgs/:org/teams/:team_slug/discussions/:discussion_number": {
3502
3502
  parameters: TeamsUpdateDiscussionInOrgEndpoint;
@@ -3504,7 +3504,7 @@ export interface Endpoints {
3504
3504
  response: OctokitResponse<TeamsUpdateDiscussionInOrgResponseData>;
3505
3505
  };
3506
3506
  /**
3507
- * @see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment
3507
+ * @see https://developer.github.com/v3/teams/discussion_comments/#update-a-discussion-comment
3508
3508
  */
3509
3509
  "PATCH /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": {
3510
3510
  parameters: TeamsUpdateDiscussionCommentInOrgEndpoint;
@@ -3608,7 +3608,7 @@ export interface Endpoints {
3608
3608
  response: OctokitResponse<ReposUpdateHookResponseData>;
3609
3609
  };
3610
3610
  /**
3611
- * @see https://developer.github.com/v3/migrations/source_imports/#update-existing-import
3611
+ * @see https://developer.github.com/v3/migrations/source_imports/#update-an-import
3612
3612
  */
3613
3613
  "PATCH /repos/:owner/:repo/import": {
3614
3614
  parameters: MigrationsUpdateImportEndpoint;
@@ -3624,7 +3624,7 @@ export interface Endpoints {
3624
3624
  response: OctokitResponse<MigrationsMapCommitAuthorResponseData>;
3625
3625
  };
3626
3626
  /**
3627
- * @see https://developer.github.com/v3/migrations/source_imports/#set-git-lfs-preference
3627
+ * @see https://developer.github.com/v3/migrations/source_imports/#update-git-lfs-preference
3628
3628
  */
3629
3629
  "PATCH /repos/:owner/:repo/import/lfs": {
3630
3630
  parameters: MigrationsSetLfsPreferenceEndpoint;
@@ -3648,7 +3648,7 @@ export interface Endpoints {
3648
3648
  response: OctokitResponse<IssuesUpdateResponseData>;
3649
3649
  };
3650
3650
  /**
3651
- * @see https://developer.github.com/v3/issues/comments/#edit-a-comment
3651
+ * @see https://developer.github.com/v3/issues/comments/#update-an-issue-comment
3652
3652
  */
3653
3653
  "PATCH /repos/:owner/:repo/issues/comments/:comment_id": {
3654
3654
  parameters: IssuesUpdateCommentEndpoint;
@@ -3928,7 +3928,7 @@ export interface Endpoints {
3928
3928
  response: OctokitResponse<ReposCreateInOrgResponseData>;
3929
3929
  };
3930
3930
  /**
3931
- * @see https://developer.github.com/v3/teams/#create-team
3931
+ * @see https://developer.github.com/v3/teams/#create-a-team
3932
3932
  */
3933
3933
  "POST /orgs/:org/teams": {
3934
3934
  parameters: TeamsCreateEndpoint;
@@ -3944,7 +3944,7 @@ export interface Endpoints {
3944
3944
  response: OctokitResponse<TeamsCreateDiscussionInOrgResponseData>;
3945
3945
  };
3946
3946
  /**
3947
- * @see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment
3947
+ * @see https://developer.github.com/v3/teams/discussion_comments/#create-a-discussion-comment
3948
3948
  */
3949
3949
  "POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments": {
3950
3950
  parameters: TeamsCreateDiscussionCommentInOrgEndpoint;
@@ -4232,7 +4232,7 @@ export interface Endpoints {
4232
4232
  response: OctokitResponse<IssuesAddAssigneesResponseData>;
4233
4233
  };
4234
4234
  /**
4235
- * @see https://developer.github.com/v3/issues/comments/#create-a-comment
4235
+ * @see https://developer.github.com/v3/issues/comments/#create-an-issue-comment
4236
4236
  */
4237
4237
  "POST /repos/:owner/:repo/issues/:issue_number/comments": {
4238
4238
  parameters: IssuesCreateCommentEndpoint;
@@ -4616,27 +4616,27 @@ export interface Endpoints {
4616
4616
  response: OctokitResponse<any>;
4617
4617
  };
4618
4618
  /**
4619
- * @see https://developer.github.com/v3/teams/members/#add-or-update-team-membership
4619
+ * @see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-for-a-user
4620
4620
  */
4621
4621
  "PUT /orgs/:org/teams/:team_slug/memberships/:username": {
4622
- parameters: TeamsAddOrUpdateMembershipInOrgEndpoint;
4623
- request: TeamsAddOrUpdateMembershipInOrgRequestOptions;
4624
- response: OctokitResponse<TeamsAddOrUpdateMembershipInOrgResponseData | TeamsAddOrUpdateMembershipInOrgResponse422Data>;
4622
+ parameters: TeamsAddOrUpdateMembershipForUserInOrgEndpoint;
4623
+ request: TeamsAddOrUpdateMembershipForUserInOrgRequestOptions;
4624
+ response: OctokitResponse<TeamsAddOrUpdateMembershipForUserInOrgResponseData | TeamsAddOrUpdateMembershipForUserInOrgResponse422Data>;
4625
4625
  };
4626
4626
  /**
4627
- * @see https://developer.github.com/v3/teams/#add-or-update-team-project
4627
+ * @see https://developer.github.com/v3/teams/#add-or-update-team-project-permissions
4628
4628
  */
4629
4629
  "PUT /orgs/:org/teams/:team_slug/projects/:project_id": {
4630
- parameters: TeamsAddOrUpdateProjectInOrgEndpoint;
4631
- request: TeamsAddOrUpdateProjectInOrgRequestOptions;
4632
- response: OctokitResponse<TeamsAddOrUpdateProjectInOrgResponseData>;
4630
+ parameters: TeamsAddOrUpdateProjectPermissionsInOrgEndpoint;
4631
+ request: TeamsAddOrUpdateProjectPermissionsInOrgRequestOptions;
4632
+ response: OctokitResponse<TeamsAddOrUpdateProjectPermissionsInOrgResponseData>;
4633
4633
  };
4634
4634
  /**
4635
- * @see https://developer.github.com/v3/teams/#add-or-update-team-repository
4635
+ * @see https://developer.github.com/v3/teams/#add-or-update-team-repository-permissions
4636
4636
  */
4637
4637
  "PUT /orgs/:org/teams/:team_slug/repos/:owner/:repo": {
4638
- parameters: TeamsAddOrUpdateRepoInOrgEndpoint;
4639
- request: TeamsAddOrUpdateRepoInOrgRequestOptions;
4638
+ parameters: TeamsAddOrUpdateRepoPermissionsInOrgEndpoint;
4639
+ request: TeamsAddOrUpdateRepoPermissionsInOrgRequestOptions;
4640
4640
  response: OctokitResponse<any>;
4641
4641
  };
4642
4642
  /**
@@ -4736,12 +4736,12 @@ export interface Endpoints {
4736
4736
  response: OctokitResponse<InteractionsAddOrUpdateRestrictionsForRepoResponseData>;
4737
4737
  };
4738
4738
  /**
4739
- * @see https://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue
4739
+ * @see https://developer.github.com/v3/issues/labels/#set-labels-for-an-issue
4740
4740
  */
4741
4741
  "PUT /repos/:owner/:repo/issues/:issue_number/labels": {
4742
- parameters: IssuesReplaceAllLabelsEndpoint;
4743
- request: IssuesReplaceAllLabelsRequestOptions;
4744
- response: OctokitResponse<IssuesReplaceAllLabelsResponseData>;
4742
+ parameters: IssuesSetLabelsEndpoint;
4743
+ request: IssuesSetLabelsRequestOptions;
4744
+ response: OctokitResponse<IssuesSetLabelsResponseData>;
4745
4745
  };
4746
4746
  /**
4747
4747
  * @see https://developer.github.com/v3/issues/#lock-an-issue
@@ -12004,23 +12004,23 @@ export declare type TeamsListMembersInOrgResponseData = {
12004
12004
  type: string;
12005
12005
  site_admin: boolean;
12006
12006
  }[];
12007
- declare type TeamsGetMembershipInOrgEndpoint = {
12007
+ declare type TeamsGetMembershipForUserInOrgEndpoint = {
12008
12008
  org: string;
12009
12009
  team_slug: string;
12010
12010
  username: string;
12011
12011
  };
12012
- declare type TeamsGetMembershipInOrgRequestOptions = {
12012
+ declare type TeamsGetMembershipForUserInOrgRequestOptions = {
12013
12013
  method: "GET";
12014
12014
  url: "/orgs/:org/teams/:team_slug/memberships/:username";
12015
12015
  headers: RequestHeaders;
12016
12016
  request: RequestRequestOptions;
12017
12017
  };
12018
- export interface TeamsGetMembershipInOrgResponseData {
12018
+ export interface TeamsGetMembershipForUserInOrgResponseData {
12019
12019
  url: string;
12020
12020
  role: string;
12021
12021
  state: string;
12022
12022
  }
12023
- declare type TeamsAddOrUpdateMembershipInOrgEndpoint = {
12023
+ declare type TeamsAddOrUpdateMembershipForUserInOrgEndpoint = {
12024
12024
  org: string;
12025
12025
  team_slug: string;
12026
12026
  username: string;
@@ -12031,18 +12031,18 @@ declare type TeamsAddOrUpdateMembershipInOrgEndpoint = {
12031
12031
  */
12032
12032
  role?: "member" | "maintainer";
12033
12033
  };
12034
- declare type TeamsAddOrUpdateMembershipInOrgRequestOptions = {
12034
+ declare type TeamsAddOrUpdateMembershipForUserInOrgRequestOptions = {
12035
12035
  method: "PUT";
12036
12036
  url: "/orgs/:org/teams/:team_slug/memberships/:username";
12037
12037
  headers: RequestHeaders;
12038
12038
  request: RequestRequestOptions;
12039
12039
  };
12040
- export interface TeamsAddOrUpdateMembershipInOrgResponseData {
12040
+ export interface TeamsAddOrUpdateMembershipForUserInOrgResponseData {
12041
12041
  url: string;
12042
12042
  role: string;
12043
12043
  state: string;
12044
12044
  }
12045
- export interface TeamsAddOrUpdateMembershipInOrgResponse422Data {
12045
+ export interface TeamsAddOrUpdateMembershipForUserInOrgResponse422Data {
12046
12046
  message: string;
12047
12047
  errors: {
12048
12048
  code: string;
@@ -12050,12 +12050,12 @@ export interface TeamsAddOrUpdateMembershipInOrgResponse422Data {
12050
12050
  resource: string;
12051
12051
  }[];
12052
12052
  }
12053
- declare type TeamsRemoveMembershipInOrgEndpoint = {
12053
+ declare type TeamsRemoveMembershipForUserInOrgEndpoint = {
12054
12054
  org: string;
12055
12055
  team_slug: string;
12056
12056
  username: string;
12057
12057
  };
12058
- declare type TeamsRemoveMembershipInOrgRequestOptions = {
12058
+ declare type TeamsRemoveMembershipForUserInOrgRequestOptions = {
12059
12059
  method: "DELETE";
12060
12060
  url: "/orgs/:org/teams/:team_slug/memberships/:username";
12061
12061
  headers: RequestHeaders;
@@ -12120,18 +12120,18 @@ export declare type TeamsListProjectsInOrgResponseData = {
12120
12120
  admin: boolean;
12121
12121
  };
12122
12122
  }[];
12123
- declare type TeamsReviewProjectInOrgEndpoint = {
12123
+ declare type TeamsCheckPermissionsForProjectInOrgEndpoint = {
12124
12124
  org: string;
12125
12125
  team_slug: string;
12126
12126
  project_id: number;
12127
12127
  } & RequiredPreview<"inertia">;
12128
- declare type TeamsReviewProjectInOrgRequestOptions = {
12128
+ declare type TeamsCheckPermissionsForProjectInOrgRequestOptions = {
12129
12129
  method: "GET";
12130
12130
  url: "/orgs/:org/teams/:team_slug/projects/:project_id";
12131
12131
  headers: RequestHeaders;
12132
12132
  request: RequestRequestOptions;
12133
12133
  };
12134
- export interface TeamsReviewProjectInOrgResponseData {
12134
+ export interface TeamsCheckPermissionsForProjectInOrgResponseData {
12135
12135
  owner_url: string;
12136
12136
  url: string;
12137
12137
  html_url: string;
@@ -12172,7 +12172,7 @@ export interface TeamsReviewProjectInOrgResponseData {
12172
12172
  admin: boolean;
12173
12173
  };
12174
12174
  }
12175
- declare type TeamsAddOrUpdateProjectInOrgEndpoint = {
12175
+ declare type TeamsAddOrUpdateProjectPermissionsInOrgEndpoint = {
12176
12176
  org: string;
12177
12177
  team_slug: string;
12178
12178
  project_id: number;
@@ -12185,13 +12185,13 @@ declare type TeamsAddOrUpdateProjectInOrgEndpoint = {
12185
12185
  */
12186
12186
  permission?: "read" | "write" | "admin";
12187
12187
  } & RequiredPreview<"inertia">;
12188
- declare type TeamsAddOrUpdateProjectInOrgRequestOptions = {
12188
+ declare type TeamsAddOrUpdateProjectPermissionsInOrgRequestOptions = {
12189
12189
  method: "PUT";
12190
12190
  url: "/orgs/:org/teams/:team_slug/projects/:project_id";
12191
12191
  headers: RequestHeaders;
12192
12192
  request: RequestRequestOptions;
12193
12193
  };
12194
- export interface TeamsAddOrUpdateProjectInOrgResponseData {
12194
+ export interface TeamsAddOrUpdateProjectPermissionsInOrgResponseData {
12195
12195
  message: string;
12196
12196
  documentation_url: string;
12197
12197
  }
@@ -12333,19 +12333,19 @@ export declare type TeamsListReposInOrgResponseData = {
12333
12333
  node_id: string;
12334
12334
  };
12335
12335
  }[];
12336
- declare type TeamsCheckManagesRepoInOrgEndpoint = {
12336
+ declare type TeamsCheckPermissionsForRepoInOrgEndpoint = {
12337
12337
  org: string;
12338
12338
  team_slug: string;
12339
12339
  owner: string;
12340
12340
  repo: string;
12341
12341
  };
12342
- declare type TeamsCheckManagesRepoInOrgRequestOptions = {
12342
+ declare type TeamsCheckPermissionsForRepoInOrgRequestOptions = {
12343
12343
  method: "GET";
12344
12344
  url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo";
12345
12345
  headers: RequestHeaders;
12346
12346
  request: RequestRequestOptions;
12347
12347
  };
12348
- export interface TeamsCheckManagesRepoInOrgResponseData {
12348
+ export interface TeamsCheckPermissionsForRepoInOrgResponseData {
12349
12349
  organization: {
12350
12350
  login: string;
12351
12351
  id: number;
@@ -12584,7 +12584,7 @@ export interface TeamsCheckManagesRepoInOrgResponseData {
12584
12584
  admin: boolean;
12585
12585
  };
12586
12586
  }
12587
- declare type TeamsAddOrUpdateRepoInOrgEndpoint = {
12587
+ declare type TeamsAddOrUpdateRepoPermissionsInOrgEndpoint = {
12588
12588
  org: string;
12589
12589
  team_slug: string;
12590
12590
  owner: string;
@@ -12601,7 +12601,7 @@ declare type TeamsAddOrUpdateRepoInOrgEndpoint = {
12601
12601
  */
12602
12602
  permission?: "pull" | "push" | "admin" | "maintain" | "triage";
12603
12603
  };
12604
- declare type TeamsAddOrUpdateRepoInOrgRequestOptions = {
12604
+ declare type TeamsAddOrUpdateRepoPermissionsInOrgRequestOptions = {
12605
12605
  method: "PUT";
12606
12606
  url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo";
12607
12607
  headers: RequestHeaders;
@@ -13045,7 +13045,7 @@ declare type ProjectsUpdateEndpoint = {
13045
13045
  */
13046
13046
  state?: "open" | "closed";
13047
13047
  /**
13048
- * The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project](https://developer.github.com/v3/teams/#add-or-update-team-project) or [Add user as a collaborator](https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator).
13048
+ * The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project permissions](https://developer.github.com/v3/teams/#add-or-update-team-project-permissions) or [Add user as a collaborator](https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator).
13049
13049
  *
13050
13050
  * **Note:** Updating a project's `organization_permission` requires `admin` access to the project.
13051
13051
  *
@@ -15272,12 +15272,12 @@ export declare type IssuesListAssigneesResponseData = {
15272
15272
  type: string;
15273
15273
  site_admin: boolean;
15274
15274
  }[];
15275
- declare type IssuesCheckAssigneeEndpoint = {
15275
+ declare type IssuesCheckUserCanBeAssignedEndpoint = {
15276
15276
  owner: string;
15277
15277
  repo: string;
15278
15278
  assignee: string;
15279
15279
  };
15280
- declare type IssuesCheckAssigneeRequestOptions = {
15280
+ declare type IssuesCheckUserCanBeAssignedRequestOptions = {
15281
15281
  method: "GET";
15282
15282
  url: "/repos/:owner/:repo/assignees/:assignee";
15283
15283
  headers: RequestHeaders;
@@ -21112,22 +21112,13 @@ export interface GitCreateTreeResponseData {
21112
21112
  }[];
21113
21113
  }
21114
21114
  declare type GitGetTreeEndpoint = {
21115
- /**
21116
- * owner parameter
21117
- */
21118
21115
  owner: string;
21119
- /**
21120
- * repo parameter
21121
- */
21122
21116
  repo: string;
21123
- /**
21124
- * tree_sha parameter
21125
- */
21126
21117
  tree_sha: string;
21127
21118
  /**
21128
- * recursive parameter
21119
+ * Setting this parameter to any value returns the objects or subtrees referenced by the tree specified in `:tree_sha`. For example, setting `recursive` to any of the following will enable returning objects or subtrees: `0`, `1`, `"true"`, and `"false"`. Omit this parameter to prevent recursively returning objects or subtrees.
21129
21120
  */
21130
- recursive?: "1";
21121
+ recursive?: string;
21131
21122
  };
21132
21123
  declare type GitGetTreeRequestOptions = {
21133
21124
  method: "GET";
@@ -21402,17 +21393,17 @@ export interface MigrationsStartImportResponseData {
21402
21393
  authors_url: string;
21403
21394
  repository_url: string;
21404
21395
  }
21405
- declare type MigrationsGetImportProgressEndpoint = {
21396
+ declare type MigrationsGetImportStatusEndpoint = {
21406
21397
  owner: string;
21407
21398
  repo: string;
21408
21399
  };
21409
- declare type MigrationsGetImportProgressRequestOptions = {
21400
+ declare type MigrationsGetImportStatusRequestOptions = {
21410
21401
  method: "GET";
21411
21402
  url: "/repos/:owner/:repo/import";
21412
21403
  headers: RequestHeaders;
21413
21404
  request: RequestRequestOptions;
21414
21405
  };
21415
- export interface MigrationsGetImportProgressResponseData {
21406
+ export interface MigrationsGetImportStatusResponseData {
21416
21407
  vcs: string;
21417
21408
  use_lfs: string;
21418
21409
  vcs_url: string;
@@ -23751,7 +23742,7 @@ export declare type IssuesAddLabelsResponseData = {
23751
23742
  color: string;
23752
23743
  default: boolean;
23753
23744
  }[];
23754
- declare type IssuesReplaceAllLabelsEndpoint = {
23745
+ declare type IssuesSetLabelsEndpoint = {
23755
23746
  owner: string;
23756
23747
  repo: string;
23757
23748
  issue_number: number;
@@ -23760,13 +23751,13 @@ declare type IssuesReplaceAllLabelsEndpoint = {
23760
23751
  */
23761
23752
  labels?: string[];
23762
23753
  };
23763
- declare type IssuesReplaceAllLabelsRequestOptions = {
23754
+ declare type IssuesSetLabelsRequestOptions = {
23764
23755
  method: "PUT";
23765
23756
  url: "/repos/:owner/:repo/issues/:issue_number/labels";
23766
23757
  headers: RequestHeaders;
23767
23758
  request: RequestRequestOptions;
23768
23759
  };
23769
- export declare type IssuesReplaceAllLabelsResponseData = {
23760
+ export declare type IssuesSetLabelsResponseData = {
23770
23761
  id: number;
23771
23762
  node_id: string;
23772
23763
  url: string;
@@ -24352,7 +24343,7 @@ export interface ReposMergeResponse404Data {
24352
24343
  export interface ReposMergeResponse409Data {
24353
24344
  message: string;
24354
24345
  }
24355
- declare type IssuesListMilestonesForRepoEndpoint = {
24346
+ declare type IssuesListMilestonesEndpoint = {
24356
24347
  owner: string;
24357
24348
  repo: string;
24358
24349
  /**
@@ -24376,13 +24367,13 @@ declare type IssuesListMilestonesForRepoEndpoint = {
24376
24367
  */
24377
24368
  page?: number;
24378
24369
  };
24379
- declare type IssuesListMilestonesForRepoRequestOptions = {
24370
+ declare type IssuesListMilestonesRequestOptions = {
24380
24371
  method: "GET";
24381
24372
  url: "/repos/:owner/:repo/milestones";
24382
24373
  headers: RequestHeaders;
24383
24374
  request: RequestRequestOptions;
24384
24375
  };
24385
- export declare type IssuesListMilestonesForRepoResponseData = {
24376
+ export declare type IssuesListMilestonesResponseData = {
24386
24377
  url: string;
24387
24378
  html_url: string;
24388
24379
  labels_url: string;
package/dist-web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const VERSION = "4.1.4";
1
+ const VERSION = "4.1.5";
2
2
 
3
3
  export { VERSION };
4
4
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@octokit/types",
3
3
  "description": "Shared TypeScript definitions for Octokit projects",
4
- "version": "4.1.4",
4
+ "version": "4.1.5",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "dist-*/",