diff --git a/Sources/copilot/Types.swift b/Sources/copilot/Types.swift index 389eebee9d1..b488e20f49f 100644 --- a/Sources/copilot/Types.swift +++ b/Sources/copilot/Types.swift @@ -1249,6 +1249,18 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/copilot-seat-details/updated_at`. public var updated_at: Foundation.Date? + /// The Copilot plan of the organization, or the parent enterprise, when applicable. + /// + /// - Remark: Generated from `#/components/schemas/copilot-seat-details/plan_type`. + @frozen public enum plan_typePayload: String, Codable, Hashable, Sendable { + case business = "business" + case enterprise = "enterprise" + case unknown = "unknown" + } + /// The Copilot plan of the organization, or the parent enterprise, when applicable. + /// + /// - Remark: Generated from `#/components/schemas/copilot-seat-details/plan_type`. + public var plan_type: Components.Schemas.copilot_hyphen_seat_hyphen_details.plan_typePayload? /// Creates a new `copilot_hyphen_seat_hyphen_details`. /// /// - Parameters: @@ -1260,6 +1272,7 @@ public enum Components { /// - 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. + /// - plan_type: The Copilot plan of the organization, or the parent enterprise, when applicable. public init( assignee: Components.Schemas.simple_hyphen_user, organization: Components.Schemas.nullable_hyphen_organization_hyphen_simple? = nil, @@ -1268,7 +1281,8 @@ public enum Components { last_activity_at: Foundation.Date? = nil, last_activity_editor: Swift.String? = nil, created_at: Foundation.Date, - updated_at: Foundation.Date? = nil + updated_at: Foundation.Date? = nil, + plan_type: Components.Schemas.copilot_hyphen_seat_hyphen_details.plan_typePayload? = nil ) { self.assignee = assignee self.organization = organization @@ -1278,6 +1292,7 @@ public enum Components { self.last_activity_editor = last_activity_editor self.created_at = created_at self.updated_at = updated_at + self.plan_type = plan_type } public enum CodingKeys: String, CodingKey { case assignee @@ -1288,6 +1303,7 @@ public enum Components { case last_activity_editor case created_at case updated_at + case plan_type } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) @@ -1323,6 +1339,10 @@ public enum Components { Foundation.Date.self, forKey: .updated_at ) + plan_type = try container.decodeIfPresent( + Components.Schemas.copilot_hyphen_seat_hyphen_details.plan_typePayload.self, + forKey: .plan_type + ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "assignee", "organization", @@ -1331,7 +1351,8 @@ public enum Components { "last_activity_at", "last_activity_editor", "created_at", - "updated_at" + "updated_at", + "plan_type" ]) } } @@ -1762,6 +1783,18 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/copilot-organization-details/seat_management_setting`. public var seat_management_setting: Components.Schemas.copilot_hyphen_organization_hyphen_details.seat_management_settingPayload + /// The Copilot plan of the organization, or the parent enterprise, when applicable. + /// + /// - Remark: Generated from `#/components/schemas/copilot-organization-details/plan_type`. + @frozen public enum plan_typePayload: String, Codable, Hashable, Sendable { + case business = "business" + case enterprise = "enterprise" + case unknown = "unknown" + } + /// The Copilot plan of the organization, or the parent enterprise, when applicable. + /// + /// - Remark: Generated from `#/components/schemas/copilot-organization-details/plan_type`. + public var plan_type: Components.Schemas.copilot_hyphen_organization_hyphen_details.plan_typePayload? /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer /// Creates a new `copilot_hyphen_organization_hyphen_details`. @@ -1773,6 +1806,7 @@ public enum Components { /// - platform_chat: The organization policy for allowing or disallowing organization members to use Copilot features within github.com. /// - cli: The organization policy for allowing or disallowing organization members to use Copilot within their CLI. /// - seat_management_setting: The mode of assigning new seats. + /// - plan_type: The Copilot plan of the organization, or the parent enterprise, when applicable. /// - additionalProperties: A container of undocumented properties. public init( seat_breakdown: Components.Schemas.copilot_hyphen_seat_hyphen_breakdown, @@ -1781,6 +1815,7 @@ public enum Components { platform_chat: Components.Schemas.copilot_hyphen_organization_hyphen_details.platform_chatPayload? = nil, cli: Components.Schemas.copilot_hyphen_organization_hyphen_details.cliPayload? = nil, seat_management_setting: Components.Schemas.copilot_hyphen_organization_hyphen_details.seat_management_settingPayload, + plan_type: Components.Schemas.copilot_hyphen_organization_hyphen_details.plan_typePayload? = nil, additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init() ) { self.seat_breakdown = seat_breakdown @@ -1789,6 +1824,7 @@ public enum Components { self.platform_chat = platform_chat self.cli = cli self.seat_management_setting = seat_management_setting + self.plan_type = plan_type self.additionalProperties = additionalProperties } public enum CodingKeys: String, CodingKey { @@ -1798,6 +1834,7 @@ public enum Components { case platform_chat case cli case seat_management_setting + case plan_type } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) @@ -1825,13 +1862,18 @@ public enum Components { Components.Schemas.copilot_hyphen_organization_hyphen_details.seat_management_settingPayload.self, forKey: .seat_management_setting ) + plan_type = try container.decodeIfPresent( + Components.Schemas.copilot_hyphen_organization_hyphen_details.plan_typePayload.self, + forKey: .plan_type + ) additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [ "seat_breakdown", "public_code_suggestions", "ide_chat", "platform_chat", "cli", - "seat_management_setting" + "seat_management_setting", + "plan_type" ]) } public func encode(to encoder: any Encoder) throws { @@ -1860,6 +1902,10 @@ public enum Components { seat_management_setting, forKey: .seat_management_setting ) + try container.encodeIfPresent( + plan_type, + forKey: .plan_type + ) try encoder.encodeAdditionalProperties(additionalProperties) } } diff --git a/Sources/issues/Client.swift b/Sources/issues/Client.swift index 8511215829f..9b6e5a7eb50 100644 --- a/Sources/issues/Client.swift +++ b/Sources/issues/Client.swift @@ -1844,7 +1844,7 @@ public struct Client: APIProtocol { } /// Update an issue /// - /// Issue owners and users with push access can edit an issue. + /// Issue owners and users with push access or Triage role can edit an issue. /// /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// diff --git a/Sources/issues/Types.swift b/Sources/issues/Types.swift index 205062939b1..ba237ec6911 100644 --- a/Sources/issues/Types.swift +++ b/Sources/issues/Types.swift @@ -188,7 +188,7 @@ public protocol APIProtocol: Sendable { func issues_sol_get(_ input: Operations.issues_sol_get.Input) async throws -> Operations.issues_sol_get.Output /// Update an issue /// - /// Issue owners and users with push access can edit an issue. + /// Issue owners and users with push access or Triage role can edit an issue. /// /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// @@ -712,7 +712,7 @@ extension APIProtocol { } /// Update an issue /// - /// Issue owners and users with push access can edit an issue. + /// Issue owners and users with push access or Triage role can edit an issue. /// /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// @@ -11579,7 +11579,7 @@ public enum Operations { } /// Update an issue /// - /// Issue owners and users with push access can edit an issue. + /// Issue owners and users with push access or Triage role can edit an issue. /// /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// diff --git a/Sources/orgs/Types.swift b/Sources/orgs/Types.swift index 8f37d238880..88c91593325 100644 --- a/Sources/orgs/Types.swift +++ b/Sources/orgs/Types.swift @@ -7050,7 +7050,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/parameters/fine-grained-personal-access-token-id`. public typealias fine_hyphen_grained_hyphen_personal_hyphen_access_hyphen_token_hyphen_id = Swift.Int - /// The custom property name. The name is case sensitive. + /// The custom property name /// /// - Remark: Generated from `#/components/parameters/custom-property-name`. public typealias custom_hyphen_property_hyphen_name = Swift.String @@ -18497,7 +18497,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/GET/path/org`. public var org: Components.Parameters.org - /// The custom property name. The name is case sensitive. + /// The custom property name /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/GET/path/custom_property_name`. public var custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name @@ -18505,7 +18505,7 @@ public enum Operations { /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - custom_property_name: The custom property name. The name is case sensitive. + /// - custom_property_name: The custom property name public init( org: Components.Parameters.org, custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name @@ -18688,7 +18688,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/path/org`. public var org: Components.Parameters.org - /// The custom property name. The name is case sensitive. + /// The custom property name /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/path/custom_property_name`. public var custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name @@ -18696,7 +18696,7 @@ public enum Operations { /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - custom_property_name: The custom property name. The name is case sensitive. + /// - custom_property_name: The custom property name public init( org: Components.Parameters.org, custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name @@ -18986,7 +18986,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/DELETE/path/org`. public var org: Components.Parameters.org - /// The custom property name. The name is case sensitive. + /// The custom property name /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/DELETE/path/custom_property_name`. public var custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name @@ -18994,7 +18994,7 @@ public enum Operations { /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - custom_property_name: The custom property name. The name is case sensitive. + /// - custom_property_name: The custom property name public init( org: Components.Parameters.org, custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name diff --git a/Submodule/github/rest-api-description b/Submodule/github/rest-api-description index aa5e982025e..6b266a1120a 160000 --- a/Submodule/github/rest-api-description +++ b/Submodule/github/rest-api-description @@ -1 +1 @@ -Subproject commit aa5e982025ea1f38241ba0319f72b512abf51896 +Subproject commit 6b266a1120ab13e630a3606d1906a62b44d6db36