Skip to content

Commit 882b894

Browse files
Commit via running ake Sources/copilot
1 parent 2ef0d6c commit 882b894

File tree

2 files changed

+16
-24
lines changed

2 files changed

+16
-24
lines changed

Sources/copilot/Client.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ public struct Client: APIProtocol {
5050
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
5151
/// they must have telemetry enabled in their IDE.
5252
///
53-
/// Only the owners and billing managers of enterprises with a Copilot Business or Enterprise subscription can view Copilot usage
54-
/// metrics for the enterprise.
53+
/// Only owners and billing managers can view Copilot usage metrics for the enterprise.
5554
///
56-
/// OAuth app tokens and personal access tokens (classic) need the `copilot`, `manage_billing:copilot`, `admin:enterprise`, or `manage_billing:enterprise` scope to use this endpoint.
55+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint.
5756
///
5857
/// - Remark: HTTP `GET /enterprises/{enterprise}/copilot/usage`.
5958
/// - Remark: Generated from `#/paths//enterprises/{enterprise}/copilot/usage/get(copilot/usage-metrics-for-enterprise)`.
@@ -1281,10 +1280,9 @@ public struct Client: APIProtocol {
12811280
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
12821281
/// they must have telemetry enabled in their IDE.
12831282
///
1284-
/// Copilot Business or Copilot Enterprise organization owners, and owners and billing managers of their parent enterprises, can view
1285-
/// Copilot usage metrics.
1283+
/// Organization owners, and owners and billing managers of the parent enterprise, can view Copilot usage metrics.
12861284
///
1287-
/// OAuth app tokens and personal access tokens (classic) need the `copilot`, `manage_billing:copilot`, `admin:org`, `admin:enterprise`, or `manage_billing:enterprise` scope to use this endpoint.
1285+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.
12881286
///
12891287
/// - Remark: HTTP `GET /orgs/{org}/copilot/usage`.
12901288
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/usage/get(copilot/usage-metrics-for-org)`.

Sources/copilot/Types.swift

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ public protocol APIProtocol: Sendable {
2323
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
2424
/// they must have telemetry enabled in their IDE.
2525
///
26-
/// Only the owners and billing managers of enterprises with a Copilot Business or Enterprise subscription can view Copilot usage
27-
/// metrics for the enterprise.
26+
/// Only owners and billing managers can view Copilot usage metrics for the enterprise.
2827
///
29-
/// OAuth app tokens and personal access tokens (classic) need the `copilot`, `manage_billing:copilot`, `admin:enterprise`, or `manage_billing:enterprise` scope to use this endpoint.
28+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint.
3029
///
3130
/// - Remark: HTTP `GET /enterprises/{enterprise}/copilot/usage`.
3231
/// - Remark: Generated from `#/paths//enterprises/{enterprise}/copilot/usage/get(copilot/usage-metrics-for-enterprise)`.
@@ -143,10 +142,9 @@ public protocol APIProtocol: Sendable {
143142
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
144143
/// they must have telemetry enabled in their IDE.
145144
///
146-
/// Copilot Business or Copilot Enterprise organization owners, and owners and billing managers of their parent enterprises, can view
147-
/// Copilot usage metrics.
145+
/// Organization owners, and owners and billing managers of the parent enterprise, can view Copilot usage metrics.
148146
///
149-
/// OAuth app tokens and personal access tokens (classic) need the `copilot`, `manage_billing:copilot`, `admin:org`, `admin:enterprise`, or `manage_billing:enterprise` scope to use this endpoint.
147+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.
150148
///
151149
/// - Remark: HTTP `GET /orgs/{org}/copilot/usage`.
152150
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/usage/get(copilot/usage-metrics-for-org)`.
@@ -180,10 +178,9 @@ extension APIProtocol {
180178
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
181179
/// they must have telemetry enabled in their IDE.
182180
///
183-
/// Only the owners and billing managers of enterprises with a Copilot Business or Enterprise subscription can view Copilot usage
184-
/// metrics for the enterprise.
181+
/// Only owners and billing managers can view Copilot usage metrics for the enterprise.
185182
///
186-
/// OAuth app tokens and personal access tokens (classic) need the `copilot`, `manage_billing:copilot`, `admin:enterprise`, or `manage_billing:enterprise` scope to use this endpoint.
183+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint.
187184
///
188185
/// - Remark: HTTP `GET /enterprises/{enterprise}/copilot/usage`.
189186
/// - Remark: Generated from `#/paths//enterprises/{enterprise}/copilot/usage/get(copilot/usage-metrics-for-enterprise)`.
@@ -368,10 +365,9 @@ extension APIProtocol {
368365
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
369366
/// they must have telemetry enabled in their IDE.
370367
///
371-
/// Copilot Business or Copilot Enterprise organization owners, and owners and billing managers of their parent enterprises, can view
372-
/// Copilot usage metrics.
368+
/// Organization owners, and owners and billing managers of the parent enterprise, can view Copilot usage metrics.
373369
///
374-
/// OAuth app tokens and personal access tokens (classic) need the `copilot`, `manage_billing:copilot`, `admin:org`, `admin:enterprise`, or `manage_billing:enterprise` scope to use this endpoint.
370+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.
375371
///
376372
/// - Remark: HTTP `GET /orgs/{org}/copilot/usage`.
377373
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/usage/get(copilot/usage-metrics-for-org)`.
@@ -1959,10 +1955,9 @@ public enum Operations {
19591955
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
19601956
/// they must have telemetry enabled in their IDE.
19611957
///
1962-
/// Only the owners and billing managers of enterprises with a Copilot Business or Enterprise subscription can view Copilot usage
1963-
/// metrics for the enterprise.
1958+
/// Only owners and billing managers can view Copilot usage metrics for the enterprise.
19641959
///
1965-
/// OAuth app tokens and personal access tokens (classic) need the `copilot`, `manage_billing:copilot`, `admin:enterprise`, or `manage_billing:enterprise` scope to use this endpoint.
1960+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint.
19661961
///
19671962
/// - Remark: HTTP `GET /enterprises/{enterprise}/copilot/usage`.
19681963
/// - Remark: Generated from `#/paths//enterprises/{enterprise}/copilot/usage/get(copilot/usage-metrics-for-enterprise)`.
@@ -4017,10 +4012,9 @@ public enum Operations {
40174012
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
40184013
/// they must have telemetry enabled in their IDE.
40194014
///
4020-
/// Copilot Business or Copilot Enterprise organization owners, and owners and billing managers of their parent enterprises, can view
4021-
/// Copilot usage metrics.
4015+
/// Organization owners, and owners and billing managers of the parent enterprise, can view Copilot usage metrics.
40224016
///
4023-
/// OAuth app tokens and personal access tokens (classic) need the `copilot`, `manage_billing:copilot`, `admin:org`, `admin:enterprise`, or `manage_billing:enterprise` scope to use this endpoint.
4017+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.
40244018
///
40254019
/// - Remark: HTTP `GET /orgs/{org}/copilot/usage`.
40264020
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/usage/get(copilot/usage-metrics-for-org)`.

0 commit comments

Comments
 (0)