Skip to content

Commit ff9d7ed

Browse files
Merge pull request #80 from Wei18/dependabot/submodules/Submodule/github/rest-api-description-6b266a1
Bump Submodule/github/rest-api-description from `aa5e982` to `6b266a1`
2 parents f7f7bd5 + e1fa40f commit ff9d7ed

File tree

5 files changed

+61
-15
lines changed

5 files changed

+61
-15
lines changed

Sources/copilot/Types.swift

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,18 @@ public enum Components {
12491249
///
12501250
/// - Remark: Generated from `#/components/schemas/copilot-seat-details/updated_at`.
12511251
public var updated_at: Foundation.Date?
1252+
/// The Copilot plan of the organization, or the parent enterprise, when applicable.
1253+
///
1254+
/// - Remark: Generated from `#/components/schemas/copilot-seat-details/plan_type`.
1255+
@frozen public enum plan_typePayload: String, Codable, Hashable, Sendable {
1256+
case business = "business"
1257+
case enterprise = "enterprise"
1258+
case unknown = "unknown"
1259+
}
1260+
/// The Copilot plan of the organization, or the parent enterprise, when applicable.
1261+
///
1262+
/// - Remark: Generated from `#/components/schemas/copilot-seat-details/plan_type`.
1263+
public var plan_type: Components.Schemas.copilot_hyphen_seat_hyphen_details.plan_typePayload?
12521264
/// Creates a new `copilot_hyphen_seat_hyphen_details`.
12531265
///
12541266
/// - Parameters:
@@ -1260,6 +1272,7 @@ public enum Components {
12601272
/// - last_activity_editor: Last editor that was used by the user for a GitHub Copilot completion.
12611273
/// - created_at: Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format.
12621274
/// - updated_at: Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.
1275+
/// - plan_type: The Copilot plan of the organization, or the parent enterprise, when applicable.
12631276
public init(
12641277
assignee: Components.Schemas.simple_hyphen_user,
12651278
organization: Components.Schemas.nullable_hyphen_organization_hyphen_simple? = nil,
@@ -1268,7 +1281,8 @@ public enum Components {
12681281
last_activity_at: Foundation.Date? = nil,
12691282
last_activity_editor: Swift.String? = nil,
12701283
created_at: Foundation.Date,
1271-
updated_at: Foundation.Date? = nil
1284+
updated_at: Foundation.Date? = nil,
1285+
plan_type: Components.Schemas.copilot_hyphen_seat_hyphen_details.plan_typePayload? = nil
12721286
) {
12731287
self.assignee = assignee
12741288
self.organization = organization
@@ -1278,6 +1292,7 @@ public enum Components {
12781292
self.last_activity_editor = last_activity_editor
12791293
self.created_at = created_at
12801294
self.updated_at = updated_at
1295+
self.plan_type = plan_type
12811296
}
12821297
public enum CodingKeys: String, CodingKey {
12831298
case assignee
@@ -1288,6 +1303,7 @@ public enum Components {
12881303
case last_activity_editor
12891304
case created_at
12901305
case updated_at
1306+
case plan_type
12911307
}
12921308
public init(from decoder: any Decoder) throws {
12931309
let container = try decoder.container(keyedBy: CodingKeys.self)
@@ -1323,6 +1339,10 @@ public enum Components {
13231339
Foundation.Date.self,
13241340
forKey: .updated_at
13251341
)
1342+
plan_type = try container.decodeIfPresent(
1343+
Components.Schemas.copilot_hyphen_seat_hyphen_details.plan_typePayload.self,
1344+
forKey: .plan_type
1345+
)
13261346
try decoder.ensureNoAdditionalProperties(knownKeys: [
13271347
"assignee",
13281348
"organization",
@@ -1331,7 +1351,8 @@ public enum Components {
13311351
"last_activity_at",
13321352
"last_activity_editor",
13331353
"created_at",
1334-
"updated_at"
1354+
"updated_at",
1355+
"plan_type"
13351356
])
13361357
}
13371358
}
@@ -1762,6 +1783,18 @@ public enum Components {
17621783
///
17631784
/// - Remark: Generated from `#/components/schemas/copilot-organization-details/seat_management_setting`.
17641785
public var seat_management_setting: Components.Schemas.copilot_hyphen_organization_hyphen_details.seat_management_settingPayload
1786+
/// The Copilot plan of the organization, or the parent enterprise, when applicable.
1787+
///
1788+
/// - Remark: Generated from `#/components/schemas/copilot-organization-details/plan_type`.
1789+
@frozen public enum plan_typePayload: String, Codable, Hashable, Sendable {
1790+
case business = "business"
1791+
case enterprise = "enterprise"
1792+
case unknown = "unknown"
1793+
}
1794+
/// The Copilot plan of the organization, or the parent enterprise, when applicable.
1795+
///
1796+
/// - Remark: Generated from `#/components/schemas/copilot-organization-details/plan_type`.
1797+
public var plan_type: Components.Schemas.copilot_hyphen_organization_hyphen_details.plan_typePayload?
17651798
/// A container of undocumented properties.
17661799
public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer
17671800
/// Creates a new `copilot_hyphen_organization_hyphen_details`.
@@ -1773,6 +1806,7 @@ public enum Components {
17731806
/// - platform_chat: The organization policy for allowing or disallowing organization members to use Copilot features within github.com.
17741807
/// - cli: The organization policy for allowing or disallowing organization members to use Copilot within their CLI.
17751808
/// - seat_management_setting: The mode of assigning new seats.
1809+
/// - plan_type: The Copilot plan of the organization, or the parent enterprise, when applicable.
17761810
/// - additionalProperties: A container of undocumented properties.
17771811
public init(
17781812
seat_breakdown: Components.Schemas.copilot_hyphen_seat_hyphen_breakdown,
@@ -1781,6 +1815,7 @@ public enum Components {
17811815
platform_chat: Components.Schemas.copilot_hyphen_organization_hyphen_details.platform_chatPayload? = nil,
17821816
cli: Components.Schemas.copilot_hyphen_organization_hyphen_details.cliPayload? = nil,
17831817
seat_management_setting: Components.Schemas.copilot_hyphen_organization_hyphen_details.seat_management_settingPayload,
1818+
plan_type: Components.Schemas.copilot_hyphen_organization_hyphen_details.plan_typePayload? = nil,
17841819
additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init()
17851820
) {
17861821
self.seat_breakdown = seat_breakdown
@@ -1789,6 +1824,7 @@ public enum Components {
17891824
self.platform_chat = platform_chat
17901825
self.cli = cli
17911826
self.seat_management_setting = seat_management_setting
1827+
self.plan_type = plan_type
17921828
self.additionalProperties = additionalProperties
17931829
}
17941830
public enum CodingKeys: String, CodingKey {
@@ -1798,6 +1834,7 @@ public enum Components {
17981834
case platform_chat
17991835
case cli
18001836
case seat_management_setting
1837+
case plan_type
18011838
}
18021839
public init(from decoder: any Decoder) throws {
18031840
let container = try decoder.container(keyedBy: CodingKeys.self)
@@ -1825,13 +1862,18 @@ public enum Components {
18251862
Components.Schemas.copilot_hyphen_organization_hyphen_details.seat_management_settingPayload.self,
18261863
forKey: .seat_management_setting
18271864
)
1865+
plan_type = try container.decodeIfPresent(
1866+
Components.Schemas.copilot_hyphen_organization_hyphen_details.plan_typePayload.self,
1867+
forKey: .plan_type
1868+
)
18281869
additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [
18291870
"seat_breakdown",
18301871
"public_code_suggestions",
18311872
"ide_chat",
18321873
"platform_chat",
18331874
"cli",
1834-
"seat_management_setting"
1875+
"seat_management_setting",
1876+
"plan_type"
18351877
])
18361878
}
18371879
public func encode(to encoder: any Encoder) throws {
@@ -1860,6 +1902,10 @@ public enum Components {
18601902
seat_management_setting,
18611903
forKey: .seat_management_setting
18621904
)
1905+
try container.encodeIfPresent(
1906+
plan_type,
1907+
forKey: .plan_type
1908+
)
18631909
try encoder.encodeAdditionalProperties(additionalProperties)
18641910
}
18651911
}

Sources/issues/Client.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1844,7 +1844,7 @@ public struct Client: APIProtocol {
18441844
}
18451845
/// Update an issue
18461846
///
1847-
/// Issue owners and users with push access can edit an issue.
1847+
/// Issue owners and users with push access or Triage role can edit an issue.
18481848
///
18491849
/// 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)."
18501850
///

Sources/issues/Types.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public protocol APIProtocol: Sendable {
188188
func issues_sol_get(_ input: Operations.issues_sol_get.Input) async throws -> Operations.issues_sol_get.Output
189189
/// Update an issue
190190
///
191-
/// Issue owners and users with push access can edit an issue.
191+
/// Issue owners and users with push access or Triage role can edit an issue.
192192
///
193193
/// 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)."
194194
///
@@ -712,7 +712,7 @@ extension APIProtocol {
712712
}
713713
/// Update an issue
714714
///
715-
/// Issue owners and users with push access can edit an issue.
715+
/// Issue owners and users with push access or Triage role can edit an issue.
716716
///
717717
/// 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)."
718718
///
@@ -11579,7 +11579,7 @@ public enum Operations {
1157911579
}
1158011580
/// Update an issue
1158111581
///
11582-
/// Issue owners and users with push access can edit an issue.
11582+
/// Issue owners and users with push access or Triage role can edit an issue.
1158311583
///
1158411584
/// 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)."
1158511585
///

Sources/orgs/Types.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7050,7 +7050,7 @@ public enum Components {
70507050
///
70517051
/// - Remark: Generated from `#/components/parameters/fine-grained-personal-access-token-id`.
70527052
public typealias fine_hyphen_grained_hyphen_personal_hyphen_access_hyphen_token_hyphen_id = Swift.Int
7053-
/// The custom property name. The name is case sensitive.
7053+
/// The custom property name
70547054
///
70557055
/// - Remark: Generated from `#/components/parameters/custom-property-name`.
70567056
public typealias custom_hyphen_property_hyphen_name = Swift.String
@@ -18497,15 +18497,15 @@ public enum Operations {
1849718497
///
1849818498
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/GET/path/org`.
1849918499
public var org: Components.Parameters.org
18500-
/// The custom property name. The name is case sensitive.
18500+
/// The custom property name
1850118501
///
1850218502
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/GET/path/custom_property_name`.
1850318503
public var custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name
1850418504
/// Creates a new `Path`.
1850518505
///
1850618506
/// - Parameters:
1850718507
/// - org: The organization name. The name is not case sensitive.
18508-
/// - custom_property_name: The custom property name. The name is case sensitive.
18508+
/// - custom_property_name: The custom property name
1850918509
public init(
1851018510
org: Components.Parameters.org,
1851118511
custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name
@@ -18688,15 +18688,15 @@ public enum Operations {
1868818688
///
1868918689
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/path/org`.
1869018690
public var org: Components.Parameters.org
18691-
/// The custom property name. The name is case sensitive.
18691+
/// The custom property name
1869218692
///
1869318693
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/path/custom_property_name`.
1869418694
public var custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name
1869518695
/// Creates a new `Path`.
1869618696
///
1869718697
/// - Parameters:
1869818698
/// - org: The organization name. The name is not case sensitive.
18699-
/// - custom_property_name: The custom property name. The name is case sensitive.
18699+
/// - custom_property_name: The custom property name
1870018700
public init(
1870118701
org: Components.Parameters.org,
1870218702
custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name
@@ -18986,15 +18986,15 @@ public enum Operations {
1898618986
///
1898718987
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/DELETE/path/org`.
1898818988
public var org: Components.Parameters.org
18989-
/// The custom property name. The name is case sensitive.
18989+
/// The custom property name
1899018990
///
1899118991
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/DELETE/path/custom_property_name`.
1899218992
public var custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name
1899318993
/// Creates a new `Path`.
1899418994
///
1899518995
/// - Parameters:
1899618996
/// - org: The organization name. The name is not case sensitive.
18997-
/// - custom_property_name: The custom property name. The name is case sensitive.
18997+
/// - custom_property_name: The custom property name
1899818998
public init(
1899918999
org: Components.Parameters.org,
1900019000
custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name

0 commit comments

Comments
 (0)