Skip to content

Bump Submodule/github/rest-api-description from aa5e982 to 6b266a1 #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 49 additions & 3 deletions Sources/copilot/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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,
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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",
Expand All @@ -1331,7 +1351,8 @@ public enum Components {
"last_activity_at",
"last_activity_editor",
"created_at",
"updated_at"
"updated_at",
"plan_type"
])
}
}
Expand Down Expand Up @@ -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`.
Expand All @@ -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,
Expand All @@ -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
Expand All @@ -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 {
Expand All @@ -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)
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/issues/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)."
///
Expand Down
6 changes: 3 additions & 3 deletions Sources/issues/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)."
///
Expand Down Expand Up @@ -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)."
///
Expand Down Expand Up @@ -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)."
///
Expand Down
14 changes: 7 additions & 7 deletions Sources/orgs/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -18497,15 +18497,15 @@ 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
/// Creates a new `Path`.
///
/// - 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
Expand Down Expand Up @@ -18688,15 +18688,15 @@ 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
/// Creates a new `Path`.
///
/// - 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
Expand Down Expand Up @@ -18986,15 +18986,15 @@ 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
/// Creates a new `Path`.
///
/// - 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
Expand Down
2 changes: 1 addition & 1 deletion Submodule/github/rest-api-description