Skip to content

Commit 003f840

Browse files
Merge pull request #193 from wei18/dependabot/submodules/Submodule/github/rest-api-description-1847198
Bump Submodule/github/rest-api-description from `7a0a14c` to `1847198`
2 parents 59e2480 + d79c183 commit 003f840

12 files changed

Lines changed: 1901 additions & 2112 deletions

File tree

Sources/billing/Types.swift

Lines changed: 72 additions & 12 deletions
Large diffs are not rendered by default.

Sources/copilot/Client.swift

Lines changed: 0 additions & 385 deletions
Large diffs are not rendered by default.

Sources/copilot/Types.swift

Lines changed: 117 additions & 1695 deletions
Large diffs are not rendered by default.

Sources/interactions/Client.swift

Lines changed: 363 additions & 0 deletions
Large diffs are not rendered by default.

Sources/interactions/Types.swift

Lines changed: 962 additions & 0 deletions
Large diffs are not rendered by default.

Sources/orgs/Client.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -904,9 +904,9 @@ public struct Client: APIProtocol {
904904
}
905905
/// List artifact storage records
906906
///
907-
/// List a collection of artifact storage records with a given subject digest that are associated with repositories owned by an organization.
907+
/// List artifact storage records with a given subject digest for repositories owned by an organization.
908908
///
909-
/// The collection of storage records returned by this endpoint is filtered according to the authenticated user's permissions; if the authenticated user cannot read a repository, the attestations associated with that repository will not be included in the response. In addition, when using a fine-grained access token the `content:read` permission is required.
909+
/// Results are filtered by the authenticated user's permissions; records for repositories the user cannot read are omitted. Fine-grained access tokens require the `artifact-metadata:read` permission.
910910
///
911911
/// - Remark: HTTP `GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records`.
912912
/// - Remark: Generated from `#/paths//orgs/{org}/artifacts/{subject_digest}/metadata/storage-records/get(orgs/list-artifact-storage-records)`.

