Skip to content

Commit c7fa46c

Browse files
Merge pull request #184 from wei18/dependabot/submodules/Submodule/github/rest-api-description-88dc3d8
Bump Submodule/github/rest-api-description from `d3a3c2a` to `88dc3d8`
2 parents edceac5 + fe27a06 commit c7fa46c

18 files changed

Lines changed: 19669 additions & 131 deletions

File tree

.spi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ builder:
55
- GitHubRestAPIActions
66
- GitHubRestAPIActivity
77
- GitHubRestAPIAgent_Tasks
8+
- GitHubRestAPIAgents
89
- GitHubRestAPIApps
910
- GitHubRestAPIBilling
1011
- GitHubRestAPICampaigns

Package.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ let package = Package(
1414
.library(name: "GitHubRestAPIActions", targets: ["GitHubRestAPIActions"]),
1515
.library(name: "GitHubRestAPIActivity", targets: ["GitHubRestAPIActivity"]),
1616
.library(name: "GitHubRestAPIAgent_Tasks", targets: ["GitHubRestAPIAgent_Tasks"]),
17+
.library(name: "GitHubRestAPIAgents", targets: ["GitHubRestAPIAgents"]),
1718
.library(name: "GitHubRestAPIApps", targets: ["GitHubRestAPIApps"]),
1819
.library(name: "GitHubRestAPIBilling", targets: ["GitHubRestAPIBilling"]),
1920
.library(name: "GitHubRestAPICampaigns", targets: ["GitHubRestAPICampaigns"]),
@@ -90,6 +91,14 @@ let package = Package(
9091
],
9192
path: "Sources/agent-tasks"
9293
),
94+
.target(
95+
name: "GitHubRestAPIAgents",
96+
dependencies: [
97+
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
98+
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
99+
],
100+
path: "Sources/agents"
101+
),
93102
.target(
94103
name: "GitHubRestAPIApps",
95104
dependencies: [

Sources/actions/Client.swift

Lines changed: 405 additions & 0 deletions
Large diffs are not rendered by default.

Sources/actions/Types.swift

Lines changed: 1340 additions & 93 deletions
Large diffs are not rendered by default.

Sources/agent-tasks/Client.swift

Lines changed: 1045 additions & 0 deletions
Large diffs are not rendered by default.

Sources/agent-tasks/Types.swift

Lines changed: 7108 additions & 2 deletions
Large diffs are not rendered by default.

Sources/agents/Client.swift

Lines changed: 2098 additions & 0 deletions
Large diffs are not rendered by default.

Sources/agents/Types.swift

Lines changed: 7309 additions & 0 deletions
Large diffs are not rendered by default.

Sources/copilot/Types.swift

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1871,6 +1871,17 @@ public enum Components {
18711871
public var createdAt: Foundation.Date
18721872
/// - Remark: Generated from `#/components/schemas/enterprise-team/updated_at`.
18731873
public var updatedAt: Foundation.Date
1874+
/// Whether team members will receive notifications when the team is mentioned.
1875+
///
1876+
/// - Remark: Generated from `#/components/schemas/enterprise-team/notification_setting`.
1877+
@frozen public enum NotificationSettingPayload: String, Codable, Hashable, Sendable, CaseIterable {
1878+
case notificationsEnabled = "notifications_enabled"
1879+
case notificationsDisabled = "notifications_disabled"
1880+
}
1881+
/// Whether team members will receive notifications when the team is mentioned.
1882+
///
1883+
/// - Remark: Generated from `#/components/schemas/enterprise-team/notification_setting`.
1884+
public var notificationSetting: Components.Schemas.EnterpriseTeam.NotificationSettingPayload?
18741885
/// Creates a new `EnterpriseTeam`.
18751886
///
18761887
/// - Parameters:
@@ -1887,6 +1898,7 @@ public enum Components {
18871898
/// - membersUrl:
18881899
/// - createdAt:
18891900
/// - updatedAt:
1901+
/// - notificationSetting: Whether team members will receive notifications when the team is mentioned.
18901902
public init(
18911903
id: Swift.Int64,
18921904
name: Swift.String,
@@ -1900,7 +1912,8 @@ public enum Components {
19001912
htmlUrl: Swift.String,
19011913
membersUrl: Swift.String,
19021914
createdAt: Foundation.Date,
1903-
updatedAt: Foundation.Date
1915+
updatedAt: Foundation.Date,
1916+
notificationSetting: Components.Schemas.EnterpriseTeam.NotificationSettingPayload? = nil
19041917
) {
19051918
self.id = id
19061919
self.name = name
@@ -1915,6 +1928,7 @@ public enum Components {
19151928
self.membersUrl = membersUrl
19161929
self.createdAt = createdAt
19171930
self.updatedAt = updatedAt
1931+
self.notificationSetting = notificationSetting
19181932
}
19191933
public enum CodingKeys: String, CodingKey {
19201934
case id
@@ -1930,6 +1944,7 @@ public enum Components {
19301944
case membersUrl = "members_url"
19311945
case createdAt = "created_at"
19321946
case updatedAt = "updated_at"
1947+
case notificationSetting = "notification_setting"
19331948
}
19341949
}
19351950
/// - Remark: Generated from `#/components/schemas/security-and-analysis`.

Sources/enterprise-teams/Types.swift

Lines changed: 68 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,17 @@ public enum Components {
231231
public var createdAt: Foundation.Date
232232
/// - Remark: Generated from `#/components/schemas/enterprise-team/updated_at`.
233233
public var updatedAt: Foundation.Date
234+
/// Whether team members will receive notifications when the team is mentioned.
235+
///
236+
/// - Remark: Generated from `#/components/schemas/enterprise-team/notification_setting`.
237+
@frozen public enum NotificationSettingPayload: String, Codable, Hashable, Sendable, CaseIterable {
238+
case notificationsEnabled = "notifications_enabled"
239+
case notificationsDisabled = "notifications_disabled"
240+
}
241+
/// Whether team members will receive notifications when the team is mentioned.
242+
///
243+
/// - Remark: Generated from `#/components/schemas/enterprise-team/notification_setting`.
244+
public var notificationSetting: Components.Schemas.EnterpriseTeam.NotificationSettingPayload?
234245
/// Creates a new `EnterpriseTeam`.
235246
///
236247
/// - Parameters:
@@ -247,6 +258,7 @@ public enum Components {
247258
/// - membersUrl:
248259
/// - createdAt:
249260
/// - updatedAt:
261+
/// - notificationSetting: Whether team members will receive notifications when the team is mentioned.
250262
public init(
251263
id: Swift.Int64,
252264
name: Swift.String,
@@ -260,7 +272,8 @@ public enum Components {
260272
htmlUrl: Swift.String,
261273
membersUrl: Swift.String,
262274
createdAt: Foundation.Date,
263-
updatedAt: Foundation.Date
275+
updatedAt: Foundation.Date,
276+
notificationSetting: Components.Schemas.EnterpriseTeam.NotificationSettingPayload? = nil
264277
) {
265278
self.id = id
266279
self.name = name
@@ -275,6 +288,7 @@ public enum Components {
275288
self.membersUrl = membersUrl
276289
self.createdAt = createdAt
277290
self.updatedAt = updatedAt
291+
self.notificationSetting = notificationSetting
278292
}
279293
public enum CodingKeys: String, CodingKey {
280294
case id
@@ -290,6 +304,7 @@ public enum Components {
290304
case membersUrl = "members_url"
291305
case createdAt = "created_at"
292306
case updatedAt = "updated_at"
307+
case notificationSetting = "notification_setting"
293308
}
294309
}
295310
}
@@ -644,6 +659,29 @@ public enum Operations {
644659
///
645660
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/POST/requestBody/json/group_id`.
646661
public var groupId: Swift.String?
662+
/// The notification setting the team is set to. The options are:
663+
///
664+
/// * `notifications_enabled` - team members receive notifications when the team is @mentioned.
665+
/// * `notifications_disabled` - no one receives notifications.
666+
///
667+
/// Default: `notifications_enabled`
668+
///
669+
///
670+
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/POST/requestBody/json/notification_setting`.
671+
@frozen public enum NotificationSettingPayload: String, Codable, Hashable, Sendable, CaseIterable {
672+
case notificationsEnabled = "notifications_enabled"
673+
case notificationsDisabled = "notifications_disabled"
674+
}
675+
/// The notification setting the team is set to. The options are:
676+
///
677+
/// * `notifications_enabled` - team members receive notifications when the team is @mentioned.
678+
/// * `notifications_disabled` - no one receives notifications.
679+
///
680+
/// Default: `notifications_enabled`
681+
///
682+
///
683+
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/POST/requestBody/json/notification_setting`.
684+
public var notificationSetting: Operations.EnterpriseTeamsCreate.Input.Body.JsonPayload.NotificationSettingPayload?
647685
/// Creates a new `JsonPayload`.
648686
///
649687
/// - Parameters:
@@ -652,25 +690,29 @@ public enum Operations {
652690
/// - syncToOrganizations: Retired: this field is no longer supported.
653691
/// - organizationSelectionType: Specifies which organizations in the enterprise should have access to this team. Can be one of `disabled`, `selected`, or `all`.
654692
/// - groupId: The ID of the IdP group to assign team membership with. You can get this value from the [REST API endpoints for SCIM](https://docs.github.com/rest/scim#list-provisioned-scim-groups-for-an-enterprise).
693+
/// - notificationSetting: The notification setting the team is set to. The options are:
655694
public init(
656695
name: Swift.String,
657696
description: Swift.String? = nil,
658697
syncToOrganizations: Operations.EnterpriseTeamsCreate.Input.Body.JsonPayload.SyncToOrganizationsPayload? = nil,
659698
organizationSelectionType: Operations.EnterpriseTeamsCreate.Input.Body.JsonPayload.OrganizationSelectionTypePayload? = nil,
660-
groupId: Swift.String? = nil
699+
groupId: Swift.String? = nil,
700+
notificationSetting: Operations.EnterpriseTeamsCreate.Input.Body.JsonPayload.NotificationSettingPayload? = nil
661701
) {
662702
self.name = name
663703
self.description = description
664704
self.syncToOrganizations = syncToOrganizations
665705
self.organizationSelectionType = organizationSelectionType
666706
self.groupId = groupId
707+
self.notificationSetting = notificationSetting
667708
}
668709
public enum CodingKeys: String, CodingKey {
669710
case name
670711
case description
671712
case syncToOrganizations = "sync_to_organizations"
672713
case organizationSelectionType = "organization_selection_type"
673714
case groupId = "group_id"
715+
case notificationSetting = "notification_setting"
674716
}
675717
}
676718
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/POST/requestBody/content/application\/json`.
@@ -1057,6 +1099,25 @@ public enum Operations {
10571099
///
10581100
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/{team_slug}/PATCH/requestBody/json/group_id`.
10591101
public var groupId: Swift.String?
1102+
/// The notification setting the team is set to. The options are:
1103+
///
1104+
/// * `notifications_enabled` - team members receive notifications when the team is @mentioned.
1105+
/// * `notifications_disabled` - no one receives notifications.
1106+
///
1107+
///
1108+
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/{team_slug}/PATCH/requestBody/json/notification_setting`.
1109+
@frozen public enum NotificationSettingPayload: String, Codable, Hashable, Sendable, CaseIterable {
1110+
case notificationsEnabled = "notifications_enabled"
1111+
case notificationsDisabled = "notifications_disabled"
1112+
}
1113+
/// The notification setting the team is set to. The options are:
1114+
///
1115+
/// * `notifications_enabled` - team members receive notifications when the team is @mentioned.
1116+
/// * `notifications_disabled` - no one receives notifications.
1117+
///
1118+
///
1119+
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/{team_slug}/PATCH/requestBody/json/notification_setting`.
1120+
public var notificationSetting: Operations.EnterpriseTeamsUpdate.Input.Body.JsonPayload.NotificationSettingPayload?
10601121
/// Creates a new `JsonPayload`.
10611122
///
10621123
/// - Parameters:
@@ -1065,25 +1126,29 @@ public enum Operations {
10651126
/// - syncToOrganizations: Retired: this field is no longer supported.
10661127
/// - organizationSelectionType: Specifies which organizations in the enterprise should have access to this team. Can be one of `disabled`, `selected`, or `all`.
10671128
/// - groupId: The ID of the IdP group to assign team membership with. The new IdP group will replace the existing one, or replace existing direct members if the team isn't currently linked to an IdP group.
1129+
/// - notificationSetting: The notification setting the team is set to. The options are:
10681130
public init(
10691131
name: Swift.String? = nil,
10701132
description: Swift.String? = nil,
10711133
syncToOrganizations: Operations.EnterpriseTeamsUpdate.Input.Body.JsonPayload.SyncToOrganizationsPayload? = nil,
10721134
organizationSelectionType: Operations.EnterpriseTeamsUpdate.Input.Body.JsonPayload.OrganizationSelectionTypePayload? = nil,
1073-
groupId: Swift.String? = nil
1135+
groupId: Swift.String? = nil,
1136+
notificationSetting: Operations.EnterpriseTeamsUpdate.Input.Body.JsonPayload.NotificationSettingPayload? = nil
10741137
) {
10751138
self.name = name
10761139
self.description = description
10771140
self.syncToOrganizations = syncToOrganizations
10781141
self.organizationSelectionType = organizationSelectionType
10791142
self.groupId = groupId
1143+
self.notificationSetting = notificationSetting
10801144
}
10811145
public enum CodingKeys: String, CodingKey {
10821146
case name
10831147
case description
10841148
case syncToOrganizations = "sync_to_organizations"
10851149
case organizationSelectionType = "organization_selection_type"
10861150
case groupId = "group_id"
1151+
case notificationSetting = "notification_setting"
10871152
}
10881153
}
10891154
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/{team_slug}/PATCH/requestBody/content/application\/json`.

0 commit comments

Comments
 (0)