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 @@ -16,6 +16,7 @@ builder:
- GitHubRestAPICodes_Of_Conduct
- GitHubRestAPICodespaces
- GitHubRestAPICopilot
- GitHubRestAPICopilot_Spaces
- GitHubRestAPICredentials
- GitHubRestAPIDependabot
- GitHubRestAPIDependency_Graph
Expand Down
9 changes: 9 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ let package = Package(
.library(name: "GitHubRestAPICodes_Of_Conduct", targets: ["GitHubRestAPICodes_Of_Conduct"]),
.library(name: "GitHubRestAPICodespaces", targets: ["GitHubRestAPICodespaces"]),
.library(name: "GitHubRestAPICopilot", targets: ["GitHubRestAPICopilot"]),
.library(name: "GitHubRestAPICopilot_Spaces", targets: ["GitHubRestAPICopilot_Spaces"]),
.library(name: "GitHubRestAPICredentials", targets: ["GitHubRestAPICredentials"]),
.library(name: "GitHubRestAPIDependabot", targets: ["GitHubRestAPIDependabot"]),
.library(name: "GitHubRestAPIDependency_Graph", targets: ["GitHubRestAPIDependency_Graph"]),
Expand Down Expand Up @@ -177,6 +178,14 @@ let package = Package(
],
path: "Sources/copilot"
),
.target(
name: "GitHubRestAPICopilot_Spaces",
dependencies: [
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
],
path: "Sources/copilot-spaces"
),
.target(
name: "GitHubRestAPICredentials",
dependencies: [
Expand Down
6 changes: 3 additions & 3 deletions Sources/apps/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2608,14 +2608,14 @@ public enum Components {
///
/// - Remark: Generated from `#/components/schemas/app-permissions/organization_copilot_seat_management`.
public var organizationCopilotSeatManagement: Components.Schemas.AppPermissions.OrganizationCopilotSeatManagementPayload?
/// The level of permission to grant the access token to view and manage Copilot coding agent settings for an organization.
/// The level of permission to grant the access token to view and manage Copilot cloud agent settings for an organization.
///
/// - Remark: Generated from `#/components/schemas/app-permissions/organization_copilot_agent_settings`.
@frozen public enum OrganizationCopilotAgentSettingsPayload: String, Codable, Hashable, Sendable, CaseIterable {
case read = "read"
case write = "write"
}
/// The level of permission to grant the access token to view and manage Copilot coding agent settings for an organization.
/// The level of permission to grant the access token to view and manage Copilot cloud agent settings for an organization.
///
/// - Remark: Generated from `#/components/schemas/app-permissions/organization_copilot_agent_settings`.
public var organizationCopilotAgentSettings: Components.Schemas.AppPermissions.OrganizationCopilotAgentSettingsPayload?
Expand Down Expand Up @@ -2864,7 +2864,7 @@ public enum Components {
/// - organizationCustomOrgRoles: The level of permission to grant the access token for custom organization roles management.
/// - organizationCustomProperties: The level of permission to grant the access token for repository custom properties management at the organization level.
/// - organizationCopilotSeatManagement: The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change.
/// - organizationCopilotAgentSettings: The level of permission to grant the access token to view and manage Copilot coding agent settings for an organization.
/// - organizationCopilotAgentSettings: The level of permission to grant the access token to view and manage Copilot cloud agent settings for an organization.
/// - organizationAnnouncementBanners: The level of permission to grant the access token to view and manage announcement banners for an organization.
/// - organizationEvents: The level of permission to grant the access token to view events triggered by an activity in an organization.
/// - organizationHooks: The level of permission to grant the access token to manage the post-receive hooks for an organization.
Expand Down
3,573 changes: 3,573 additions & 0 deletions Sources/copilot-spaces/Client.swift

Large diffs are not rendered by default.

9,253 changes: 9,253 additions & 0 deletions Sources/copilot-spaces/Types.swift

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions Sources/copilot/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -598,9 +598,9 @@ public struct Client: APIProtocol {
}
/// Set the coding agent policy for an enterprise
///
/// Sets the policy for Copilot coding agent usage across an enterprise.
/// Sets the policy for Copilot cloud agent usage across an enterprise.
///
/// Enterprise owners can configure whether Copilot coding agent is enabled for all
/// Enterprise owners can configure whether Copilot cloud agent is enabled for all
/// organizations, disabled for all organizations, configured by individual organization
/// admins, or enabled for selected organizations only.
///
Expand Down Expand Up @@ -690,7 +690,7 @@ public struct Client: APIProtocol {
}
/// Add organizations to the enterprise coding agent policy
///
/// Enables Copilot coding agent for the specified organizations within the enterprise.
/// Enables Copilot cloud agent for the specified organizations within the enterprise.
///
/// The enterprise's coding agent policy must be set to `enabled_for_selected_orgs` before
/// using this endpoint. Organizations can be specified by login or matched via custom properties.
Expand Down Expand Up @@ -783,7 +783,7 @@ public struct Client: APIProtocol {
}
/// Remove organizations from the enterprise coding agent policy
///
/// Disables Copilot coding agent for the specified organizations within the enterprise.
/// Disables Copilot cloud agent for the specified organizations within the enterprise.
///
/// The enterprise's coding agent policy must be set to `enabled_for_selected_orgs` before
/// using this endpoint. Organizations can be specified by login or matched via custom properties.
Expand Down Expand Up @@ -1918,15 +1918,15 @@ public struct Client: APIProtocol {
}
)
}
/// Get Copilot coding agent permissions for an organization
/// Get Copilot cloud agent permissions for an organization
///
/// > [!NOTE]
/// > This endpoint is in public preview and is subject to change.
///
/// Gets information about which repositories in an organization have been enabled
/// or disabled for the Copilot coding agent.
/// or disabled for the Copilot cloud agent.
///
/// Organization owners can configure whether Copilot coding agent is enabled for
/// Organization owners can configure whether Copilot cloud agent is enabled for
/// all repositories, selected repositories, or no repositories owned by organization.
///
/// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Expand Down Expand Up @@ -2079,14 +2079,14 @@ public struct Client: APIProtocol {
}
)
}
/// Set Copilot coding agent permissions for an organization
/// Set Copilot cloud agent permissions for an organization
///
/// > [!NOTE]
/// > This endpoint is in public preview and is subject to change.
///
/// Sets the policy for which repositories in an organization can use Copilot coding agent.
/// Sets the policy for which repositories in an organization can use Copilot cloud agent.
///
/// Organization owners can configure whether Copilot coding agent is enabled for
/// Organization owners can configure whether Copilot cloud agent is enabled for
/// all repositories, selected repositories, or no repositories owned by the organization.
///
/// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Expand Down Expand Up @@ -2250,12 +2250,12 @@ public struct Client: APIProtocol {
}
)
}
/// List repositories enabled for Copilot coding agent in an organization
/// List repositories enabled for Copilot cloud agent in an organization
///
/// > [!NOTE]
/// > This endpoint is in public preview and is subject to change.
///
/// Lists the selected repositories that are enabled for Copilot coding agent in an organization.
/// Lists the selected repositories that are enabled for Copilot cloud agent in an organization.
///
/// Organization owners can use this endpoint when the coding agent repository policy
/// is set to `selected` to see which repositories have been enabled.
Expand Down Expand Up @@ -2446,13 +2446,13 @@ public struct Client: APIProtocol {
}
)
}
/// Set selected repositories for Copilot coding agent in an organization
/// Set selected repositories for Copilot cloud agent in an organization
///
/// > [!NOTE]
/// > This endpoint is in public preview and is subject to change.
///
/// Replaces the list of selected repositories that are enabled for Copilot coding
/// agent in an organization. This method can only be called when the coding agent
/// Replaces the list of selected repositories that are enabled for Copilot cloud
/// agent in an organization. This method can only be called when the cloud agent
/// repository policy is set to `selected`.
///
/// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Expand Down Expand Up @@ -2638,14 +2638,14 @@ public struct Client: APIProtocol {
}
)
}
/// Enable a repository for Copilot coding agent in an organization
/// Enable a repository for Copilot cloud agent in an organization
///
/// > [!NOTE]
/// > This endpoint is in public preview and is subject to change.
///
/// Adds a repository to the list of selected repositories enabled for Copilot
/// coding agent in an organization. This method can only be called when the
/// coding agent repository policy is set to `selected`.
/// cloud agent in an organization. This method can only be called when the
/// cloud agent repository policy is set to `selected`.
///
/// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
///
Expand Down Expand Up @@ -2822,14 +2822,14 @@ public struct Client: APIProtocol {
}
)
}
/// Disable a repository for Copilot coding agent in an organization
/// Disable a repository for Copilot cloud agent in an organization
///
/// > [!NOTE]
/// > This endpoint is in public preview and is subject to change.
///
/// Removes a repository from the list of selected repositories enabled for Copilot
/// coding agent in an organization. This method can only be called when the
/// coding agent repository policy is set to `selected`.
/// cloud agent in an organization. This method can only be called when the
/// cloud agent repository policy is set to `selected`.
///
/// OAuth app tokens and personal access tokens (classic) need the `admin:org` scopes to use this endpoint.
///
Expand Down
Loading