Skip to content

Commit aba32f6

Browse files
Merge pull request #195 from wei18/dependabot/submodules/Submodule/github/rest-api-description-ef4e98d
Bump Submodule/github/rest-api-description from `1847198` to `ef4e98d`
2 parents 003f840 + 4644d7e commit aba32f6

21 files changed

Lines changed: 2895 additions & 106 deletions

File tree

Sources/actions/Types.swift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10108,6 +10108,22 @@ public enum Components {
1010810108
///
1010910109
/// - Remark: Generated from `#/components/schemas/team/type`.
1011010110
public var _type: Components.Schemas.Team._TypePayload
10111+
/// How the team's access to the repository was granted. This property is only
10112+
/// present when the team is returned in a repository context, such as
10113+
/// `GET /repos/{owner}/{repo}/teams`.
10114+
///
10115+
/// - Remark: Generated from `#/components/schemas/team/access_source`.
10116+
@frozen public enum AccessSourcePayload: String, Codable, Hashable, Sendable, CaseIterable {
10117+
case direct = "direct"
10118+
case organization = "organization"
10119+
case enterprise = "enterprise"
10120+
}
10121+
/// How the team's access to the repository was granted. This property is only
10122+
/// present when the team is returned in a repository context, such as
10123+
/// `GET /repos/{owner}/{repo}/teams`.
10124+
///
10125+
/// - Remark: Generated from `#/components/schemas/team/access_source`.
10126+
public var accessSource: Components.Schemas.Team.AccessSourcePayload?
1011110127
/// Unique identifier of the organization to which this team belongs
1011210128
///
1011310129
/// - Remark: Generated from `#/components/schemas/team/organization_id`.
@@ -10135,6 +10151,7 @@ public enum Components {
1013510151
/// - membersUrl:
1013610152
/// - repositoriesUrl:
1013710153
/// - _type: The ownership type of the team
10154+
/// - accessSource: How the team's access to the repository was granted. This property is only
1013810155
/// - organizationId: Unique identifier of the organization to which this team belongs
1013910156
/// - enterpriseId: Unique identifier of the enterprise to which this team belongs
1014010157
/// - parent:
@@ -10153,6 +10170,7 @@ public enum Components {
1015310170
membersUrl: Swift.String,
1015410171
repositoriesUrl: Swift.String,
1015510172
_type: Components.Schemas.Team._TypePayload,
10173+
accessSource: Components.Schemas.Team.AccessSourcePayload? = nil,
1015610174
organizationId: Swift.Int? = nil,
1015710175
enterpriseId: Swift.Int? = nil,
1015810176
parent: Components.Schemas.NullableTeamSimple? = nil
@@ -10171,6 +10189,7 @@ public enum Components {
1017110189
self.membersUrl = membersUrl
1017210190
self.repositoriesUrl = repositoriesUrl
1017310191
self._type = _type
10192+
self.accessSource = accessSource
1017410193
self.organizationId = organizationId
1017510194
self.enterpriseId = enterpriseId
1017610195
self.parent = parent
@@ -10190,6 +10209,7 @@ public enum Components {
1019010209
case membersUrl = "members_url"
1019110210
case repositoriesUrl = "repositories_url"
1019210211
case _type = "type"
10212+
case accessSource = "access_source"
1019310213
case organizationId = "organization_id"
1019410214
case enterpriseId = "enterprise_id"
1019510215
case parent

Sources/activity/Types.swift

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3620,6 +3620,25 @@ public enum Components {
36203620
case pinnedBy = "pinned_by"
36213621
}
36223622
}
3623+
/// Details about why an issue comment was minimized.
3624+
///
3625+
/// - Remark: Generated from `#/components/schemas/nullable-issue-comment-minimized`.
3626+
public struct NullableIssueCommentMinimized: Codable, Hashable, Sendable {
3627+
/// The reason the comment was minimized.
3628+
///
3629+
/// - Remark: Generated from `#/components/schemas/nullable-issue-comment-minimized/reason`.
3630+
public var reason: Swift.String?
3631+
/// Creates a new `NullableIssueCommentMinimized`.
3632+
///
3633+
/// - Parameters:
3634+
/// - reason: The reason the comment was minimized.
3635+
public init(reason: Swift.String? = nil) {
3636+
self.reason = reason
3637+
}
3638+
public enum CodingKeys: String, CodingKey {
3639+
case reason
3640+
}
3641+
}
36233642
/// Comments provide a way for people to collaborate on an issue.
36243643
///
36253644
/// - Remark: Generated from `#/components/schemas/nullable-issue-comment`.
@@ -3660,6 +3679,8 @@ public enum Components {
36603679
public var reactions: Components.Schemas.ReactionRollup?
36613680
/// - Remark: Generated from `#/components/schemas/nullable-issue-comment/pin`.
36623681
public var pin: Components.Schemas.NullablePinnedIssueComment?
3682+
/// - Remark: Generated from `#/components/schemas/nullable-issue-comment/minimized`.
3683+
public var minimized: Components.Schemas.NullableIssueCommentMinimized?
36633684
/// Creates a new `NullableIssueComment`.
36643685
///
36653686
/// - Parameters:
@@ -3678,6 +3699,7 @@ public enum Components {
36783699
/// - performedViaGithubApp:
36793700
/// - reactions:
36803701
/// - pin:
3702+
/// - minimized:
36813703
public init(
36823704
id: Swift.Int64,
36833705
nodeId: Swift.String,
@@ -3693,7 +3715,8 @@ public enum Components {
36933715
authorAssociation: Components.Schemas.AuthorAssociation? = nil,
36943716
performedViaGithubApp: Components.Schemas.NullableIntegration? = nil,
36953717
reactions: Components.Schemas.ReactionRollup? = nil,
3696-
pin: Components.Schemas.NullablePinnedIssueComment? = nil
3718+
pin: Components.Schemas.NullablePinnedIssueComment? = nil,
3719+
minimized: Components.Schemas.NullableIssueCommentMinimized? = nil
36973720
) {
36983721
self.id = id
36993722
self.nodeId = nodeId
@@ -3710,6 +3733,7 @@ public enum Components {
37103733
self.performedViaGithubApp = performedViaGithubApp
37113734
self.reactions = reactions
37123735
self.pin = pin
3736+
self.minimized = minimized
37133737
}
37143738
public enum CodingKeys: String, CodingKey {
37153739
case id
@@ -3727,6 +3751,7 @@ public enum Components {
37273751
case performedViaGithubApp = "performed_via_github_app"
37283752
case reactions
37293753
case pin
3754+
case minimized
37303755
}
37313756
}
37323757
/// - Remark: Generated from `#/components/schemas/issue-dependencies-summary`.
@@ -3772,6 +3797,10 @@ public enum Components {
37723797
///
37733798
/// - Remark: Generated from `#/components/schemas/issue-field-value/issue_field_id`.
37743799
public var issueFieldId: Swift.Int64
3800+
/// The human-readable name of the issue field.
3801+
///
3802+
/// - Remark: Generated from `#/components/schemas/issue-field-value/issue_field_name`.
3803+
public var issueFieldName: Swift.String?
37753804
/// - Remark: Generated from `#/components/schemas/issue-field-value/node_id`.
37763805
public var nodeId: Swift.String
37773806
/// The data type of the issue field
@@ -3941,20 +3970,23 @@ public enum Components {
39413970
///
39423971
/// - Parameters:
39433972
/// - issueFieldId: Unique identifier for the issue field.
3973+
/// - issueFieldName: The human-readable name of the issue field.
39443974
/// - nodeId:
39453975
/// - dataType: The data type of the issue field
39463976
/// - value: The value of the issue field
39473977
/// - singleSelectOption: Details about the selected option (only present for single_select fields)
39483978
/// - multiSelectOptions: Details about the selected options
39493979
public init(
39503980
issueFieldId: Swift.Int64,
3981+
issueFieldName: Swift.String? = nil,
39513982
nodeId: Swift.String,
39523983
dataType: Components.Schemas.IssueFieldValue.DataTypePayload,
39533984
value: Components.Schemas.IssueFieldValue.ValuePayload? = nil,
39543985
singleSelectOption: Components.Schemas.IssueFieldValue.SingleSelectOptionPayload? = nil,
39553986
multiSelectOptions: Components.Schemas.IssueFieldValue.MultiSelectOptionsPayload? = nil
39563987
) {
39573988
self.issueFieldId = issueFieldId
3989+
self.issueFieldName = issueFieldName
39583990
self.nodeId = nodeId
39593991
self.dataType = dataType
39603992
self.value = value
@@ -3963,6 +3995,7 @@ public enum Components {
39633995
}
39643996
public enum CodingKeys: String, CodingKey {
39653997
case issueFieldId = "issue_field_id"
3998+
case issueFieldName = "issue_field_name"
39663999
case nodeId = "node_id"
39674000
case dataType = "data_type"
39684001
case value
@@ -4421,6 +4454,8 @@ public enum Components {
44214454
public var reactions: Components.Schemas.ReactionRollup?
44224455
/// - Remark: Generated from `#/components/schemas/issue-comment/pin`.
44234456
public var pin: Components.Schemas.NullablePinnedIssueComment?
4457+
/// - Remark: Generated from `#/components/schemas/issue-comment/minimized`.
4458+
public var minimized: Components.Schemas.NullableIssueCommentMinimized?
44244459
/// Creates a new `IssueComment`.
44254460
///
44264461
/// - Parameters:
@@ -4439,6 +4474,7 @@ public enum Components {
44394474
/// - performedViaGithubApp:
44404475
/// - reactions:
44414476
/// - pin:
4477+
/// - minimized:
44424478
public init(
44434479
id: Swift.Int64,
44444480
nodeId: Swift.String,
@@ -4454,7 +4490,8 @@ public enum Components {
44544490
authorAssociation: Components.Schemas.AuthorAssociation? = nil,
44554491
performedViaGithubApp: Components.Schemas.NullableIntegration? = nil,
44564492
reactions: Components.Schemas.ReactionRollup? = nil,
4457-
pin: Components.Schemas.NullablePinnedIssueComment? = nil
4493+
pin: Components.Schemas.NullablePinnedIssueComment? = nil,
4494+
minimized: Components.Schemas.NullableIssueCommentMinimized? = nil
44584495
) {
44594496
self.id = id
44604497
self.nodeId = nodeId
@@ -4471,6 +4508,7 @@ public enum Components {
44714508
self.performedViaGithubApp = performedViaGithubApp
44724509
self.reactions = reactions
44734510
self.pin = pin
4511+
self.minimized = minimized
44744512
}
44754513
public enum CodingKeys: String, CodingKey {
44764514
case id
@@ -4488,6 +4526,7 @@ public enum Components {
44884526
case performedViaGithubApp = "performed_via_github_app"
44894527
case reactions
44904528
case pin
4529+
case minimized
44914530
}
44924531
}
44934532
/// - Remark: Generated from `#/components/schemas/pull-request-minimal`.

Sources/billing/Types.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,8 @@ public enum Components {
14151415
case organization = "organization"
14161416
case repository = "repository"
14171417
case costCenter = "cost_center"
1418+
case multiUserCustomer = "multi_user_customer"
1419+
case user = "user"
14181420
}
14191421
/// The type of scope for the budget
14201422
///
@@ -1424,6 +1426,14 @@ public enum Components {
14241426
///
14251427
/// - Remark: Generated from `#/components/schemas/update-budget/budget/budget_entity_name`.
14261428
public var budgetEntityName: Swift.String?
1429+
/// The user login when the budget is scoped to a single user (`user` scope).
1430+
///
1431+
/// - Remark: Generated from `#/components/schemas/update-budget/budget/user`.
1432+
public var user: Swift.String?
1433+
/// The consumed amount for the specified user within the budget. Only included for `user`-scoped budgets.
1434+
///
1435+
/// - Remark: Generated from `#/components/schemas/update-budget/budget/consumed_amount`.
1436+
public var consumedAmount: Swift.Double?
14271437
/// The budget amount in whole dollars. For license-based products, this represents the number of licenses.
14281438
///
14291439
/// - Remark: Generated from `#/components/schemas/update-budget/budget/budget_amount`.
@@ -1520,6 +1530,8 @@ public enum Components {
15201530
/// - id: ID of the budget.
15211531
/// - budgetScope: The type of scope for the budget
15221532
/// - budgetEntityName: The name of the entity to apply the budget to
1533+
/// - user: The user login when the budget is scoped to a single user (`user` scope).
1534+
/// - consumedAmount: The consumed amount for the specified user within the budget. Only included for `user`-scoped budgets.
15231535
/// - budgetAmount: The budget amount in whole dollars. For license-based products, this represents the number of licenses.
15241536
/// - preventFurtherUsage: Whether to prevent additional spending once the budget is exceeded
15251537
/// - budgetProductSku: A single product or sku to apply the budget to.
@@ -1529,6 +1541,8 @@ public enum Components {
15291541
id: Swift.String? = nil,
15301542
budgetScope: Components.Schemas.UpdateBudget.BudgetPayload.BudgetScopePayload? = nil,
15311543
budgetEntityName: Swift.String? = nil,
1544+
user: Swift.String? = nil,
1545+
consumedAmount: Swift.Double? = nil,
15321546
budgetAmount: Swift.Int? = nil,
15331547
preventFurtherUsage: Swift.Bool? = nil,
15341548
budgetProductSku: Swift.String? = nil,
@@ -1538,6 +1552,8 @@ public enum Components {
15381552
self.id = id
15391553
self.budgetScope = budgetScope
15401554
self.budgetEntityName = budgetEntityName
1555+
self.user = user
1556+
self.consumedAmount = consumedAmount
15411557
self.budgetAmount = budgetAmount
15421558
self.preventFurtherUsage = preventFurtherUsage
15431559
self.budgetProductSku = budgetProductSku
@@ -1548,6 +1564,8 @@ public enum Components {
15481564
case id
15491565
case budgetScope = "budget_scope"
15501566
case budgetEntityName = "budget_entity_name"
1567+
case user
1568+
case consumedAmount = "consumed_amount"
15511569
case budgetAmount = "budget_amount"
15521570
case preventFurtherUsage = "prevent_further_usage"
15531571
case budgetProductSku = "budget_product_sku"

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)