Skip to content

Commit 2665444

Browse files
Commit via running: make Sources/enterprise-teams
1 parent 694daf0 commit 2665444

1 file changed

Lines changed: 68 additions & 3 deletions

File tree

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)