@@ -779,33 +779,33 @@ public enum Components {
779
779
}
780
780
/// A GitHub organization.
781
781
///
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`.
785
785
public var login : Swift . String
786
- /// - Remark: Generated from `#/components/schemas/organization-simple/id`.
786
+ /// - Remark: Generated from `#/components/schemas/nullable- organization-simple/id`.
787
787
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`.
789
789
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`.
791
791
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`.
793
793
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`.
795
795
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`.
797
797
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`.
799
799
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`.
801
801
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`.
803
803
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`.
805
805
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`.
807
807
public var description : Swift . String ?
808
- /// Creates a new `organization_hyphen_simple `.
808
+ /// Creates a new `nullable_hyphen_organization_hyphen_simple `.
809
809
///
810
810
/// - Parameters:
811
811
/// - login:
@@ -1184,68 +1184,10 @@ public enum Components {
1184
1184
///
1185
1185
/// - Remark: Generated from `#/components/schemas/copilot-seat-details`.
1186
1186
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
- ///
1216
1187
/// - 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
1247
1189
/// - 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 ?
1249
1191
/// The team through which the assignee is granted access to GitHub Copilot, if applicable.
1250
1192
///
1251
1193
/// - Remark: Generated from `#/components/schemas/copilot-seat-details/assigning_team`.
@@ -1310,17 +1252,17 @@ public enum Components {
1310
1252
/// Creates a new `copilot_hyphen_seat_hyphen_details`.
1311
1253
///
1312
1254
/// - 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:
1315
1257
/// - assigning_team: The team through which the assignee is granted access to GitHub Copilot, if applicable.
1316
1258
/// - 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.
1317
1259
/// - last_activity_at: Timestamp of user's last GitHub Copilot activity, in ISO 8601 format.
1318
1260
/// - last_activity_editor: Last editor that was used by the user for a GitHub Copilot completion.
1319
1261
/// - created_at: Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format.
1320
1262
/// - updated_at: Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.
1321
1263
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 ,
1324
1266
assigning_team: Components . Schemas . copilot_hyphen_seat_hyphen_details . assigning_teamPayload ? = nil ,
1325
1267
pending_cancellation_date: Swift . String ? = nil ,
1326
1268
last_activity_at: Foundation . Date ? = nil ,
@@ -1350,11 +1292,11 @@ public enum Components {
1350
1292
public init ( from decoder: any Decoder ) throws {
1351
1293
let container = try decoder. container ( keyedBy: CodingKeys . self)
1352
1294
assignee = try container. decode (
1353
- Components . Schemas. copilot_hyphen_seat_hyphen_details . assigneePayload . self,
1295
+ Components . Schemas. simple_hyphen_user . self,
1354
1296
forKey: . assignee
1355
1297
)
1356
1298
organization = try container. decodeIfPresent (
1357
- Components . Schemas. copilot_hyphen_seat_hyphen_details . organizationPayload . self,
1299
+ Components . Schemas. nullable_hyphen_organization_hyphen_simple . self,
1358
1300
forKey: . organization
1359
1301
)
1360
1302
assigning_team = try container. decodeIfPresent (
0 commit comments