Skip to content

Commit f4b2a6e

Browse files
Merge pull request #137 from wei18/dependabot/submodules/Submodule/github/rest-api-description-7187214
Bump Submodule/github/rest-api-description from `389c516` to `7187214`
2 parents a1cf4e1 + 1c6e874 commit f4b2a6e

File tree

13 files changed

+18713
-21244
lines changed

13 files changed

+18713
-21244
lines changed

Sources/actions/Client.swift

Lines changed: 4407 additions & 2383 deletions
Large diffs are not rendered by default.

Sources/actions/Types.swift

Lines changed: 10628 additions & 6306 deletions
Large diffs are not rendered by default.

Sources/activity/Types.swift

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,6 +2872,41 @@ public enum Components {
28722872
case percentCompleted = "percent_completed"
28732873
}
28742874
}
2875+
/// - Remark: Generated from `#/components/schemas/issue-dependencies-summary`.
2876+
public struct IssueDependenciesSummary: Codable, Hashable, Sendable {
2877+
/// - Remark: Generated from `#/components/schemas/issue-dependencies-summary/blocked_by`.
2878+
public var blockedBy: Swift.Int
2879+
/// - Remark: Generated from `#/components/schemas/issue-dependencies-summary/blocking`.
2880+
public var blocking: Swift.Int
2881+
/// - Remark: Generated from `#/components/schemas/issue-dependencies-summary/total_blocked_by`.
2882+
public var totalBlockedBy: Swift.Int
2883+
/// - Remark: Generated from `#/components/schemas/issue-dependencies-summary/total_blocking`.
2884+
public var totalBlocking: Swift.Int
2885+
/// Creates a new `IssueDependenciesSummary`.
2886+
///
2887+
/// - Parameters:
2888+
/// - blockedBy:
2889+
/// - blocking:
2890+
/// - totalBlockedBy:
2891+
/// - totalBlocking:
2892+
public init(
2893+
blockedBy: Swift.Int,
2894+
blocking: Swift.Int,
2895+
totalBlockedBy: Swift.Int,
2896+
totalBlocking: Swift.Int
2897+
) {
2898+
self.blockedBy = blockedBy
2899+
self.blocking = blocking
2900+
self.totalBlockedBy = totalBlockedBy
2901+
self.totalBlocking = totalBlocking
2902+
}
2903+
public enum CodingKeys: String, CodingKey {
2904+
case blockedBy = "blocked_by"
2905+
case blocking
2906+
case totalBlockedBy = "total_blocked_by"
2907+
case totalBlocking = "total_blocking"
2908+
}
2909+
}
28752910
/// Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.
28762911
///
28772912
/// - Remark: Generated from `#/components/schemas/issue`.
@@ -3104,6 +3139,8 @@ public enum Components {
31043139
public var reactions: Components.Schemas.ReactionRollup?
31053140
/// - Remark: Generated from `#/components/schemas/issue/sub_issues_summary`.
31063141
public var subIssuesSummary: Components.Schemas.SubIssuesSummary?
3142+
/// - Remark: Generated from `#/components/schemas/issue/issue_dependencies_summary`.
3143+
public var issueDependenciesSummary: Components.Schemas.IssueDependenciesSummary?
31073144
/// Creates a new `Issue`.
31083145
///
31093146
/// - Parameters:
@@ -3143,6 +3180,7 @@ public enum Components {
31433180
/// - authorAssociation:
31443181
/// - reactions:
31453182
/// - subIssuesSummary:
3183+
/// - issueDependenciesSummary:
31463184
public init(
31473185
id: Swift.Int64,
31483186
nodeId: Swift.String,
@@ -3179,7 +3217,8 @@ public enum Components {
31793217
performedViaGithubApp: Components.Schemas.NullableIntegration? = nil,
31803218
authorAssociation: Components.Schemas.AuthorAssociation,
31813219
reactions: Components.Schemas.ReactionRollup? = nil,
3182-
subIssuesSummary: Components.Schemas.SubIssuesSummary? = nil
3220+
subIssuesSummary: Components.Schemas.SubIssuesSummary? = nil,
3221+
issueDependenciesSummary: Components.Schemas.IssueDependenciesSummary? = nil
31833222
) {
31843223
self.id = id
31853224
self.nodeId = nodeId
@@ -3217,6 +3256,7 @@ public enum Components {
32173256
self.authorAssociation = authorAssociation
32183257
self.reactions = reactions
32193258
self.subIssuesSummary = subIssuesSummary
3259+
self.issueDependenciesSummary = issueDependenciesSummary
32203260
}
32213261
public enum CodingKeys: String, CodingKey {
32223262
case id
@@ -3255,6 +3295,7 @@ public enum Components {
32553295
case authorAssociation = "author_association"
32563296
case reactions
32573297
case subIssuesSummary = "sub_issues_summary"
3298+
case issueDependenciesSummary = "issue_dependencies_summary"
32583299
}
32593300
}
32603301
/// Comments provide a way for people to collaborate on an issue.

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)