Sources/orgs/Types.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ public protocol APIProtocol: Sendable {
117117
func orgsListArtifactDeploymentRecords(_ input: Operations.OrgsListArtifactDeploymentRecords.Input) async throws -> Operations.OrgsListArtifactDeploymentRecords.Output
118118
/// List artifact storage records
119119
///
120-
/// List a collection of artifact storage records with a given subject digest that are associated with repositories owned by an organization.
120+
/// List artifact storage records with a given subject digest for repositories owned by an organization.
121121
///
122-
/// The collection of storage records returned by this endpoint is filtered according to the authenticated user's permissions; if the authenticated user cannot read a repository, the attestations associated with that repository will not be included in the response. In addition, when using a fine-grained access token the `content:read` permission is required.
122+
/// Results are filtered by the authenticated user's permissions; records for repositories the user cannot read are omitted. Fine-grained access tokens require the `artifact-metadata:read` permission.
123123
///
124124
/// - Remark: HTTP `GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records`.
125125
/// - Remark: Generated from `#/paths//orgs/{org}/artifacts/{subject_digest}/metadata/storage-records/get(orgs/list-artifact-storage-records)`.
@@ -1253,9 +1253,9 @@ extension APIProtocol {
12531253
}
12541254
/// List artifact storage records
12551255
///
1256-
/// List a collection of artifact storage records with a given subject digest that are associated with repositories owned by an organization.
1256+
/// List artifact storage records with a given subject digest for repositories owned by an organization.
12571257
///
1258-
/// The collection of storage records returned by this endpoint is filtered according to the authenticated user's permissions; if the authenticated user cannot read a repository, the attestations associated with that repository will not be included in the response. In addition, when using a fine-grained access token the `content:read` permission is required.
1258+
/// Results are filtered by the authenticated user's permissions; records for repositories the user cannot read are omitted. Fine-grained access tokens require the `artifact-metadata:read` permission.
12591259
///
12601260
/// - Remark: HTTP `GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records`.
12611261
/// - Remark: Generated from `#/paths//orgs/{org}/artifacts/{subject_digest}/metadata/storage-records/get(orgs/list-artifact-storage-records)`.
@@ -12877,9 +12877,9 @@ public enum Operations {
1287712877
}
1287812878
/// List artifact storage records
1287912879
///
12880-
/// List a collection of artifact storage records with a given subject digest that are associated with repositories owned by an organization.
12880+
/// List artifact storage records with a given subject digest for repositories owned by an organization.
1288112881
///
12882-
/// The collection of storage records returned by this endpoint is filtered according to the authenticated user's permissions; if the authenticated user cannot read a repository, the attestations associated with that repository will not be included in the response. In addition, when using a fine-grained access token the `content:read` permission is required.
12882+
/// Results are filtered by the authenticated user's permissions; records for repositories the user cannot read are omitted. Fine-grained access tokens require the `artifact-metadata:read` permission.
1288312883
///
1288412884
/// - Remark: HTTP `GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records`.
1288512885
/// - Remark: Generated from `#/paths//orgs/{org}/artifacts/{subject_digest}/metadata/storage-records/get(orgs/list-artifact-storage-records)`.

Sources/rate-limit/Client.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ public struct Client: APIProtocol {
5151
/// * The `integration_manifest` object provides your rate limit status for the `POST /app-manifests/{code}/conversions` operation. For more information, see "[Creating a GitHub App from a manifest](https://docs.github.com/apps/creating-github-apps/setting-up-a-github-app/creating-a-github-app-from-a-manifest#3-you-exchange-the-temporary-code-to-retrieve-the-app-configuration)."
5252
/// * The `dependency_snapshots` object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see "[Dependency graph](https://docs.github.com/rest/dependency-graph)."
5353
/// * The `dependency_sbom` object provides your rate limit status for requesting SBOMs from the dependency graph. For more information, see "[Dependency graph](https://docs.github.com/rest/dependency-graph)."
54-
/// * The `code_scanning_upload` object provides your rate limit status for uploading SARIF results to code scanning. For more information, see "[Uploading a SARIF file to GitHub](https://docs.github.com/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github)."
5554
/// * The `actions_runner_registration` object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see "[Self-hosted runners](https://docs.github.com/rest/actions/self-hosted-runners)."
5655
/// * The `source_import` object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see "[API Versions](https://docs.github.com/rest/about-the-rest-api/api-versions)."
5756
///

Sources/rate-limit/Types.swift

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public protocol APIProtocol: Sendable {
2424
/// * The `integration_manifest` object provides your rate limit status for the `POST /app-manifests/{code}/conversions` operation. For more information, see "[Creating a GitHub App from a manifest](https://docs.github.com/apps/creating-github-apps/setting-up-a-github-app/creating-a-github-app-from-a-manifest#3-you-exchange-the-temporary-code-to-retrieve-the-app-configuration)."
2525
/// * The `dependency_snapshots` object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see "[Dependency graph](https://docs.github.com/rest/dependency-graph)."
2626
/// * The `dependency_sbom` object provides your rate limit status for requesting SBOMs from the dependency graph. For more information, see "[Dependency graph](https://docs.github.com/rest/dependency-graph)."
27-
/// * The `code_scanning_upload` object provides your rate limit status for uploading SARIF results to code scanning. For more information, see "[Uploading a SARIF file to GitHub](https://docs.github.com/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github)."
2827
/// * The `actions_runner_registration` object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see "[Self-hosted runners](https://docs.github.com/rest/actions/self-hosted-runners)."
2928
/// * The `source_import` object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see "[API Versions](https://docs.github.com/rest/about-the-rest-api/api-versions)."
3029
///
@@ -51,7 +50,6 @@ extension APIProtocol {
5150
/// * The `integration_manifest` object provides your rate limit status for the `POST /app-manifests/{code}/conversions` operation. For more information, see "[Creating a GitHub App from a manifest](https://docs.github.com/apps/creating-github-apps/setting-up-a-github-app/creating-a-github-app-from-a-manifest#3-you-exchange-the-temporary-code-to-retrieve-the-app-configuration)."
5251
/// * The `dependency_snapshots` object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see "[Dependency graph](https://docs.github.com/rest/dependency-graph)."
5352
/// * The `dependency_sbom` object provides your rate limit status for requesting SBOMs from the dependency graph. For more information, see "[Dependency graph](https://docs.github.com/rest/dependency-graph)."
54-
/// * The `code_scanning_upload` object provides your rate limit status for uploading SARIF results to code scanning. For more information, see "[Uploading a SARIF file to GitHub](https://docs.github.com/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github)."
5553
/// * The `actions_runner_registration` object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see "[Self-hosted runners](https://docs.github.com/rest/actions/self-hosted-runners)."
5654
/// * The `source_import` object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see "[API Versions](https://docs.github.com/rest/about-the-rest-api/api-versions)."
5755
///
@@ -178,8 +176,6 @@ public enum Components {
178176
public var sourceImport: Components.Schemas.RateLimit?
179177
/// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/integration_manifest`.
180178
public var integrationManifest: Components.Schemas.RateLimit?
181-
/// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/code_scanning_upload`.
182-
public var codeScanningUpload: Components.Schemas.RateLimit?
183179
/// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/actions_runner_registration`.
184180
public var actionsRunnerRegistration: Components.Schemas.RateLimit?
185181
/// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/scim`.
@@ -190,6 +186,8 @@ public enum Components {
190186
public var dependencySbom: Components.Schemas.RateLimit?
191187
/// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/code_scanning_autofix`.
192188
public var codeScanningAutofix: Components.Schemas.RateLimit?
189+
/// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/copilot_usage_records`.
190+
public var copilotUsageRecords: Components.Schemas.RateLimit?
193191
/// Creates a new `ResourcesPayload`.
194192
///
195193
/// - Parameters:
@@ -199,38 +197,38 @@ public enum Components {
199197
/// - codeSearch:
200198
/// - sourceImport:
201199
/// - integrationManifest:
202-
/// - codeScanningUpload:
203200
/// - actionsRunnerRegistration:
204201
/// - scim:
205202
/// - dependencySnapshots:
206203
/// - dependencySbom:
207204
/// - codeScanningAutofix:
205+
/// - copilotUsageRecords:
208206
public init(
209207
core: Components.Schemas.RateLimit,
210208
graphql: Components.Schemas.RateLimit? = nil,
211209
search: Components.Schemas.RateLimit,
212210
codeSearch: Components.Schemas.RateLimit? = nil,
213211
sourceImport: Components.Schemas.RateLimit? = nil,
214212
integrationManifest: Components.Schemas.RateLimit? = nil,
215-
codeScanningUpload: Components.Schemas.RateLimit? = nil,
216213
actionsRunnerRegistration: Components.Schemas.RateLimit? = nil,
217214
scim: Components.Schemas.RateLimit? = nil,
218215
dependencySnapshots: Components.Schemas.RateLimit? = nil,
219216
dependencySbom: Components.Schemas.RateLimit? = nil,
220-
codeScanningAutofix: Components.Schemas.RateLimit? = nil
217+
codeScanningAutofix: Components.Schemas.RateLimit? = nil,
218+
copilotUsageRecords: Components.Schemas.RateLimit? = nil
221219
) {
222220
self.core = core
223221
self.graphql = graphql
224222
self.search = search
225223
self.codeSearch = codeSearch
226224
self.sourceImport = sourceImport
227225
self.integrationManifest = integrationManifest
228-
self.codeScanningUpload = codeScanningUpload
229226
self.actionsRunnerRegistration = actionsRunnerRegistration
230227
self.scim = scim
231228
self.dependencySnapshots = dependencySnapshots
232229
self.dependencySbom = dependencySbom
233230
self.codeScanningAutofix = codeScanningAutofix
231+
self.copilotUsageRecords = copilotUsageRecords
234232
}
235233
public enum CodingKeys: String, CodingKey {
236234
case core
@@ -239,12 +237,12 @@ public enum Components {
239237
case codeSearch = "code_search"
240238
case sourceImport = "source_import"
241239
case integrationManifest = "integration_manifest"
242-
case codeScanningUpload = "code_scanning_upload"
243240
case actionsRunnerRegistration = "actions_runner_registration"
244241
case scim
245242
case dependencySnapshots = "dependency_snapshots"
246243
case dependencySbom = "dependency_sbom"
247244
case codeScanningAutofix = "code_scanning_autofix"
245+
case copilotUsageRecords = "copilot_usage_records"
248246
}
249247
}
250248
/// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources`.
@@ -334,7 +332,6 @@ public enum Operations {
334332
/// * The `integration_manifest` object provides your rate limit status for the `POST /app-manifests/{code}/conversions` operation. For more information, see "[Creating a GitHub App from a manifest](https://docs.github.com/apps/creating-github-apps/setting-up-a-github-app/creating-a-github-app-from-a-manifest#3-you-exchange-the-temporary-code-to-retrieve-the-app-configuration)."
335333
/// * The `dependency_snapshots` object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see "[Dependency graph](https://docs.github.com/rest/dependency-graph)."
336334
/// * The `dependency_sbom` object provides your rate limit status for requesting SBOMs from the dependency graph. For more information, see "[Dependency graph](https://docs.github.com/rest/dependency-graph)."
337-
/// * The `code_scanning_upload` object provides your rate limit status for uploading SARIF results to code scanning. For more information, see "[Uploading a SARIF file to GitHub](https://docs.github.com/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github)."
338335
/// * The `actions_runner_registration` object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see "[Self-hosted runners](https://docs.github.com/rest/actions/self-hosted-runners)."
339336
/// * The `source_import` object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see "[API Versions](https://docs.github.com/rest/about-the-rest-api/api-versions)."
340337
///

0 commit comments

Comments
 (0)