Skip to content

Commit 192ab49

Browse files
Commit via running: make Sources/campaigns
1 parent daae88a commit 192ab49

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Sources/campaigns/Types.swift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,22 @@ public enum Components {
611611
///
612612
/// - Remark: Generated from `#/components/schemas/team/type`.
613613
public var _type: Components.Schemas.Team._TypePayload
614+
/// How the team's access to the repository was granted. This property is only
615+
/// present when the team is returned in a repository context, such as
616+
/// `GET /repos/{owner}/{repo}/teams`.
617+
///
618+
/// - Remark: Generated from `#/components/schemas/team/access_source`.
619+
@frozen public enum AccessSourcePayload: String, Codable, Hashable, Sendable, CaseIterable {
620+
case direct = "direct"
621+
case organization = "organization"
622+
case enterprise = "enterprise"
623+
}
624+
/// How the team's access to the repository was granted. This property is only
625+
/// present when the team is returned in a repository context, such as
626+
/// `GET /repos/{owner}/{repo}/teams`.
627+
///
628+
/// - Remark: Generated from `#/components/schemas/team/access_source`.
629+
public var accessSource: Components.Schemas.Team.AccessSourcePayload?
614630
/// Unique identifier of the organization to which this team belongs
615631
///
616632
/// - Remark: Generated from `#/components/schemas/team/organization_id`.
@@ -638,6 +654,7 @@ public enum Components {
638654
/// - membersUrl:
639655
/// - repositoriesUrl:
640656
/// - _type: The ownership type of the team
657+
/// - accessSource: How the team's access to the repository was granted. This property is only
641658
/// - organizationId: Unique identifier of the organization to which this team belongs
642659
/// - enterpriseId: Unique identifier of the enterprise to which this team belongs
643660
/// - parent:
@@ -656,6 +673,7 @@ public enum Components {
656673
membersUrl: Swift.String,
657674
repositoriesUrl: Swift.String,
658675
_type: Components.Schemas.Team._TypePayload,
676+
accessSource: Components.Schemas.Team.AccessSourcePayload? = nil,
659677
organizationId: Swift.Int? = nil,
660678
enterpriseId: Swift.Int? = nil,
661679
parent: Components.Schemas.NullableTeamSimple? = nil
@@ -674,6 +692,7 @@ public enum Components {
674692
self.membersUrl = membersUrl
675693
self.repositoriesUrl = repositoriesUrl
676694
self._type = _type
695+
self.accessSource = accessSource
677696
self.organizationId = organizationId
678697
self.enterpriseId = enterpriseId
679698
self.parent = parent
@@ -693,6 +712,7 @@ public enum Components {
693712
case membersUrl = "members_url"
694713
case repositoriesUrl = "repositories_url"
695714
case _type = "type"
715+
case accessSource = "access_source"
696716
case organizationId = "organization_id"
697717
case enterpriseId = "enterprise_id"
698718
case parent

0 commit comments

Comments
 (0)