Skip to content

Commit 313c933

Browse files
Merge pull request #145 from wei18/dependabot/submodules/Submodule/github/rest-api-description-44dd20c
Bump Submodule/github/rest-api-description from `b27d92b` to `44dd20c`
2 parents 86f04a4 + 5263bbe commit 313c933

File tree

31 files changed

+5957
-1465
lines changed

31 files changed

+5957
-1465
lines changed

.spi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ builder:
1919
- GitHubRestAPIDependency_Graph
2020
- GitHubRestAPIDesktop
2121
- GitHubRestAPIEmojis
22+
- GitHubRestAPIEnterprise_Team_Memberships
2223
- GitHubRestAPIEnterprise_Teams
2324
- GitHubRestAPIGists
2425
- GitHubRestAPIGit

Package.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ let package = Package(
2828
.library(name: "GitHubRestAPIDependency_Graph", targets: ["GitHubRestAPIDependency_Graph"]),
2929
.library(name: "GitHubRestAPIDesktop", targets: ["GitHubRestAPIDesktop"]),
3030
.library(name: "GitHubRestAPIEmojis", targets: ["GitHubRestAPIEmojis"]),
31+
.library(name: "GitHubRestAPIEnterprise_Team_Memberships", targets: ["GitHubRestAPIEnterprise_Team_Memberships"]),
3132
.library(name: "GitHubRestAPIEnterprise_Teams", targets: ["GitHubRestAPIEnterprise_Teams"]),
3233
.library(name: "GitHubRestAPIGists", targets: ["GitHubRestAPIGists"]),
3334
.library(name: "GitHubRestAPIGit", targets: ["GitHubRestAPIGit"]),
@@ -197,6 +198,14 @@ let package = Package(
197198
],
198199
path: "Sources/emojis"
199200
),
201+
.target(
202+
name: "GitHubRestAPIEnterprise_Team_Memberships",
203+
dependencies: [
204+
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
205+
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
206+
],
207+
path: "Sources/enterprise-team-memberships"
208+
),
200209
.target(
201210
name: "GitHubRestAPIEnterprise_Teams",
202211
dependencies: [

Sources/actions/Types.swift

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8743,6 +8743,25 @@ public enum Components {
87438743
///
87448744
/// - Remark: Generated from `#/components/schemas/nullable-team-simple/ldap_dn`.
87458745
public var ldapDn: Swift.String?
8746+
/// The ownership type of the team
8747+
///
8748+
/// - Remark: Generated from `#/components/schemas/nullable-team-simple/type`.
8749+
@frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
8750+
case enterprise = "enterprise"
8751+
case organization = "organization"
8752+
}
8753+
/// The ownership type of the team
8754+
///
8755+
/// - Remark: Generated from `#/components/schemas/nullable-team-simple/type`.
8756+
public var _type: Components.Schemas.NullableTeamSimple._TypePayload
8757+
/// Unique identifier of the organization to which this team belongs
8758+
///
8759+
/// - Remark: Generated from `#/components/schemas/nullable-team-simple/organization_id`.
8760+
public var organizationId: Swift.Int?
8761+
/// Unique identifier of the enterprise to which this team belongs
8762+
///
8763+
/// - Remark: Generated from `#/components/schemas/nullable-team-simple/enterprise_id`.
8764+
public var enterpriseId: Swift.Int?
87468765
/// Creates a new `NullableTeamSimple`.
87478766
///
87488767
/// - Parameters:
@@ -8759,6 +8778,9 @@ public enum Components {
87598778
/// - repositoriesUrl:
87608779
/// - slug:
87618780
/// - ldapDn: Distinguished Name (DN) that team maps to within LDAP environment
8781+
/// - _type: The ownership type of the team
8782+
/// - organizationId: Unique identifier of the organization to which this team belongs
8783+
/// - enterpriseId: Unique identifier of the enterprise to which this team belongs
87628784
public init(
87638785
id: Swift.Int,
87648786
nodeId: Swift.String,
@@ -8772,7 +8794,10 @@ public enum Components {
87728794
htmlUrl: Swift.String,
87738795
repositoriesUrl: Swift.String,
87748796
slug: Swift.String,
8775-
ldapDn: Swift.String? = nil
8797+
ldapDn: Swift.String? = nil,
8798+
_type: Components.Schemas.NullableTeamSimple._TypePayload,
8799+
organizationId: Swift.Int? = nil,
8800+
enterpriseId: Swift.Int? = nil
87768801
) {
87778802
self.id = id
87788803
self.nodeId = nodeId
@@ -8787,6 +8812,9 @@ public enum Components {
87878812
self.repositoriesUrl = repositoriesUrl
87888813
self.slug = slug
87898814
self.ldapDn = ldapDn
8815+
self._type = _type
8816+
self.organizationId = organizationId
8817+
self.enterpriseId = enterpriseId
87908818
}
87918819
public enum CodingKeys: String, CodingKey {
87928820
case id
@@ -8802,6 +8830,9 @@ public enum Components {
88028830
case repositoriesUrl = "repositories_url"
88038831
case slug
88048832
case ldapDn = "ldap_dn"
8833+
case _type = "type"
8834+
case organizationId = "organization_id"
8835+
case enterpriseId = "enterprise_id"
88058836
}
88068837
}
88078838
/// Groups of organization members that gives permissions on specified repositories.
@@ -8875,6 +8906,25 @@ public enum Components {
88758906
public var membersUrl: Swift.String
88768907
/// - Remark: Generated from `#/components/schemas/team/repositories_url`.
88778908
public var repositoriesUrl: Swift.String
8909+
/// The ownership type of the team
8910+
///
8911+
/// - Remark: Generated from `#/components/schemas/team/type`.
8912+
@frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
8913+
case enterprise = "enterprise"
8914+
case organization = "organization"
8915+
}
8916+
/// The ownership type of the team
8917+
///
8918+
/// - Remark: Generated from `#/components/schemas/team/type`.
8919+
public var _type: Components.Schemas.Team._TypePayload
8920+
/// Unique identifier of the organization to which this team belongs
8921+
///
8922+
/// - Remark: Generated from `#/components/schemas/team/organization_id`.
8923+
public var organizationId: Swift.Int?
8924+
/// Unique identifier of the enterprise to which this team belongs
8925+
///
8926+
/// - Remark: Generated from `#/components/schemas/team/enterprise_id`.
8927+
public var enterpriseId: Swift.Int?
88788928
/// - Remark: Generated from `#/components/schemas/team/parent`.
88798929
public var parent: Components.Schemas.NullableTeamSimple?
88808930
/// Creates a new `Team`.
@@ -8893,6 +8943,9 @@ public enum Components {
88938943
/// - htmlUrl:
88948944
/// - membersUrl:
88958945
/// - repositoriesUrl:
8946+
/// - _type: The ownership type of the team
8947+
/// - organizationId: Unique identifier of the organization to which this team belongs
8948+
/// - enterpriseId: Unique identifier of the enterprise to which this team belongs
88968949
/// - parent:
88978950
public init(
88988951
id: Swift.Int,
@@ -8908,6 +8961,9 @@ public enum Components {
89088961
htmlUrl: Swift.String,
89098962
membersUrl: Swift.String,
89108963
repositoriesUrl: Swift.String,
8964+
_type: Components.Schemas.Team._TypePayload,
8965+
organizationId: Swift.Int? = nil,
8966+
enterpriseId: Swift.Int? = nil,
89118967
parent: Components.Schemas.NullableTeamSimple? = nil
89128968
) {
89138969
self.id = id
@@ -8923,6 +8979,9 @@ public enum Components {
89238979
self.htmlUrl = htmlUrl
89248980
self.membersUrl = membersUrl
89258981
self.repositoriesUrl = repositoriesUrl
8982+
self._type = _type
8983+
self.organizationId = organizationId
8984+
self.enterpriseId = enterpriseId
89268985
self.parent = parent
89278986
}
89288987
public enum CodingKeys: String, CodingKey {
@@ -8939,6 +8998,9 @@ public enum Components {
89398998
case htmlUrl = "html_url"
89408999
case membersUrl = "members_url"
89419000
case repositoriesUrl = "repositories_url"
9001+
case _type = "type"
9002+
case organizationId = "organization_id"
9003+
case enterpriseId = "enterprise_id"
89429004
case parent
89439005
}
89449006
}

Sources/activity/Types.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5066,6 +5066,10 @@ public enum Components {
50665066
///
50675067
/// - Remark: Generated from `#/components/parameters/since`.
50685068
public typealias Since = Foundation.Date
5069+
/// The handle for the GitHub user account.
5070+
///
5071+
/// - Remark: Generated from `#/components/parameters/username`.
5072+
public typealias Username = Swift.String
50695073
/// The account owner of the repository. The name is not case sensitive.
50705074
///
50715075
/// - Remark: Generated from `#/components/parameters/owner`.
@@ -5094,10 +5098,6 @@ public enum Components {
50945098
///
50955099
/// - Remark: Generated from `#/components/parameters/org`.
50965100
public typealias Org = Swift.String
5097-
/// The handle for the GitHub user account.
5098-
///
5099-
/// - Remark: Generated from `#/components/parameters/username`.
5100-
public typealias Username = Swift.String
51015101
/// The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed to.
51025102
///
51035103
/// - Remark: Generated from `#/components/parameters/sort-starred`.

Sources/apps/Types.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4790,6 +4790,10 @@ public enum Components {
47904790
public typealias ClientId = Swift.String
47914791
/// - Remark: Generated from `#/components/parameters/app-slug`.
47924792
public typealias AppSlug = Swift.String
4793+
/// The handle for the GitHub user account.
4794+
///
4795+
/// - Remark: Generated from `#/components/parameters/username`.
4796+
public typealias Username = Swift.String
47934797
/// account_id parameter
47944798
///
47954799
/// - Remark: Generated from `#/components/parameters/account-id`.
@@ -4821,10 +4825,6 @@ public enum Components {
48214825
///
48224826
/// - Remark: Generated from `#/components/parameters/repository-id`.
48234827
public typealias RepositoryId = Swift.Int
4824-
/// The handle for the GitHub user account.
4825-
///
4826-
/// - Remark: Generated from `#/components/parameters/username`.
4827-
public typealias Username = Swift.String
48284828
}
48294829
/// Types generated from the `#/components/requestBodies` section of the OpenAPI document.
48304830
public enum RequestBodies {}

Sources/billing/Types.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,10 @@ public enum Components {
831831
}
832832
/// Types generated from the `#/components/parameters` section of the OpenAPI document.
833833
public enum Parameters {
834+
/// The handle for the GitHub user account.
835+
///
836+
/// - Remark: Generated from `#/components/parameters/username`.
837+
public typealias Username = Swift.String
834838
/// The organization name. The name is not case sensitive.
835839
///
836840
/// - Remark: Generated from `#/components/parameters/org`.
@@ -851,10 +855,6 @@ public enum Components {
851855
///
852856
/// - Remark: Generated from `#/components/parameters/billing-usage-report-hour`.
853857
public typealias BillingUsageReportHour = Swift.Int
854-
/// The handle for the GitHub user account.
855-
///
856-
/// - Remark: Generated from `#/components/parameters/username`.
857-
public typealias Username = Swift.String
858858
}
859859
/// Types generated from the `#/components/requestBodies` section of the OpenAPI document.
860860
public enum RequestBodies {}

Sources/campaigns/Types.swift

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,25 @@ public enum Components {
437437
///
438438
/// - Remark: Generated from `#/components/schemas/nullable-team-simple/ldap_dn`.
439439
public var ldapDn: Swift.String?
440+
/// The ownership type of the team
441+
///
442+
/// - Remark: Generated from `#/components/schemas/nullable-team-simple/type`.
443+
@frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
444+
case enterprise = "enterprise"
445+
case organization = "organization"
446+
}
447+
/// The ownership type of the team
448+
///
449+
/// - Remark: Generated from `#/components/schemas/nullable-team-simple/type`.
450+
public var _type: Components.Schemas.NullableTeamSimple._TypePayload
451+
/// Unique identifier of the organization to which this team belongs
452+
///
453+
/// - Remark: Generated from `#/components/schemas/nullable-team-simple/organization_id`.
454+
public var organizationId: Swift.Int?
455+
/// Unique identifier of the enterprise to which this team belongs
456+
///
457+
/// - Remark: Generated from `#/components/schemas/nullable-team-simple/enterprise_id`.
458+
public var enterpriseId: Swift.Int?
440459
/// Creates a new `NullableTeamSimple`.
441460
///
442461
/// - Parameters:
@@ -453,6 +472,9 @@ public enum Components {
453472
/// - repositoriesUrl:
454473
/// - slug:
455474
/// - ldapDn: Distinguished Name (DN) that team maps to within LDAP environment
475+
/// - _type: The ownership type of the team
476+
/// - organizationId: Unique identifier of the organization to which this team belongs
477+
/// - enterpriseId: Unique identifier of the enterprise to which this team belongs
456478
public init(
457479
id: Swift.Int,
458480
nodeId: Swift.String,
@@ -466,7 +488,10 @@ public enum Components {
466488
htmlUrl: Swift.String,
467489
repositoriesUrl: Swift.String,
468490
slug: Swift.String,
469-
ldapDn: Swift.String? = nil
491+
ldapDn: Swift.String? = nil,
492+
_type: Components.Schemas.NullableTeamSimple._TypePayload,
493+
organizationId: Swift.Int? = nil,
494+
enterpriseId: Swift.Int? = nil
470495
) {
471496
self.id = id
472497
self.nodeId = nodeId
@@ -481,6 +506,9 @@ public enum Components {
481506
self.repositoriesUrl = repositoriesUrl
482507
self.slug = slug
483508
self.ldapDn = ldapDn
509+
self._type = _type
510+
self.organizationId = organizationId
511+
self.enterpriseId = enterpriseId
484512
}
485513
public enum CodingKeys: String, CodingKey {
486514
case id
@@ -496,6 +524,9 @@ public enum Components {
496524
case repositoriesUrl = "repositories_url"
497525
case slug
498526
case ldapDn = "ldap_dn"
527+
case _type = "type"
528+
case organizationId = "organization_id"
529+
case enterpriseId = "enterprise_id"
499530
}
500531
}
501532
/// Groups of organization members that gives permissions on specified repositories.
@@ -569,6 +600,25 @@ public enum Components {
569600
public var membersUrl: Swift.String
570601
/// - Remark: Generated from `#/components/schemas/team/repositories_url`.
571602
public var repositoriesUrl: Swift.String
603+
/// The ownership type of the team
604+
///
605+
/// - Remark: Generated from `#/components/schemas/team/type`.
606+
@frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
607+
case enterprise = "enterprise"
608+
case organization = "organization"
609+
}
610+
/// The ownership type of the team
611+
///
612+
/// - Remark: Generated from `#/components/schemas/team/type`.
613+
public var _type: Components.Schemas.Team._TypePayload
614+
/// Unique identifier of the organization to which this team belongs
615+
///
616+
/// - Remark: Generated from `#/components/schemas/team/organization_id`.
617+
public var organizationId: Swift.Int?
618+
/// Unique identifier of the enterprise to which this team belongs
619+
///
620+
/// - Remark: Generated from `#/components/schemas/team/enterprise_id`.
621+
public var enterpriseId: Swift.Int?
572622
/// - Remark: Generated from `#/components/schemas/team/parent`.
573623
public var parent: Components.Schemas.NullableTeamSimple?
574624
/// Creates a new `Team`.
@@ -587,6 +637,9 @@ public enum Components {
587637
/// - htmlUrl:
588638
/// - membersUrl:
589639
/// - repositoriesUrl:
640+
/// - _type: The ownership type of the team
641+
/// - organizationId: Unique identifier of the organization to which this team belongs
642+
/// - enterpriseId: Unique identifier of the enterprise to which this team belongs
590643
/// - parent:
591644
public init(
592645
id: Swift.Int,
@@ -602,6 +655,9 @@ public enum Components {
602655
htmlUrl: Swift.String,
603656
membersUrl: Swift.String,
604657
repositoriesUrl: Swift.String,
658+
_type: Components.Schemas.Team._TypePayload,
659+
organizationId: Swift.Int? = nil,
660+
enterpriseId: Swift.Int? = nil,
605661
parent: Components.Schemas.NullableTeamSimple? = nil
606662
) {
607663
self.id = id
@@ -617,6 +673,9 @@ public enum Components {
617673
self.htmlUrl = htmlUrl
618674
self.membersUrl = membersUrl
619675
self.repositoriesUrl = repositoriesUrl
676+
self._type = _type
677+
self.organizationId = organizationId
678+
self.enterpriseId = enterpriseId
620679
self.parent = parent
621680
}
622681
public enum CodingKeys: String, CodingKey {
@@ -633,6 +692,9 @@ public enum Components {
633692
case htmlUrl = "html_url"
634693
case membersUrl = "members_url"
635694
case repositoriesUrl = "repositories_url"
695+
case _type = "type"
696+
case organizationId = "organization_id"
697+
case enterpriseId = "enterprise_id"
636698
case parent
637699
}
638700
}

Sources/codespaces/Types.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6406,6 +6406,10 @@ public enum Components {
64066406
///
64076407
/// - Remark: Generated from `#/components/parameters/page`.
64086408
public typealias Page = Swift.Int
6409+
/// The handle for the GitHub user account.
6410+
///
6411+
/// - Remark: Generated from `#/components/parameters/username`.
6412+
public typealias Username = Swift.String
64096413
/// The account owner of the repository. The name is not case sensitive.
64106414
///
64116415
/// - Remark: Generated from `#/components/parameters/owner`.
@@ -6422,10 +6426,6 @@ public enum Components {
64226426
///
64236427
/// - Remark: Generated from `#/components/parameters/secret-name`.
64246428
public typealias SecretName = Swift.String
6425-
/// The handle for the GitHub user account.
6426-
///
6427-
/// - Remark: Generated from `#/components/parameters/username`.
6428-
public typealias Username = Swift.String
64296429
/// The name of the codespace.
64306430
///
64316431
/// - Remark: Generated from `#/components/parameters/codespace-name`.

0 commit comments

Comments
 (0)