@@ -6448,6 +6448,32 @@ public enum Components {
6448
6448
///
6449
6449
/// - Remark: Generated from `#/components/schemas/organization-role/description`.
6450
6450
public var description: Swift.String?
6451
+ /// The system role from which this role inherits permissions.
6452
+ ///
6453
+ /// - Remark: Generated from `#/components/schemas/organization-role/base_role`.
6454
+ @frozen public enum base_rolePayload: String, Codable, Hashable, Sendable {
6455
+ case read = "read"
6456
+ case triage = "triage"
6457
+ case write = "write"
6458
+ case maintain = "maintain"
6459
+ case admin = "admin"
6460
+ }
6461
+ /// The system role from which this role inherits permissions.
6462
+ ///
6463
+ /// - Remark: Generated from `#/components/schemas/organization-role/base_role`.
6464
+ public var base_role: Components.Schemas.organization_hyphen_role.base_rolePayload?
6465
+ /// Source answers the question, "where did this role come from?"
6466
+ ///
6467
+ /// - Remark: Generated from `#/components/schemas/organization-role/source`.
6468
+ @frozen public enum sourcePayload: String, Codable, Hashable, Sendable {
6469
+ case Organization = "Organization"
6470
+ case Enterprise = "Enterprise"
6471
+ case Predefined = "Predefined"
6472
+ }
6473
+ /// Source answers the question, "where did this role come from?"
6474
+ ///
6475
+ /// - Remark: Generated from `#/components/schemas/organization-role/source`.
6476
+ public var source: Components.Schemas.organization_hyphen_role.sourcePayload?
6451
6477
/// A list of permissions included in this role.
6452
6478
///
6453
6479
/// - Remark: Generated from `#/components/schemas/organization-role/permissions`.
@@ -6468,6 +6494,8 @@ public enum Components {
6468
6494
/// - id: The unique identifier of the role.
6469
6495
/// - name: The name of the role.
6470
6496
/// - description: A short description about who this role is for or what permissions it grants.
6497
+ /// - base_role: The system role from which this role inherits permissions.
6498
+ /// - source: Source answers the question, "where did this role come from?"
6471
6499
/// - permissions: A list of permissions included in this role.
6472
6500
/// - organization:
6473
6501
/// - created_at: The date and time the role was created.
@@ -6476,6 +6504,8 @@ public enum Components {
6476
6504
id: Swift.Int64,
6477
6505
name: Swift.String,
6478
6506
description: Swift.String? = nil,
6507
+ base_role: Components.Schemas.organization_hyphen_role.base_rolePayload? = nil,
6508
+ source: Components.Schemas.organization_hyphen_role.sourcePayload? = nil,
6479
6509
permissions: [Swift.String],
6480
6510
organization: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil,
6481
6511
created_at: Foundation.Date,
@@ -6484,6 +6514,8 @@ public enum Components {
6484
6514
self.id = id
6485
6515
self.name = name
6486
6516
self.description = description
6517
+ self.base_role = base_role
6518
+ self.source = source
6487
6519
self.permissions = permissions
6488
6520
self.organization = organization
6489
6521
self.created_at = created_at
@@ -6493,6 +6525,8 @@ public enum Components {
6493
6525
case id
6494
6526
case name
6495
6527
case description
6528
+ case base_role
6529
+ case source
6496
6530
case permissions
6497
6531
case organization
6498
6532
case created_at
@@ -6503,6 +6537,18 @@ public enum Components {
6503
6537
///
6504
6538
/// - Remark: Generated from `#/components/schemas/team-role-assignment`.
6505
6539
public struct team_hyphen_role_hyphen_assignment: Codable, Hashable, Sendable {
6540
+ /// Determines if the team has a direct, indirect, or mixed relationship to a role
6541
+ ///
6542
+ /// - Remark: Generated from `#/components/schemas/team-role-assignment/assignment`.
6543
+ @frozen public enum assignmentPayload: String, Codable, Hashable, Sendable {
6544
+ case direct = "direct"
6545
+ case indirect = "indirect"
6546
+ case mixed = "mixed"
6547
+ }
6548
+ /// Determines if the team has a direct, indirect, or mixed relationship to a role
6549
+ ///
6550
+ /// - Remark: Generated from `#/components/schemas/team-role-assignment/assignment`.
6551
+ public var assignment: Components.Schemas.team_hyphen_role_hyphen_assignment.assignmentPayload?
6506
6552
/// - Remark: Generated from `#/components/schemas/team-role-assignment/id`.
6507
6553
public var id: Swift.Int
6508
6554
/// - Remark: Generated from `#/components/schemas/team-role-assignment/node_id`.
@@ -6575,6 +6621,7 @@ public enum Components {
6575
6621
/// Creates a new `team_hyphen_role_hyphen_assignment`.
6576
6622
///
6577
6623
/// - Parameters:
6624
+ /// - assignment: Determines if the team has a direct, indirect, or mixed relationship to a role
6578
6625
/// - id:
6579
6626
/// - node_id:
6580
6627
/// - name:
@@ -6590,6 +6637,7 @@ public enum Components {
6590
6637
/// - repositories_url:
6591
6638
/// - parent:
6592
6639
public init(
6640
+ assignment: Components.Schemas.team_hyphen_role_hyphen_assignment.assignmentPayload? = nil,
6593
6641
id: Swift.Int,
6594
6642
node_id: Swift.String,
6595
6643
name: Swift.String,
@@ -6605,6 +6653,7 @@ public enum Components {
6605
6653
repositories_url: Swift.String,
6606
6654
parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? = nil
6607
6655
) {
6656
+ self.assignment = assignment
6608
6657
self.id = id
6609
6658
self.node_id = node_id
6610
6659
self.name = name
@@ -6621,6 +6670,7 @@ public enum Components {
6621
6670
self.parent = parent
6622
6671
}
6623
6672
public enum CodingKeys: String, CodingKey {
6673
+ case assignment
6624
6674
case id
6625
6675
case node_id
6626
6676
case name
@@ -6748,6 +6798,22 @@ public enum Components {
6748
6798
///
6749
6799
/// - Remark: Generated from `#/components/schemas/user-role-assignment`.
6750
6800
public struct user_hyphen_role_hyphen_assignment: Codable, Hashable, Sendable {
6801
+ /// Determines if the user has a direct, indirect, or mixed relationship to a role
6802
+ ///
6803
+ /// - Remark: Generated from `#/components/schemas/user-role-assignment/assignment`.
6804
+ @frozen public enum assignmentPayload: String, Codable, Hashable, Sendable {
6805
+ case direct = "direct"
6806
+ case indirect = "indirect"
6807
+ case mixed = "mixed"
6808
+ }
6809
+ /// Determines if the user has a direct, indirect, or mixed relationship to a role
6810
+ ///
6811
+ /// - Remark: Generated from `#/components/schemas/user-role-assignment/assignment`.
6812
+ public var assignment: Components.Schemas.user_hyphen_role_hyphen_assignment.assignmentPayload?
6813
+ /// Team the user has gotten the role through
6814
+ ///
6815
+ /// - Remark: Generated from `#/components/schemas/user-role-assignment/inherited_from`.
6816
+ public var inherited_from: [Components.Schemas.team_hyphen_simple]?
6751
6817
/// - Remark: Generated from `#/components/schemas/user-role-assignment/name`.
6752
6818
public var name: Swift.String?
6753
6819
/// - Remark: Generated from `#/components/schemas/user-role-assignment/email`.
@@ -6795,6 +6861,8 @@ public enum Components {
6795
6861
/// Creates a new `user_hyphen_role_hyphen_assignment`.
6796
6862
///
6797
6863
/// - Parameters:
6864
+ /// - assignment: Determines if the user has a direct, indirect, or mixed relationship to a role
6865
+ /// - inherited_from: Team the user has gotten the role through
6798
6866
/// - name:
6799
6867
/// - email:
6800
6868
/// - login:
@@ -6818,6 +6886,8 @@ public enum Components {
6818
6886
/// - starred_at:
6819
6887
/// - user_view_type:
6820
6888
public init(
6889
+ assignment: Components.Schemas.user_hyphen_role_hyphen_assignment.assignmentPayload? = nil,
6890
+ inherited_from: [Components.Schemas.team_hyphen_simple]? = nil,
6821
6891
name: Swift.String? = nil,
6822
6892
email: Swift.String? = nil,
6823
6893
login: Swift.String,
@@ -6841,6 +6911,8 @@ public enum Components {
6841
6911
starred_at: Swift.String? = nil,
6842
6912
user_view_type: Swift.String? = nil
6843
6913
) {
6914
+ self.assignment = assignment
6915
+ self.inherited_from = inherited_from
6844
6916
self.name = name
6845
6917
self.email = email
6846
6918
self.login = login
@@ -6865,6 +6937,8 @@ public enum Components {
6865
6937
self.user_view_type = user_view_type
6866
6938
}
6867
6939
public enum CodingKeys: String, CodingKey {
6940
+ case assignment
6941
+ case inherited_from
6868
6942
case name
6869
6943
case email
6870
6944
case login
@@ -7293,6 +7367,17 @@ public enum Components {
7293
7367
///
7294
7368
/// - Remark: Generated from `#/components/schemas/custom-property/url`.
7295
7369
public var url: Swift.String?
7370
+ /// The source type of the property
7371
+ ///
7372
+ /// - Remark: Generated from `#/components/schemas/custom-property/source_type`.
7373
+ @frozen public enum source_typePayload: String, Codable, Hashable, Sendable {
7374
+ case organization = "organization"
7375
+ case enterprise = "enterprise"
7376
+ }
7377
+ /// The source type of the property
7378
+ ///
7379
+ /// - Remark: Generated from `#/components/schemas/custom-property/source_type`.
7380
+ public var source_type: Components.Schemas.custom_hyphen_property.source_typePayload?
7296
7381
/// The type of the value for the property
7297
7382
///
7298
7383
/// - Remark: Generated from `#/components/schemas/custom-property/value_type`.
@@ -7376,6 +7461,7 @@ public enum Components {
7376
7461
/// - Parameters:
7377
7462
/// - property_name: The name of the property
7378
7463
/// - url: The URL that can be used to fetch, update, or delete info about this property via the API.
7464
+ /// - source_type: The source type of the property
7379
7465
/// - value_type: The type of the value for the property
7380
7466
/// - required: Whether the property is required.
7381
7467
/// - default_value: Default value of the property
@@ -7385,6 +7471,7 @@ public enum Components {
7385
7471
public init(
7386
7472
property_name: Swift.String,
7387
7473
url: Swift.String? = nil,
7474
+ source_type: Components.Schemas.custom_hyphen_property.source_typePayload? = nil,
7388
7475
value_type: Components.Schemas.custom_hyphen_property.value_typePayload,
7389
7476
required: Swift.Bool? = nil,
7390
7477
default_value: Components.Schemas.custom_hyphen_property.default_valuePayload? = nil,
@@ -7394,6 +7481,7 @@ public enum Components {
7394
7481
) {
7395
7482
self.property_name = property_name
7396
7483
self.url = url
7484
+ self.source_type = source_type
7397
7485
self.value_type = value_type
7398
7486
self.required = required
7399
7487
self.default_value = default_value
@@ -7404,6 +7492,7 @@ public enum Components {
7404
7492
public enum CodingKeys: String, CodingKey {
7405
7493
case property_name
7406
7494
case url
7495
+ case source_type
7407
7496
case value_type
7408
7497
case required
7409
7498
case default_value
0 commit comments