Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6,790 changes: 4,407 additions & 2,383 deletions Sources/actions/Client.swift

Large diffs are not rendered by default.

16,934 changes: 10,628 additions & 6,306 deletions Sources/actions/Types.swift

Large diffs are not rendered by default.

43 changes: 42 additions & 1 deletion Sources/activity/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2872,6 +2872,41 @@ public enum Components {
case percentCompleted = "percent_completed"
}
}
/// - Remark: Generated from `#/components/schemas/issue-dependencies-summary`.
public struct IssueDependenciesSummary: Codable, Hashable, Sendable {
/// - Remark: Generated from `#/components/schemas/issue-dependencies-summary/blocked_by`.
public var blockedBy: Swift.Int
/// - Remark: Generated from `#/components/schemas/issue-dependencies-summary/blocking`.
public var blocking: Swift.Int
/// - Remark: Generated from `#/components/schemas/issue-dependencies-summary/total_blocked_by`.
public var totalBlockedBy: Swift.Int
/// - Remark: Generated from `#/components/schemas/issue-dependencies-summary/total_blocking`.
public var totalBlocking: Swift.Int
/// Creates a new `IssueDependenciesSummary`.
///
/// - Parameters:
/// - blockedBy:
/// - blocking:
/// - totalBlockedBy:
/// - totalBlocking:
public init(
blockedBy: Swift.Int,
blocking: Swift.Int,
totalBlockedBy: Swift.Int,
totalBlocking: Swift.Int
) {
self.blockedBy = blockedBy
self.blocking = blocking
self.totalBlockedBy = totalBlockedBy
self.totalBlocking = totalBlocking
}
public enum CodingKeys: String, CodingKey {
case blockedBy = "blocked_by"
case blocking
case totalBlockedBy = "total_blocked_by"
case totalBlocking = "total_blocking"
}
}
/// Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.
///
/// - Remark: Generated from `#/components/schemas/issue`.
Expand Down Expand Up @@ -3104,6 +3139,8 @@ public enum Components {
public var reactions: Components.Schemas.ReactionRollup?
/// - Remark: Generated from `#/components/schemas/issue/sub_issues_summary`.
public var subIssuesSummary: Components.Schemas.SubIssuesSummary?
/// - Remark: Generated from `#/components/schemas/issue/issue_dependencies_summary`.
public var issueDependenciesSummary: Components.Schemas.IssueDependenciesSummary?
/// Creates a new `Issue`.
///
/// - Parameters:
Expand Down Expand Up @@ -3143,6 +3180,7 @@ public enum Components {
/// - authorAssociation:
/// - reactions:
/// - subIssuesSummary:
/// - issueDependenciesSummary:
public init(
id: Swift.Int64,
nodeId: Swift.String,
Expand Down Expand Up @@ -3179,7 +3217,8 @@ public enum Components {
performedViaGithubApp: Components.Schemas.NullableIntegration? = nil,
authorAssociation: Components.Schemas.AuthorAssociation,
reactions: Components.Schemas.ReactionRollup? = nil,
subIssuesSummary: Components.Schemas.SubIssuesSummary? = nil
subIssuesSummary: Components.Schemas.SubIssuesSummary? = nil,
issueDependenciesSummary: Components.Schemas.IssueDependenciesSummary? = nil
) {
self.id = id
self.nodeId = nodeId
Expand Down Expand Up @@ -3217,6 +3256,7 @@ public enum Components {
self.authorAssociation = authorAssociation
self.reactions = reactions
self.subIssuesSummary = subIssuesSummary
self.issueDependenciesSummary = issueDependenciesSummary
}
public enum CodingKeys: String, CodingKey {
case id
Expand Down Expand Up @@ -3255,6 +3295,7 @@ public enum Components {
case authorAssociation = "author_association"
case reactions
case subIssuesSummary = "sub_issues_summary"
case issueDependenciesSummary = "issue_dependencies_summary"
}
}
/// Comments provide a way for people to collaborate on an issue.
Expand Down
4 changes: 2 additions & 2 deletions Sources/copilot/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public struct Client: APIProtocol {
/// Only organization owners can view assigned seats.
///
/// 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`.
/// 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)."
/// For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data).
///
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint.
///
Expand Down Expand Up @@ -1282,7 +1282,7 @@ public struct Client: APIProtocol {
/// Gets the GitHub Copilot seat details for a member of an organization who currently has access to GitHub Copilot.
///
/// 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`.
/// 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)."
/// For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data).
///
/// Only organization owners can view Copilot seat assignment details for members of their organization.
///
Expand Down
25 changes: 19 additions & 6 deletions Sources/copilot/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public protocol APIProtocol: Sendable {
/// Only organization owners can view assigned seats.
///
/// 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`.
/// 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)."
/// For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data).
///
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint.
///
Expand Down Expand Up @@ -144,7 +144,7 @@ public protocol APIProtocol: Sendable {
/// Gets the GitHub Copilot seat details for a member of an organization who currently has access to GitHub Copilot.
///
/// 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`.
/// 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)."
/// For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data).
///
/// Only organization owners can view Copilot seat assignment details for members of their organization.
///
Expand Down Expand Up @@ -209,7 +209,7 @@ extension APIProtocol {
/// Only organization owners can view assigned seats.
///
/// 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`.
/// 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)."
/// For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data).
///
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint.
///
Expand Down Expand Up @@ -377,7 +377,7 @@ extension APIProtocol {
/// Gets the GitHub Copilot seat details for a member of an organization who currently has access to GitHub Copilot.
///
/// 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`.
/// 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)."
/// For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data).
///
/// Only organization owners can view Copilot seat assignment details for members of their organization.
///
Expand Down Expand Up @@ -1365,6 +1365,10 @@ public enum Components {
///
/// - Remark: Generated from `#/components/schemas/copilot-seat-details/last_activity_editor`.
public var lastActivityEditor: Swift.String?
/// Timestamp of the last time the user authenticated with GitHub Copilot, in ISO 8601 format.
///
/// - Remark: Generated from `#/components/schemas/copilot-seat-details/last_authenticated_at`.
public var lastAuthenticatedAt: Foundation.Date?
/// Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format.
///
/// - Remark: Generated from `#/components/schemas/copilot-seat-details/created_at`.
Expand Down Expand Up @@ -1395,6 +1399,7 @@ public enum Components {
/// - 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.
/// - lastActivityAt: Timestamp of user's last GitHub Copilot activity, in ISO 8601 format.
/// - lastActivityEditor: Last editor that was used by the user for a GitHub Copilot completion.
/// - lastAuthenticatedAt: Timestamp of the last time the user authenticated with GitHub Copilot, in ISO 8601 format.
/// - createdAt: Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format.
/// - 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.
/// - planType: The Copilot plan of the organization, or the parent enterprise, when applicable.
Expand All @@ -1405,6 +1410,7 @@ public enum Components {
pendingCancellationDate: Swift.String? = nil,
lastActivityAt: Foundation.Date? = nil,
lastActivityEditor: Swift.String? = nil,
lastAuthenticatedAt: Foundation.Date? = nil,
createdAt: Foundation.Date,
updatedAt: Foundation.Date? = nil,
planType: Components.Schemas.CopilotSeatDetails.PlanTypePayload? = nil
Expand All @@ -1415,6 +1421,7 @@ public enum Components {
self.pendingCancellationDate = pendingCancellationDate
self.lastActivityAt = lastActivityAt
self.lastActivityEditor = lastActivityEditor
self.lastAuthenticatedAt = lastAuthenticatedAt
self.createdAt = createdAt
self.updatedAt = updatedAt
self.planType = planType
Expand All @@ -1426,6 +1433,7 @@ public enum Components {
case pendingCancellationDate = "pending_cancellation_date"
case lastActivityAt = "last_activity_at"
case lastActivityEditor = "last_activity_editor"
case lastAuthenticatedAt = "last_authenticated_at"
case createdAt = "created_at"
case updatedAt = "updated_at"
case planType = "plan_type"
Expand Down Expand Up @@ -1456,6 +1464,10 @@ public enum Components {
Swift.String.self,
forKey: .lastActivityEditor
)
self.lastAuthenticatedAt = try container.decodeIfPresent(
Foundation.Date.self,
forKey: .lastAuthenticatedAt
)
self.createdAt = try container.decode(
Foundation.Date.self,
forKey: .createdAt
Expand All @@ -1475,6 +1487,7 @@ public enum Components {
"pending_cancellation_date",
"last_activity_at",
"last_activity_editor",
"last_authenticated_at",
"created_at",
"updated_at",
"plan_type"
Expand Down Expand Up @@ -2819,7 +2832,7 @@ public enum Operations {
/// Only organization owners can view assigned seats.
///
/// 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`.
/// 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)."
/// For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data).
///
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint.
///
Expand Down Expand Up @@ -4653,7 +4666,7 @@ public enum Operations {
/// Gets the GitHub Copilot seat details for a member of an organization who currently has access to GitHub Copilot.
///
/// 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`.
/// 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)."
/// For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data).
///
/// Only organization owners can view Copilot seat assignment details for members of their organization.
///
Expand Down
Loading