You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
@@ -43,11 +43,14 @@ public struct Client: APIProtocol {
/// > [!NOTE]
/// > This endpoint is in public preview and is subject to change.
///
/// Lists allactiveCopilot seats across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription.
/// Lists all Copilot seats currently being billed for across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription.
///
/// Users with access through multiple organizations or enterprise teams will only be counted toward `total_seats` once.
///
/// For each organization or enterprise team which grants Copilot access to a user, a seat detail object will appear in the `seats` array.
/// Each seat object contains information about the assigned user's most recent Copilot activity. Users must have
/// telemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`. For more information about activity data,
/// see "[Reviewing user activity data for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-activity-related-to-github-copilot-in-your-organization/reviewing-user-activity-data-for-copilot-in-your-organization)."
///
/// Only enterprise owners and billing managers can view assigned Copilot seats across their child organizations or enterprise teams.
///
Expand DownExpand Up
@@ -425,6 +428,8 @@ public struct Client: APIProtocol {
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
/// they must have telemetry enabled in their IDE.
///
/// The time zone in the response is in UTC time, that means that the cutoff time for the "day" is UTC time.
///
/// Only owners and billing managers can view Copilot usage metrics for the enterprise.
///
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint.
Expand DownExpand Up
@@ -1002,7 +1007,7 @@ public struct Client: APIProtocol {
///
/// Gets information about an organization's Copilot subscription, including seat breakdown
/// and feature policies. To configure these settings, go to your organization's settings on GitHub.com.
/// For more information, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-copilot-business-in-your-organization)".
/// For more information, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-copilot-business-in-your-organization)."
///
/// Only organization owners can view details about the organization's Copilot Business or Copilot Enterprise subscription.
///
Expand DownExpand Up
@@ -1163,9 +1168,12 @@ public struct Client: APIProtocol {
/// > [!NOTE]
/// > This endpoint is in public preview and is subject to change.
///
/// Lists allactiveCopilot seats for an organization with a Copilot Business or Copilot Enterprise subscription.
/// Lists all Copilot seats forwhichan organization with a Copilot Business or Copilot Enterprise subscription is currently being billed.
/// Only organization owners can view assigned seats.
///
/// Each seat object contains information about the assigned user's most recent Copilot activity. Users must have telemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`.
/// For more information about activity data, see "[Reviewing user activity data for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-activity-related-to-github-copilot-in-your-organization/reviewing-user-activity-data-for-copilot-in-your-organization)."
///
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint.
@@ -1344,13 +1352,13 @@ public struct Client: APIProtocol {
/// > This endpoint is in public preview and is subject to change.
///
/// Purchases a GitHub Copilot seat for all users within each specified team.
/// The organization will be billedaccordingly. For more information about Copilot pricing, see "[Pricingfor GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".
/// The organization will be billedfor each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billingfor GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."
///
/// Only organization owners can add Copilot seats for their organization members.
///
/// In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.
/// For more information about setting up a Copilot subscription, see "[Setting up aCopilotsubscriptionfor your organization](https://docs.github.com/billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".
/// For more information about setting a suggestion matching policy, see "[Configuring suggestion matchingpolicies forGitHubCopilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".
/// For more information about setting up a Copilot subscription, see "[Subscribing toCopilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."
/// For more information about setting a suggestion matching policy, see "[Managingpolicies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."
///
/// The response will contain the total number of new seats that were created and existing seats that were refreshed.
///
Expand DownExpand Up
@@ -1520,15 +1528,17 @@ public struct Client: APIProtocol {
/// > [!NOTE]
/// > This endpoint is in public preview and is subject to change.
///
///Cancels the Copilot seat assignmentfor all members of each team specified.
/// This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.
///Sets seatsfor all members of each team specified to "pending cancellation".
/// This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through another team.
///
/// For more information about Copilot pricing, see "[Pricingfor GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".
/// For more information about Copilot pricing, see "[About billingfor GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."
///
/// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access toGitHubCopilot forspecific users inyour organization](https://docs.github.com/copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".
/// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot formembers ofyour organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."
///
/// Only organization owners can cancel Copilot seats for their organization members.
///
/// The response will contain the total number of seats set to "pending cancellation".
///
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
@@ -1696,13 +1706,13 @@ public struct Client: APIProtocol {
/// > This endpoint is in public preview and is subject to change.
///
/// Purchases a GitHub Copilot seat for each user specified.
/// The organization will be billedaccordingly. For more information about Copilot pricing, see "[Pricingfor GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".
/// The organization will be billedfor each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billingfor GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."
///
/// Only organization owners can add Copilot seats for their organization members.
///
/// In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.
/// For more information about setting up a Copilot subscription, see "[Setting up aCopilotsubscriptionfor your organization](https://docs.github.com/billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".
/// For more information about setting a suggestion matching policy, see "[Configuring suggestion matchingpolicies forGitHubCopilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".
/// For more information about setting up a Copilot subscription, see "[Subscribing toCopilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."
/// For more information about setting a suggestion matching policy, see "[Managingpolicies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."
///
/// The response will contain the total number of new seats that were created and existing seats that were refreshed.
///
Expand DownExpand Up
@@ -1872,15 +1882,17 @@ public struct Client: APIProtocol {
/// > [!NOTE]
/// > This endpoint is in public preview and is subject to change.
///
///Cancels the Copilot seat assignment for each user specified.
/// This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.
///Sets seats for all users specified to "pending cancellation".
/// This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through team membership.
///
/// For more information about Copilot pricing, see "[Pricingfor GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".
/// For more information about Copilot pricing, see "[About billingfor GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."
///
/// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access toGitHubCopilot forspecific users inyour organization](https://docs.github.com/copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".
/// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot formembers ofyour organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."
///
/// Only organization owners can cancel Copilot seats for their organization members.
///
/// The response will contain the total number of seats set to "pending cancellation".
///
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
@@ -2432,7 +2444,10 @@ public struct Client: APIProtocol {
/// > [!NOTE]
/// > This endpoint is in public preview and is subject to change.
///
/// Gets the GitHub Copilot seat assignment details for a member of an organization who currently has access to GitHub Copilot.
/// Gets the GitHub Copilot seat details for a member of an organization who currently has access to GitHub Copilot.
///
/// The seat object contains information about the user's most recent Copilot activity. Users must have telemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`.
/// For more information about activity data, see "[Reviewing user activity data for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-activity-related-to-github-copilot-in-your-organization/reviewing-user-activity-data-for-copilot-in-your-organization)."
///
/// Only organization owners can view Copilot seat assignment details for members of their organization.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.