Skip to content

Commit 10dea55

Browse files
Merge pull request #58 from Wei18/dependabot/submodules/Submodule/github/rest-api-description-62b23af
Bump Submodule/github/rest-api-description from `b29a2c5` to `62b23af`
2 parents 477ab1c + ca982af commit 10dea55

File tree

7 files changed

+705
-199
lines changed

7 files changed

+705
-199
lines changed

Sources/copilot/Client.swift

+16-17
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,12 @@ public struct Client: APIProtocol {
235235
/// **Note**: This endpoint is in beta and is subject to change.
236236
///
237237
/// Gets information about an organization's Copilot subscription, including seat breakdown
238-
/// and code matching policies. To configure these settings, go to your organization's settings on GitHub.com.
238+
/// and feature policies. To configure these settings, go to your organization's settings on GitHub.com.
239239
/// 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)".
240240
///
241-
/// Only organization owners can configure and view details about the organization's Copilot Business subscription.
241+
/// Only organization owners can view details about the organization's Copilot Business or Copilot Enterprise subscription.
242242
///
243-
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
243+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint.
244244
///
245245
/// - Remark: HTTP `GET /orgs/{org}/copilot/billing`.
246246
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/get(copilot/get-copilot-organization-details)`.
@@ -396,11 +396,10 @@ public struct Client: APIProtocol {
396396
///
397397
/// **Note**: This endpoint is in beta and is subject to change.
398398
///
399-
/// Lists all Copilot seat assignments for an organization that are currently being billed (either active or pending cancellation at the start of the next billing cycle).
399+
/// Lists all active Copilot seats for an organization with a Copilot Business or Copilot Enterprise subscription.
400+
/// Only organization owners can view assigned seats.
400401
///
401-
/// Only organization owners can configure and view details about the organization's Copilot Business or Enterprise subscription.
402-
///
403-
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
402+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint.
404403
///
405404
/// - Remark: HTTP `GET /orgs/{org}/copilot/billing/seats`.
406405
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/seats/get(copilot/list-copilot-seats)`.
@@ -579,13 +578,13 @@ public struct Client: APIProtocol {
579578
/// Purchases a GitHub Copilot seat for all users within each specified team.
580579
/// The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".
581580
///
582-
/// Only organization owners can configure GitHub Copilot in their organization.
581+
/// Only organization owners can add Copilot seats for their organization members.
583582
///
584583
/// 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.
585584
/// For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".
586585
/// For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot 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)".
587586
///
588-
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
587+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
589588
///
590589
/// - Remark: HTTP `POST /orgs/{org}/copilot/billing/selected_teams`.
591590
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/post(copilot/add-copilot-seats-for-teams)`.
@@ -757,9 +756,9 @@ public struct Client: APIProtocol {
757756
///
758757
/// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your 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)".
759758
///
760-
/// Only organization owners can configure GitHub Copilot in their organization.
759+
/// Only organization owners can cancel Copilot seats for their organization members.
761760
///
762-
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
761+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
763762
///
764763
/// - Remark: HTTP `DELETE /orgs/{org}/copilot/billing/selected_teams`.
765764
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/delete(copilot/cancel-copilot-seat-assignment-for-teams)`.
@@ -927,13 +926,13 @@ public struct Client: APIProtocol {
927926
/// Purchases a GitHub Copilot seat for each user specified.
928927
/// The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".
929928
///
930-
/// Only organization owners can configure GitHub Copilot in their organization.
929+
/// Only organization owners can add Copilot seats for their organization members.
931930
///
932931
/// 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.
933932
/// For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".
934933
/// For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot 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)".
935934
///
936-
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
935+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
937936
///
938937
/// - Remark: HTTP `POST /orgs/{org}/copilot/billing/selected_users`.
939938
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/post(copilot/add-copilot-seats-for-users)`.
@@ -1105,9 +1104,9 @@ public struct Client: APIProtocol {
11051104
///
11061105
/// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your 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)".
11071106
///
1108-
/// Only organization owners can configure GitHub Copilot in their organization.
1107+
/// Only organization owners can cancel Copilot seats for their organization members.
11091108
///
1110-
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
1109+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
11111110
///
11121111
/// - Remark: HTTP `DELETE /orgs/{org}/copilot/billing/selected_users`.
11131112
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/delete(copilot/cancel-copilot-seat-assignment-for-users)`.
@@ -1466,9 +1465,9 @@ public struct Client: APIProtocol {
14661465
///
14671466
/// Gets the GitHub Copilot seat assignment details for a member of an organization who currently has access to GitHub Copilot.
14681467
///
1469-
/// Organization owners can view GitHub Copilot seat assignment details for members in their organization.
1468+
/// Only organization owners can view Copilot seat assignment details for members of their organization.
14701469
///
1471-
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
1470+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint.
14721471
///
14731472
/// - Remark: HTTP `GET /orgs/{org}/members/{username}/copilot`.
14741473
/// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/copilot/get(copilot/get-copilot-seat-details-for-user)`.

0 commit comments

Comments
 (0)