@octokit/types 8.2.0 → 8.2.1

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,11 +2,11 @@ import { paths } from "@octokit/openapi-types";
2
2
  import { OctokitResponse } from "../OctokitResponse";
3
3
  import { RequestHeaders } from "../RequestHeaders";
4
4
  import { RequestRequestOptions } from "../RequestRequestOptions";
5
- declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
6
- declare type ExtractParameters<T> = "parameters" extends keyof T ? UnionToIntersection<{
5
+ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
6
+ type ExtractParameters<T> = "parameters" extends keyof T ? UnionToIntersection<{
7
7
  [K in keyof T["parameters"]]: T["parameters"][K];
8
8
  }[keyof T["parameters"]]> : {};
9
- declare type ExtractRequestBody<T> = "requestBody" extends keyof T ? "content" extends keyof T["requestBody"] ? "application/json" extends keyof T["requestBody"]["content"] ? T["requestBody"]["content"]["application/json"] : {
9
+ type ExtractRequestBody<T> = "requestBody" extends keyof T ? "content" extends keyof T["requestBody"] ? "application/json" extends keyof T["requestBody"]["content"] ? T["requestBody"]["content"]["application/json"] : {
10
10
  data: {
11
11
  [K in keyof T["requestBody"]["content"]]: T["requestBody"]["content"][K];
12
12
  }[keyof T["requestBody"]["content"]];
@@ -15,13 +15,13 @@ declare type ExtractRequestBody<T> = "requestBody" extends keyof T ? "content" e
15
15
  [K in keyof T["requestBody"]]: T["requestBody"][K];
16
16
  }[keyof T["requestBody"]];
17
17
  } : {};
18
- declare type ToOctokitParameters<T> = ExtractParameters<T> & ExtractRequestBody<T>;
19
- declare type RequiredPreview<T> = T extends string ? {
18
+ type ToOctokitParameters<T> = ExtractParameters<T> & ExtractRequestBody<T>;
19
+ type RequiredPreview<T> = T extends string ? {
20
20
  mediaType: {
21
21
  previews: [T, ...string[]];
22
22
  };
23
23
  } : {};
24
- declare type Operation<Url extends keyof paths, Method extends keyof paths[Url], preview = unknown> = {
24
+ type Operation<Url extends keyof paths, Method extends keyof paths[Url], preview = unknown> = {
25
25
  parameters: ToOctokitParameters<paths[Url][Method]> & RequiredPreview<preview>;
26
26
  request: {
27
27
  method: Method extends keyof MethodsMap ? MethodsMap[Method] : never;
@@ -31,31 +31,31 @@ declare type Operation<Url extends keyof paths, Method extends keyof paths[Url],
31
31
  };
32
32
  response: ExtractOctokitResponse<paths[Url][Method]>;
33
33
  };
34
- declare type MethodsMap = {
34
+ type MethodsMap = {
35
35
  delete: "DELETE";
36
36
  get: "GET";
37
37
  patch: "PATCH";
38
38
  post: "POST";
39
39
  put: "PUT";
40
40
  };
41
- declare type SuccessStatuses = 200 | 201 | 202 | 204;
42
- declare type RedirectStatuses = 301 | 302;
43
- declare type EmptyResponseStatuses = 201 | 204;
44
- declare type KnownJsonResponseTypes = "application/json" | "application/scim+json" | "text/html";
45
- declare type SuccessResponseDataType<Responses> = {
41
+ type SuccessStatuses = 200 | 201 | 202 | 204;
42
+ type RedirectStatuses = 301 | 302;
43
+ type EmptyResponseStatuses = 201 | 204;
44
+ type KnownJsonResponseTypes = "application/json" | "application/scim+json" | "text/html";
45
+ type SuccessResponseDataType<Responses> = {
46
46
  [K in SuccessStatuses & keyof Responses]: GetContentKeyIfPresent<Responses[K]> extends never ? never : OctokitResponse<GetContentKeyIfPresent<Responses[K]>, K>;
47
47
  }[SuccessStatuses & keyof Responses];
48
- declare type RedirectResponseDataType<Responses> = {
48
+ type RedirectResponseDataType<Responses> = {
49
49
  [K in RedirectStatuses & keyof Responses]: OctokitResponse<unknown, K>;
50
50
  }[RedirectStatuses & keyof Responses];
51
- declare type EmptyResponseDataType<Responses> = {
51
+ type EmptyResponseDataType<Responses> = {
52
52
  [K in EmptyResponseStatuses & keyof Responses]: OctokitResponse<never, K>;
53
53
  }[EmptyResponseStatuses & keyof Responses];
54
- declare type GetContentKeyIfPresent<T> = "content" extends keyof T ? DataType<T["content"]> : DataType<T>;
55
- declare type DataType<T> = {
54
+ type GetContentKeyIfPresent<T> = "content" extends keyof T ? DataType<T["content"]> : DataType<T>;
55
+ type DataType<T> = {
56
56
  [K in KnownJsonResponseTypes & keyof T]: T[K];
57
57
  }[KnownJsonResponseTypes & keyof T];
58
- declare type ExtractOctokitResponse<R> = "responses" extends keyof R ? SuccessResponseDataType<R["responses"]> extends never ? RedirectResponseDataType<R["responses"]> extends never ? EmptyResponseDataType<R["responses"]> : RedirectResponseDataType<R["responses"]> : SuccessResponseDataType<R["responses"]> : unknown;
58
+ type ExtractOctokitResponse<R> = "responses" extends keyof R ? SuccessResponseDataType<R["responses"]> extends never ? RedirectResponseDataType<R["responses"]> extends never ? EmptyResponseDataType<R["responses"]> : RedirectResponseDataType<R["responses"]> : SuccessResponseDataType<R["responses"]> : unknown;
59
59
  export interface Endpoints {
60
60
  /**
61
61
  * @see https://docs.github.com/rest/reference/apps#delete-an-installation-for-the-authenticated-app
@@ -73,6 +73,18 @@ export interface Endpoints {
73
73
  * @see https://docs.github.com/rest/reference/apps#delete-an-app-token
74
74
  */
75
75
  "DELETE /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "delete">;
76
+ /**
77
+ * @see https://docs.github.com/rest/reference/actions#disable-a-selected-organization-for-github-actions-in-an-enterprise
78
+ */
79
+ "DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/permissions/organizations/{org_id}", "delete">;
80
+ /**
81
+ * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-group-from-an-enterprise
82
+ */
83
+ "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "delete">;
84
+ /**
85
+ * @see https://docs.github.com/rest/reference/actions#remove-organization-access-to-a-self-hosted-runner-group-in-an-enterprise
86
+ */
87
+ "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "delete">;
76
88
  /**
77
89
  * @see https://docs.github.com/rest/reference/actions#remove-a-self-hosted-runner-from-a-group-for-an-enterprise
78
90
  */
@@ -81,6 +93,14 @@ export interface Endpoints {
81
93
  * @see https://docs.github.com/rest/reference/actions#delete-self-hosted-runner-from-an-enterprise
82
94
  */
83
95
  "DELETE /enterprises/{enterprise}/actions/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}", "delete">;
96
+ /**
97
+ * @see https://docs.github.com/rest/reference/actions#remove-all-custom-labels-from-a-self-hosted-runner-for-an-enterprise
98
+ */
99
+ "DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}/labels", "delete">;
100
+ /**
101
+ * @see https://docs.github.com/rest/reference/actions#remove-a-custom-label-from-a-self-hosted-runner-for-an-enterprise
102
+ */
103
+ "DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels/{name}": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}/labels/{name}", "delete">;
84
104
  /**
85
105
  * @see https://docs.github.com/rest/reference/gists#delete-a-gist
86
106
  */
@@ -102,17 +122,17 @@ export interface Endpoints {
102
122
  */
103
123
  "DELETE /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "delete">;
104
124
  /**
105
- * @see https://docs.github.com/rest/reference/actions#disable-a-selected-repository-for-github-actions-in-an-organization
125
+ * @see https://docs.github.com/rest/reference/codespaces#delete-an-organization-secret
106
126
  */
107
- "DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}": Operation<"/orgs/{org}/actions/permissions/repositories/{repository_id}", "delete">;
127
+ "DELETE /organizations/{org}/codespaces/secrets/{secret_name}": Operation<"/organizations/{org}/codespaces/secrets/{secret_name}", "delete">;
108
128
  /**
109
- * @see https://docs.github.com/rest/reference/actions#delete-a-required-workflow
129
+ * @see https://docs.github.com/rest/reference/codespaces#remove-selected-repository-from-an-organization-secret
110
130
  */
111
- "DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}": Operation<"/orgs/{org}/actions/required_workflows/{required_workflow_id}", "delete">;
131
+ "DELETE /organizations/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}": Operation<"/organizations/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}", "delete">;
112
132
  /**
113
- * @see https://docs.github.com/rest/reference/actions#remove-a-repository-from-selected-repositories-list-for-a-required-workflow
133
+ * @see https://docs.github.com/rest/reference/actions#disable-a-selected-repository-for-github-actions-in-an-organization
114
134
  */
115
- "DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}", "delete">;
135
+ "DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}": Operation<"/orgs/{org}/actions/permissions/repositories/{repository_id}", "delete">;
116
136
  /**
117
137
  * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-group-from-an-organization
118
138
  */
@@ -145,26 +165,14 @@ export interface Endpoints {
145
165
  * @see https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret
146
166
  */
147
167
  "DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}", "delete">;
148
- /**
149
- * @see https://docs.github.com/rest/actions/variables#delete-an-organization-variable
150
- */
151
- "DELETE /orgs/{org}/actions/variables/{name}": Operation<"/orgs/{org}/actions/variables/{name}", "delete">;
152
- /**
153
- * @see https://docs.github.com/rest/actions/variables#remove-selected-repository-from-an-organization-variable
154
- */
155
- "DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/variables/{name}/repositories/{repository_id}", "delete">;
156
168
  /**
157
169
  * @see https://docs.github.com/rest/reference/orgs#unblock-a-user-from-an-organization
158
170
  */
159
171
  "DELETE /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "delete">;
160
172
  /**
161
- * @see https://docs.github.com/rest/reference/codespaces#delete-an-organization-secret
162
- */
163
- "DELETE /orgs/{org}/codespaces/secrets/{secret_name}": Operation<"/orgs/{org}/codespaces/secrets/{secret_name}", "delete">;
164
- /**
165
- * @see https://docs.github.com/rest/reference/codespaces#remove-selected-repository-from-an-organization-secret
173
+ * @see https://docs.github.com/rest/reference/orgs#delete-a-custom-role
166
174
  */
167
- "DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}": Operation<"/orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}", "delete">;
175
+ "DELETE /orgs/{org}/custom_roles/{role_id}": Operation<"/orgs/{org}/custom_roles/{role_id}", "delete">;
168
176
  /**
169
177
  * @see https://docs.github.com/rest/reference/dependabot#delete-an-organization-secret
170
178
  */
@@ -313,10 +321,6 @@ export interface Endpoints {
313
321
  * @see https://docs.github.com/rest/reference/actions#delete-a-repository-secret
314
322
  */
315
323
  "DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "delete">;
316
- /**
317
- * @see https://docs.github.com/rest/actions/variables#delete-a-repository-variable
318
- */
319
- "DELETE /repos/{owner}/{repo}/actions/variables/{name}": Operation<"/repos/{owner}/{repo}/actions/variables/{name}", "delete">;
320
324
  /**
321
325
  * @see https://docs.github.com/v3/repos#delete-autolink
322
326
  */
@@ -326,43 +330,43 @@ export interface Endpoints {
326
330
  */
327
331
  "DELETE /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "delete">;
328
332
  /**
329
- * @see https://docs.github.com/rest/branches/branch-protection#delete-branch-protection
333
+ * @see https://docs.github.com/rest/reference/repos#delete-branch-protection
330
334
  */
331
335
  "DELETE /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "delete">;
332
336
  /**
333
- * @see https://docs.github.com/rest/branches/branch-protection#delete-admin-branch-protection
337
+ * @see https://docs.github.com/rest/reference/repos#delete-admin-branch-protection
334
338
  */
335
339
  "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "delete">;
336
340
  /**
337
- * @see https://docs.github.com/rest/branches/branch-protection#delete-pull-request-review-protection
341
+ * @see https://docs.github.com/rest/reference/repos#delete-pull-request-review-protection
338
342
  */
339
343
  "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "delete">;
340
344
  /**
341
- * @see https://docs.github.com/rest/branches/branch-protection#delete-commit-signature-protection
345
+ * @see https://docs.github.com/rest/reference/repos#delete-commit-signature-protection
342
346
  */
343
347
  "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "delete">;
344
348
  /**
345
- * @see https://docs.github.com/rest/branches/branch-protection#remove-status-check-protection
349
+ * @see https://docs.github.com/rest/reference/repos#remove-status-check-protection
346
350
  */
347
351
  "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "delete">;
348
352
  /**
349
- * @see https://docs.github.com/rest/branches/branch-protection#remove-status-check-contexts
353
+ * @see https://docs.github.com/rest/reference/repos#remove-status-check-contexts
350
354
  */
351
355
  "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "delete">;
352
356
  /**
353
- * @see https://docs.github.com/rest/branches/branch-protection#delete-access-restrictions
357
+ * @see https://docs.github.com/rest/reference/repos#delete-access-restrictions
354
358
  */
355
359
  "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions", "delete">;
356
360
  /**
357
- * @see https://docs.github.com/rest/branches/branch-protection#remove-app-access-restrictions
361
+ * @see https://docs.github.com/rest/reference/repos#remove-app-access-restrictions
358
362
  */
359
363
  "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "delete">;
360
364
  /**
361
- * @see https://docs.github.com/rest/branches/branch-protection#remove-team-access-restrictions
365
+ * @see https://docs.github.com/rest/reference/repos#remove-team-access-restrictions
362
366
  */
363
367
  "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "delete">;
364
368
  /**
365
- * @see https://docs.github.com/rest/branches/branch-protection#remove-user-access-restrictions
369
+ * @see https://docs.github.com/rest/reference/repos#remove-user-access-restrictions
366
370
  */
367
371
  "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "delete">;
368
372
  /**
@@ -394,11 +398,11 @@ export interface Endpoints {
394
398
  */
395
399
  "DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/dependabot/secrets/{secret_name}", "delete">;
396
400
  /**
397
- * @see https://docs.github.com/rest/deployments/deployments#delete-a-deployment
401
+ * @see https://docs.github.com/rest/reference/repos#delete-a-deployment
398
402
  */
399
403
  "DELETE /repos/{owner}/{repo}/deployments/{deployment_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}", "delete">;
400
404
  /**
401
- * @see https://docs.github.com/rest/deployments/environments#delete-an-environment
405
+ * @see https://docs.github.com/rest/reference/repos#delete-an-environment
402
406
  */
403
407
  "DELETE /repos/{owner}/{repo}/environments/{environment_name}": Operation<"/repos/{owner}/{repo}/environments/{environment_name}", "delete">;
404
408
  /**
@@ -454,7 +458,7 @@ export interface Endpoints {
454
458
  */
455
459
  "DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}", "delete">;
456
460
  /**
457
- * @see https://docs.github.com/rest/deploy-keys#delete-a-deploy-key
461
+ * @see https://docs.github.com/rest/reference/repos#delete-a-deploy-key
458
462
  */
459
463
  "DELETE /repos/{owner}/{repo}/keys/{key_id}": Operation<"/repos/{owner}/{repo}/keys/{key_id}", "delete">;
460
464
  /**
@@ -517,10 +521,6 @@ export interface Endpoints {
517
521
  * @see https://docs.github.com/rest/reference/actions#delete-an-environment-secret
518
522
  */
519
523
  "DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}": Operation<"/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}", "delete">;
520
- /**
521
- * @see https://docs.github.com/rest/actions/variables#delete-an-environment-variable
522
- */
523
- "DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}": Operation<"/repositories/{repository_id}/environments/{environment_name}/variables/{name}", "delete">;
524
524
  /**
525
525
  * @see https://docs.github.com/rest/reference/teams/#delete-a-team-legacy
526
526
  */
@@ -669,6 +669,30 @@ export interface Endpoints {
669
669
  * @see https://docs.github.com/rest/reference/emojis#get-emojis
670
670
  */
671
671
  "GET /emojis": Operation<"/emojis", "get">;
672
+ /**
673
+ * @see https://docs.github.com/rest/reference/enterprise-admin#get-github-enterprise-server-statistics
674
+ */
675
+ "GET /enterprise-installation/{enterprise_or_org}/server-statistics": Operation<"/enterprise-installation/{enterprise_or_org}/server-statistics", "get">;
676
+ /**
677
+ * @see https://docs.github.com/rest/reference/actions#get-github-actions-cache-usage-for-an-enterprise
678
+ */
679
+ "GET /enterprises/{enterprise}/actions/cache/usage": Operation<"/enterprises/{enterprise}/actions/cache/usage", "get">;
680
+ /**
681
+ * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-an-enterprise
682
+ */
683
+ "GET /enterprises/{enterprise}/actions/permissions": Operation<"/enterprises/{enterprise}/actions/permissions", "get">;
684
+ /**
685
+ * @see https://docs.github.com/rest/reference/actions#list-selected-organizations-enabled-for-github-actions-in-an-enterprise
686
+ */
687
+ "GET /enterprises/{enterprise}/actions/permissions/organizations": Operation<"/enterprises/{enterprise}/actions/permissions/organizations", "get">;
688
+ /**
689
+ * @see https://docs.github.com/rest/reference/actions#get-allowed-actions-for-an-enterprise
690
+ */
691
+ "GET /enterprises/{enterprise}/actions/permissions/selected-actions": Operation<"/enterprises/{enterprise}/actions/permissions/selected-actions", "get">;
692
+ /**
693
+ * @see https://docs.github.com/rest/reference/actions#get-default-workflow-permissions-for-an-enterprise
694
+ */
695
+ "GET /enterprises/{enterprise}/actions/permissions/workflow": Operation<"/enterprises/{enterprise}/actions/permissions/workflow", "get">;
672
696
  /**
673
697
  * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runner-groups-for-an-enterprise
674
698
  */
@@ -678,21 +702,41 @@ export interface Endpoints {
678
702
  */
679
703
  "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "get">;
680
704
  /**
681
- * @see https://docs.github.com/rest/reference/actions#list-labels-for-a-self-hosted-runner-for-an-enterprise
705
+ * @see https://docs.github.com/rest/reference/actions#list-organization-access-to-a-self-hosted-runner-group-in-a-enterprise
682
706
  */
683
- "GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}/labels", "get">;
707
+ "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "get">;
708
+ /**
709
+ * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-in-a-group-for-an-enterprise
710
+ */
711
+ "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "get">;
712
+ /**
713
+ * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-an-enterprise
714
+ */
715
+ "GET /enterprises/{enterprise}/actions/runners": Operation<"/enterprises/{enterprise}/actions/runners", "get">;
716
+ /**
717
+ * @see https://docs.github.com/rest/reference/actions#list-runner-applications-for-an-enterprise
718
+ */
719
+ "GET /enterprises/{enterprise}/actions/runners/downloads": Operation<"/enterprises/{enterprise}/actions/runners/downloads", "get">;
720
+ /**
721
+ * @see https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-for-an-enterprise
722
+ */
723
+ "GET /enterprises/{enterprise}/actions/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}", "get">;
684
724
  /**
685
- * @see https://docs.github.com/rest/enterprise-admin#get-code-security-analysis-features-for-an-enterprise
725
+ * @see https://docs.github.com/rest/reference/actions#list-labels-for-a-self-hosted-runner-for-an-enterprise
686
726
  */
687
- "GET /enterprises/{enterprise}/code_security_and_analysis": Operation<"/enterprises/{enterprise}/code_security_and_analysis", "get">;
727
+ "GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}/labels", "get">;
688
728
  /**
689
- * @see https://docs.github.com/rest/dependabot/alerts#list-dependabot-alerts-for-an-enterprise
729
+ * @see https://docs.github.com/rest/reference/code-scanning#list-code-scanning-alerts-for-an-enterprise
690
730
  */
691
- "GET /enterprises/{enterprise}/dependabot/alerts": Operation<"/enterprises/{enterprise}/dependabot/alerts", "get">;
731
+ "GET /enterprises/{enterprise}/code-scanning/alerts": Operation<"/enterprises/{enterprise}/code-scanning/alerts", "get">;
692
732
  /**
693
733
  * @see https://docs.github.com/rest/reference/secret-scanning#list-secret-scanning-alerts-for-an-enterprise
694
734
  */
695
735
  "GET /enterprises/{enterprise}/secret-scanning/alerts": Operation<"/enterprises/{enterprise}/secret-scanning/alerts", "get">;
736
+ /**
737
+ * @see https://docs.github.com/rest/reference/billing#export-advanced-security-active-committers-data-for-enterprise
738
+ */
739
+ "GET /enterprises/{enterprise}/settings/billing/advanced-security": Operation<"/enterprises/{enterprise}/settings/billing/advanced-security", "get">;
696
740
  /**
697
741
  * @see https://docs.github.com/rest/reference/activity#list-public-events
698
742
  */
@@ -817,6 +861,26 @@ export interface Endpoints {
817
861
  * @see https://docs.github.com/rest/reference/orgs#list-organizations
818
862
  */
819
863
  "GET /organizations": Operation<"/organizations", "get">;
864
+ /**
865
+ * @see https://docs.github.com/rest/reference/orgs#list-custom-repository-roles-in-an-organization
866
+ */
867
+ "GET /organizations/{organization_id}/custom_roles": Operation<"/organizations/{organization_id}/custom_roles", "get">;
868
+ /**
869
+ * @see https://docs.github.com/rest/reference/codespaces#list-organization-secrets
870
+ */
871
+ "GET /organizations/{org}/codespaces/secrets": Operation<"/organizations/{org}/codespaces/secrets", "get">;
872
+ /**
873
+ * @see https://docs.github.com/rest/reference/codespaces#get-an-organization-public-key
874
+ */
875
+ "GET /organizations/{org}/codespaces/secrets/public-key": Operation<"/organizations/{org}/codespaces/secrets/public-key", "get">;
876
+ /**
877
+ * @see https://docs.github.com/rest/reference/codespaces#get-an-organization-secret
878
+ */
879
+ "GET /organizations/{org}/codespaces/secrets/{secret_name}": Operation<"/organizations/{org}/codespaces/secrets/{secret_name}", "get">;
880
+ /**
881
+ * @see https://docs.github.com/rest/reference/codespaces#list-selected-repositories-for-an-organization-secret
882
+ */
883
+ "GET /organizations/{org}/codespaces/secrets/{secret_name}/repositories": Operation<"/organizations/{org}/codespaces/secrets/{secret_name}/repositories", "get">;
820
884
  /**
821
885
  * @see https://docs.github.com/rest/reference/codespaces#list-in-organization
822
886
  * @deprecated "org_id" is now "org"
@@ -834,10 +898,6 @@ export interface Endpoints {
834
898
  * @see https://docs.github.com/rest/reference/actions#list-repositories-with-github-actions-cache-usage-for-an-organization
835
899
  */
836
900
  "GET /orgs/{org}/actions/cache/usage-by-repository": Operation<"/orgs/{org}/actions/cache/usage-by-repository", "get">;
837
- /**
838
- * @see https://docs.github.com/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-an-organization
839
- */
840
- "GET /orgs/{org}/actions/oidc/customization/sub": Operation<"/orgs/{org}/actions/oidc/customization/sub", "get">;
841
901
  /**
842
902
  * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-an-organization
843
903
  */
@@ -854,18 +914,6 @@ export interface Endpoints {
854
914
  * @see https://docs.github.com/rest/reference/actions#get-default-workflow-permissions
855
915
  */
856
916
  "GET /orgs/{org}/actions/permissions/workflow": Operation<"/orgs/{org}/actions/permissions/workflow", "get">;
857
- /**
858
- * @see https://docs.github.com/rest/reference/actions#list-required-workflows
859
- */
860
- "GET /orgs/{org}/actions/required_workflows": Operation<"/orgs/{org}/actions/required_workflows", "get">;
861
- /**
862
- * @see https://docs.github.com/rest/reference/actions#get-a-required-workflow
863
- */
864
- "GET /orgs/{org}/actions/required_workflows/{required_workflow_id}": Operation<"/orgs/{org}/actions/required_workflows/{required_workflow_id}", "get">;
865
- /**
866
- * @see https://docs.github.com/rest/reference/actions#list-selected-repositories-required-workflows
867
- */
868
- "GET /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories": Operation<"/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories", "get">;
869
917
  /**
870
918
  * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runner-groups-for-an-organization
871
919
  */
@@ -914,18 +962,6 @@ export interface Endpoints {
914
962
  * @see https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret
915
963
  */
916
964
  "GET /orgs/{org}/actions/secrets/{secret_name}/repositories": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories", "get">;
917
- /**
918
- * @see https://docs.github.com/rest/actions/variables#list-organization-variables
919
- */
920
- "GET /orgs/{org}/actions/variables": Operation<"/orgs/{org}/actions/variables", "get">;
921
- /**
922
- * @see https://docs.github.com/rest/actions/variables#get-an-organization-variable
923
- */
924
- "GET /orgs/{org}/actions/variables/{name}": Operation<"/orgs/{org}/actions/variables/{name}", "get">;
925
- /**
926
- * @see https://docs.github.com/rest/actions/variables#list-selected-repositories-for-an-organization-variable
927
- */
928
- "GET /orgs/{org}/actions/variables/{name}/repositories": Operation<"/orgs/{org}/actions/variables/{name}/repositories", "get">;
929
965
  /**
930
966
  * @see https://docs.github.com/rest/reference/orgs#list-users-blocked-by-an-organization
931
967
  */
@@ -942,26 +978,6 @@ export interface Endpoints {
942
978
  * @see https://docs.github.com/rest/reference/codespaces#list-in-organization
943
979
  */
944
980
  "GET /orgs/{org}/codespaces": Operation<"/orgs/{org}/codespaces", "get">;
945
- /**
946
- * @see https://docs.github.com/rest/reference/codespaces#list-organization-secrets
947
- */
948
- "GET /orgs/{org}/codespaces/secrets": Operation<"/orgs/{org}/codespaces/secrets", "get">;
949
- /**
950
- * @see https://docs.github.com/rest/reference/codespaces#get-an-organization-public-key
951
- */
952
- "GET /orgs/{org}/codespaces/secrets/public-key": Operation<"/orgs/{org}/codespaces/secrets/public-key", "get">;
953
- /**
954
- * @see https://docs.github.com/rest/reference/codespaces#get-an-organization-secret
955
- */
956
- "GET /orgs/{org}/codespaces/secrets/{secret_name}": Operation<"/orgs/{org}/codespaces/secrets/{secret_name}", "get">;
957
- /**
958
- * @see https://docs.github.com/rest/reference/codespaces#list-selected-repositories-for-an-organization-secret
959
- */
960
- "GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories": Operation<"/orgs/{org}/codespaces/secrets/{secret_name}/repositories", "get">;
961
- /**
962
- * @see https://docs.github.com/rest/dependabot/alerts#list-dependabot-alerts-for-an-organization
963
- */
964
- "GET /orgs/{org}/dependabot/alerts": Operation<"/orgs/{org}/dependabot/alerts", "get">;
965
981
  /**
966
982
  * @see https://docs.github.com/rest/reference/dependabot#list-organization-secrets
967
983
  */
@@ -986,6 +1002,10 @@ export interface Endpoints {
986
1002
  * @see https://docs.github.com/rest/reference/orgs#list-failed-organization-invitations
987
1003
  */
988
1004
  "GET /orgs/{org}/failed_invitations": Operation<"/orgs/{org}/failed_invitations", "get">;
1005
+ /**
1006
+ * @see https://docs.github.com/rest/reference/orgs#list-fine-grained-permissions-for-an-organization
1007
+ */
1008
+ "GET /orgs/{org}/fine_grained_permissions": Operation<"/orgs/{org}/fine_grained_permissions", "get">;
989
1009
  /**
990
1010
  * @see https://docs.github.com/rest/reference/orgs#list-organization-webhooks
991
1011
  */
@@ -1038,10 +1058,6 @@ export interface Endpoints {
1038
1058
  * @see https://docs.github.com/rest/reference/orgs#check-organization-membership-for-a-user
1039
1059
  */
1040
1060
  "GET /orgs/{org}/members/{username}": Operation<"/orgs/{org}/members/{username}", "get">;
1041
- /**
1042
- * @see https://docs.github.com/rest/reference/codespaces#get-codespaces-for-user-in-org
1043
- */
1044
- "GET /orgs/{org}/members/{username}/codespaces": Operation<"/orgs/{org}/members/{username}/codespaces", "get">;
1045
1061
  /**
1046
1062
  * @see https://docs.github.com/rest/reference/orgs#get-organization-membership-for-a-user
1047
1063
  */
@@ -1110,6 +1126,10 @@ export interface Endpoints {
1110
1126
  * @see https://docs.github.com/rest/reference/billing#get-github-actions-billing-for-an-organization
1111
1127
  */
1112
1128
  "GET /orgs/{org}/settings/billing/actions": Operation<"/orgs/{org}/settings/billing/actions", "get">;
1129
+ /**
1130
+ * @see https://docs.github.com/rest/reference/billing#get-github-advanced-security-active-committers-for-an-organization
1131
+ */
1132
+ "GET /orgs/{org}/settings/billing/advanced-security": Operation<"/orgs/{org}/settings/billing/advanced-security", "get">;
1113
1133
  /**
1114
1134
  * @see https://docs.github.com/rest/reference/billing#get-github-packages-billing-for-an-organization
1115
1135
  */
@@ -1214,18 +1234,6 @@ export interface Endpoints {
1214
1234
  * @see https://docs.github.com/rest/reference/rate-limit#get-rate-limit-status-for-the-authenticated-user
1215
1235
  */
1216
1236
  "GET /rate_limit": Operation<"/rate_limit", "get">;
1217
- /**
1218
- * @see https://docs.github.com/rest/reference/actions#list-repository-required-workflows
1219
- */
1220
- "GET /repos/{org}/{repo}/actions/required_workflows": Operation<"/repos/{org}/{repo}/actions/required_workflows", "get">;
1221
- /**
1222
- * @see https://docs.github.com/rest/reference/actions#get-repository-required-workflow
1223
- */
1224
- "GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}": Operation<"/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}", "get">;
1225
- /**
1226
- * @see https://docs.github.com/rest/reference/actions#get-repository-required-workflow-usage
1227
- */
1228
- "GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing": Operation<"/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing", "get">;
1229
1237
  /**
1230
1238
  * @see https://docs.github.com/rest/reference/repos#get-a-repository
1231
1239
  */
@@ -1258,10 +1266,6 @@ export interface Endpoints {
1258
1266
  * @see https://docs.github.com/rest/reference/actions#download-job-logs-for-a-workflow-run
1259
1267
  */
1260
1268
  "GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs": Operation<"/repos/{owner}/{repo}/actions/jobs/{job_id}/logs", "get">;
1261
- /**
1262
- * @see https://docs.github.com/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-a-repository
1263
- */
1264
- "GET /repos/{owner}/{repo}/actions/oidc/customization/sub": Operation<"/repos/{owner}/{repo}/actions/oidc/customization/sub", "get">;
1265
1269
  /**
1266
1270
  * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-a-repository
1267
1271
  */
@@ -1278,10 +1282,6 @@ export interface Endpoints {
1278
1282
  * @see https://docs.github.com/rest/reference/actions#get-default-workflow-permissions-for-a-repository
1279
1283
  */
1280
1284
  "GET /repos/{owner}/{repo}/actions/permissions/workflow": Operation<"/repos/{owner}/{repo}/actions/permissions/workflow", "get">;
1281
- /**
1282
- * @see https://docs.github.com/rest/reference/actions#list-required-workflow-runs
1283
- */
1284
- "GET /repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs": Operation<"/repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs", "get">;
1285
1285
  /**
1286
1286
  * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-a-repository
1287
1287
  */
@@ -1354,14 +1354,6 @@ export interface Endpoints {
1354
1354
  * @see https://docs.github.com/rest/reference/actions#get-a-repository-secret
1355
1355
  */
1356
1356
  "GET /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "get">;
1357
- /**
1358
- * @see https://docs.github.com/rest/actions/variables#list-repository-variables
1359
- */
1360
- "GET /repos/{owner}/{repo}/actions/variables": Operation<"/repos/{owner}/{repo}/actions/variables", "get">;
1361
- /**
1362
- * @see https://docs.github.com/rest/actions/variables#get-a-repository-variable
1363
- */
1364
- "GET /repos/{owner}/{repo}/actions/variables/{name}": Operation<"/repos/{owner}/{repo}/actions/variables/{name}", "get">;
1365
1357
  /**
1366
1358
  * @see https://docs.github.com/rest/reference/actions#list-repository-workflows
1367
1359
  */
@@ -1395,51 +1387,51 @@ export interface Endpoints {
1395
1387
  */
1396
1388
  "GET /repos/{owner}/{repo}/autolinks/{autolink_id}": Operation<"/repos/{owner}/{repo}/autolinks/{autolink_id}", "get">;
1397
1389
  /**
1398
- * @see https://docs.github.com/rest/branches/branches#list-branches
1390
+ * @see https://docs.github.com/rest/reference/repos#list-branches
1399
1391
  */
1400
1392
  "GET /repos/{owner}/{repo}/branches": Operation<"/repos/{owner}/{repo}/branches", "get">;
1401
1393
  /**
1402
- * @see https://docs.github.com/rest/branches/branches#get-a-branch
1394
+ * @see https://docs.github.com/rest/reference/repos#get-a-branch
1403
1395
  */
1404
1396
  "GET /repos/{owner}/{repo}/branches/{branch}": Operation<"/repos/{owner}/{repo}/branches/{branch}", "get">;
1405
1397
  /**
1406
- * @see https://docs.github.com/rest/branches/branch-protection#get-branch-protection
1398
+ * @see https://docs.github.com/rest/reference/repos#get-branch-protection
1407
1399
  */
1408
1400
  "GET /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "get">;
1409
1401
  /**
1410
- * @see https://docs.github.com/rest/branches/branch-protection#get-admin-branch-protection
1402
+ * @see https://docs.github.com/rest/reference/repos#get-admin-branch-protection
1411
1403
  */
1412
1404
  "GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "get">;
1413
1405
  /**
1414
- * @see https://docs.github.com/rest/branches/branch-protection#get-pull-request-review-protection
1406
+ * @see https://docs.github.com/rest/reference/repos#get-pull-request-review-protection
1415
1407
  */
1416
1408
  "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "get">;
1417
1409
  /**
1418
- * @see https://docs.github.com/rest/branches/branch-protection#get-commit-signature-protection
1410
+ * @see https://docs.github.com/rest/reference/repos#get-commit-signature-protection
1419
1411
  */
1420
1412
  "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "get">;
1421
1413
  /**
1422
- * @see https://docs.github.com/rest/branches/branch-protection#get-status-checks-protection
1414
+ * @see https://docs.github.com/rest/reference/repos#get-status-checks-protection
1423
1415
  */
1424
1416
  "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "get">;
1425
1417
  /**
1426
- * @see https://docs.github.com/rest/branches/branch-protection#get-all-status-check-contexts
1418
+ * @see https://docs.github.com/rest/reference/repos#get-all-status-check-contexts
1427
1419
  */
1428
1420
  "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "get">;
1429
1421
  /**
1430
- * @see https://docs.github.com/rest/branches/branch-protection#get-access-restrictions
1422
+ * @see https://docs.github.com/rest/reference/repos#get-access-restrictions
1431
1423
  */
1432
1424
  "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions", "get">;
1433
1425
  /**
1434
- * @see https://docs.github.com/rest/branches/branch-protection#list-apps-with-access-to-the-protected-branch
1426
+ * @see https://docs.github.com/rest/reference/repos#list-apps-with-access-to-the-protected-branch
1435
1427
  */
1436
1428
  "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "get">;
1437
1429
  /**
1438
- * @see https://docs.github.com/rest/branches/branch-protection#list-teams-with-access-to-the-protected-branch
1430
+ * @see https://docs.github.com/rest/reference/repos#list-teams-with-access-to-the-protected-branch
1439
1431
  */
1440
1432
  "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "get">;
1441
1433
  /**
1442
- * @see https://docs.github.com/rest/branches/branch-protection#list-users-with-access-to-the-protected-branch
1434
+ * @see https://docs.github.com/rest/reference/repos#list-users-with-access-to-the-protected-branch
1443
1435
  */
1444
1436
  "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "get">;
1445
1437
  /**
@@ -1632,19 +1624,19 @@ export interface Endpoints {
1632
1624
  */
1633
1625
  "GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}": Operation<"/repos/{owner}/{repo}/dependency-graph/compare/{basehead}", "get">;
1634
1626
  /**
1635
- * @see https://docs.github.com/rest/deployments/deployments#list-deployments
1627
+ * @see https://docs.github.com/rest/reference/repos#list-deployments
1636
1628
  */
1637
1629
  "GET /repos/{owner}/{repo}/deployments": Operation<"/repos/{owner}/{repo}/deployments", "get">;
1638
1630
  /**
1639
- * @see https://docs.github.com/rest/deployments/deployments#get-a-deployment
1631
+ * @see https://docs.github.com/rest/reference/repos#get-a-deployment
1640
1632
  */
1641
1633
  "GET /repos/{owner}/{repo}/deployments/{deployment_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}", "get">;
1642
1634
  /**
1643
- * @see https://docs.github.com/rest/deployments/statuses#list-deployment-statuses
1635
+ * @see https://docs.github.com/rest/reference/repos#list-deployment-statuses
1644
1636
  */
1645
1637
  "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "get">;
1646
1638
  /**
1647
- * @see https://docs.github.com/rest/deployments/statuses#get-a-deployment-status
1639
+ * @see https://docs.github.com/rest/reference/repos#get-a-deployment-status
1648
1640
  */
1649
1641
  "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}", "get">;
1650
1642
  /**
@@ -1652,7 +1644,7 @@ export interface Endpoints {
1652
1644
  */
1653
1645
  "GET /repos/{owner}/{repo}/environments": Operation<"/repos/{owner}/{repo}/environments", "get">;
1654
1646
  /**
1655
- * @see https://docs.github.com/rest/deployments/environments#get-an-environment
1647
+ * @see https://docs.github.com/rest/reference/repos#get-an-environment
1656
1648
  */
1657
1649
  "GET /repos/{owner}/{repo}/environments/{environment_name}": Operation<"/repos/{owner}/{repo}/environments/{environment_name}", "get">;
1658
1650
  /**
@@ -1767,10 +1759,6 @@ export interface Endpoints {
1767
1759
  * @see https://docs.github.com/rest/reference/issues#get-an-issue
1768
1760
  */
1769
1761
  "GET /repos/{owner}/{repo}/issues/{issue_number}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}", "get">;
1770
- /**
1771
- * @see https://docs.github.com/rest/reference/issues#check-if-a-user-can-be-assigned-to-a-issue
1772
- */
1773
- "GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}", "get">;
1774
1762
  /**
1775
1763
  * @see https://docs.github.com/rest/reference/issues#list-issue-comments
1776
1764
  */
@@ -1792,11 +1780,11 @@ export interface Endpoints {
1792
1780
  */
1793
1781
  "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/timeline", "get">;
1794
1782
  /**
1795
- * @see https://docs.github.com/rest/deploy-keys#list-deploy-keys
1783
+ * @see https://docs.github.com/rest/reference/repos#list-deploy-keys
1796
1784
  */
1797
1785
  "GET /repos/{owner}/{repo}/keys": Operation<"/repos/{owner}/{repo}/keys", "get">;
1798
1786
  /**
1799
- * @see https://docs.github.com/rest/deploy-keys#get-a-deploy-key
1787
+ * @see https://docs.github.com/rest/reference/repos#get-a-deploy-key
1800
1788
  */
1801
1789
  "GET /repos/{owner}/{repo}/keys/{key_id}": Operation<"/repos/{owner}/{repo}/keys/{key_id}", "get">;
1802
1790
  /**
@@ -2047,14 +2035,6 @@ export interface Endpoints {
2047
2035
  * @see https://docs.github.com/rest/reference/actions#get-an-environment-secret
2048
2036
  */
2049
2037
  "GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}": Operation<"/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}", "get">;
2050
- /**
2051
- * @see https://docs.github.com/rest/actions/variables#list-environment-variables
2052
- */
2053
- "GET /repositories/{repository_id}/environments/{environment_name}/variables": Operation<"/repositories/{repository_id}/environments/{environment_name}/variables", "get">;
2054
- /**
2055
- * @see https://docs.github.com/rest/actions/variables#get-an-environment-variable
2056
- */
2057
- "GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}": Operation<"/repositories/{repository_id}/environments/{environment_name}/variables/{name}", "get">;
2058
2038
  /**
2059
2039
  * @see https://docs.github.com/rest/reference/search#search-code
2060
2040
  */
@@ -2184,7 +2164,7 @@ export interface Endpoints {
2184
2164
  */
2185
2165
  "GET /user/codespaces/{codespace_name}": Operation<"/user/codespaces/{codespace_name}", "get">;
2186
2166
  /**
2187
- * @see https://docs.github.com/rest/codespaces/codespaces#get-details-about-a-codespace-export
2167
+ * @see
2188
2168
  */
2189
2169
  "GET /user/codespaces/{codespace_name}/exports/{export_id}": Operation<"/user/codespaces/{codespace_name}/exports/{export_id}", "get">;
2190
2170
  /**
@@ -2440,11 +2420,7 @@ export interface Endpoints {
2440
2420
  */
2441
2421
  "GET /users/{username}/subscriptions": Operation<"/users/{username}/subscriptions", "get">;
2442
2422
  /**
2443
- * @see https://docs.github.com/rest/reference/meta#get-all-api-versions
2444
- */
2445
- "GET /versions": Operation<"/versions", "get">;
2446
- /**
2447
- * @see https://docs.github.com/rest/meta#get-the-zen-of-github
2423
+ * @see
2448
2424
  */
2449
2425
  "GET /zen": Operation<"/zen", "get">;
2450
2426
  /**
@@ -2456,9 +2432,9 @@ export interface Endpoints {
2456
2432
  */
2457
2433
  "PATCH /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "patch">;
2458
2434
  /**
2459
- * @see https://docs.github.com/rest/enterprise-admin#update-code-security-and-analysis-features-for-an-enterprise
2435
+ * @see https://docs.github.com/rest/reference/actions#update-a-self-hosted-runner-group-for-an-enterprise
2460
2436
  */
2461
- "PATCH /enterprises/{enterprise}/code_security_and_analysis": Operation<"/enterprises/{enterprise}/code_security_and_analysis", "patch">;
2437
+ "PATCH /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "patch">;
2462
2438
  /**
2463
2439
  * @see https://docs.github.com/rest/reference/gists/#update-a-gist
2464
2440
  */
@@ -2472,21 +2448,17 @@ export interface Endpoints {
2472
2448
  */
2473
2449
  "PATCH /notifications/threads/{thread_id}": Operation<"/notifications/threads/{thread_id}", "patch">;
2474
2450
  /**
2475
- * @see https://docs.github.com/rest/reference/orgs#update-an-organization
2451
+ * @see https://docs.github.com/rest/reference/orgs/#update-an-organization
2476
2452
  */
2477
2453
  "PATCH /orgs/{org}": Operation<"/orgs/{org}", "patch">;
2478
- /**
2479
- * @see https://docs.github.com/rest/reference/actions#update-a-required-workflow
2480
- */
2481
- "PATCH /orgs/{org}/actions/required_workflows/{required_workflow_id}": Operation<"/orgs/{org}/actions/required_workflows/{required_workflow_id}", "patch">;
2482
2454
  /**
2483
2455
  * @see https://docs.github.com/rest/reference/actions#update-a-self-hosted-runner-group-for-an-organization
2484
2456
  */
2485
2457
  "PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "patch">;
2486
2458
  /**
2487
- * @see https://docs.github.com/rest/actions/variables#update-an-organization-variable
2459
+ * @see https://docs.github.com/rest/reference/orgs#update-a-custom-role
2488
2460
  */
2489
- "PATCH /orgs/{org}/actions/variables/{name}": Operation<"/orgs/{org}/actions/variables/{name}", "patch">;
2461
+ "PATCH /orgs/{org}/custom_roles/{role_id}": Operation<"/orgs/{org}/custom_roles/{role_id}", "patch">;
2490
2462
  /**
2491
2463
  * @see https://docs.github.com/rest/reference/orgs#update-an-organization-webhook
2492
2464
  */
@@ -2520,19 +2492,15 @@ export interface Endpoints {
2520
2492
  */
2521
2493
  "PATCH /projects/{project_id}": Operation<"/projects/{project_id}", "patch">;
2522
2494
  /**
2523
- * @see https://docs.github.com/rest/repos/repos#update-a-repository
2495
+ * @see https://docs.github.com/rest/reference/repos/#update-a-repository
2524
2496
  */
2525
2497
  "PATCH /repos/{owner}/{repo}": Operation<"/repos/{owner}/{repo}", "patch">;
2526
2498
  /**
2527
- * @see https://docs.github.com/rest/actions/variables#update-a-repository-variable
2528
- */
2529
- "PATCH /repos/{owner}/{repo}/actions/variables/{name}": Operation<"/repos/{owner}/{repo}/actions/variables/{name}", "patch">;
2530
- /**
2531
- * @see https://docs.github.com/rest/branches/branch-protection#update-pull-request-review-protection
2499
+ * @see https://docs.github.com/rest/reference/repos#update-pull-request-review-protection
2532
2500
  */
2533
2501
  "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "patch">;
2534
2502
  /**
2535
- * @see https://docs.github.com/rest/branches/branch-protection#update-status-check-protection
2503
+ * @see https://docs.github.com/rest/reference/repos#update-status-check-protection
2536
2504
  */
2537
2505
  "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "patch">;
2538
2506
  /**
@@ -2588,7 +2556,7 @@ export interface Endpoints {
2588
2556
  */
2589
2557
  "PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}", "patch">;
2590
2558
  /**
2591
- * @see https://docs.github.com/rest/reference/issues#update-an-issue
2559
+ * @see https://docs.github.com/rest/reference/issues/#update-an-issue
2592
2560
  */
2593
2561
  "PATCH /repos/{owner}/{repo}/issues/{issue_number}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}", "patch">;
2594
2562
  /**
@@ -2619,10 +2587,6 @@ export interface Endpoints {
2619
2587
  * @see https://docs.github.com/rest/reference/secret-scanning#update-a-secret-scanning-alert
2620
2588
  */
2621
2589
  "PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}": Operation<"/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}", "patch">;
2622
- /**
2623
- * @see https://docs.github.com/rest/actions/variables#update-an-environment-variable
2624
- */
2625
- "PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}": Operation<"/repositories/{repository_id}/environments/{environment_name}/variables/{name}", "patch">;
2626
2590
  /**
2627
2591
  * @see https://docs.github.com/rest/reference/teams/#update-a-team-legacy
2628
2592
  */
@@ -2680,13 +2644,17 @@ export interface Endpoints {
2680
2644
  */
2681
2645
  "POST /enterprises/{enterprise}/actions/runner-groups": Operation<"/enterprises/{enterprise}/actions/runner-groups", "post">;
2682
2646
  /**
2683
- * @see https://docs.github.com/rest/reference/actions#add-custom-labels-to-a-self-hosted-runner-for-an-enterprise
2647
+ * @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-an-enterprise
2684
2648
  */
2685
- "POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}/labels", "post">;
2649
+ "POST /enterprises/{enterprise}/actions/runners/registration-token": Operation<"/enterprises/{enterprise}/actions/runners/registration-token", "post">;
2650
+ /**
2651
+ * @see https://docs.github.com/rest/reference/actions#create-a-remove-token-for-an-enterprise
2652
+ */
2653
+ "POST /enterprises/{enterprise}/actions/runners/remove-token": Operation<"/enterprises/{enterprise}/actions/runners/remove-token", "post">;
2686
2654
  /**
2687
- * @see https://docs.github.com/rest/enterprise-admin#enable-or-disable-a-security-feature
2655
+ * @see https://docs.github.com/rest/reference/actions#add-custom-labels-to-a-self-hosted-runner-for-an-enterprise
2688
2656
  */
2689
- "POST /enterprises/{enterprise}/{security_product}/{enablement}": Operation<"/enterprises/{enterprise}/{security_product}/{enablement}", "post">;
2657
+ "POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}/labels", "post">;
2690
2658
  /**
2691
2659
  * @see https://docs.github.com/rest/reference/gists#create-a-gist
2692
2660
  */
@@ -2707,10 +2675,6 @@ export interface Endpoints {
2707
2675
  * @see https://docs.github.com/rest/reference/markdown#render-a-markdown-document-in-raw-mode
2708
2676
  */
2709
2677
  "POST /markdown/raw": Operation<"/markdown/raw", "post">;
2710
- /**
2711
- * @see https://docs.github.com/rest/reference/actions#create-a-required-workflow
2712
- */
2713
- "POST /orgs/{org}/actions/required_workflows": Operation<"/orgs/{org}/actions/required_workflows", "post">;
2714
2678
  /**
2715
2679
  * @see https://docs.github.com/rest/reference/actions#create-a-self-hosted-runner-group-for-an-organization
2716
2680
  */
@@ -2728,9 +2692,9 @@ export interface Endpoints {
2728
2692
  */
2729
2693
  "POST /orgs/{org}/actions/runners/{runner_id}/labels": Operation<"/orgs/{org}/actions/runners/{runner_id}/labels", "post">;
2730
2694
  /**
2731
- * @see https://docs.github.com/rest/actions/variables#create-an-organization-variable
2695
+ * @see https://docs.github.com/rest/reference/orgs#create-a-custom-role
2732
2696
  */
2733
- "POST /orgs/{org}/actions/variables": Operation<"/orgs/{org}/actions/variables", "post">;
2697
+ "POST /orgs/{org}/custom_roles": Operation<"/orgs/{org}/custom_roles", "post">;
2734
2698
  /**
2735
2699
  * @see https://docs.github.com/rest/reference/orgs#create-an-organization-webhook
2736
2700
  */
@@ -2847,10 +2811,6 @@ export interface Endpoints {
2847
2811
  * @see https://docs.github.com/rest/reference/actions#re-run-workflow-failed-jobs
2848
2812
  */
2849
2813
  "POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs", "post">;
2850
- /**
2851
- * @see https://docs.github.com/rest/actions/variables#create-a-repository-variable
2852
- */
2853
- "POST /repos/{owner}/{repo}/actions/variables": Operation<"/repos/{owner}/{repo}/actions/variables", "post">;
2854
2814
  /**
2855
2815
  * @see https://docs.github.com/rest/reference/actions#create-a-workflow-dispatch-event
2856
2816
  */
@@ -2860,31 +2820,31 @@ export interface Endpoints {
2860
2820
  */
2861
2821
  "POST /repos/{owner}/{repo}/autolinks": Operation<"/repos/{owner}/{repo}/autolinks", "post">;
2862
2822
  /**
2863
- * @see https://docs.github.com/rest/branches/branch-protection#set-admin-branch-protection
2823
+ * @see https://docs.github.com/rest/reference/repos#set-admin-branch-protection
2864
2824
  */
2865
2825
  "POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "post">;
2866
2826
  /**
2867
- * @see https://docs.github.com/rest/branches/branch-protection#create-commit-signature-protection
2827
+ * @see https://docs.github.com/rest/reference/repos#create-commit-signature-protection
2868
2828
  */
2869
2829
  "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "post">;
2870
2830
  /**
2871
- * @see https://docs.github.com/rest/branches/branch-protection#add-status-check-contexts
2831
+ * @see https://docs.github.com/rest/reference/repos#add-status-check-contexts
2872
2832
  */
2873
2833
  "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "post">;
2874
2834
  /**
2875
- * @see https://docs.github.com/rest/branches/branch-protection#add-app-access-restrictions
2835
+ * @see https://docs.github.com/rest/reference/repos#add-app-access-restrictions
2876
2836
  */
2877
2837
  "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "post">;
2878
2838
  /**
2879
- * @see https://docs.github.com/rest/branches/branch-protection#add-team-access-restrictions
2839
+ * @see https://docs.github.com/rest/reference/repos#add-team-access-restrictions
2880
2840
  */
2881
2841
  "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "post">;
2882
2842
  /**
2883
- * @see https://docs.github.com/rest/branches/branch-protection#add-user-access-restrictions
2843
+ * @see https://docs.github.com/rest/reference/repos#add-user-access-restrictions
2884
2844
  */
2885
2845
  "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "post">;
2886
2846
  /**
2887
- * @see https://docs.github.com/rest/branches/branches#rename-a-branch
2847
+ * @see https://docs.github.com/rest/reference/repos#rename-a-branch
2888
2848
  */
2889
2849
  "POST /repos/{owner}/{repo}/branches/{branch}/rename": Operation<"/repos/{owner}/{repo}/branches/{branch}/rename", "post">;
2890
2850
  /**
@@ -2924,11 +2884,11 @@ export interface Endpoints {
2924
2884
  */
2925
2885
  "POST /repos/{owner}/{repo}/dependency-graph/snapshots": Operation<"/repos/{owner}/{repo}/dependency-graph/snapshots", "post">;
2926
2886
  /**
2927
- * @see https://docs.github.com/rest/deployments/deployments#create-a-deployment
2887
+ * @see https://docs.github.com/rest/reference/repos#create-a-deployment
2928
2888
  */
2929
2889
  "POST /repos/{owner}/{repo}/deployments": Operation<"/repos/{owner}/{repo}/deployments", "post">;
2930
2890
  /**
2931
- * @see https://docs.github.com/rest/deployments/statuses#create-a-deployment-status
2891
+ * @see https://docs.github.com/rest/reference/repos#create-a-deployment-status
2932
2892
  */
2933
2893
  "POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "post">;
2934
2894
  /**
@@ -3004,7 +2964,7 @@ export interface Endpoints {
3004
2964
  */
3005
2965
  "POST /repos/{owner}/{repo}/issues/{issue_number}/reactions": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions", "post">;
3006
2966
  /**
3007
- * @see https://docs.github.com/rest/deploy-keys#create-a-deploy-key
2967
+ * @see https://docs.github.com/rest/reference/repos#create-a-deploy-key
3008
2968
  */
3009
2969
  "POST /repos/{owner}/{repo}/keys": Operation<"/repos/{owner}/{repo}/keys", "post">;
3010
2970
  /**
@@ -3012,11 +2972,11 @@ export interface Endpoints {
3012
2972
  */
3013
2973
  "POST /repos/{owner}/{repo}/labels": Operation<"/repos/{owner}/{repo}/labels", "post">;
3014
2974
  /**
3015
- * @see https://docs.github.com/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository
2975
+ * @see https://docs.github.com/rest/reference/repos#sync-a-fork-branch-with-the-upstream-repository
3016
2976
  */
3017
2977
  "POST /repos/{owner}/{repo}/merge-upstream": Operation<"/repos/{owner}/{repo}/merge-upstream", "post">;
3018
2978
  /**
3019
- * @see https://docs.github.com/rest/branches/branches#merge-a-branch
2979
+ * @see https://docs.github.com/rest/reference/repos#merge-a-branch
3020
2980
  */
3021
2981
  "POST /repos/{owner}/{repo}/merges": Operation<"/repos/{owner}/{repo}/merges", "post">;
3022
2982
  /**
@@ -3099,10 +3059,6 @@ export interface Endpoints {
3099
3059
  * @see https://docs.github.com/rest/reference/repos#create-a-repository-using-a-template
3100
3060
  */
3101
3061
  "POST /repos/{template_owner}/{template_repo}/generate": Operation<"/repos/{template_owner}/{template_repo}/generate", "post">;
3102
- /**
3103
- * @see https://docs.github.com/rest/actions/variables#create-an-environment-variable
3104
- */
3105
- "POST /repositories/{repository_id}/environments/{environment_name}/variables": Operation<"/repositories/{repository_id}/environments/{environment_name}/variables", "post">;
3106
3062
  /**
3107
3063
  * @see https://docs.github.com/rest/reference/teams#create-a-discussion-legacy
3108
3064
  */
@@ -3124,13 +3080,9 @@ export interface Endpoints {
3124
3080
  */
3125
3081
  "POST /user/codespaces": Operation<"/user/codespaces", "post">;
3126
3082
  /**
3127
- * @see https://docs.github.com/rest/codespaces/codespaces#export-a-codespace-for-the-authenticated-user
3083
+ * @see
3128
3084
  */
3129
3085
  "POST /user/codespaces/{codespace_name}/exports": Operation<"/user/codespaces/{codespace_name}/exports", "post">;
3130
- /**
3131
- * @see https://docs.github.com/rest/reference/codespaces/codespaces#create-a-repository-from-an-unpublished-codespace
3132
- */
3133
- "POST /user/codespaces/{codespace_name}/publish": Operation<"/user/codespaces/{codespace_name}/publish", "post">;
3134
3086
  /**
3135
3087
  * @see https://docs.github.com/rest/reference/codespaces#start-a-codespace-for-the-authenticated-user
3136
3088
  */
@@ -3191,14 +3143,46 @@ export interface Endpoints {
3191
3143
  * @see https://docs.github.com/rest/reference/apps#suspend-an-app-installation
3192
3144
  */
3193
3145
  "PUT /app/installations/{installation_id}/suspended": Operation<"/app/installations/{installation_id}/suspended", "put">;
3146
+ /**
3147
+ * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-an-enterprise
3148
+ */
3149
+ "PUT /enterprises/{enterprise}/actions/permissions": Operation<"/enterprises/{enterprise}/actions/permissions", "put">;
3150
+ /**
3151
+ * @see https://docs.github.com/rest/reference/actions#set-selected-organizations-enabled-for-github-actions-in-an-enterprise
3152
+ */
3153
+ "PUT /enterprises/{enterprise}/actions/permissions/organizations": Operation<"/enterprises/{enterprise}/actions/permissions/organizations", "put">;
3194
3154
  /**
3195
3155
  * @see https://docs.github.com/rest/reference/actions#enable-a-selected-organization-for-github-actions-in-an-enterprise
3196
3156
  */
3197
3157
  "PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/permissions/organizations/{org_id}", "put">;
3158
+ /**
3159
+ * @see https://docs.github.com/rest/reference/actions#set-allowed-actions-for-an-enterprise
3160
+ */
3161
+ "PUT /enterprises/{enterprise}/actions/permissions/selected-actions": Operation<"/enterprises/{enterprise}/actions/permissions/selected-actions", "put">;
3162
+ /**
3163
+ * @see https://docs.github.com/rest/reference/actions#set-default-workflow-permissions-for-an-enterprise
3164
+ */
3165
+ "PUT /enterprises/{enterprise}/actions/permissions/workflow": Operation<"/enterprises/{enterprise}/actions/permissions/workflow", "put">;
3166
+ /**
3167
+ * @see https://docs.github.com/rest/reference/actions#set-organization-access-to-a-self-hosted-runner-group-in-an-enterprise
3168
+ */
3169
+ "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "put">;
3198
3170
  /**
3199
3171
  * @see https://docs.github.com/rest/reference/actions#add-organization-access-to-a-self-hosted-runner-group-in-an-enterprise
3200
3172
  */
3201
3173
  "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "put">;
3174
+ /**
3175
+ * @see https://docs.github.com/rest/reference/actions#set-self-hosted-runners-in-a-group-for-an-enterprise
3176
+ */
3177
+ "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "put">;
3178
+ /**
3179
+ * @see https://docs.github.com/rest/reference/actions#add-a-self-hosted-runner-to-a-group-for-an-enterprise
3180
+ */
3181
+ "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "put">;
3182
+ /**
3183
+ * @see https://docs.github.com/rest/reference/actions#set-custom-labels-for-a-self-hosted-runner-for-an-enterprise
3184
+ */
3185
+ "PUT /enterprises/{enterprise}/actions/runners/{runner_id}/labels": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}/labels", "put">;
3202
3186
  /**
3203
3187
  * @see https://docs.github.com/rest/reference/gists#star-a-gist
3204
3188
  */
@@ -3212,9 +3196,17 @@ export interface Endpoints {
3212
3196
  */
3213
3197
  "PUT /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "put">;
3214
3198
  /**
3215
- * @see https://docs.github.com/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-an-organization
3199
+ * @see https://docs.github.com/rest/reference/codespaces#create-or-update-an-organization-secret
3200
+ */
3201
+ "PUT /organizations/{org}/codespaces/secrets/{secret_name}": Operation<"/organizations/{org}/codespaces/secrets/{secret_name}", "put">;
3202
+ /**
3203
+ * @see https://docs.github.com/rest/reference/codespaces#set-selected-repositories-for-an-organization-secret
3216
3204
  */
3217
- "PUT /orgs/{org}/actions/oidc/customization/sub": Operation<"/orgs/{org}/actions/oidc/customization/sub", "put">;
3205
+ "PUT /organizations/{org}/codespaces/secrets/{secret_name}/repositories": Operation<"/organizations/{org}/codespaces/secrets/{secret_name}/repositories", "put">;
3206
+ /**
3207
+ * @see https://docs.github.com/rest/reference/codespaces#add-selected-repository-to-an-organization-secret
3208
+ */
3209
+ "PUT /organizations/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}": Operation<"/organizations/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}", "put">;
3218
3210
  /**
3219
3211
  * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-an-organization
3220
3212
  */
@@ -3235,14 +3227,6 @@ export interface Endpoints {
3235
3227
  * @see https://docs.github.com/rest/reference/actions#set-default-workflow-permissions
3236
3228
  */
3237
3229
  "PUT /orgs/{org}/actions/permissions/workflow": Operation<"/orgs/{org}/actions/permissions/workflow", "put">;
3238
- /**
3239
- * @see https://docs.github.com/rest/reference/actions#set-selected-repositories-for-a-required-workflow
3240
- */
3241
- "PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories": Operation<"/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories", "put">;
3242
- /**
3243
- * @see https://docs.github.com/rest/reference/actions#add-a-repository-to-selected-repositories-list-for-a-required-workflow
3244
- */
3245
- "PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}", "put">;
3246
3230
  /**
3247
3231
  * @see https://docs.github.com/rest/reference/actions#set-repository-access-to-a-self-hosted-runner-group-in-an-organization
3248
3232
  */
@@ -3271,34 +3255,10 @@ export interface Endpoints {
3271
3255
  * @see https://docs.github.com/rest/reference/actions#add-selected-repository-to-an-organization-secret
3272
3256
  */
3273
3257
  "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}", "put">;
3274
- /**
3275
- * @see https://docs.github.com/rest/actions/variables#set-selected-repositories-for-an-organization-variable
3276
- */
3277
- "PUT /orgs/{org}/actions/variables/{name}/repositories": Operation<"/orgs/{org}/actions/variables/{name}/repositories", "put">;
3278
- /**
3279
- * @see https://docs.github.com/rest/actions/variables#add-selected-repository-to-an-organization-variable
3280
- */
3281
- "PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/variables/{name}/repositories/{repository_id}", "put">;
3282
3258
  /**
3283
3259
  * @see https://docs.github.com/rest/reference/orgs#block-a-user-from-an-organization
3284
3260
  */
3285
3261
  "PUT /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "put">;
3286
- /**
3287
- * @see https://docs.github.com/rest/reference/codespaces#set-codespaces-billing
3288
- */
3289
- "PUT /orgs/{org}/codespaces/billing": Operation<"/orgs/{org}/codespaces/billing", "put">;
3290
- /**
3291
- * @see https://docs.github.com/rest/reference/codespaces#create-or-update-an-organization-secret
3292
- */
3293
- "PUT /orgs/{org}/codespaces/secrets/{secret_name}": Operation<"/orgs/{org}/codespaces/secrets/{secret_name}", "put">;
3294
- /**
3295
- * @see https://docs.github.com/rest/reference/codespaces#set-selected-repositories-for-an-organization-secret
3296
- */
3297
- "PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories": Operation<"/orgs/{org}/codespaces/secrets/{secret_name}/repositories", "put">;
3298
- /**
3299
- * @see https://docs.github.com/rest/reference/codespaces#add-selected-repository-to-an-organization-secret
3300
- */
3301
- "PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}": Operation<"/orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}", "put">;
3302
3262
  /**
3303
3263
  * @see https://docs.github.com/rest/reference/dependabot#create-or-update-an-organization-secret
3304
3264
  */
@@ -3347,10 +3307,6 @@ export interface Endpoints {
3347
3307
  * @see https://docs.github.com/rest/reference/projects#add-project-collaborator
3348
3308
  */
3349
3309
  "PUT /projects/{project_id}/collaborators/{username}": Operation<"/projects/{project_id}/collaborators/{username}", "put">;
3350
- /**
3351
- * @see https://docs.github.com/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-a-repository
3352
- */
3353
- "PUT /repos/{owner}/{repo}/actions/oidc/customization/sub": Operation<"/repos/{owner}/{repo}/actions/oidc/customization/sub", "put">;
3354
3310
  /**
3355
3311
  * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-a-repository
3356
3312
  */
@@ -3388,23 +3344,23 @@ export interface Endpoints {
3388
3344
  */
3389
3345
  "PUT /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "put">;
3390
3346
  /**
3391
- * @see https://docs.github.com/rest/branches/branch-protection#update-branch-protection
3347
+ * @see https://docs.github.com/rest/reference/repos#update-branch-protection
3392
3348
  */
3393
3349
  "PUT /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "put">;
3394
3350
  /**
3395
- * @see https://docs.github.com/rest/branches/branch-protection#set-status-check-contexts
3351
+ * @see https://docs.github.com/rest/reference/repos#set-status-check-contexts
3396
3352
  */
3397
3353
  "PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "put">;
3398
3354
  /**
3399
- * @see https://docs.github.com/rest/branches/branch-protection#set-app-access-restrictions
3355
+ * @see https://docs.github.com/rest/reference/repos#set-app-access-restrictions
3400
3356
  */
3401
3357
  "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "put">;
3402
3358
  /**
3403
- * @see https://docs.github.com/rest/branches/branch-protection#set-team-access-restrictions
3359
+ * @see https://docs.github.com/rest/reference/repos#set-team-access-restrictions
3404
3360
  */
3405
3361
  "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "put">;
3406
3362
  /**
3407
- * @see https://docs.github.com/rest/branches/branch-protection#set-user-access-restrictions
3363
+ * @see https://docs.github.com/rest/reference/repos#set-user-access-restrictions
3408
3364
  */
3409
3365
  "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "put">;
3410
3366
  /**
@@ -3424,7 +3380,7 @@ export interface Endpoints {
3424
3380
  */
3425
3381
  "PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/dependabot/secrets/{secret_name}", "put">;
3426
3382
  /**
3427
- * @see https://docs.github.com/rest/deployments/environments#create-or-update-an-environment
3383
+ * @see https://docs.github.com/rest/reference/repos#create-or-update-an-environment
3428
3384
  */
3429
3385
  "PUT /repos/{owner}/{repo}/environments/{environment_name}": Operation<"/repos/{owner}/{repo}/environments/{environment_name}", "put">;
3430
3386
  /**
@@ -3504,7 +3460,7 @@ export interface Endpoints {
3504
3460
  */
3505
3461
  "PUT /teams/{team_id}/projects/{project_id}": Operation<"/teams/{team_id}/projects/{project_id}", "put">;
3506
3462
  /**
3507
- * @see https://docs.github.com/rest/reference/teams#add-or-update-team-repository-permissions-legacy
3463
+ * @see https://docs.github.com/rest/reference/teams/#add-or-update-team-repository-permissions-legacy
3508
3464
  */
3509
3465
  "PUT /teams/{team_id}/repos/{owner}/{repo}": Operation<"/teams/{team_id}/repos/{owner}/{repo}", "put">;
3510
3466
  /**