Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .spi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ builder:
- GitHubRestAPIActions
- GitHubRestAPIActivity
- GitHubRestAPIAgent_Tasks
- GitHubRestAPIAgents
- GitHubRestAPIApps
- GitHubRestAPIBilling
- GitHubRestAPICampaigns
Expand Down
9 changes: 9 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ let package = Package(
.library(name: "GitHubRestAPIActions", targets: ["GitHubRestAPIActions"]),
.library(name: "GitHubRestAPIActivity", targets: ["GitHubRestAPIActivity"]),
.library(name: "GitHubRestAPIAgent_Tasks", targets: ["GitHubRestAPIAgent_Tasks"]),
.library(name: "GitHubRestAPIAgents", targets: ["GitHubRestAPIAgents"]),
.library(name: "GitHubRestAPIApps", targets: ["GitHubRestAPIApps"]),
.library(name: "GitHubRestAPIBilling", targets: ["GitHubRestAPIBilling"]),
.library(name: "GitHubRestAPICampaigns", targets: ["GitHubRestAPICampaigns"]),
Expand Down Expand Up @@ -90,6 +91,14 @@ let package = Package(
],
path: "Sources/agent-tasks"
),
.target(
name: "GitHubRestAPIAgents",
dependencies: [
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
],
path: "Sources/agents"
),
.target(
name: "GitHubRestAPIApps",
dependencies: [
Expand Down
405 changes: 405 additions & 0 deletions Sources/actions/Client.swift

Large diffs are not rendered by default.

1,433 changes: 1,340 additions & 93 deletions Sources/actions/Types.swift

Large diffs are not rendered by default.

1,045 changes: 1,045 additions & 0 deletions Sources/agent-tasks/Client.swift

Large diffs are not rendered by default.

7,110 changes: 7,108 additions & 2 deletions Sources/agent-tasks/Types.swift

Large diffs are not rendered by default.

2,098 changes: 2,098 additions & 0 deletions Sources/agents/Client.swift

Large diffs are not rendered by default.

7,309 changes: 7,309 additions & 0 deletions Sources/agents/Types.swift

Large diffs are not rendered by default.

17 changes: 16 additions & 1 deletion Sources/copilot/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1871,6 +1871,17 @@ public enum Components {
public var createdAt: Foundation.Date
/// - Remark: Generated from `#/components/schemas/enterprise-team/updated_at`.
public var updatedAt: Foundation.Date
/// Whether team members will receive notifications when the team is mentioned.
///
/// - Remark: Generated from `#/components/schemas/enterprise-team/notification_setting`.
@frozen public enum NotificationSettingPayload: String, Codable, Hashable, Sendable, CaseIterable {
case notificationsEnabled = "notifications_enabled"
case notificationsDisabled = "notifications_disabled"
}
/// Whether team members will receive notifications when the team is mentioned.
///
/// - Remark: Generated from `#/components/schemas/enterprise-team/notification_setting`.
public var notificationSetting: Components.Schemas.EnterpriseTeam.NotificationSettingPayload?
/// Creates a new `EnterpriseTeam`.
///
/// - Parameters:
Expand All @@ -1887,6 +1898,7 @@ public enum Components {
/// - membersUrl:
/// - createdAt:
/// - updatedAt:
/// - notificationSetting: Whether team members will receive notifications when the team is mentioned.
public init(
id: Swift.Int64,
name: Swift.String,
Expand All @@ -1900,7 +1912,8 @@ public enum Components {
htmlUrl: Swift.String,
membersUrl: Swift.String,
createdAt: Foundation.Date,
updatedAt: Foundation.Date
updatedAt: Foundation.Date,
notificationSetting: Components.Schemas.EnterpriseTeam.NotificationSettingPayload? = nil
) {
self.id = id
self.name = name
Expand All @@ -1915,6 +1928,7 @@ public enum Components {
self.membersUrl = membersUrl
self.createdAt = createdAt
self.updatedAt = updatedAt
self.notificationSetting = notificationSetting
}
public enum CodingKeys: String, CodingKey {
case id
Expand All @@ -1930,6 +1944,7 @@ public enum Components {
case membersUrl = "members_url"
case createdAt = "created_at"
case updatedAt = "updated_at"
case notificationSetting = "notification_setting"
}
}
/// - Remark: Generated from `#/components/schemas/security-and-analysis`.
Expand Down
71 changes: 68 additions & 3 deletions Sources/enterprise-teams/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,17 @@ public enum Components {
public var createdAt: Foundation.Date
/// - Remark: Generated from `#/components/schemas/enterprise-team/updated_at`.
public var updatedAt: Foundation.Date
/// Whether team members will receive notifications when the team is mentioned.
///
/// - Remark: Generated from `#/components/schemas/enterprise-team/notification_setting`.
@frozen public enum NotificationSettingPayload: String, Codable, Hashable, Sendable, CaseIterable {
case notificationsEnabled = "notifications_enabled"
case notificationsDisabled = "notifications_disabled"
}
/// Whether team members will receive notifications when the team is mentioned.
///
/// - Remark: Generated from `#/components/schemas/enterprise-team/notification_setting`.
public var notificationSetting: Components.Schemas.EnterpriseTeam.NotificationSettingPayload?
/// Creates a new `EnterpriseTeam`.
///
/// - Parameters:
Expand All @@ -247,6 +258,7 @@ public enum Components {
/// - membersUrl:
/// - createdAt:
/// - updatedAt:
/// - notificationSetting: Whether team members will receive notifications when the team is mentioned.
public init(
id: Swift.Int64,
name: Swift.String,
Expand All @@ -260,7 +272,8 @@ public enum Components {
htmlUrl: Swift.String,
membersUrl: Swift.String,
createdAt: Foundation.Date,
updatedAt: Foundation.Date
updatedAt: Foundation.Date,
notificationSetting: Components.Schemas.EnterpriseTeam.NotificationSettingPayload? = nil
) {
self.id = id
self.name = name
Expand All @@ -275,6 +288,7 @@ public enum Components {
self.membersUrl = membersUrl
self.createdAt = createdAt
self.updatedAt = updatedAt
self.notificationSetting = notificationSetting
}
public enum CodingKeys: String, CodingKey {
case id
Expand All @@ -290,6 +304,7 @@ public enum Components {
case membersUrl = "members_url"
case createdAt = "created_at"
case updatedAt = "updated_at"
case notificationSetting = "notification_setting"
}
}
}
Expand Down Expand Up @@ -644,6 +659,29 @@ public enum Operations {
///
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/POST/requestBody/json/group_id`.
public var groupId: Swift.String?
/// The notification setting the team is set to. The options are:
///
/// * `notifications_enabled` - team members receive notifications when the team is @mentioned.
/// * `notifications_disabled` - no one receives notifications.
///
/// Default: `notifications_enabled`
///
///
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/POST/requestBody/json/notification_setting`.
@frozen public enum NotificationSettingPayload: String, Codable, Hashable, Sendable, CaseIterable {
case notificationsEnabled = "notifications_enabled"
case notificationsDisabled = "notifications_disabled"
}
/// The notification setting the team is set to. The options are:
///
/// * `notifications_enabled` - team members receive notifications when the team is @mentioned.
/// * `notifications_disabled` - no one receives notifications.
///
/// Default: `notifications_enabled`
///
///
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/POST/requestBody/json/notification_setting`.
public var notificationSetting: Operations.EnterpriseTeamsCreate.Input.Body.JsonPayload.NotificationSettingPayload?
/// Creates a new `JsonPayload`.
///
/// - Parameters:
Expand All @@ -652,25 +690,29 @@ public enum Operations {
/// - syncToOrganizations: Retired: this field is no longer supported.
/// - organizationSelectionType: Specifies which organizations in the enterprise should have access to this team. Can be one of `disabled`, `selected`, or `all`.
/// - 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).
/// - notificationSetting: The notification setting the team is set to. The options are:
public init(
name: Swift.String,
description: Swift.String? = nil,
syncToOrganizations: Operations.EnterpriseTeamsCreate.Input.Body.JsonPayload.SyncToOrganizationsPayload? = nil,
organizationSelectionType: Operations.EnterpriseTeamsCreate.Input.Body.JsonPayload.OrganizationSelectionTypePayload? = nil,
groupId: Swift.String? = nil
groupId: Swift.String? = nil,
notificationSetting: Operations.EnterpriseTeamsCreate.Input.Body.JsonPayload.NotificationSettingPayload? = nil
) {
self.name = name
self.description = description
self.syncToOrganizations = syncToOrganizations
self.organizationSelectionType = organizationSelectionType
self.groupId = groupId
self.notificationSetting = notificationSetting
}
public enum CodingKeys: String, CodingKey {
case name
case description
case syncToOrganizations = "sync_to_organizations"
case organizationSelectionType = "organization_selection_type"
case groupId = "group_id"
case notificationSetting = "notification_setting"
}
}
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/POST/requestBody/content/application\/json`.
Expand Down Expand Up @@ -1057,6 +1099,25 @@ public enum Operations {
///
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/{team_slug}/PATCH/requestBody/json/group_id`.
public var groupId: Swift.String?
/// The notification setting the team is set to. The options are:
///
/// * `notifications_enabled` - team members receive notifications when the team is @mentioned.
/// * `notifications_disabled` - no one receives notifications.
///
///
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/{team_slug}/PATCH/requestBody/json/notification_setting`.
@frozen public enum NotificationSettingPayload: String, Codable, Hashable, Sendable, CaseIterable {
case notificationsEnabled = "notifications_enabled"
case notificationsDisabled = "notifications_disabled"
}
/// The notification setting the team is set to. The options are:
///
/// * `notifications_enabled` - team members receive notifications when the team is @mentioned.
/// * `notifications_disabled` - no one receives notifications.
///
///
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/{team_slug}/PATCH/requestBody/json/notification_setting`.
public var notificationSetting: Operations.EnterpriseTeamsUpdate.Input.Body.JsonPayload.NotificationSettingPayload?
/// Creates a new `JsonPayload`.
///
/// - Parameters:
Expand All @@ -1065,25 +1126,29 @@ public enum Operations {
/// - syncToOrganizations: Retired: this field is no longer supported.
/// - organizationSelectionType: Specifies which organizations in the enterprise should have access to this team. Can be one of `disabled`, `selected`, or `all`.
/// - 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.
/// - notificationSetting: The notification setting the team is set to. The options are:
public init(
name: Swift.String? = nil,
description: Swift.String? = nil,
syncToOrganizations: Operations.EnterpriseTeamsUpdate.Input.Body.JsonPayload.SyncToOrganizationsPayload? = nil,
organizationSelectionType: Operations.EnterpriseTeamsUpdate.Input.Body.JsonPayload.OrganizationSelectionTypePayload? = nil,
groupId: Swift.String? = nil
groupId: Swift.String? = nil,
notificationSetting: Operations.EnterpriseTeamsUpdate.Input.Body.JsonPayload.NotificationSettingPayload? = nil
) {
self.name = name
self.description = description
self.syncToOrganizations = syncToOrganizations
self.organizationSelectionType = organizationSelectionType
self.groupId = groupId
self.notificationSetting = notificationSetting
}
public enum CodingKeys: String, CodingKey {
case name
case description
case syncToOrganizations = "sync_to_organizations"
case organizationSelectionType = "organization_selection_type"
case groupId = "group_id"
case notificationSetting = "notification_setting"
}
}
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/{team_slug}/PATCH/requestBody/content/application\/json`.
Expand Down
Loading