Skip to content

Commit e8abe65

Browse files
Commit via running: make Sources/copilot
1 parent 98bed52 commit e8abe65

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

Sources/copilot/Client.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public struct Client: APIProtocol {
210210
/// Only organization owners can view assigned seats.
211211
///
212212
/// 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`.
213-
/// 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)."
213+
/// For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data).
214214
///
215215
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint.
216216
///
@@ -1282,7 +1282,7 @@ public struct Client: APIProtocol {
12821282
/// Gets the GitHub Copilot seat details for a member of an organization who currently has access to GitHub Copilot.
12831283
///
12841284
/// 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`.
1285-
/// 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)."
1285+
/// For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data).
12861286
///
12871287
/// Only organization owners can view Copilot seat assignment details for members of their organization.
12881288
///

Sources/copilot/Types.swift

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public protocol APIProtocol: Sendable {
3636
/// Only organization owners can view assigned seats.
3737
///
3838
/// 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`.
39-
/// 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)."
39+
/// For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data).
4040
///
4141
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint.
4242
///
@@ -144,7 +144,7 @@ public protocol APIProtocol: Sendable {
144144
/// Gets the GitHub Copilot seat details for a member of an organization who currently has access to GitHub Copilot.
145145
///
146146
/// 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`.
147-
/// 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)."
147+
/// For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data).
148148
///
149149
/// Only organization owners can view Copilot seat assignment details for members of their organization.
150150
///
@@ -209,7 +209,7 @@ extension APIProtocol {
209209
/// Only organization owners can view assigned seats.
210210
///
211211
/// 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`.
212-
/// 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)."
212+
/// For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data).
213213
///
214214
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint.
215215
///
@@ -377,7 +377,7 @@ extension APIProtocol {
377377
/// Gets the GitHub Copilot seat details for a member of an organization who currently has access to GitHub Copilot.
378378
///
379379
/// 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`.
380-
/// 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)."
380+
/// For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data).
381381
///
382382
/// Only organization owners can view Copilot seat assignment details for members of their organization.
383383
///
@@ -1365,6 +1365,10 @@ public enum Components {
13651365
///
13661366
/// - Remark: Generated from `#/components/schemas/copilot-seat-details/last_activity_editor`.
13671367
public var lastActivityEditor: Swift.String?
1368+
/// Timestamp of the last time the user authenticated with GitHub Copilot, in ISO 8601 format.
1369+
///
1370+
/// - Remark: Generated from `#/components/schemas/copilot-seat-details/last_authenticated_at`.
1371+
public var lastAuthenticatedAt: Foundation.Date?
13681372
/// Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format.
13691373
///
13701374
/// - Remark: Generated from `#/components/schemas/copilot-seat-details/created_at`.
@@ -1395,6 +1399,7 @@ public enum Components {
13951399
/// - pendingCancellationDate: The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle.
13961400
/// - lastActivityAt: Timestamp of user's last GitHub Copilot activity, in ISO 8601 format.
13971401
/// - lastActivityEditor: Last editor that was used by the user for a GitHub Copilot completion.
1402+
/// - lastAuthenticatedAt: Timestamp of the last time the user authenticated with GitHub Copilot, in ISO 8601 format.
13981403
/// - createdAt: Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format.
13991404
/// - updatedAt: **Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.
14001405
/// - planType: The Copilot plan of the organization, or the parent enterprise, when applicable.
@@ -1405,6 +1410,7 @@ public enum Components {
14051410
pendingCancellationDate: Swift.String? = nil,
14061411
lastActivityAt: Foundation.Date? = nil,
14071412
lastActivityEditor: Swift.String? = nil,
1413+
lastAuthenticatedAt: Foundation.Date? = nil,
14081414
createdAt: Foundation.Date,
14091415
updatedAt: Foundation.Date? = nil,
14101416
planType: Components.Schemas.CopilotSeatDetails.PlanTypePayload? = nil
@@ -1415,6 +1421,7 @@ public enum Components {
14151421
self.pendingCancellationDate = pendingCancellationDate
14161422
self.lastActivityAt = lastActivityAt
14171423
self.lastActivityEditor = lastActivityEditor
1424+
self.lastAuthenticatedAt = lastAuthenticatedAt
14181425
self.createdAt = createdAt
14191426
self.updatedAt = updatedAt
14201427
self.planType = planType
@@ -1426,6 +1433,7 @@ public enum Components {
14261433
case pendingCancellationDate = "pending_cancellation_date"
14271434
case lastActivityAt = "last_activity_at"
14281435
case lastActivityEditor = "last_activity_editor"
1436+
case lastAuthenticatedAt = "last_authenticated_at"
14291437
case createdAt = "created_at"
14301438
case updatedAt = "updated_at"
14311439
case planType = "plan_type"
@@ -1456,6 +1464,10 @@ public enum Components {
14561464
Swift.String.self,
14571465
forKey: .lastActivityEditor
14581466
)
1467+
self.lastAuthenticatedAt = try container.decodeIfPresent(
1468+
Foundation.Date.self,
1469+
forKey: .lastAuthenticatedAt
1470+
)
14591471
self.createdAt = try container.decode(
14601472
Foundation.Date.self,
14611473
forKey: .createdAt
@@ -1475,6 +1487,7 @@ public enum Components {
14751487
"pending_cancellation_date",
14761488
"last_activity_at",
14771489
"last_activity_editor",
1490+
"last_authenticated_at",
14781491
"created_at",
14791492
"updated_at",
14801493
"plan_type"
@@ -2819,7 +2832,7 @@ public enum Operations {
28192832
/// Only organization owners can view assigned seats.
28202833
///
28212834
/// 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`.
2822-
/// 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)."
2835+
/// For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data).
28232836
///
28242837
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint.
28252838
///
@@ -4653,7 +4666,7 @@ public enum Operations {
46534666
/// Gets the GitHub Copilot seat details for a member of an organization who currently has access to GitHub Copilot.
46544667
///
46554668
/// 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`.
4656-
/// 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)."
4669+
/// For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data).
46574670
///
46584671
/// Only organization owners can view Copilot seat assignment details for members of their organization.
46594672
///

0 commit comments

Comments
 (0)