Skip to content

Commit 39ec94c

Browse files
Merge pull request #185 from wei18/dependabot/submodules/Submodule/github/rest-api-description-f5d3342
Bump Submodule/github/rest-api-description from `88dc3d8` to `f5d3342`
2 parents c7fa46c + 442cc15 commit 39ec94c

20 files changed

Lines changed: 2165 additions & 924 deletions

File tree

Sources/activity/Types.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3146,7 +3146,7 @@ public enum Components {
31463146
case dueOn = "due_on"
31473147
}
31483148
}
3149-
/// The type of issue.
3149+
/// The type assigned to the issue. This is only present for issues in repositories where issue types are supported.
31503150
///
31513151
/// - Remark: Generated from `#/components/schemas/issue-type`.
31523152
public struct IssueType: Codable, Hashable, Sendable {

Sources/apps/Types.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,6 +2289,17 @@ public enum Components {
22892289
///
22902290
/// - Remark: Generated from `#/components/schemas/app-permissions/checks`.
22912291
public var checks: Components.Schemas.AppPermissions.ChecksPayload?
2292+
/// The level of permission to grant the access token to view and manage code quality data.
2293+
///
2294+
/// - Remark: Generated from `#/components/schemas/app-permissions/code_quality`.
2295+
@frozen public enum CodeQualityPayload: String, Codable, Hashable, Sendable, CaseIterable {
2296+
case read = "read"
2297+
case write = "write"
2298+
}
2299+
/// The level of permission to grant the access token to view and manage code quality data.
2300+
///
2301+
/// - Remark: Generated from `#/components/schemas/app-permissions/code_quality`.
2302+
public var codeQuality: Components.Schemas.AppPermissions.CodeQualityPayload?
22922303
/// The level of permission to grant the access token to create, edit, delete, and list Codespaces.
22932304
///
22942305
/// - Remark: Generated from `#/components/schemas/app-permissions/codespaces`.
@@ -2835,6 +2846,7 @@ public enum Components {
28352846
/// - artifactMetadata: The level of permission to grant the access token to create and retrieve build artifact metadata records.
28362847
/// - attestations: The level of permission to create and retrieve the access token for repository attestations.
28372848
/// - checks: The level of permission to grant the access token for checks on code.
2849+
/// - codeQuality: The level of permission to grant the access token to view and manage code quality data.
28382850
/// - codespaces: The level of permission to grant the access token to create, edit, delete, and list Codespaces.
28392851
/// - contents: The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.
28402852
/// - dependabotSecrets: The level of permission to grant the access token to manage Dependabot secrets.
@@ -2890,6 +2902,7 @@ public enum Components {
28902902
artifactMetadata: Components.Schemas.AppPermissions.ArtifactMetadataPayload? = nil,
28912903
attestations: Components.Schemas.AppPermissions.AttestationsPayload? = nil,
28922904
checks: Components.Schemas.AppPermissions.ChecksPayload? = nil,
2905+
codeQuality: Components.Schemas.AppPermissions.CodeQualityPayload? = nil,
28932906
codespaces: Components.Schemas.AppPermissions.CodespacesPayload? = nil,
28942907
contents: Components.Schemas.AppPermissions.ContentsPayload? = nil,
28952908
dependabotSecrets: Components.Schemas.AppPermissions.DependabotSecretsPayload? = nil,
@@ -2945,6 +2958,7 @@ public enum Components {
29452958
self.artifactMetadata = artifactMetadata
29462959
self.attestations = attestations
29472960
self.checks = checks
2961+
self.codeQuality = codeQuality
29482962
self.codespaces = codespaces
29492963
self.contents = contents
29502964
self.dependabotSecrets = dependabotSecrets
@@ -3001,6 +3015,7 @@ public enum Components {
30013015
case artifactMetadata = "artifact_metadata"
30023016
case attestations
30033017
case checks
3018+
case codeQuality = "code_quality"
30043019
case codespaces
30053020
case contents
30063021
case dependabotSecrets = "dependabot_secrets"

Sources/code-scanning/Client.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ public struct Client: APIProtocol {
776776
}
777777
/// Get the status of an autofix for a code scanning alert
778778
///
779-
/// Gets the status and description of an autofix for a code scanning alert.
779+
/// Gets the status and description of an autofix for a code scanning alert on the repository's default branch.
780780
///
781781
/// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
782782
///
@@ -1116,7 +1116,7 @@ public struct Client: APIProtocol {
11161116
}
11171117
/// Commit an autofix for a code scanning alert
11181118
///
1119-
/// Commits an autofix for a code scanning alert.
1119+
/// Commits an autofix for a code scanning alert from the repository's default branch.
11201120
///
11211121
/// If an autofix is committed as a result of this request, then this endpoint will return a 201 Created response.
11221122
///

Sources/code-scanning/Types.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public protocol APIProtocol: Sendable {
5454
func codeScanningUpdateAlert(_ input: Operations.CodeScanningUpdateAlert.Input) async throws -> Operations.CodeScanningUpdateAlert.Output
5555
/// Get the status of an autofix for a code scanning alert
5656
///
57-
/// Gets the status and description of an autofix for a code scanning alert.
57+
/// Gets the status and description of an autofix for a code scanning alert on the repository's default branch.
5858
///
5959
/// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
6060
///
@@ -76,7 +76,7 @@ public protocol APIProtocol: Sendable {
7676
func codeScanningCreateAutofix(_ input: Operations.CodeScanningCreateAutofix.Input) async throws -> Operations.CodeScanningCreateAutofix.Output
7777
/// Commit an autofix for a code scanning alert
7878
///
79-
/// Commits an autofix for a code scanning alert.
79+
/// Commits an autofix for a code scanning alert from the repository's default branch.
8080
///
8181
/// If an autofix is committed as a result of this request, then this endpoint will return a 201 Created response.
8282
///
@@ -424,7 +424,7 @@ extension APIProtocol {
424424
}
425425
/// Get the status of an autofix for a code scanning alert
426426
///
427-
/// Gets the status and description of an autofix for a code scanning alert.
427+
/// Gets the status and description of an autofix for a code scanning alert on the repository's default branch.
428428
///
429429
/// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
430430
///
@@ -462,7 +462,7 @@ extension APIProtocol {
462462
}
463463
/// Commit an autofix for a code scanning alert
464464
///
465-
/// Commits an autofix for a code scanning alert.
465+
/// Commits an autofix for a code scanning alert from the repository's default branch.
466466
///
467467
/// If an autofix is committed as a result of this request, then this endpoint will return a 201 Created response.
468468
///
@@ -5360,7 +5360,7 @@ public enum Operations {
53605360
}
53615361
/// Get the status of an autofix for a code scanning alert
53625362
///
5363-
/// Gets the status and description of an autofix for a code scanning alert.
5363+
/// Gets the status and description of an autofix for a code scanning alert on the repository's default branch.
53645364
///
53655365
/// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
53665366
///
@@ -5934,7 +5934,7 @@ public enum Operations {
59345934
}
59355935
/// Commit an autofix for a code scanning alert
59365936
///
5937-
/// Commits an autofix for a code scanning alert.
5937+
/// Commits an autofix for a code scanning alert from the repository's default branch.
59385938
///
59395939
/// If an autofix is committed as a result of this request, then this endpoint will return a 201 Created response.
59405940
///

Sources/copilot-spaces/Client.swift

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public struct Client: APIProtocol {
4646
///
4747
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
4848
///
49+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in a space; spaces with inaccessible resources are omitted from the response.
50+
///
4951
/// - Remark: HTTP `GET /orgs/{org}/copilot-spaces`.
5052
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/get(copilot-spaces/list-for-org)`.
5153
public func copilotSpacesListForOrg(_ input: Operations.CopilotSpacesListForOrg.Input) async throws -> Operations.CopilotSpacesListForOrg.Output {
@@ -187,6 +189,8 @@ public struct Client: APIProtocol {
187189
///
188190
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
189191
///
192+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by the submitted resources.
193+
///
190194
/// - Remark: HTTP `POST /orgs/{org}/copilot-spaces`.
191195
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/post(copilot-spaces/create-for-org)`.
192196
public func copilotSpacesCreateForOrg(_ input: Operations.CopilotSpacesCreateForOrg.Input) async throws -> Operations.CopilotSpacesCreateForOrg.Output {
@@ -330,6 +334,8 @@ public struct Client: APIProtocol {
330334
///
331335
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
332336
///
337+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
338+
///
333339
/// - Remark: HTTP `GET /orgs/{org}/copilot-spaces/{space_number}`.
334340
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/get(copilot-spaces/get-for-org)`.
335341
public func copilotSpacesGetForOrg(_ input: Operations.CopilotSpacesGetForOrg.Input) async throws -> Operations.CopilotSpacesGetForOrg.Output {
@@ -443,6 +449,8 @@ public struct Client: APIProtocol {
443449
///
444450
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
445451
///
452+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space, including any being added or updated.
453+
///
446454
/// - Remark: HTTP `PUT /orgs/{org}/copilot-spaces/{space_number}`.
447455
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/put(copilot-spaces/update-for-org)`.
448456
public func copilotSpacesUpdateForOrg(_ input: Operations.CopilotSpacesUpdateForOrg.Input) async throws -> Operations.CopilotSpacesUpdateForOrg.Output {
@@ -589,6 +597,8 @@ public struct Client: APIProtocol {
589597
///
590598
/// OAuth app tokens and personal access tokens (classic) need both the `read:org` and `repo` scopes to use this endpoint.
591599
///
600+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
601+
///
592602
/// - Remark: HTTP `DELETE /orgs/{org}/copilot-spaces/{space_number}`.
593603
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/delete(copilot-spaces/delete-for-org)`.
594604
public func copilotSpacesDeleteForOrg(_ input: Operations.CopilotSpacesDeleteForOrg.Input) async throws -> Operations.CopilotSpacesDeleteForOrg.Output {
@@ -684,6 +694,8 @@ public struct Client: APIProtocol {
684694
///
685695
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
686696
///
697+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
698+
///
687699
/// - Remark: HTTP `GET /orgs/{org}/copilot-spaces/{space_number}/collaborators`.
688700
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/collaborators/get(copilot-spaces/list-collaborators-for-org)`.
689701
public func copilotSpacesListCollaboratorsForOrg(_ input: Operations.CopilotSpacesListCollaboratorsForOrg.Input) async throws -> Operations.CopilotSpacesListCollaboratorsForOrg.Output {
@@ -798,6 +810,8 @@ public struct Client: APIProtocol {
798810
///
799811
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
800812
///
813+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
814+
///
801815
/// - Remark: HTTP `POST /orgs/{org}/copilot-spaces/{space_number}/collaborators`.
802816
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/collaborators/post(copilot-spaces/add-collaborator-for-org)`.
803817
public func copilotSpacesAddCollaboratorForOrg(_ input: Operations.CopilotSpacesAddCollaboratorForOrg.Input) async throws -> Operations.CopilotSpacesAddCollaboratorForOrg.Output {
@@ -940,6 +954,8 @@ public struct Client: APIProtocol {
940954
///
941955
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
942956
///
957+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
958+
///
943959
/// - Remark: HTTP `PUT /orgs/{org}/copilot-spaces/{space_number}/collaborators/{actor_type}/{actor_identifier}`.
944960
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/collaborators/{actor_type}/{actor_identifier}/put(copilot-spaces/update-collaborator-for-org)`.
945961
public func copilotSpacesUpdateCollaboratorForOrg(_ input: Operations.CopilotSpacesUpdateCollaboratorForOrg.Input) async throws -> Operations.CopilotSpacesUpdateCollaboratorForOrg.Output {
@@ -1086,6 +1102,8 @@ public struct Client: APIProtocol {
10861102
///
10871103
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
10881104
///
1105+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
1106+
///
10891107
/// - Remark: HTTP `DELETE /orgs/{org}/copilot-spaces/{space_number}/collaborators/{actor_type}/{actor_identifier}`.
10901108
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/collaborators/{actor_type}/{actor_identifier}/delete(copilot-spaces/remove-collaborator-for-org)`.
10911109
public func copilotSpacesRemoveCollaboratorForOrg(_ input: Operations.CopilotSpacesRemoveCollaboratorForOrg.Input) async throws -> Operations.CopilotSpacesRemoveCollaboratorForOrg.Output {
@@ -1180,6 +1198,8 @@ public struct Client: APIProtocol {
11801198
///
11811199
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
11821200
///
1201+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
1202+
///
11831203
/// - Remark: HTTP `GET /orgs/{org}/copilot-spaces/{space_number}/resources`.
11841204
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/resources/get(copilot-spaces/list-resources-for-org)`.
11851205
public func copilotSpacesListResourcesForOrg(_ input: Operations.CopilotSpacesListResourcesForOrg.Input) async throws -> Operations.CopilotSpacesListResourcesForOrg.Output {
@@ -1297,6 +1317,8 @@ public struct Client: APIProtocol {
12971317
///
12981318
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
12991319
///
1320+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space, including the resource being created.
1321+
///
13001322
/// - Remark: HTTP `POST /orgs/{org}/copilot-spaces/{space_number}/resources`.
13011323
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/resources/post(copilot-spaces/create-resource-for-org)`.
13021324
public func copilotSpacesCreateResourceForOrg(_ input: Operations.CopilotSpacesCreateResourceForOrg.Input) async throws -> Operations.CopilotSpacesCreateResourceForOrg.Output {
@@ -1462,6 +1484,8 @@ public struct Client: APIProtocol {
14621484
///
14631485
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
14641486
///
1487+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
1488+
///
14651489
/// - Remark: HTTP `GET /orgs/{org}/copilot-spaces/{space_number}/resources/{space_resource_id}`.
14661490
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/resources/{space_resource_id}/get(copilot-spaces/get-resource-for-org)`.
14671491
public func copilotSpacesGetResourceForOrg(_ input: Operations.CopilotSpacesGetResourceForOrg.Input) async throws -> Operations.CopilotSpacesGetResourceForOrg.Output {
@@ -1575,6 +1599,8 @@ public struct Client: APIProtocol {
15751599
///
15761600
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
15771601
///
1602+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space, including the resource being updated.
1603+
///
15781604
/// - Remark: HTTP `PUT /orgs/{org}/copilot-spaces/{space_number}/resources/{space_resource_id}`.
15791605
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/resources/{space_resource_id}/put(copilot-spaces/update-resource-for-org)`.
15801606
public func copilotSpacesUpdateResourceForOrg(_ input: Operations.CopilotSpacesUpdateResourceForOrg.Input) async throws -> Operations.CopilotSpacesUpdateResourceForOrg.Output {
@@ -1719,6 +1745,8 @@ public struct Client: APIProtocol {
17191745
///
17201746
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
17211747
///
1748+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
1749+
///
17221750
/// - Remark: HTTP `DELETE /orgs/{org}/copilot-spaces/{space_number}/resources/{space_resource_id}`.
17231751
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/resources/{space_resource_id}/delete(copilot-spaces/delete-resource-for-org)`.
17241752
public func copilotSpacesDeleteResourceForOrg(_ input: Operations.CopilotSpacesDeleteResourceForOrg.Input) async throws -> Operations.CopilotSpacesDeleteResourceForOrg.Output {

0 commit comments

Comments
 (0)