From 1e74b7c43633384d4f87803b96648e97418e6475 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:38:29 +0000 Subject: [PATCH 1/8] Bump Submodule/github/rest-api-description from `7fad85e` to `4ab8513` Bumps [Submodule/github/rest-api-description](https://github.com/github/rest-api-description) from `7fad85e` to `4ab8513`. - [Release notes](https://github.com/github/rest-api-description/releases) - [Commits](https://github.com/github/rest-api-description/compare/7fad85efbb1da5a0f026a9d53e4e10d862de30fd...4ab8513682637010cd3bb5d8ee3227cc5ce739d1) --- updated-dependencies: - dependency-name: Submodule/github/rest-api-description dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Submodule/github/rest-api-description | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Submodule/github/rest-api-description b/Submodule/github/rest-api-description index 7fad85efbb1..4ab85136826 160000 --- a/Submodule/github/rest-api-description +++ b/Submodule/github/rest-api-description @@ -1 +1 @@ -Subproject commit 7fad85efbb1da5a0f026a9d53e4e10d862de30fd +Subproject commit 4ab8513682637010cd3bb5d8ee3227cc5ce739d1 From cc17fa207131353fe13bb15009fa605e287423de Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 9 Dec 2024 21:59:12 +0000 Subject: [PATCH 2/8] Commit via running ake Sources/code-scanning --- Sources/code-scanning/Types.swift | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Sources/code-scanning/Types.swift b/Sources/code-scanning/Types.swift index ee84b6fa5d8..f1a2bfceab7 100644 --- a/Sources/code-scanning/Types.swift +++ b/Sources/code-scanning/Types.swift @@ -3106,6 +3106,21 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/state`. public var state: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.statePayload? + /// Runner type to be used. + /// + /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/runner_type`. + @frozen public enum runner_typePayload: String, Codable, Hashable, Sendable { + case standard = "standard" + case labeled = "labeled" + } + /// Runner type to be used. + /// + /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/runner_type`. + public var runner_type: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.runner_typePayload? + /// Runner label to be used if the runner type is labeled. + /// + /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/runner_label`. + public var runner_label: Swift.String? /// CodeQL query suite to be used. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/query_suite`. @@ -3140,19 +3155,27 @@ public enum Components { /// /// - Parameters: /// - state: The desired state of code scanning default setup. + /// - runner_type: Runner type to be used. + /// - runner_label: Runner label to be used if the runner type is labeled. /// - query_suite: CodeQL query suite to be used. /// - languages: CodeQL languages to be analyzed. public init( state: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.statePayload? = nil, + runner_type: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.runner_typePayload? = nil, + runner_label: Swift.String? = nil, query_suite: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.query_suitePayload? = nil, languages: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.languagesPayload? = nil ) { self.state = state + self.runner_type = runner_type + self.runner_label = runner_label self.query_suite = query_suite self.languages = languages } public enum CodingKeys: String, CodingKey { case state + case runner_type + case runner_label case query_suite case languages } @@ -3162,6 +3185,14 @@ public enum Components { Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.statePayload.self, forKey: .state ) + runner_type = try container.decodeIfPresent( + Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.runner_typePayload.self, + forKey: .runner_type + ) + runner_label = try container.decodeIfPresent( + Swift.String.self, + forKey: .runner_label + ) query_suite = try container.decodeIfPresent( Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.query_suitePayload.self, forKey: .query_suite @@ -3172,6 +3203,8 @@ public enum Components { ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "state", + "runner_type", + "runner_label", "query_suite", "languages" ]) From 017a800090bba000f34576514faa2672d4ef1e58 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 9 Dec 2024 22:01:20 +0000 Subject: [PATCH 3/8] Commit via running ake Sources/git --- Sources/git/Client.swift | 4 ++++ Sources/git/Types.swift | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/Sources/git/Client.swift b/Sources/git/Client.swift index b2452d34134..2582d086ed0 100644 --- a/Sources/git/Client.swift +++ b/Sources/git/Client.swift @@ -383,6 +383,7 @@ public struct Client: APIProtocol { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -562,6 +563,7 @@ public struct Client: APIProtocol { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -1252,6 +1254,7 @@ public struct Client: APIProtocol { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -1405,6 +1408,7 @@ public struct Client: APIProtocol { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// diff --git a/Sources/git/Types.swift b/Sources/git/Types.swift index c207282632c..0b965a2d425 100644 --- a/Sources/git/Types.swift +++ b/Sources/git/Types.swift @@ -46,6 +46,7 @@ public protocol APIProtocol: Sendable { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -84,6 +85,7 @@ public protocol APIProtocol: Sendable { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -165,6 +167,7 @@ public protocol APIProtocol: Sendable { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -199,6 +202,7 @@ public protocol APIProtocol: Sendable { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -301,6 +305,7 @@ extension APIProtocol { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -349,6 +354,7 @@ extension APIProtocol { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -482,6 +488,7 @@ extension APIProtocol { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -526,6 +533,7 @@ extension APIProtocol { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -2287,6 +2295,7 @@ public enum Operations { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -2689,6 +2698,7 @@ public enum Operations { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -3948,6 +3958,7 @@ public enum Operations { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -4286,6 +4297,7 @@ public enum Operations { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// From f4d81c6dd67b0479fef6e91290b62f2dc2dc8e17 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 9 Dec 2024 22:04:34 +0000 Subject: [PATCH 4/8] Commit via running ake Sources/orgs --- Sources/orgs/Client.swift | 21 +++++++++++ Sources/orgs/Types.swift | 79 +++++++++++++++++++++++++++------------ 2 files changed, 77 insertions(+), 23 deletions(-) diff --git a/Sources/orgs/Client.swift b/Sources/orgs/Client.swift index cf3359910fc..1d3f06e543d 100644 --- a/Sources/orgs/Client.swift +++ b/Sources/orgs/Client.swift @@ -2127,6 +2127,13 @@ public struct Client: APIProtocol { name: "sort", value: input.query.sort ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "api_route_substring", + value: input.query.api_route_substring + ) converter.setAcceptHeader( in: &request.headerFields, contentTypes: input.headers.accept @@ -2233,6 +2240,13 @@ public struct Client: APIProtocol { name: "sort", value: input.query.sort ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "subject_name_substring", + value: input.query.subject_name_substring + ) converter.setAcceptHeader( in: &request.headerFields, contentTypes: input.headers.accept @@ -2835,6 +2849,13 @@ public struct Client: APIProtocol { name: "sort", value: input.query.sort ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "actor_name_substring", + value: input.query.actor_name_substring + ) converter.setAcceptHeader( in: &request.headerFields, contentTypes: input.headers.accept diff --git a/Sources/orgs/Types.swift b/Sources/orgs/Types.swift index 4e729d20cba..d93cd0f981b 100644 --- a/Sources/orgs/Types.swift +++ b/Sources/orgs/Types.swift @@ -7670,11 +7670,11 @@ public enum Components { /// /// - Remark: Generated from `#/components/parameters/api-insights-actor-type`. @frozen public enum api_hyphen_insights_hyphen_actor_hyphen_type: String, Codable, Hashable, Sendable { - case installations = "installations" - case classic_pats = "classic_pats" - case fine_grained_pats = "fine_grained_pats" - case oauth_apps = "oauth_apps" - case github_apps_user_to_server = "github_apps_user_to_server" + case installation = "installation" + case classic_pat = "classic_pat" + case fine_grained_pat = "fine_grained_pat" + case oauth_app = "oauth_app" + case github_app_user_to_server = "github_app_user_to_server" } /// The ID of the actor /// @@ -7701,6 +7701,10 @@ public enum Components { /// /// - Remark: Generated from `#/components/parameters/api-insights-route-stats-sort`. public typealias api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sort = [Components.Parameters.api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sortPayload] + /// Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search. + /// + /// - Remark: Generated from `#/components/parameters/api-insights-api-route-substring`. + public typealias api_hyphen_insights_hyphen_api_hyphen_route_hyphen_substring = Swift.String /// - Remark: Generated from `#/components/parameters/api_hyphen_insights_hyphen_sort`. @frozen public enum api_hyphen_insights_hyphen_sortPayload: String, Codable, Hashable, Sendable { case last_rate_limited_timestamp = "last_rate_limited_timestamp" @@ -7713,6 +7717,10 @@ public enum Components { /// /// - Remark: Generated from `#/components/parameters/api-insights-sort`. public typealias api_hyphen_insights_hyphen_sort = [Components.Parameters.api_hyphen_insights_hyphen_sortPayload] + /// Providing a substring will filter results where the subject name contains the substring. This is a case-insensitive search. + /// + /// - Remark: Generated from `#/components/parameters/api-insights-subject-name-substring`. + public typealias api_hyphen_insights_hyphen_subject_hyphen_name_hyphen_substring = Swift.String /// The ID of the user to query for stats /// /// - Remark: Generated from `#/components/parameters/api-insights-user-id`. @@ -7721,6 +7729,10 @@ public enum Components { /// /// - Remark: Generated from `#/components/parameters/api-insights-timestamp-increment`. public typealias api_hyphen_insights_hyphen_timestamp_hyphen_increment = Swift.String + /// Providing a substring will filter results where the actor name contains the substring. This is a case-insensitive search. + /// + /// - Remark: Generated from `#/components/parameters/api-insights-actor-name-substring`. + public typealias api_hyphen_insights_hyphen_actor_hyphen_name_hyphen_substring = Swift.String /// The unique identifier of the invitation. /// /// - Remark: Generated from `#/components/parameters/invitation-id`. @@ -12373,11 +12385,11 @@ public enum Operations { public var org: Components.Parameters.org /// - Remark: Generated from `#/components/parameters/api-insights-actor-type`. @frozen public enum api_hyphen_insights_hyphen_actor_hyphen_type: String, Codable, Hashable, Sendable { - case installations = "installations" - case classic_pats = "classic_pats" - case fine_grained_pats = "fine_grained_pats" - case oauth_apps = "oauth_apps" - case github_apps_user_to_server = "github_apps_user_to_server" + case installation = "installation" + case classic_pat = "classic_pat" + case fine_grained_pat = "fine_grained_pat" + case oauth_app = "oauth_app" + case github_app_user_to_server = "github_app_user_to_server" } /// The type of the actor /// @@ -12446,6 +12458,10 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/query/sort`. public var sort: Components.Parameters.api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sort? + /// Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/query/api_route_substring`. + public var api_route_substring: Components.Parameters.api_hyphen_insights_hyphen_api_hyphen_route_hyphen_substring? /// Creates a new `Query`. /// /// - Parameters: @@ -12455,13 +12471,15 @@ public enum Operations { /// - per_page: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." /// - direction: The direction to sort the results by. /// - sort: The property to sort the results by. + /// - api_route_substring: Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search. public init( min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp, max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? = nil, page: Components.Parameters.page? = nil, per_page: Components.Parameters.per_hyphen_page? = nil, direction: Components.Parameters.direction? = nil, - sort: Components.Parameters.api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sort? = nil + sort: Components.Parameters.api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sort? = nil, + api_route_substring: Components.Parameters.api_hyphen_insights_hyphen_api_hyphen_route_hyphen_substring? = nil ) { self.min_timestamp = min_timestamp self.max_timestamp = max_timestamp @@ -12469,6 +12487,7 @@ public enum Operations { self.per_page = per_page self.direction = direction self.sort = sort + self.api_route_substring = api_route_substring } } public var query: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Input.Query @@ -12648,6 +12667,10 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/query/sort`. public var sort: Components.Parameters.api_hyphen_insights_hyphen_sort? + /// Providing a substring will filter results where the subject name contains the substring. This is a case-insensitive search. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/query/subject_name_substring`. + public var subject_name_substring: Components.Parameters.api_hyphen_insights_hyphen_subject_hyphen_name_hyphen_substring? /// Creates a new `Query`. /// /// - Parameters: @@ -12657,13 +12680,15 @@ public enum Operations { /// - per_page: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." /// - direction: The direction to sort the results by. /// - sort: The property to sort the results by. + /// - subject_name_substring: Providing a substring will filter results where the subject name contains the substring. This is a case-insensitive search. public init( min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp, max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? = nil, page: Components.Parameters.page? = nil, per_page: Components.Parameters.per_hyphen_page? = nil, direction: Components.Parameters.direction? = nil, - sort: Components.Parameters.api_hyphen_insights_hyphen_sort? = nil + sort: Components.Parameters.api_hyphen_insights_hyphen_sort? = nil, + subject_name_substring: Components.Parameters.api_hyphen_insights_hyphen_subject_hyphen_name_hyphen_substring? = nil ) { self.min_timestamp = min_timestamp self.max_timestamp = max_timestamp @@ -12671,6 +12696,7 @@ public enum Operations { self.per_page = per_page self.direction = direction self.sort = sort + self.subject_name_substring = subject_name_substring } } public var query: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Input.Query @@ -13129,11 +13155,11 @@ public enum Operations { public var org: Components.Parameters.org /// - Remark: Generated from `#/components/parameters/api-insights-actor-type`. @frozen public enum api_hyphen_insights_hyphen_actor_hyphen_type: String, Codable, Hashable, Sendable { - case installations = "installations" - case classic_pats = "classic_pats" - case fine_grained_pats = "fine_grained_pats" - case oauth_apps = "oauth_apps" - case github_apps_user_to_server = "github_apps_user_to_server" + case installation = "installation" + case classic_pat = "classic_pat" + case fine_grained_pat = "fine_grained_pat" + case oauth_app = "oauth_app" + case github_app_user_to_server = "github_app_user_to_server" } /// The type of the actor /// @@ -13653,11 +13679,11 @@ public enum Operations { public var org: Components.Parameters.org /// - Remark: Generated from `#/components/parameters/api-insights-actor-type`. @frozen public enum api_hyphen_insights_hyphen_actor_hyphen_type: String, Codable, Hashable, Sendable { - case installations = "installations" - case classic_pats = "classic_pats" - case fine_grained_pats = "fine_grained_pats" - case oauth_apps = "oauth_apps" - case github_apps_user_to_server = "github_apps_user_to_server" + case installation = "installation" + case classic_pat = "classic_pat" + case fine_grained_pat = "fine_grained_pat" + case oauth_app = "oauth_app" + case github_app_user_to_server = "github_app_user_to_server" } /// The type of the actor /// @@ -13900,6 +13926,10 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/query/sort`. public var sort: Components.Parameters.api_hyphen_insights_hyphen_sort? + /// Providing a substring will filter results where the actor name contains the substring. This is a case-insensitive search. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/query/actor_name_substring`. + public var actor_name_substring: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_name_hyphen_substring? /// Creates a new `Query`. /// /// - Parameters: @@ -13909,13 +13939,15 @@ public enum Operations { /// - per_page: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." /// - direction: The direction to sort the results by. /// - sort: The property to sort the results by. + /// - actor_name_substring: Providing a substring will filter results where the actor name contains the substring. This is a case-insensitive search. public init( min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp, max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? = nil, page: Components.Parameters.page? = nil, per_page: Components.Parameters.per_hyphen_page? = nil, direction: Components.Parameters.direction? = nil, - sort: Components.Parameters.api_hyphen_insights_hyphen_sort? = nil + sort: Components.Parameters.api_hyphen_insights_hyphen_sort? = nil, + actor_name_substring: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_name_hyphen_substring? = nil ) { self.min_timestamp = min_timestamp self.max_timestamp = max_timestamp @@ -13923,6 +13955,7 @@ public enum Operations { self.per_page = per_page self.direction = direction self.sort = sort + self.actor_name_substring = actor_name_substring } } public var query: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Input.Query From 2a1d6e4dade8415a44f089e167790d65d252f1af Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 9 Dec 2024 22:06:44 +0000 Subject: [PATCH 5/8] Commit via running ake Sources/repos --- Sources/repos/Client.swift | 3 +++ Sources/repos/Types.swift | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/Sources/repos/Client.swift b/Sources/repos/Client.swift index 0d89f08a289..77534a44a02 100644 --- a/Sources/repos/Client.swift +++ b/Sources/repos/Client.swift @@ -6766,6 +6766,7 @@ public struct Client: APIProtocol { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -7485,6 +7486,7 @@ public struct Client: APIProtocol { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -8020,6 +8022,7 @@ public struct Client: APIProtocol { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// diff --git a/Sources/repos/Types.swift b/Sources/repos/Types.swift index 5f3c8b8070f..b47cd7033f0 100644 --- a/Sources/repos/Types.swift +++ b/Sources/repos/Types.swift @@ -697,6 +697,7 @@ public protocol APIProtocol: Sendable { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -790,6 +791,7 @@ public protocol APIProtocol: Sendable { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -886,6 +888,7 @@ public protocol APIProtocol: Sendable { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -3357,6 +3360,7 @@ extension APIProtocol { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -3498,6 +3502,7 @@ extension APIProtocol { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -3632,6 +3637,7 @@ extension APIProtocol { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -37297,6 +37303,7 @@ public enum Operations { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -38552,6 +38559,7 @@ public enum Operations { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// @@ -39466,6 +39474,7 @@ public enum Operations { /// | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | /// | `signature` | `string` | The signature that was extracted from the commit. | /// | `payload` | `string` | The value that was signed. | + /// | `verified_at` | `string` | The date the signature was verified by GitHub. | /// /// These are the possible values for `reason` in the `verification` object: /// From f805e9578fd3ff06bceb178f5a8793795a3e27b9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 9 Dec 2024 22:07:27 +0000 Subject: [PATCH 6/8] Commit via running ake Sources/secret-scanning --- Sources/secret-scanning/Types.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/secret-scanning/Types.swift b/Sources/secret-scanning/Types.swift index 6080ccbb556..1e9ebd83238 100644 --- a/Sources/secret-scanning/Types.swift +++ b/Sources/secret-scanning/Types.swift @@ -2023,15 +2023,15 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/secret-scanning-scan/type`. public var _type: Swift.String? - /// The state of the scan. Either "completed" or "running" + /// The state of the scan. Either "completed", "running", or "pending" /// /// - Remark: Generated from `#/components/schemas/secret-scanning-scan/status`. public var status: Swift.String? - /// The time that the scan was completed. Empty if the scan is active + /// The time that the scan was completed. Empty if the scan is running /// /// - Remark: Generated from `#/components/schemas/secret-scanning-scan/completed_at`. public var completed_at: Foundation.Date? - /// The time that the scan was started + /// The time that the scan was started. Empty if the scan is pending /// /// - Remark: Generated from `#/components/schemas/secret-scanning-scan/started_at`. public var started_at: Foundation.Date? @@ -2039,9 +2039,9 @@ public enum Components { /// /// - Parameters: /// - _type: The type of scan - /// - status: The state of the scan. Either "completed" or "running" - /// - completed_at: The time that the scan was completed. Empty if the scan is active - /// - started_at: The time that the scan was started + /// - status: The state of the scan. Either "completed", "running", or "pending" + /// - completed_at: The time that the scan was completed. Empty if the scan is running + /// - started_at: The time that the scan was started. Empty if the scan is pending public init( _type: Swift.String? = nil, status: Swift.String? = nil, From b509c25388efc8ca731268165bcda1483ae2bbf1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 9 Dec 2024 22:08:54 +0000 Subject: [PATCH 7/8] Commit via running ake Sources/copilot --- Sources/copilot/Client.swift | 31 +++++------- Sources/copilot/Types.swift | 98 ++++++++++++++---------------------- 2 files changed, 51 insertions(+), 78 deletions(-) diff --git a/Sources/copilot/Client.swift b/Sources/copilot/Client.swift index bbde87f6ae3..b073e9c7ae0 100644 --- a/Sources/copilot/Client.swift +++ b/Sources/copilot/Client.swift @@ -612,6 +612,9 @@ public struct Client: APIProtocol { } /// Get Copilot metrics for an enterprise team /// + /// > [!NOTE] + /// > This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)." + /// /// Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions. /// /// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day, @@ -806,7 +809,7 @@ public struct Client: APIProtocol { /// Get a summary of Copilot usage for an enterprise team /// /// > [!NOTE] - /// > This endpoint is in public preview and is subject to change. + /// > This endpoint is in public preview and is subject to change. This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)." /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// for users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. @@ -1354,13 +1357,11 @@ public struct Client: APIProtocol { /// Purchases a GitHub Copilot seat for all users within each specified team. /// The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." /// - /// Only organization owners can add Copilot seats for their organization members. - /// - /// In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy. + /// Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy. /// For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)." /// For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)." /// - /// The response will contain the total number of new seats that were created and existing seats that were refreshed. + /// The response contains the total number of new seats that were created and existing seats that were refreshed. /// /// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// @@ -1530,14 +1531,11 @@ public struct Client: APIProtocol { /// /// Sets seats for all members of each team specified to "pending cancellation". /// This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through another team. - /// - /// For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." - /// - /// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." + /// For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." /// /// Only organization owners can cancel Copilot seats for their organization members. /// - /// The response will contain the total number of seats set to "pending cancellation". + /// The response contains the total number of seats set to "pending cancellation". /// /// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// @@ -1708,13 +1706,11 @@ public struct Client: APIProtocol { /// Purchases a GitHub Copilot seat for each user specified. /// The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." /// - /// Only organization owners can add Copilot seats for their organization members. - /// - /// In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy. + /// Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy. /// For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)." /// For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)." /// - /// The response will contain the total number of new seats that were created and existing seats that were refreshed. + /// The response contains the total number of new seats that were created and existing seats that were refreshed. /// /// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// @@ -1884,14 +1880,11 @@ public struct Client: APIProtocol { /// /// Sets seats for all users specified to "pending cancellation". /// This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through team membership. - /// - /// For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." - /// - /// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." + /// For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." /// /// Only organization owners can cancel Copilot seats for their organization members. /// - /// The response will contain the total number of seats set to "pending cancellation". + /// The response contains the total number of seats set to "pending cancellation". /// /// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// diff --git a/Sources/copilot/Types.swift b/Sources/copilot/Types.swift index 772b9ff8fea..80d78fc5a62 100644 --- a/Sources/copilot/Types.swift +++ b/Sources/copilot/Types.swift @@ -72,6 +72,9 @@ public protocol APIProtocol: Sendable { func copilot_sol_usage_hyphen_metrics_hyphen_for_hyphen_enterprise(_ input: Operations.copilot_sol_usage_hyphen_metrics_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.copilot_sol_usage_hyphen_metrics_hyphen_for_hyphen_enterprise.Output /// Get Copilot metrics for an enterprise team /// + /// > [!NOTE] + /// > This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)." + /// /// Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions. /// /// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day, @@ -92,7 +95,7 @@ public protocol APIProtocol: Sendable { /// Get a summary of Copilot usage for an enterprise team /// /// > [!NOTE] - /// > This endpoint is in public preview and is subject to change. + /// > This endpoint is in public preview and is subject to change. This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)." /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// for users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. @@ -152,13 +155,11 @@ public protocol APIProtocol: Sendable { /// Purchases a GitHub Copilot seat for all users within each specified team. /// The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." /// - /// Only organization owners can add Copilot seats for their organization members. - /// - /// In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy. + /// Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy. /// For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)." /// For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)." /// - /// The response will contain the total number of new seats that were created and existing seats that were refreshed. + /// The response contains the total number of new seats that were created and existing seats that were refreshed. /// /// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// @@ -172,14 +173,11 @@ public protocol APIProtocol: Sendable { /// /// Sets seats for all members of each team specified to "pending cancellation". /// This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through another team. - /// - /// For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." - /// - /// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." + /// For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." /// /// Only organization owners can cancel Copilot seats for their organization members. /// - /// The response will contain the total number of seats set to "pending cancellation". + /// The response contains the total number of seats set to "pending cancellation". /// /// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// @@ -194,13 +192,11 @@ public protocol APIProtocol: Sendable { /// Purchases a GitHub Copilot seat for each user specified. /// The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." /// - /// Only organization owners can add Copilot seats for their organization members. - /// - /// In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy. + /// Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy. /// For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)." /// For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)." /// - /// The response will contain the total number of new seats that were created and existing seats that were refreshed. + /// The response contains the total number of new seats that were created and existing seats that were refreshed. /// /// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// @@ -214,14 +210,11 @@ public protocol APIProtocol: Sendable { /// /// Sets seats for all users specified to "pending cancellation". /// This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through team membership. - /// - /// For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." - /// - /// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." + /// For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." /// /// Only organization owners can cancel Copilot seats for their organization members. /// - /// The response will contain the total number of seats set to "pending cancellation". + /// The response contains the total number of seats set to "pending cancellation". /// /// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// @@ -421,6 +414,9 @@ extension APIProtocol { } /// Get Copilot metrics for an enterprise team /// + /// > [!NOTE] + /// > This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)." + /// /// Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions. /// /// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day, @@ -451,7 +447,7 @@ extension APIProtocol { /// Get a summary of Copilot usage for an enterprise team /// /// > [!NOTE] - /// > This endpoint is in public preview and is subject to change. + /// > This endpoint is in public preview and is subject to change. This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)." /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// for users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. @@ -539,13 +535,11 @@ extension APIProtocol { /// Purchases a GitHub Copilot seat for all users within each specified team. /// The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." /// - /// Only organization owners can add Copilot seats for their organization members. - /// - /// In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy. + /// Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy. /// For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)." /// For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)." /// - /// The response will contain the total number of new seats that were created and existing seats that were refreshed. + /// The response contains the total number of new seats that were created and existing seats that were refreshed. /// /// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// @@ -569,14 +563,11 @@ extension APIProtocol { /// /// Sets seats for all members of each team specified to "pending cancellation". /// This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through another team. - /// - /// For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." - /// - /// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." + /// For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." /// /// Only organization owners can cancel Copilot seats for their organization members. /// - /// The response will contain the total number of seats set to "pending cancellation". + /// The response contains the total number of seats set to "pending cancellation". /// /// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// @@ -601,13 +592,11 @@ extension APIProtocol { /// Purchases a GitHub Copilot seat for each user specified. /// The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." /// - /// Only organization owners can add Copilot seats for their organization members. - /// - /// In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy. + /// Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy. /// For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)." /// For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)." /// - /// The response will contain the total number of new seats that were created and existing seats that were refreshed. + /// The response contains the total number of new seats that were created and existing seats that were refreshed. /// /// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// @@ -631,14 +620,11 @@ extension APIProtocol { /// /// Sets seats for all users specified to "pending cancellation". /// This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through team membership. - /// - /// For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." - /// - /// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." + /// For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." /// /// Only organization owners can cancel Copilot seats for their organization members. /// - /// The response will contain the total number of seats set to "pending cancellation". + /// The response contains the total number of seats set to "pending cancellation". /// /// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// @@ -1467,9 +1453,10 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/copilot-seat-details/created_at`. public var created_at: Foundation.Date - /// Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format. + /// **Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/copilot-seat-details/updated_at`. + @available(*, deprecated) public var updated_at: Foundation.Date? /// The Copilot plan of the organization, or the parent enterprise, when applicable. /// @@ -1493,7 +1480,7 @@ public enum Components { /// - last_activity_at: Timestamp of user's last GitHub Copilot activity, in ISO 8601 format. /// - last_activity_editor: Last editor that was used by the user for a GitHub Copilot completion. /// - created_at: Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format. - /// - updated_at: Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format. + /// - updated_at: **Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format. /// - plan_type: The Copilot plan of the organization, or the parent enterprise, when applicable. public init( assignee: Components.Schemas.simple_hyphen_user, @@ -4065,6 +4052,9 @@ public enum Operations { } /// Get Copilot metrics for an enterprise team /// + /// > [!NOTE] + /// > This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)." + /// /// Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions. /// /// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day, @@ -4352,7 +4342,7 @@ public enum Operations { /// Get a summary of Copilot usage for an enterprise team /// /// > [!NOTE] - /// > This endpoint is in public preview and is subject to change. + /// > This endpoint is in public preview and is subject to change. This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)." /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// for users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. @@ -5211,13 +5201,11 @@ public enum Operations { /// Purchases a GitHub Copilot seat for all users within each specified team. /// The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." /// - /// Only organization owners can add Copilot seats for their organization members. - /// - /// In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy. + /// Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy. /// For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)." /// For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)." /// - /// The response will contain the total number of new seats that were created and existing seats that were refreshed. + /// The response contains the total number of new seats that were created and existing seats that were refreshed. /// /// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// @@ -5518,14 +5506,11 @@ public enum Operations { /// /// Sets seats for all members of each team specified to "pending cancellation". /// This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through another team. - /// - /// For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." - /// - /// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." + /// For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." /// /// Only organization owners can cancel Copilot seats for their organization members. /// - /// The response will contain the total number of seats set to "pending cancellation". + /// The response contains the total number of seats set to "pending cancellation". /// /// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// @@ -5827,13 +5812,11 @@ public enum Operations { /// Purchases a GitHub Copilot seat for each user specified. /// The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." /// - /// Only organization owners can add Copilot seats for their organization members. - /// - /// In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy. + /// Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy. /// For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)." /// For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)." /// - /// The response will contain the total number of new seats that were created and existing seats that were refreshed. + /// The response contains the total number of new seats that were created and existing seats that were refreshed. /// /// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// @@ -6134,14 +6117,11 @@ public enum Operations { /// /// Sets seats for all users specified to "pending cancellation". /// This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through team membership. - /// - /// For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." - /// - /// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." + /// For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." /// /// Only organization owners can cancel Copilot seats for their organization members. /// - /// The response will contain the total number of seats set to "pending cancellation". + /// The response contains the total number of seats set to "pending cancellation". /// /// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// From 89d2287651eee68ec913045f4a758b6676c192b5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 9 Dec 2024 22:11:02 +0000 Subject: [PATCH 8/8] Commit via running ake Sources/code-security --- Sources/code-security/Types.swift | 104 ++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/Sources/code-security/Types.swift b/Sources/code-security/Types.swift index 488a692044a..f895f094728 100644 --- a/Sources/code-security/Types.swift +++ b/Sources/code-security/Types.swift @@ -1121,6 +1121,47 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/code_scanning_default_setup`. public var code_scanning_default_setup: Components.Schemas.code_hyphen_security_hyphen_configuration.code_scanning_default_setupPayload? + /// Feature options for code scanning default setup + /// + /// - Remark: Generated from `#/components/schemas/code-security-configuration/code_scanning_default_setup_options`. + public struct code_scanning_default_setup_optionsPayload: Codable, Hashable, Sendable { + /// Whether to use labeled runners or standard GitHub runners. + /// + /// - Remark: Generated from `#/components/schemas/code-security-configuration/code_scanning_default_setup_options/runner_type`. + @frozen public enum runner_typePayload: String, Codable, Hashable, Sendable { + case standard = "standard" + case labeled = "labeled" + case not_set = "not_set" + } + /// Whether to use labeled runners or standard GitHub runners. + /// + /// - Remark: Generated from `#/components/schemas/code-security-configuration/code_scanning_default_setup_options/runner_type`. + public var runner_type: Components.Schemas.code_hyphen_security_hyphen_configuration.code_scanning_default_setup_optionsPayload.runner_typePayload? + /// The label of the runner to use for code scanning when runner_type is 'labeled'. + /// + /// - Remark: Generated from `#/components/schemas/code-security-configuration/code_scanning_default_setup_options/runner_label`. + public var runner_label: Swift.String? + /// Creates a new `code_scanning_default_setup_optionsPayload`. + /// + /// - Parameters: + /// - runner_type: Whether to use labeled runners or standard GitHub runners. + /// - runner_label: The label of the runner to use for code scanning when runner_type is 'labeled'. + public init( + runner_type: Components.Schemas.code_hyphen_security_hyphen_configuration.code_scanning_default_setup_optionsPayload.runner_typePayload? = nil, + runner_label: Swift.String? = nil + ) { + self.runner_type = runner_type + self.runner_label = runner_label + } + public enum CodingKeys: String, CodingKey { + case runner_type + case runner_label + } + } + /// Feature options for code scanning default setup + /// + /// - Remark: Generated from `#/components/schemas/code-security-configuration/code_scanning_default_setup_options`. + public var code_scanning_default_setup_options: Components.Schemas.code_hyphen_security_hyphen_configuration.code_scanning_default_setup_optionsPayload? /// The enablement status of secret scanning /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning`. @@ -1291,6 +1332,7 @@ public enum Components { /// - dependabot_alerts: The enablement status of Dependabot alerts /// - dependabot_security_updates: The enablement status of Dependabot security updates /// - code_scanning_default_setup: The enablement status of code scanning default setup + /// - code_scanning_default_setup_options: Feature options for code scanning default setup /// - secret_scanning: The enablement status of secret scanning /// - secret_scanning_push_protection: The enablement status of secret scanning push protection /// - secret_scanning_delegated_bypass: The enablement status of secret scanning delegated bypass @@ -1315,6 +1357,7 @@ public enum Components { dependabot_alerts: Components.Schemas.code_hyphen_security_hyphen_configuration.dependabot_alertsPayload? = nil, dependabot_security_updates: Components.Schemas.code_hyphen_security_hyphen_configuration.dependabot_security_updatesPayload? = nil, code_scanning_default_setup: Components.Schemas.code_hyphen_security_hyphen_configuration.code_scanning_default_setupPayload? = nil, + code_scanning_default_setup_options: Components.Schemas.code_hyphen_security_hyphen_configuration.code_scanning_default_setup_optionsPayload? = nil, secret_scanning: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanningPayload? = nil, secret_scanning_push_protection: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_push_protectionPayload? = nil, secret_scanning_delegated_bypass: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_delegated_bypassPayload? = nil, @@ -1339,6 +1382,7 @@ public enum Components { self.dependabot_alerts = dependabot_alerts self.dependabot_security_updates = dependabot_security_updates self.code_scanning_default_setup = code_scanning_default_setup + self.code_scanning_default_setup_options = code_scanning_default_setup_options self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_delegated_bypass = secret_scanning_delegated_bypass @@ -1364,6 +1408,7 @@ public enum Components { case dependabot_alerts case dependabot_security_updates case code_scanning_default_setup + case code_scanning_default_setup_options case secret_scanning case secret_scanning_push_protection case secret_scanning_delegated_bypass @@ -1378,6 +1423,43 @@ public enum Components { case updated_at } } + /// Feature options for code scanning default setup + /// + /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-options`. + public struct code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options: Codable, Hashable, Sendable { + /// Whether to use labeled runners or standard GitHub runners. + /// + /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-options/runner_type`. + @frozen public enum runner_typePayload: String, Codable, Hashable, Sendable { + case standard = "standard" + case labeled = "labeled" + case not_set = "not_set" + } + /// Whether to use labeled runners or standard GitHub runners. + /// + /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-options/runner_type`. + public var runner_type: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options.runner_typePayload? + /// The label of the runner to use for code scanning default setup when runner_type is 'labeled'. + /// + /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-options/runner_label`. + public var runner_label: Swift.String? + /// Creates a new `code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options`. + /// + /// - Parameters: + /// - runner_type: Whether to use labeled runners or standard GitHub runners. + /// - runner_label: The label of the runner to use for code scanning default setup when runner_type is 'labeled'. + public init( + runner_type: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options.runner_typePayload? = nil, + runner_label: Swift.String? = nil + ) { + self.runner_type = runner_type + self.runner_label = runner_label + } + public enum CodingKeys: String, CodingKey { + case runner_type + case runner_label + } + } /// - Remark: Generated from `#/components/schemas/code_hyphen_security_hyphen_default_hyphen_configurations`. public struct code_hyphen_security_hyphen_default_hyphen_configurationsPayload: Codable, Hashable, Sendable { /// The visibility of newly created repositories for which the code security configuration will be applied to by default @@ -2072,6 +2154,8 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/code_scanning_default_setup`. public var code_scanning_default_setup: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.code_scanning_default_setupPayload? + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/code_scanning_default_setup_options`. + public var code_scanning_default_setup_options: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options? /// The enablement status of secret scanning /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning`. @@ -2228,6 +2312,7 @@ public enum Operations { /// - dependabot_alerts: The enablement status of Dependabot alerts /// - dependabot_security_updates: The enablement status of Dependabot security updates /// - code_scanning_default_setup: The enablement status of code scanning default setup + /// - code_scanning_default_setup_options: /// - secret_scanning: The enablement status of secret scanning /// - secret_scanning_push_protection: The enablement status of secret scanning push protection /// - secret_scanning_delegated_bypass: The enablement status of secret scanning delegated bypass @@ -2246,6 +2331,7 @@ public enum Operations { dependabot_alerts: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependabot_alertsPayload? = nil, dependabot_security_updates: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependabot_security_updatesPayload? = nil, code_scanning_default_setup: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.code_scanning_default_setupPayload? = nil, + code_scanning_default_setup_options: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options? = nil, secret_scanning: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanningPayload? = nil, secret_scanning_push_protection: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_push_protectionPayload? = nil, secret_scanning_delegated_bypass: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypassPayload? = nil, @@ -2264,6 +2350,7 @@ public enum Operations { self.dependabot_alerts = dependabot_alerts self.dependabot_security_updates = dependabot_security_updates self.code_scanning_default_setup = code_scanning_default_setup + self.code_scanning_default_setup_options = code_scanning_default_setup_options self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_delegated_bypass = secret_scanning_delegated_bypass @@ -2283,6 +2370,7 @@ public enum Operations { case dependabot_alerts case dependabot_security_updates case code_scanning_default_setup + case code_scanning_default_setup_options case secret_scanning case secret_scanning_push_protection case secret_scanning_delegated_bypass @@ -2330,6 +2418,10 @@ public enum Operations { Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.code_scanning_default_setupPayload.self, forKey: .code_scanning_default_setup ) + code_scanning_default_setup_options = try container.decodeIfPresent( + Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options.self, + forKey: .code_scanning_default_setup_options + ) secret_scanning = try container.decodeIfPresent( Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanningPayload.self, forKey: .secret_scanning @@ -2372,6 +2464,7 @@ public enum Operations { "dependabot_alerts", "dependabot_security_updates", "code_scanning_default_setup", + "code_scanning_default_setup_options", "secret_scanning", "secret_scanning_push_protection", "secret_scanning_delegated_bypass", @@ -3303,6 +3396,8 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/code_scanning_default_setup`. public var code_scanning_default_setup: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.code_scanning_default_setupPayload? + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/code_scanning_default_setup_options`. + public var code_scanning_default_setup_options: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options? /// The enablement status of secret scanning /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning`. @@ -3459,6 +3554,7 @@ public enum Operations { /// - dependabot_alerts: The enablement status of Dependabot alerts /// - dependabot_security_updates: The enablement status of Dependabot security updates /// - code_scanning_default_setup: The enablement status of code scanning default setup + /// - code_scanning_default_setup_options: /// - secret_scanning: The enablement status of secret scanning /// - secret_scanning_push_protection: The enablement status of secret scanning push protection /// - secret_scanning_delegated_bypass: The enablement status of secret scanning delegated bypass @@ -3477,6 +3573,7 @@ public enum Operations { dependabot_alerts: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependabot_alertsPayload? = nil, dependabot_security_updates: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependabot_security_updatesPayload? = nil, code_scanning_default_setup: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.code_scanning_default_setupPayload? = nil, + code_scanning_default_setup_options: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options? = nil, secret_scanning: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanningPayload? = nil, secret_scanning_push_protection: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_push_protectionPayload? = nil, secret_scanning_delegated_bypass: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypassPayload? = nil, @@ -3495,6 +3592,7 @@ public enum Operations { self.dependabot_alerts = dependabot_alerts self.dependabot_security_updates = dependabot_security_updates self.code_scanning_default_setup = code_scanning_default_setup + self.code_scanning_default_setup_options = code_scanning_default_setup_options self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_delegated_bypass = secret_scanning_delegated_bypass @@ -3514,6 +3612,7 @@ public enum Operations { case dependabot_alerts case dependabot_security_updates case code_scanning_default_setup + case code_scanning_default_setup_options case secret_scanning case secret_scanning_push_protection case secret_scanning_delegated_bypass @@ -3561,6 +3660,10 @@ public enum Operations { Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.code_scanning_default_setupPayload.self, forKey: .code_scanning_default_setup ) + code_scanning_default_setup_options = try container.decodeIfPresent( + Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options.self, + forKey: .code_scanning_default_setup_options + ) secret_scanning = try container.decodeIfPresent( Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanningPayload.self, forKey: .secret_scanning @@ -3603,6 +3706,7 @@ public enum Operations { "dependabot_alerts", "dependabot_security_updates", "code_scanning_default_setup", + "code_scanning_default_setup_options", "secret_scanning", "secret_scanning_push_protection", "secret_scanning_delegated_bypass",