@octokit/types 6.39.0 → 7.0.0

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 = "6.39.0";
5
+ const VERSION = "7.0.0";
6
6
 
7
7
  exports.VERSION = VERSION;
8
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export const VERSION = "6.39.0";
1
+ export const VERSION = "7.0.0";
@@ -1 +1 @@
1
- export declare const VERSION = "6.39.0";
1
+ export declare const VERSION = "7.0.0";
@@ -65,10 +65,6 @@ export interface Endpoints {
65
65
  * @see https://docs.github.com/rest/reference/apps#unsuspend-an-app-installation
66
66
  */
67
67
  "DELETE /app/installations/{installation_id}/suspended": Operation<"/app/installations/{installation_id}/suspended", "delete">;
68
- /**
69
- * @see https://docs.github.com/rest/reference/oauth-authorizations#delete-a-grant
70
- */
71
- "DELETE /applications/grants/{grant_id}": Operation<"/applications/grants/{grant_id}", "delete">;
72
68
  /**
73
69
  * @see https://docs.github.com/rest/reference/apps#delete-an-app-authorization
74
70
  */
@@ -77,10 +73,6 @@ export interface Endpoints {
77
73
  * @see https://docs.github.com/rest/reference/apps#delete-an-app-token
78
74
  */
79
75
  "DELETE /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "delete">;
80
- /**
81
- * @see https://docs.github.com/rest/reference/oauth-authorizations#delete-an-authorization
82
- */
83
- "DELETE /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "delete">;
84
76
  /**
85
77
  * @see https://docs.github.com/rest/reference/actions#disable-a-selected-organization-for-github-actions-in-an-enterprise
86
78
  */
@@ -229,6 +221,10 @@ export interface Endpoints {
229
221
  * @see https://docs.github.com/rest/reference/orgs#remove-public-organization-membership-for-the-authenticated-user
230
222
  */
231
223
  "DELETE /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "delete">;
224
+ /**
225
+ * @see https://docs.github.com/rest/reference/orgs#remove-a-security-manager-team
226
+ */
227
+ "DELETE /orgs/{org}/security-managers/teams/{team_slug}": Operation<"/orgs/{org}/security-managers/teams/{team_slug}", "delete">;
232
228
  /**
233
229
  * @see https://docs.github.com/rest/reference/teams#delete-a-team
234
230
  */
@@ -378,11 +374,11 @@ export interface Endpoints {
378
374
  */
379
375
  "DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/codespaces/secrets/{secret_name}", "delete">;
380
376
  /**
381
- * @see https://docs.github.com/rest/reference/repos#remove-a-repository-collaborator
377
+ * @see https://docs.github.com/rest/collaborators/collaborators#remove-a-repository-collaborator
382
378
  */
383
379
  "DELETE /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "delete">;
384
380
  /**
385
- * @see https://docs.github.com/rest/reference/repos#delete-a-commit-comment
381
+ * @see https://docs.github.com/rest/commits/comments#delete-a-commit-comment
386
382
  */
387
383
  "DELETE /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "delete">;
388
384
  /**
@@ -405,12 +401,16 @@ export interface Endpoints {
405
401
  * @see https://docs.github.com/rest/reference/repos#delete-an-environment
406
402
  */
407
403
  "DELETE /repos/{owner}/{repo}/environments/{environment_name}": Operation<"/repos/{owner}/{repo}/environments/{environment_name}", "delete">;
404
+ /**
405
+ * @see https://docs.github.com/rest/deployments/branch-policies#delete-deployment-branch-policy
406
+ */
407
+ "DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": Operation<"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}", "delete">;
408
408
  /**
409
409
  * @see https://docs.github.com/rest/reference/git#delete-a-reference
410
410
  */
411
411
  "DELETE /repos/{owner}/{repo}/git/refs/{ref}": Operation<"/repos/{owner}/{repo}/git/refs/{ref}", "delete">;
412
412
  /**
413
- * @see https://docs.github.com/rest/reference/repos#delete-a-repository-webhook
413
+ * @see https://docs.github.com/rest/webhooks/repos#delete-a-repository-webhook
414
414
  */
415
415
  "DELETE /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "delete">;
416
416
  /**
@@ -422,7 +422,7 @@ export interface Endpoints {
422
422
  */
423
423
  "DELETE /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "delete">;
424
424
  /**
425
- * @see https://docs.github.com/rest/reference/repos#delete-a-repository-invitation
425
+ * @see https://docs.github.com/rest/collaborators/invitations#delete-a-repository-invitation
426
426
  */
427
427
  "DELETE /repos/{owner}/{repo}/invitations/{invitation_id}": Operation<"/repos/{owner}/{repo}/invitations/{invitation_id}", "delete">;
428
428
  /**
@@ -470,7 +470,7 @@ export interface Endpoints {
470
470
  */
471
471
  "DELETE /repos/{owner}/{repo}/milestones/{milestone_number}": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}", "delete">;
472
472
  /**
473
- * @see https://docs.github.com/rest/reference/repos#delete-a-github-pages-site
473
+ * @see https://docs.github.com/rest/pages#delete-a-github-pages-site
474
474
  */
475
475
  "DELETE /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "delete">;
476
476
  /**
@@ -614,7 +614,7 @@ export interface Endpoints {
614
614
  */
615
615
  "DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}": Operation<"/user/packages/{package_type}/{package_name}/versions/{package_version_id}", "delete">;
616
616
  /**
617
- * @see https://docs.github.com/rest/reference/repos#decline-a-repository-invitation
617
+ * @see https://docs.github.com/rest/collaborators/invitations#decline-a-repository-invitation
618
618
  */
619
619
  "DELETE /user/repository_invitations/{invitation_id}": Operation<"/user/repository_invitations/{invitation_id}", "delete">;
620
620
  /**
@@ -657,26 +657,10 @@ export interface Endpoints {
657
657
  * @see https://docs.github.com/rest/reference/apps#get-an-installation-for-the-authenticated-app
658
658
  */
659
659
  "GET /app/installations/{installation_id}": Operation<"/app/installations/{installation_id}", "get">;
660
- /**
661
- * @see https://docs.github.com/rest/reference/oauth-authorizations#list-your-grants
662
- */
663
- "GET /applications/grants": Operation<"/applications/grants", "get">;
664
- /**
665
- * @see https://docs.github.com/rest/reference/oauth-authorizations#get-a-single-grant
666
- */
667
- "GET /applications/grants/{grant_id}": Operation<"/applications/grants/{grant_id}", "get">;
668
660
  /**
669
661
  * @see https://docs.github.com/rest/reference/apps/#get-an-app
670
662
  */
671
663
  "GET /apps/{app_slug}": Operation<"/apps/{app_slug}", "get">;
672
- /**
673
- * @see https://docs.github.com/rest/reference/oauth-authorizations#list-your-authorizations
674
- */
675
- "GET /authorizations": Operation<"/authorizations", "get">;
676
- /**
677
- * @see https://docs.github.com/rest/reference/oauth-authorizations#get-a-single-authorization
678
- */
679
- "GET /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "get">;
680
664
  /**
681
665
  * @see https://docs.github.com/rest/reference/codes-of-conduct#get-all-codes-of-conduct
682
666
  */
@@ -749,6 +733,10 @@ export interface Endpoints {
749
733
  * @see https://docs.github.com/rest/reference/enterprise-admin#get-the-audit-log-for-an-enterprise
750
734
  */
751
735
  "GET /enterprises/{enterprise}/audit-log": Operation<"/enterprises/{enterprise}/audit-log", "get">;
736
+ /**
737
+ * @see https://docs.github.com/rest/reference/code-scanning#list-code-scanning-alerts-for-an-enterprise
738
+ */
739
+ "GET /enterprises/{enterprise}/code-scanning/alerts": Operation<"/enterprises/{enterprise}/code-scanning/alerts", "get">;
752
740
  /**
753
741
  * @see https://docs.github.com/rest/reference/secret-scanning#list-secret-scanning-alerts-for-an-enterprise
754
742
  */
@@ -1150,6 +1138,10 @@ export interface Endpoints {
1150
1138
  * @see https://docs.github.com/rest/reference/secret-scanning#list-secret-scanning-alerts-for-an-organization
1151
1139
  */
1152
1140
  "GET /orgs/{org}/secret-scanning/alerts": Operation<"/orgs/{org}/secret-scanning/alerts", "get">;
1141
+ /**
1142
+ * @see https://docs.github.com/rest/reference/orgs#list-security-manager-teams
1143
+ */
1144
+ "GET /orgs/{org}/security-managers": Operation<"/orgs/{org}/security-managers", "get">;
1153
1145
  /**
1154
1146
  * @see https://docs.github.com/rest/reference/billing#get-github-actions-billing-for-an-organization
1155
1147
  */
@@ -1539,6 +1531,10 @@ export interface Endpoints {
1539
1531
  * @see https://docs.github.com/rest/reference/codespaces#list-available-machine-types-for-a-repository
1540
1532
  */
1541
1533
  "GET /repos/{owner}/{repo}/codespaces/machines": Operation<"/repos/{owner}/{repo}/codespaces/machines", "get">;
1534
+ /**
1535
+ * @see https://docs.github.com/rest/reference/codespaces#preview-attributes-for-a-new-codespace
1536
+ */
1537
+ "GET /repos/{owner}/{repo}/codespaces/new": Operation<"/repos/{owner}/{repo}/codespaces/new", "get">;
1542
1538
  /**
1543
1539
  * @see https://docs.github.com/rest/reference/codespaces#list-repository-secrets
1544
1540
  */
@@ -1552,23 +1548,23 @@ export interface Endpoints {
1552
1548
  */
1553
1549
  "GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/codespaces/secrets/{secret_name}", "get">;
1554
1550
  /**
1555
- * @see https://docs.github.com/rest/reference/repos#list-repository-collaborators
1551
+ * @see https://docs.github.com/rest/collaborators/collaborators#list-repository-collaborators
1556
1552
  */
1557
1553
  "GET /repos/{owner}/{repo}/collaborators": Operation<"/repos/{owner}/{repo}/collaborators", "get">;
1558
1554
  /**
1559
- * @see https://docs.github.com/rest/reference/repos#check-if-a-user-is-a-repository-collaborator
1555
+ * @see https://docs.github.com/rest/collaborators/collaborators#check-if-a-user-is-a-repository-collaborator
1560
1556
  */
1561
1557
  "GET /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "get">;
1562
1558
  /**
1563
- * @see https://docs.github.com/rest/reference/repos#get-repository-permissions-for-a-user
1559
+ * @see https://docs.github.com/rest/collaborators/collaborators#get-repository-permissions-for-a-user
1564
1560
  */
1565
1561
  "GET /repos/{owner}/{repo}/collaborators/{username}/permission": Operation<"/repos/{owner}/{repo}/collaborators/{username}/permission", "get">;
1566
1562
  /**
1567
- * @see https://docs.github.com/rest/reference/repos#list-commit-comments-for-a-repository
1563
+ * @see https://docs.github.com/rest/commits/comments#list-commit-comments-for-a-repository
1568
1564
  */
1569
1565
  "GET /repos/{owner}/{repo}/comments": Operation<"/repos/{owner}/{repo}/comments", "get">;
1570
1566
  /**
1571
- * @see https://docs.github.com/rest/reference/repos#get-a-commit-comment
1567
+ * @see https://docs.github.com/rest/commits/comments#get-a-commit-comment
1572
1568
  */
1573
1569
  "GET /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "get">;
1574
1570
  /**
@@ -1576,23 +1572,23 @@ export interface Endpoints {
1576
1572
  */
1577
1573
  "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions", "get">;
1578
1574
  /**
1579
- * @see https://docs.github.com/rest/reference/repos#list-commits
1575
+ * @see https://docs.github.com/rest/commits/commits#list-commits
1580
1576
  */
1581
1577
  "GET /repos/{owner}/{repo}/commits": Operation<"/repos/{owner}/{repo}/commits", "get">;
1582
1578
  /**
1583
- * @see https://docs.github.com/rest/reference/repos#list-branches-for-head-commit
1579
+ * @see https://docs.github.com/rest/commits/commits#list-branches-for-head-commit
1584
1580
  */
1585
1581
  "GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head", "get">;
1586
1582
  /**
1587
- * @see https://docs.github.com/rest/reference/repos#list-commit-comments
1583
+ * @see https://docs.github.com/rest/commits/comments#list-commit-comments
1588
1584
  */
1589
1585
  "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/comments", "get">;
1590
1586
  /**
1591
- * @see https://docs.github.com/rest/reference/repos#list-pull-requests-associated-with-a-commit
1587
+ * @see https://docs.github.com/rest/commits/commits#list-pull-requests-associated-with-a-commit
1592
1588
  */
1593
1589
  "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/pulls", "get">;
1594
1590
  /**
1595
- * @see https://docs.github.com/rest/reference/repos#get-a-commit
1591
+ * @see https://docs.github.com/rest/commits/commits#get-a-commit
1596
1592
  */
1597
1593
  "GET /repos/{owner}/{repo}/commits/{ref}": Operation<"/repos/{owner}/{repo}/commits/{ref}", "get">;
1598
1594
  /**
@@ -1604,19 +1600,19 @@ export interface Endpoints {
1604
1600
  */
1605
1601
  "GET /repos/{owner}/{repo}/commits/{ref}/check-suites": Operation<"/repos/{owner}/{repo}/commits/{ref}/check-suites", "get">;
1606
1602
  /**
1607
- * @see https://docs.github.com/rest/reference/repos#get-the-combined-status-for-a-specific-reference
1603
+ * @see https://docs.github.com/rest/commits/statuses#get-the-combined-status-for-a-specific-reference
1608
1604
  */
1609
1605
  "GET /repos/{owner}/{repo}/commits/{ref}/status": Operation<"/repos/{owner}/{repo}/commits/{ref}/status", "get">;
1610
1606
  /**
1611
- * @see https://docs.github.com/rest/reference/repos#list-commit-statuses-for-a-reference
1607
+ * @see https://docs.github.com/rest/commits/statuses#list-commit-statuses-for-a-reference
1612
1608
  */
1613
1609
  "GET /repos/{owner}/{repo}/commits/{ref}/statuses": Operation<"/repos/{owner}/{repo}/commits/{ref}/statuses", "get">;
1614
1610
  /**
1615
- * @see https://docs.github.com/rest/reference/repos#get-community-profile-metrics
1611
+ * @see https://docs.github.com/rest/metrics/community#get-community-profile-metrics
1616
1612
  */
1617
1613
  "GET /repos/{owner}/{repo}/community/profile": Operation<"/repos/{owner}/{repo}/community/profile", "get">;
1618
1614
  /**
1619
- * @see https://docs.github.com/rest/reference/repos#compare-two-commits
1615
+ * @see https://docs.github.com/rest/commits/commits#compare-two-commits
1620
1616
  */
1621
1617
  "GET /repos/{owner}/{repo}/compare/{basehead}": Operation<"/repos/{owner}/{repo}/compare/{basehead}", "get">;
1622
1618
  /**
@@ -1664,13 +1660,21 @@ export interface Endpoints {
1664
1660
  */
1665
1661
  "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}", "get">;
1666
1662
  /**
1667
- * @see https://docs.github.com/rest/reference/repos#get-all-environments
1663
+ * @see https://docs.github.com/rest/deployments/environments#list-environments
1668
1664
  */
1669
1665
  "GET /repos/{owner}/{repo}/environments": Operation<"/repos/{owner}/{repo}/environments", "get">;
1670
1666
  /**
1671
1667
  * @see https://docs.github.com/rest/reference/repos#get-an-environment
1672
1668
  */
1673
1669
  "GET /repos/{owner}/{repo}/environments/{environment_name}": Operation<"/repos/{owner}/{repo}/environments/{environment_name}", "get">;
1670
+ /**
1671
+ * @see https://docs.github.com/rest/deployments/branch-policies#list-deployment-branch-policies
1672
+ */
1673
+ "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": Operation<"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies", "get">;
1674
+ /**
1675
+ * @see https://docs.github.com/rest/deployments/branch-policies#get-deployment-branch-policy
1676
+ */
1677
+ "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": Operation<"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}", "get">;
1674
1678
  /**
1675
1679
  * @see https://docs.github.com/rest/reference/activity#list-repository-events
1676
1680
  */
@@ -1704,23 +1708,23 @@ export interface Endpoints {
1704
1708
  */
1705
1709
  "GET /repos/{owner}/{repo}/git/trees/{tree_sha}": Operation<"/repos/{owner}/{repo}/git/trees/{tree_sha}", "get">;
1706
1710
  /**
1707
- * @see https://docs.github.com/rest/reference/repos#list-repository-webhooks
1711
+ * @see https://docs.github.com/rest/webhooks/repos#list-repository-webhooks
1708
1712
  */
1709
1713
  "GET /repos/{owner}/{repo}/hooks": Operation<"/repos/{owner}/{repo}/hooks", "get">;
1710
1714
  /**
1711
- * @see https://docs.github.com/rest/reference/repos#get-a-repository-webhook
1715
+ * @see https://docs.github.com/rest/webhooks/repos#get-a-repository-webhook
1712
1716
  */
1713
1717
  "GET /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "get">;
1714
1718
  /**
1715
- * @see https://docs.github.com/rest/reference/repos#get-a-webhook-configuration-for-a-repository
1719
+ * @see https://docs.github.com/rest/webhooks/repo-config#get-a-webhook-configuration-for-a-repository
1716
1720
  */
1717
1721
  "GET /repos/{owner}/{repo}/hooks/{hook_id}/config": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/config", "get">;
1718
1722
  /**
1719
- * @see https://docs.github.com/rest/reference/repos#list-deliveries-for-a-repository-webhook
1723
+ * @see https://docs.github.com/rest/webhooks/repo-deliveries#list-deliveries-for-a-repository-webhook
1720
1724
  */
1721
1725
  "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/deliveries", "get">;
1722
1726
  /**
1723
- * @see https://docs.github.com/rest/reference/repos#get-a-delivery-for-a-repository-webhook
1727
+ * @see https://docs.github.com/rest/webhooks/repo-deliveries#get-a-delivery-for-a-repository-webhook
1724
1728
  */
1725
1729
  "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}", "get">;
1726
1730
  /**
@@ -1744,7 +1748,7 @@ export interface Endpoints {
1744
1748
  */
1745
1749
  "GET /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "get">;
1746
1750
  /**
1747
- * @see https://docs.github.com/rest/reference/repos#list-repository-invitations
1751
+ * @see https://docs.github.com/rest/collaborators/invitations#list-repository-invitations
1748
1752
  */
1749
1753
  "GET /repos/{owner}/{repo}/invitations": Operation<"/repos/{owner}/{repo}/invitations", "get">;
1750
1754
  /**
@@ -1836,23 +1840,23 @@ export interface Endpoints {
1836
1840
  */
1837
1841
  "GET /repos/{owner}/{repo}/notifications": Operation<"/repos/{owner}/{repo}/notifications", "get">;
1838
1842
  /**
1839
- * @see https://docs.github.com/rest/reference/repos#get-a-github-pages-site
1843
+ * @see https://docs.github.com/rest/pages#get-a-github-pages-site
1840
1844
  */
1841
1845
  "GET /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "get">;
1842
1846
  /**
1843
- * @see https://docs.github.com/rest/reference/repos#list-github-pages-builds
1847
+ * @see https://docs.github.com/rest/pages#list-github-pages-builds
1844
1848
  */
1845
1849
  "GET /repos/{owner}/{repo}/pages/builds": Operation<"/repos/{owner}/{repo}/pages/builds", "get">;
1846
1850
  /**
1847
- * @see https://docs.github.com/rest/reference/repos#get-latest-pages-build
1851
+ * @see https://docs.github.com/rest/pages#get-latest-pages-build
1848
1852
  */
1849
1853
  "GET /repos/{owner}/{repo}/pages/builds/latest": Operation<"/repos/{owner}/{repo}/pages/builds/latest", "get">;
1850
1854
  /**
1851
- * @see https://docs.github.com/rest/reference/repos#get-github-pages-build
1855
+ * @see https://docs.github.com/rest/pages#get-github-pages-build
1852
1856
  */
1853
1857
  "GET /repos/{owner}/{repo}/pages/builds/{build_id}": Operation<"/repos/{owner}/{repo}/pages/builds/{build_id}", "get">;
1854
1858
  /**
1855
- * @see https://docs.github.com/rest/reference/repos#get-a-dns-health-check-for-github-pages
1859
+ * @see https://docs.github.com/rest/pages#get-a-dns-health-check-for-github-pages
1856
1860
  */
1857
1861
  "GET /repos/{owner}/{repo}/pages/health": Operation<"/repos/{owner}/{repo}/pages/health", "get">;
1858
1862
  /**
@@ -1896,7 +1900,7 @@ export interface Endpoints {
1896
1900
  */
1897
1901
  "GET /repos/{owner}/{repo}/pulls/{pull_number}/merge": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/merge", "get">;
1898
1902
  /**
1899
- * @see https://docs.github.com/rest/reference/pulls#list-requested-reviewers-for-a-pull-request
1903
+ * @see https://docs.github.com/rest/reference/pulls#get-all-requested-reviewers-for-a-pull-request
1900
1904
  */
1901
1905
  "GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "get">;
1902
1906
  /**
@@ -1964,23 +1968,23 @@ export interface Endpoints {
1964
1968
  */
1965
1969
  "GET /repos/{owner}/{repo}/stargazers": Operation<"/repos/{owner}/{repo}/stargazers", "get">;
1966
1970
  /**
1967
- * @see https://docs.github.com/rest/reference/repos#get-the-weekly-commit-activity
1971
+ * @see https://docs.github.com/rest/metrics/statistics#get-the-weekly-commit-activity
1968
1972
  */
1969
1973
  "GET /repos/{owner}/{repo}/stats/code_frequency": Operation<"/repos/{owner}/{repo}/stats/code_frequency", "get">;
1970
1974
  /**
1971
- * @see https://docs.github.com/rest/reference/repos#get-the-last-year-of-commit-activity
1975
+ * @see https://docs.github.com/rest/metrics/statistics#get-the-last-year-of-commit-activity
1972
1976
  */
1973
1977
  "GET /repos/{owner}/{repo}/stats/commit_activity": Operation<"/repos/{owner}/{repo}/stats/commit_activity", "get">;
1974
1978
  /**
1975
- * @see https://docs.github.com/rest/reference/repos#get-all-contributor-commit-activity
1979
+ * @see https://docs.github.com/rest/metrics/statistics#get-all-contributor-commit-activity
1976
1980
  */
1977
1981
  "GET /repos/{owner}/{repo}/stats/contributors": Operation<"/repos/{owner}/{repo}/stats/contributors", "get">;
1978
1982
  /**
1979
- * @see https://docs.github.com/rest/reference/repos#get-the-weekly-commit-count
1983
+ * @see https://docs.github.com/rest/metrics/statistics#get-the-weekly-commit-count
1980
1984
  */
1981
1985
  "GET /repos/{owner}/{repo}/stats/participation": Operation<"/repos/{owner}/{repo}/stats/participation", "get">;
1982
1986
  /**
1983
- * @see https://docs.github.com/rest/reference/repos#get-the-hourly-commit-count-for-each-day
1987
+ * @see https://docs.github.com/rest/statistics/repos#get-the-hourly-commit-count-for-each-day
1984
1988
  */
1985
1989
  "GET /repos/{owner}/{repo}/stats/punch_card": Operation<"/repos/{owner}/{repo}/stats/punch_card", "get">;
1986
1990
  /**
@@ -2012,19 +2016,19 @@ export interface Endpoints {
2012
2016
  */
2013
2017
  "GET /repos/{owner}/{repo}/topics": Operation<"/repos/{owner}/{repo}/topics", "get">;
2014
2018
  /**
2015
- * @see https://docs.github.com/rest/reference/repos#get-repository-clones
2019
+ * @see https://docs.github.com/rest/metrics/traffic#get-repository-clones
2016
2020
  */
2017
2021
  "GET /repos/{owner}/{repo}/traffic/clones": Operation<"/repos/{owner}/{repo}/traffic/clones", "get">;
2018
2022
  /**
2019
- * @see https://docs.github.com/rest/reference/repos#get-top-referral-paths
2023
+ * @see https://docs.github.com/rest/metrics/traffic#get-top-referral-paths
2020
2024
  */
2021
2025
  "GET /repos/{owner}/{repo}/traffic/popular/paths": Operation<"/repos/{owner}/{repo}/traffic/popular/paths", "get">;
2022
2026
  /**
2023
- * @see https://docs.github.com/rest/reference/repos#get-top-referral-sources
2027
+ * @see https://docs.github.com/rest/metrics/traffic#get-top-referral-sources
2024
2028
  */
2025
2029
  "GET /repos/{owner}/{repo}/traffic/popular/referrers": Operation<"/repos/{owner}/{repo}/traffic/popular/referrers", "get">;
2026
2030
  /**
2027
- * @see https://docs.github.com/rest/reference/repos#get-page-views
2031
+ * @see https://docs.github.com/rest/metrics/traffic#get-page-views
2028
2032
  */
2029
2033
  "GET /repos/{owner}/{repo}/traffic/views": Operation<"/repos/{owner}/{repo}/traffic/views", "get">;
2030
2034
  /**
@@ -2324,7 +2328,7 @@ export interface Endpoints {
2324
2328
  */
2325
2329
  "GET /user/repos": Operation<"/user/repos", "get">;
2326
2330
  /**
2327
- * @see https://docs.github.com/rest/reference/repos#list-repository-invitations-for-the-authenticated-user
2331
+ * @see https://docs.github.com/rest/collaborators/invitations#list-repository-invitations-for-the-authenticated-user
2328
2332
  */
2329
2333
  "GET /user/repository_invitations": Operation<"/user/repository_invitations", "get">;
2330
2334
  /**
@@ -2463,10 +2467,6 @@ export interface Endpoints {
2463
2467
  * @see https://docs.github.com/rest/reference/apps#reset-a-token
2464
2468
  */
2465
2469
  "PATCH /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "patch">;
2466
- /**
2467
- * @see https://docs.github.com/rest/reference/oauth-authorizations#update-an-existing-authorization
2468
- */
2469
- "PATCH /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "patch">;
2470
2470
  /**
2471
2471
  * @see https://docs.github.com/rest/reference/actions#update-a-self-hosted-runner-group-for-an-enterprise
2472
2472
  */
@@ -2556,7 +2556,7 @@ export interface Endpoints {
2556
2556
  */
2557
2557
  "PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": Operation<"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "patch">;
2558
2558
  /**
2559
- * @see https://docs.github.com/rest/reference/repos#update-a-commit-comment
2559
+ * @see https://docs.github.com/rest/commits/comments#update-a-commit-comment
2560
2560
  */
2561
2561
  "PATCH /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "patch">;
2562
2562
  /**
@@ -2564,11 +2564,11 @@ export interface Endpoints {
2564
2564
  */
2565
2565
  "PATCH /repos/{owner}/{repo}/git/refs/{ref}": Operation<"/repos/{owner}/{repo}/git/refs/{ref}", "patch">;
2566
2566
  /**
2567
- * @see https://docs.github.com/rest/reference/repos#update-a-repository-webhook
2567
+ * @see https://docs.github.com/rest/webhooks/repos#update-a-repository-webhook
2568
2568
  */
2569
2569
  "PATCH /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "patch">;
2570
2570
  /**
2571
- * @see https://docs.github.com/rest/reference/repos#update-a-webhook-configuration-for-a-repository
2571
+ * @see https://docs.github.com/rest/webhooks/repo-config#update-a-webhook-configuration-for-a-repository
2572
2572
  */
2573
2573
  "PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/config", "patch">;
2574
2574
  /**
@@ -2584,7 +2584,7 @@ export interface Endpoints {
2584
2584
  */
2585
2585
  "PATCH /repos/{owner}/{repo}/import/lfs": Operation<"/repos/{owner}/{repo}/import/lfs", "patch">;
2586
2586
  /**
2587
- * @see https://docs.github.com/rest/reference/repos#update-a-repository-invitation
2587
+ * @see https://docs.github.com/rest/collaborators/invitations#update-a-repository-invitation
2588
2588
  */
2589
2589
  "PATCH /repos/{owner}/{repo}/invitations/{invitation_id}": Operation<"/repos/{owner}/{repo}/invitations/{invitation_id}", "patch">;
2590
2590
  /**
@@ -2668,7 +2668,7 @@ export interface Endpoints {
2668
2668
  */
2669
2669
  "PATCH /user/memberships/orgs/{org}": Operation<"/user/memberships/orgs/{org}", "patch">;
2670
2670
  /**
2671
- * @see https://docs.github.com/rest/reference/repos#accept-a-repository-invitation
2671
+ * @see https://docs.github.com/rest/collaborators/invitations#accept-a-repository-invitation
2672
2672
  */
2673
2673
  "PATCH /user/repository_invitations/{invitation_id}": Operation<"/user/repository_invitations/{invitation_id}", "patch">;
2674
2674
  /**
@@ -2691,10 +2691,6 @@ export interface Endpoints {
2691
2691
  * @see https://docs.github.com/rest/reference/apps#create-a-scoped-access-token
2692
2692
  */
2693
2693
  "POST /applications/{client_id}/token/scoped": Operation<"/applications/{client_id}/token/scoped", "post">;
2694
- /**
2695
- * @see https://docs.github.com/rest/reference/oauth-authorizations#create-a-new-authorization
2696
- */
2697
- "POST /authorizations": Operation<"/authorizations", "post">;
2698
2694
  /**
2699
2695
  * @see https://docs.github.com/rest/reference/actions#create-self-hosted-runner-group-for-an-enterprise
2700
2696
  */
@@ -2924,7 +2920,7 @@ export interface Endpoints {
2924
2920
  */
2925
2921
  "POST /repos/{owner}/{repo}/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions", "post">;
2926
2922
  /**
2927
- * @see https://docs.github.com/rest/reference/repos#create-a-commit-comment
2923
+ * @see https://docs.github.com/rest/commits/comments#create-a-commit-comment
2928
2924
  */
2929
2925
  "POST /repos/{owner}/{repo}/commits/{commit_sha}/comments": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/comments", "post">;
2930
2926
  /**
@@ -2943,6 +2939,10 @@ export interface Endpoints {
2943
2939
  * @see https://docs.github.com/rest/reference/repos#create-a-repository-dispatch-event
2944
2940
  */
2945
2941
  "POST /repos/{owner}/{repo}/dispatches": Operation<"/repos/{owner}/{repo}/dispatches", "post">;
2942
+ /**
2943
+ * @see https://docs.github.com/rest/deployments/branch-policies#create-deployment-branch-policy
2944
+ */
2945
+ "POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": Operation<"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies", "post">;
2946
2946
  /**
2947
2947
  * @see https://docs.github.com/rest/reference/repos#create-a-fork
2948
2948
  */
@@ -2968,19 +2968,19 @@ export interface Endpoints {
2968
2968
  */
2969
2969
  "POST /repos/{owner}/{repo}/git/trees": Operation<"/repos/{owner}/{repo}/git/trees", "post">;
2970
2970
  /**
2971
- * @see https://docs.github.com/rest/reference/repos#create-a-repository-webhook
2971
+ * @see https://docs.github.com/rest/webhooks/repos#create-a-repository-webhook
2972
2972
  */
2973
2973
  "POST /repos/{owner}/{repo}/hooks": Operation<"/repos/{owner}/{repo}/hooks", "post">;
2974
2974
  /**
2975
- * @see https://docs.github.com/rest/reference/repos#redeliver-a-delivery-for-a-repository-webhook
2975
+ * @see https://docs.github.com/rest/webhooks/repo-deliveries#redeliver-a-delivery-for-a-repository-webhook
2976
2976
  */
2977
2977
  "POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts", "post">;
2978
2978
  /**
2979
- * @see https://docs.github.com/rest/reference/repos#ping-a-repository-webhook
2979
+ * @see https://docs.github.com/rest/webhooks/repos#ping-a-repository-webhook
2980
2980
  */
2981
2981
  "POST /repos/{owner}/{repo}/hooks/{hook_id}/pings": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/pings", "post">;
2982
2982
  /**
2983
- * @see https://docs.github.com/rest/reference/repos#test-the-push-repository-webhook
2983
+ * @see https://docs.github.com/rest/webhooks/repos#test-the-push-repository-webhook
2984
2984
  */
2985
2985
  "POST /repos/{owner}/{repo}/hooks/{hook_id}/tests": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/tests", "post">;
2986
2986
  /**
@@ -3028,13 +3028,17 @@ export interface Endpoints {
3028
3028
  */
3029
3029
  "POST /repos/{owner}/{repo}/milestones": Operation<"/repos/{owner}/{repo}/milestones", "post">;
3030
3030
  /**
3031
- * @see https://docs.github.com/rest/reference/repos#create-a-github-pages-site
3031
+ * @see https://docs.github.com/rest/pages#create-a-github-pages-site
3032
3032
  */
3033
3033
  "POST /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "post">;
3034
3034
  /**
3035
- * @see https://docs.github.com/rest/reference/repos#request-a-github-pages-build
3035
+ * @see https://docs.github.com/rest/pages#request-a-github-pages-build
3036
3036
  */
3037
3037
  "POST /repos/{owner}/{repo}/pages/builds": Operation<"/repos/{owner}/{repo}/pages/builds", "post">;
3038
+ /**
3039
+ * @see https://docs.github.com/rest/pages#create-a-github-pages-deployment
3040
+ */
3041
+ "POST /repos/{owner}/{repo}/pages/deployment": Operation<"/repos/{owner}/{repo}/pages/deployment", "post">;
3038
3042
  /**
3039
3043
  * @see https://docs.github.com/rest/reference/projects#create-a-repository-project
3040
3044
  */
@@ -3084,7 +3088,7 @@ export interface Endpoints {
3084
3088
  */
3085
3089
  "POST /repos/{owner}/{repo}/releases/{release_id}/reactions": Operation<"/repos/{owner}/{repo}/releases/{release_id}/reactions", "post">;
3086
3090
  /**
3087
- * @see https://docs.github.com/rest/reference/repos#create-a-commit-status
3091
+ * @see https://docs.github.com/rest/commits/statuses#create-a-commit-status
3088
3092
  */
3089
3093
  "POST /repos/{owner}/{repo}/statuses/{sha}": Operation<"/repos/{owner}/{repo}/statuses/{sha}", "post">;
3090
3094
  /**
@@ -3191,14 +3195,6 @@ export interface Endpoints {
3191
3195
  * @see https://docs.github.com/rest/reference/apps#suspend-an-app-installation
3192
3196
  */
3193
3197
  "PUT /app/installations/{installation_id}/suspended": Operation<"/app/installations/{installation_id}/suspended", "put">;
3194
- /**
3195
- * @see https://docs.github.com/rest/reference/oauth-authorizations#get-or-create-an-authorization-for-a-specific-app
3196
- */
3197
- "PUT /authorizations/clients/{client_id}": Operation<"/authorizations/clients/{client_id}", "put">;
3198
- /**
3199
- * @see https://docs.github.com/rest/reference/oauth-authorizations#get-or-create-an-authorization-for-a-specific-app-and-fingerprint
3200
- */
3201
- "PUT /authorizations/clients/{client_id}/{fingerprint}": Operation<"/authorizations/clients/{client_id}/{fingerprint}", "put">;
3202
3198
  /**
3203
3199
  * @see https://docs.github.com/rest/reference/actions/oidc#set-actions-oidc-custom-issuer-policy-for-enterprise
3204
3200
  */
@@ -3343,6 +3339,10 @@ export interface Endpoints {
3343
3339
  * @see https://docs.github.com/rest/reference/orgs#set-public-organization-membership-for-the-authenticated-user
3344
3340
  */
3345
3341
  "PUT /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "put">;
3342
+ /**
3343
+ * @see https://docs.github.com/rest/reference/orgs#add-a-security-manager-team
3344
+ */
3345
+ "PUT /orgs/{org}/security-managers/teams/{team_slug}": Operation<"/orgs/{org}/security-managers/teams/{team_slug}", "put">;
3346
3346
  /**
3347
3347
  * @see https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user
3348
3348
  */
@@ -3424,7 +3424,7 @@ export interface Endpoints {
3424
3424
  */
3425
3425
  "PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/codespaces/secrets/{secret_name}", "put">;
3426
3426
  /**
3427
- * @see https://docs.github.com/rest/reference/repos#add-a-repository-collaborator
3427
+ * @see https://docs.github.com/rest/collaborators/collaborators#add-a-repository-collaborator
3428
3428
  */
3429
3429
  "PUT /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "put">;
3430
3430
  /**
@@ -3439,6 +3439,10 @@ export interface Endpoints {
3439
3439
  * @see https://docs.github.com/rest/reference/repos#create-or-update-an-environment
3440
3440
  */
3441
3441
  "PUT /repos/{owner}/{repo}/environments/{environment_name}": Operation<"/repos/{owner}/{repo}/environments/{environment_name}", "put">;
3442
+ /**
3443
+ * @see https://docs.github.com/rest/deployments/branch-policies#update-deployment-branch-policy
3444
+ */
3445
+ "PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": Operation<"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}", "put">;
3442
3446
  /**
3443
3447
  * @see https://docs.github.com/rest/reference/migrations#start-an-import
3444
3448
  */
@@ -3464,7 +3468,7 @@ export interface Endpoints {
3464
3468
  */
3465
3469
  "PUT /repos/{owner}/{repo}/notifications": Operation<"/repos/{owner}/{repo}/notifications", "put">;
3466
3470
  /**
3467
- * @see https://docs.github.com/rest/reference/repos#update-information-about-a-github-pages-site
3471
+ * @see https://docs.github.com/rest/pages#update-information-about-a-github-pages-site
3468
3472
  */
3469
3473
  "PUT /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "put">;
3470
3474
  /**
package/dist-web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const VERSION = "6.39.0";
1
+ const VERSION = "7.0.0";
2
2
 
3
3
  export { VERSION };
4
4
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,12 +1,19 @@
1
1
  {
2
2
  "name": "@octokit/types",
3
3
  "description": "Shared TypeScript definitions for Octokit projects",
4
- "version": "6.39.0",
4
+ "version": "7.0.0",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "dist-*/",
8
8
  "bin/"
9
9
  ],
10
+ "source": "dist-src/index.js",
11
+ "types": "dist-types/index.d.ts",
12
+ "octokit": {
13
+ "openapi-version": "7.1.0"
14
+ },
15
+ "main": "dist-node/index.js",
16
+ "module": "dist-web/index.js",
10
17
  "pika": true,
11
18
  "sideEffects": false,
12
19
  "keywords": [
@@ -18,10 +25,10 @@
18
25
  ],
19
26
  "repository": "github:octokit/types.ts",
20
27
  "dependencies": {
21
- "@octokit/openapi-types": "^12.7.0"
28
+ "@octokit/openapi-types": "^13.0.0"
22
29
  },
23
30
  "devDependencies": {
24
- "@pika/pack": "^0.5.0",
31
+ "@pika/pack": "^0.3.7",
25
32
  "@pika/plugin-build-node": "^0.9.0",
26
33
  "@pika/plugin-build-web": "^0.9.0",
27
34
  "@pika/plugin-ts-standard-pkg": "^0.9.0",
@@ -38,17 +45,10 @@
38
45
  "semantic-release-plugin-update-version-in-files": "^1.0.0",
39
46
  "sort-keys": "^4.2.0",
40
47
  "string-to-jsdoc-comment": "^1.0.0",
41
- "typedoc": "^0.21.0",
48
+ "typedoc": "^0.23.0",
42
49
  "typescript": "^4.0.2"
43
50
  },
44
51
  "publishConfig": {
45
52
  "access": "public"
46
- },
47
- "source": "dist-src/index.js",
48
- "types": "dist-types/index.d.ts",
49
- "octokit": {
50
- "openapi-version": "6.4.0"
51
- },
52
- "main": "dist-node/index.js",
53
- "module": "dist-web/index.js"
53
+ }
54
54
  }