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
Copy file name to clipboardExpand all lines: Sources/copilot/Client.swift
+4-6
Original file line number
Diff line number
Diff line change
@@ -50,10 +50,9 @@ public struct Client: APIProtocol {
50
50
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
51
51
/// they must have telemetry enabled in their IDE.
52
52
///
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.
55
54
///
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.
/// - Remark: Generated from `#/paths//enterprises/{enterprise}/copilot/usage/get(copilot/usage-metrics-for-enterprise)`.
@@ -1281,10 +1280,9 @@ public struct Client: APIProtocol {
1281
1280
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
1282
1281
/// they must have telemetry enabled in their IDE.
1283
1282
///
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.
1286
1284
///
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.
Copy file name to clipboardExpand all lines: Sources/copilot/Types.swift
+12-18
Original file line number
Diff line number
Diff line change
@@ -23,10 +23,9 @@ public protocol APIProtocol: Sendable {
23
23
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
24
24
/// they must have telemetry enabled in their IDE.
25
25
///
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.
28
27
///
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.
/// - Remark: Generated from `#/paths//enterprises/{enterprise}/copilot/usage/get(copilot/usage-metrics-for-enterprise)`.
@@ -143,10 +142,9 @@ public protocol APIProtocol: Sendable {
143
142
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
144
143
/// they must have telemetry enabled in their IDE.
145
144
///
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.
148
146
///
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.
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/usage/get(copilot/usage-metrics-for-org)`.
@@ -180,10 +178,9 @@ extension APIProtocol {
180
178
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
181
179
/// they must have telemetry enabled in their IDE.
182
180
///
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.
185
182
///
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.
/// - Remark: Generated from `#/paths//enterprises/{enterprise}/copilot/usage/get(copilot/usage-metrics-for-enterprise)`.
@@ -368,10 +365,9 @@ extension APIProtocol {
368
365
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
369
366
/// they must have telemetry enabled in their IDE.
370
367
///
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.
373
369
///
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.
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/usage/get(copilot/usage-metrics-for-org)`.
@@ -1959,10 +1955,9 @@ public enum Operations {
1959
1955
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
1960
1956
/// they must have telemetry enabled in their IDE.
1961
1957
///
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.
1964
1959
///
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.
/// - Remark: Generated from `#/paths//enterprises/{enterprise}/copilot/usage/get(copilot/usage-metrics-for-enterprise)`.
@@ -4017,10 +4012,9 @@ public enum Operations {
4017
4012
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
4018
4013
/// they must have telemetry enabled in their IDE.
4019
4014
///
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.
4022
4016
///
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.
Copy file name to clipboardExpand all lines: Sources/orgs/Client.swift
+4-1
Original file line number
Diff line number
Diff line change
@@ -2084,7 +2084,10 @@ public struct Client: APIProtocol {
2084
2084
}
2085
2085
/// List pending organization invitations
2086
2086
///
2087
-
/// The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, or `hiring_manager`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`.
2087
+
/// The return hash contains a `role` field which refers to the Organization
2088
+
/// Invitation role and will be one of the following values: `direct_member`, `admin`,
2089
+
/// `billing_manager`, or `hiring_manager`. If the invitee is not a GitHub
2090
+
/// member, the `login` field in the return hash will be `null`.
2088
2091
///
2089
2092
/// - Remark: HTTP `GET /orgs/{org}/invitations`.
2090
2093
/// - Remark: Generated from `#/paths//orgs/{org}/invitations/get(orgs/list-pending-invitations)`.
/// The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, or `hiring_manager`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`.
269
+
/// The return hash contains a `role` field which refers to the Organization
270
+
/// Invitation role and will be one of the following values: `direct_member`, `admin`,
271
+
/// `billing_manager`, or `hiring_manager`. If the invitee is not a GitHub
272
+
/// member, the `login` field in the return hash will be `null`.
270
273
///
271
274
/// - Remark: HTTP `GET /orgs/{org}/invitations`.
272
275
/// - Remark: Generated from `#/paths//orgs/{org}/invitations/get(orgs/list-pending-invitations)`.
@@ -1242,7 +1245,10 @@ extension APIProtocol {
1242
1245
}
1243
1246
/// List pending organization invitations
1244
1247
///
1245
-
/// The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, or `hiring_manager`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`.
1248
+
/// The return hash contains a `role` field which refers to the Organization
1249
+
/// Invitation role and will be one of the following values: `direct_member`, `admin`,
1250
+
/// `billing_manager`, or `hiring_manager`. If the invitee is not a GitHub
1251
+
/// member, the `login` field in the return hash will be `null`.
1246
1252
///
1247
1253
/// - Remark: HTTP `GET /orgs/{org}/invitations`.
1248
1254
/// - Remark: Generated from `#/paths//orgs/{org}/invitations/get(orgs/list-pending-invitations)`.
@@ -11384,7 +11390,10 @@ public enum Operations {
11384
11390
}
11385
11391
/// List pending organization invitations
11386
11392
///
11387
-
/// The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, or `hiring_manager`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`.
11393
+
/// The return hash contains a `role` field which refers to the Organization
11394
+
/// Invitation role and will be one of the following values: `direct_member`, `admin`,
11395
+
/// `billing_manager`, or `hiring_manager`. If the invitee is not a GitHub
11396
+
/// member, the `login` field in the return hash will be `null`.
11388
11397
///
11389
11398
/// - Remark: HTTP `GET /orgs/{org}/invitations`.
11390
11399
/// - Remark: Generated from `#/paths//orgs/{org}/invitations/get(orgs/list-pending-invitations)`.
0 commit comments