@@ -779,33 +779,33 @@ public enum Components {
779779 }
780780 /// A GitHub organization.
781781 ///
782- /// - Remark: Generated from `#/components/schemas/organization-simple`.
783- public struct organization_hyphen_simple : Codable , Hashable , Sendable {
784- /// - Remark: Generated from `#/components/schemas/organization-simple/login`.
782+ /// - Remark: Generated from `#/components/schemas/nullable- organization-simple`.
783+ public struct nullable_hyphen_organization_hyphen_simple : Codable , Hashable , Sendable {
784+ /// - Remark: Generated from `#/components/schemas/nullable- organization-simple/login`.
785785 public var login : Swift . String
786- /// - Remark: Generated from `#/components/schemas/organization-simple/id`.
786+ /// - Remark: Generated from `#/components/schemas/nullable- organization-simple/id`.
787787 public var id : Swift . Int
788- /// - Remark: Generated from `#/components/schemas/organization-simple/node_id`.
788+ /// - Remark: Generated from `#/components/schemas/nullable- organization-simple/node_id`.
789789 public var node_id : Swift . String
790- /// - Remark: Generated from `#/components/schemas/organization-simple/url`.
790+ /// - Remark: Generated from `#/components/schemas/nullable- organization-simple/url`.
791791 public var url : Swift . String
792- /// - Remark: Generated from `#/components/schemas/organization-simple/repos_url`.
792+ /// - Remark: Generated from `#/components/schemas/nullable- organization-simple/repos_url`.
793793 public var repos_url : Swift . String
794- /// - Remark: Generated from `#/components/schemas/organization-simple/events_url`.
794+ /// - Remark: Generated from `#/components/schemas/nullable- organization-simple/events_url`.
795795 public var events_url : Swift . String
796- /// - Remark: Generated from `#/components/schemas/organization-simple/hooks_url`.
796+ /// - Remark: Generated from `#/components/schemas/nullable- organization-simple/hooks_url`.
797797 public var hooks_url : Swift . String
798- /// - Remark: Generated from `#/components/schemas/organization-simple/issues_url`.
798+ /// - Remark: Generated from `#/components/schemas/nullable- organization-simple/issues_url`.
799799 public var issues_url : Swift . String
800- /// - Remark: Generated from `#/components/schemas/organization-simple/members_url`.
800+ /// - Remark: Generated from `#/components/schemas/nullable- organization-simple/members_url`.
801801 public var members_url : Swift . String
802- /// - Remark: Generated from `#/components/schemas/organization-simple/public_members_url`.
802+ /// - Remark: Generated from `#/components/schemas/nullable- organization-simple/public_members_url`.
803803 public var public_members_url : Swift . String
804- /// - Remark: Generated from `#/components/schemas/organization-simple/avatar_url`.
804+ /// - Remark: Generated from `#/components/schemas/nullable- organization-simple/avatar_url`.
805805 public var avatar_url : Swift . String
806- /// - Remark: Generated from `#/components/schemas/organization-simple/description`.
806+ /// - Remark: Generated from `#/components/schemas/nullable- organization-simple/description`.
807807 public var description : Swift . String ?
808- /// Creates a new `organization_hyphen_simple `.
808+ /// Creates a new `nullable_hyphen_organization_hyphen_simple `.
809809 ///
810810 /// - Parameters:
811811 /// - login:
@@ -1184,68 +1184,10 @@ public enum Components {
11841184 ///
11851185 /// - Remark: Generated from `#/components/schemas/copilot-seat-details`.
11861186 public struct copilot_hyphen_seat_hyphen_details : Codable , Hashable , Sendable {
1187- /// The assignee that has been granted access to GitHub Copilot.
1188- ///
1189- /// - Remark: Generated from `#/components/schemas/copilot-seat-details/assignee`.
1190- @frozen public enum assigneePayload : Codable , Hashable , Sendable {
1191- /// - Remark: Generated from `#/components/schemas/copilot-seat-details/assignee/case1`.
1192- case simple_hyphen_user( Components . Schemas . simple_hyphen_user )
1193- public init ( from decoder: any Decoder ) throws {
1194- var errors : [ any Error ] = [ ]
1195- do {
1196- self = . simple_hyphen_user( try . init( from: decoder) )
1197- return
1198- } catch {
1199- errors. append ( error)
1200- }
1201- throw Swift . DecodingError. failedToDecodeOneOfSchema (
1202- type: Self . self,
1203- codingPath: decoder. codingPath,
1204- errors: errors
1205- )
1206- }
1207- public func encode( to encoder: any Encoder ) throws {
1208- switch self {
1209- case let . simple_hyphen_user( value) :
1210- try value. encode ( to: encoder)
1211- }
1212- }
1213- }
1214- /// The assignee that has been granted access to GitHub Copilot.
1215- ///
12161187 /// - Remark: Generated from `#/components/schemas/copilot-seat-details/assignee`.
1217- public var assignee : Components . Schemas . copilot_hyphen_seat_hyphen_details . assigneePayload
1218- /// The organization to which this seat belongs.
1219- ///
1220- /// - Remark: Generated from `#/components/schemas/copilot-seat-details/organization`.
1221- @frozen public enum organizationPayload : Codable , Hashable , Sendable {
1222- /// - Remark: Generated from `#/components/schemas/copilot-seat-details/organization/case1`.
1223- case organization_hyphen_simple( Components . Schemas . organization_hyphen_simple )
1224- public init ( from decoder: any Decoder ) throws {
1225- var errors : [ any Error ] = [ ]
1226- do {
1227- self = . organization_hyphen_simple( try . init( from: decoder) )
1228- return
1229- } catch {
1230- errors. append ( error)
1231- }
1232- throw Swift . DecodingError. failedToDecodeOneOfSchema (
1233- type: Self . self,
1234- codingPath: decoder. codingPath,
1235- errors: errors
1236- )
1237- }
1238- public func encode( to encoder: any Encoder ) throws {
1239- switch self {
1240- case let . organization_hyphen_simple( value) :
1241- try value. encode ( to: encoder)
1242- }
1243- }
1244- }
1245- /// The organization to which this seat belongs.
1246- ///
1188+ public var assignee : Components . Schemas . simple_hyphen_user
12471189 /// - Remark: Generated from `#/components/schemas/copilot-seat-details/organization`.
1248- public var organization : Components . Schemas . copilot_hyphen_seat_hyphen_details . organizationPayload ?
1190+ public var organization : Components . Schemas . nullable_hyphen_organization_hyphen_simple ?
12491191 /// The team through which the assignee is granted access to GitHub Copilot, if applicable.
12501192 ///
12511193 /// - Remark: Generated from `#/components/schemas/copilot-seat-details/assigning_team`.
@@ -1310,17 +1252,17 @@ public enum Components {
13101252 /// Creates a new `copilot_hyphen_seat_hyphen_details`.
13111253 ///
13121254 /// - Parameters:
1313- /// - assignee: The assignee that has been granted access to GitHub Copilot.
1314- /// - organization: The organization to which this seat belongs.
1255+ /// - assignee:
1256+ /// - organization:
13151257 /// - assigning_team: The team through which the assignee is granted access to GitHub Copilot, if applicable.
13161258 /// - pending_cancellation_date: The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle.
13171259 /// - last_activity_at: Timestamp of user's last GitHub Copilot activity, in ISO 8601 format.
13181260 /// - last_activity_editor: Last editor that was used by the user for a GitHub Copilot completion.
13191261 /// - created_at: Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format.
13201262 /// - updated_at: Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.
13211263 public init (
1322- assignee: Components . Schemas . copilot_hyphen_seat_hyphen_details . assigneePayload ,
1323- organization: Components . Schemas . copilot_hyphen_seat_hyphen_details . organizationPayload ? = nil ,
1264+ assignee: Components . Schemas . simple_hyphen_user ,
1265+ organization: Components . Schemas . nullable_hyphen_organization_hyphen_simple ? = nil ,
13241266 assigning_team: Components . Schemas . copilot_hyphen_seat_hyphen_details . assigning_teamPayload ? = nil ,
13251267 pending_cancellation_date: Swift . String ? = nil ,
13261268 last_activity_at: Foundation . Date ? = nil ,
@@ -1350,11 +1292,11 @@ public enum Components {
13501292 public init ( from decoder: any Decoder ) throws {
13511293 let container = try decoder. container ( keyedBy: CodingKeys . self)
13521294 assignee = try container. decode (
1353- Components . Schemas. copilot_hyphen_seat_hyphen_details . assigneePayload . self,
1295+ Components . Schemas. simple_hyphen_user . self,
13541296 forKey: . assignee
13551297 )
13561298 organization = try container. decodeIfPresent (
1357- Components . Schemas. copilot_hyphen_seat_hyphen_details . organizationPayload . self,
1299+ Components . Schemas. nullable_hyphen_organization_hyphen_simple . self,
13581300 forKey: . organization
13591301 )
13601302 assigning_team = try container. decodeIfPresent (
0 commit comments