From b5f905fb1d807bd40dbd04790446b6edd6fc6d5d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 21:10:36 +0000 Subject: [PATCH 1/7] Bump Submodule/github/rest-api-description from `dee4dc2` to `45124e4` Bumps [Submodule/github/rest-api-description](https://github.com/github/rest-api-description) from `dee4dc2` to `45124e4`. - [Release notes](https://github.com/github/rest-api-description/releases) - [Commits](https://github.com/github/rest-api-description/compare/dee4dc2b1ab40c75c2ae562e4300503b632f4424...45124e4c9ec27bbbfa40dd67c1b8d8341099195f) --- updated-dependencies: - dependency-name: Submodule/github/rest-api-description dependency-version: 45124e4c9ec27bbbfa40dd67c1b8d8341099195f dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Submodule/github/rest-api-description | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Submodule/github/rest-api-description b/Submodule/github/rest-api-description index dee4dc2b1a..45124e4c9e 160000 --- a/Submodule/github/rest-api-description +++ b/Submodule/github/rest-api-description @@ -1 +1 @@ -Subproject commit dee4dc2b1ab40c75c2ae562e4300503b632f4424 +Subproject commit 45124e4c9ec27bbbfa40dd67c1b8d8341099195f From 33ff05be3365385c1856561dd058c4957d2328e1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 20 Oct 2025 21:36:05 +0000 Subject: [PATCH 2/7] Commit via running: make Sources/actions --- Sources/actions/Types.swift | 314 ++++++++++++++++++------------------ 1 file changed, 157 insertions(+), 157 deletions(-) diff --git a/Sources/actions/Types.swift b/Sources/actions/Types.swift index 5ffef2c0cf..3f19ab2ad5 100644 --- a/Sources/actions/Types.swift +++ b/Sources/actions/Types.swift @@ -6554,6 +6554,163 @@ public enum Components { case installationsCount = "installations_count" } } + /// - Remark: Generated from `#/components/schemas/pull-request-minimal`. + public struct PullRequestMinimal: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/id`. + public var id: Swift.Int64 + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/number`. + public var number: Swift.Int + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head`. + public struct HeadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/ref`. + public var ref: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/sha`. + public var sha: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo`. + public struct RepoPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/id`. + public var id: Swift.Int64 + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/name`. + public var name: Swift.String + /// Creates a new `RepoPayload`. + /// + /// - Parameters: + /// - id: + /// - url: + /// - name: + public init( + id: Swift.Int64, + url: Swift.String, + name: Swift.String + ) { + self.id = id + self.url = url + self.name = name + } + public enum CodingKeys: String, CodingKey { + case id + case url + case name + } + } + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo`. + public var repo: Components.Schemas.PullRequestMinimal.HeadPayload.RepoPayload + /// Creates a new `HeadPayload`. + /// + /// - Parameters: + /// - ref: + /// - sha: + /// - repo: + public init( + ref: Swift.String, + sha: Swift.String, + repo: Components.Schemas.PullRequestMinimal.HeadPayload.RepoPayload + ) { + self.ref = ref + self.sha = sha + self.repo = repo + } + public enum CodingKeys: String, CodingKey { + case ref + case sha + case repo + } + } + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head`. + public var head: Components.Schemas.PullRequestMinimal.HeadPayload + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base`. + public struct BasePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/ref`. + public var ref: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/sha`. + public var sha: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo`. + public struct RepoPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/id`. + public var id: Swift.Int64 + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/name`. + public var name: Swift.String + /// Creates a new `RepoPayload`. + /// + /// - Parameters: + /// - id: + /// - url: + /// - name: + public init( + id: Swift.Int64, + url: Swift.String, + name: Swift.String + ) { + self.id = id + self.url = url + self.name = name + } + public enum CodingKeys: String, CodingKey { + case id + case url + case name + } + } + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo`. + public var repo: Components.Schemas.PullRequestMinimal.BasePayload.RepoPayload + /// Creates a new `BasePayload`. + /// + /// - Parameters: + /// - ref: + /// - sha: + /// - repo: + public init( + ref: Swift.String, + sha: Swift.String, + repo: Components.Schemas.PullRequestMinimal.BasePayload.RepoPayload + ) { + self.ref = ref + self.sha = sha + self.repo = repo + } + public enum CodingKeys: String, CodingKey { + case ref + case sha + case repo + } + } + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base`. + public var base: Components.Schemas.PullRequestMinimal.BasePayload + /// Creates a new `PullRequestMinimal`. + /// + /// - Parameters: + /// - id: + /// - number: + /// - url: + /// - head: + /// - base: + public init( + id: Swift.Int64, + number: Swift.Int, + url: Swift.String, + head: Components.Schemas.PullRequestMinimal.HeadPayload, + base: Components.Schemas.PullRequestMinimal.BasePayload + ) { + self.id = id + self.number = number + self.url = url + self.head = head + self.base = base + } + public enum CodingKeys: String, CodingKey { + case id + case number + case url + case head + case base + } + } /// - Remark: Generated from `#/components/schemas/security-and-analysis`. public struct SecurityAndAnalysis: Codable, Hashable, Sendable { /// Enable or disable GitHub Advanced Security for the repository. @@ -9709,163 +9866,6 @@ public enum Components { case ref } } - /// - Remark: Generated from `#/components/schemas/pull-request-minimal`. - public struct PullRequestMinimal: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/id`. - public var id: Swift.Int64 - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/number`. - public var number: Swift.Int - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/url`. - public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head`. - public struct HeadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/ref`. - public var ref: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/sha`. - public var sha: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo`. - public struct RepoPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/id`. - public var id: Swift.Int64 - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/url`. - public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/name`. - public var name: Swift.String - /// Creates a new `RepoPayload`. - /// - /// - Parameters: - /// - id: - /// - url: - /// - name: - public init( - id: Swift.Int64, - url: Swift.String, - name: Swift.String - ) { - self.id = id - self.url = url - self.name = name - } - public enum CodingKeys: String, CodingKey { - case id - case url - case name - } - } - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo`. - public var repo: Components.Schemas.PullRequestMinimal.HeadPayload.RepoPayload - /// Creates a new `HeadPayload`. - /// - /// - Parameters: - /// - ref: - /// - sha: - /// - repo: - public init( - ref: Swift.String, - sha: Swift.String, - repo: Components.Schemas.PullRequestMinimal.HeadPayload.RepoPayload - ) { - self.ref = ref - self.sha = sha - self.repo = repo - } - public enum CodingKeys: String, CodingKey { - case ref - case sha - case repo - } - } - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head`. - public var head: Components.Schemas.PullRequestMinimal.HeadPayload - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base`. - public struct BasePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/ref`. - public var ref: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/sha`. - public var sha: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo`. - public struct RepoPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/id`. - public var id: Swift.Int64 - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/url`. - public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/name`. - public var name: Swift.String - /// Creates a new `RepoPayload`. - /// - /// - Parameters: - /// - id: - /// - url: - /// - name: - public init( - id: Swift.Int64, - url: Swift.String, - name: Swift.String - ) { - self.id = id - self.url = url - self.name = name - } - public enum CodingKeys: String, CodingKey { - case id - case url - case name - } - } - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo`. - public var repo: Components.Schemas.PullRequestMinimal.BasePayload.RepoPayload - /// Creates a new `BasePayload`. - /// - /// - Parameters: - /// - ref: - /// - sha: - /// - repo: - public init( - ref: Swift.String, - sha: Swift.String, - repo: Components.Schemas.PullRequestMinimal.BasePayload.RepoPayload - ) { - self.ref = ref - self.sha = sha - self.repo = repo - } - public enum CodingKeys: String, CodingKey { - case ref - case sha - case repo - } - } - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base`. - public var base: Components.Schemas.PullRequestMinimal.BasePayload - /// Creates a new `PullRequestMinimal`. - /// - /// - Parameters: - /// - id: - /// - number: - /// - url: - /// - head: - /// - base: - public init( - id: Swift.Int64, - number: Swift.Int, - url: Swift.String, - head: Components.Schemas.PullRequestMinimal.HeadPayload, - base: Components.Schemas.PullRequestMinimal.BasePayload - ) { - self.id = id - self.number = number - self.url = url - self.head = head - self.base = base - } - public enum CodingKeys: String, CodingKey { - case id - case number - case url - case head - case base - } - } /// A commit. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-commit`. From 49541f88480b2249c9e96b75bdd740547d85d5d2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 20 Oct 2025 21:36:28 +0000 Subject: [PATCH 3/7] Commit via running: make Sources/activity --- Sources/activity/Types.swift | 1726 +++++----------------------------- 1 file changed, 233 insertions(+), 1493 deletions(-) diff --git a/Sources/activity/Types.swift b/Sources/activity/Types.swift index 490571fb49..76c3f219c5 100644 --- a/Sources/activity/Types.swift +++ b/Sources/activity/Types.swift @@ -1034,89 +1034,6 @@ public enum Components { case status } } - /// An enterprise on GitHub. - /// - /// - Remark: Generated from `#/components/schemas/enterprise`. - public struct Enterprise: Codable, Hashable, Sendable { - /// A short description of the enterprise. - /// - /// - Remark: Generated from `#/components/schemas/enterprise/description`. - public var description: Swift.String? - /// - Remark: Generated from `#/components/schemas/enterprise/html_url`. - public var htmlUrl: Swift.String - /// The enterprise's website URL. - /// - /// - Remark: Generated from `#/components/schemas/enterprise/website_url`. - public var websiteUrl: Swift.String? - /// Unique identifier of the enterprise - /// - /// - Remark: Generated from `#/components/schemas/enterprise/id`. - public var id: Swift.Int - /// - Remark: Generated from `#/components/schemas/enterprise/node_id`. - public var nodeId: Swift.String - /// The name of the enterprise. - /// - /// - Remark: Generated from `#/components/schemas/enterprise/name`. - public var name: Swift.String - /// The slug url identifier for the enterprise. - /// - /// - Remark: Generated from `#/components/schemas/enterprise/slug`. - public var slug: Swift.String - /// - Remark: Generated from `#/components/schemas/enterprise/created_at`. - public var createdAt: Foundation.Date? - /// - Remark: Generated from `#/components/schemas/enterprise/updated_at`. - public var updatedAt: Foundation.Date? - /// - Remark: Generated from `#/components/schemas/enterprise/avatar_url`. - public var avatarUrl: Swift.String - /// Creates a new `Enterprise`. - /// - /// - Parameters: - /// - description: A short description of the enterprise. - /// - htmlUrl: - /// - websiteUrl: The enterprise's website URL. - /// - id: Unique identifier of the enterprise - /// - nodeId: - /// - name: The name of the enterprise. - /// - slug: The slug url identifier for the enterprise. - /// - createdAt: - /// - updatedAt: - /// - avatarUrl: - public init( - description: Swift.String? = nil, - htmlUrl: Swift.String, - websiteUrl: Swift.String? = nil, - id: Swift.Int, - nodeId: Swift.String, - name: Swift.String, - slug: Swift.String, - createdAt: Foundation.Date? = nil, - updatedAt: Foundation.Date? = nil, - avatarUrl: Swift.String - ) { - self.description = description - self.htmlUrl = htmlUrl - self.websiteUrl = websiteUrl - self.id = id - self.nodeId = nodeId - self.name = name - self.slug = slug - self.createdAt = createdAt - self.updatedAt = updatedAt - self.avatarUrl = avatarUrl - } - public enum CodingKeys: String, CodingKey { - case description - case htmlUrl = "html_url" - case websiteUrl = "website_url" - case id - case nodeId = "node_id" - case name - case slug - case createdAt = "created_at" - case updatedAt = "updated_at" - case avatarUrl = "avatar_url" - } - } /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. @@ -2213,1364 +2130,92 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/code-of-conduct`. public struct CodeOfConduct: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/code-of-conduct/key`. - public var key: Swift.String - /// - Remark: Generated from `#/components/schemas/code-of-conduct/name`. - public var name: Swift.String - /// - Remark: Generated from `#/components/schemas/code-of-conduct/url`. - public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/code-of-conduct/body`. - public var body: Swift.String? - /// - Remark: Generated from `#/components/schemas/code-of-conduct/html_url`. - public var htmlUrl: Swift.String? - /// Creates a new `CodeOfConduct`. - /// - /// - Parameters: - /// - key: - /// - name: - /// - url: - /// - body: - /// - htmlUrl: - public init( - key: Swift.String, - name: Swift.String, - url: Swift.String, - body: Swift.String? = nil, - htmlUrl: Swift.String? = nil - ) { - self.key = key - self.name = name - self.url = url - self.body = body - self.htmlUrl = htmlUrl - } - public enum CodingKeys: String, CodingKey { - case key - case name - case url - case body - case htmlUrl = "html_url" - } - } - /// Actor - /// - /// - Remark: Generated from `#/components/schemas/actor`. - public struct Actor: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/actor/id`. - public var id: Swift.Int - /// - Remark: Generated from `#/components/schemas/actor/login`. - public var login: Swift.String - /// - Remark: Generated from `#/components/schemas/actor/display_login`. - public var displayLogin: Swift.String? - /// - Remark: Generated from `#/components/schemas/actor/gravatar_id`. - public var gravatarId: Swift.String? - /// - Remark: Generated from `#/components/schemas/actor/url`. - public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/actor/avatar_url`. - public var avatarUrl: Swift.String - /// Creates a new `Actor`. - /// - /// - Parameters: - /// - id: - /// - login: - /// - displayLogin: - /// - gravatarId: - /// - url: - /// - avatarUrl: - public init( - id: Swift.Int, - login: Swift.String, - displayLogin: Swift.String? = nil, - gravatarId: Swift.String? = nil, - url: Swift.String, - avatarUrl: Swift.String - ) { - self.id = id - self.login = login - self.displayLogin = displayLogin - self.gravatarId = gravatarId - self.url = url - self.avatarUrl = avatarUrl - } - public enum CodingKeys: String, CodingKey { - case id - case login - case displayLogin = "display_login" - case gravatarId = "gravatar_id" - case url - case avatarUrl = "avatar_url" - } - } - /// A collection of related issues and pull requests. - /// - /// - Remark: Generated from `#/components/schemas/nullable-milestone`. - public struct NullableMilestone: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/nullable-milestone/url`. - public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/nullable-milestone/html_url`. - public var htmlUrl: Swift.String - /// - Remark: Generated from `#/components/schemas/nullable-milestone/labels_url`. - public var labelsUrl: Swift.String - /// - Remark: Generated from `#/components/schemas/nullable-milestone/id`. - public var id: Swift.Int - /// - Remark: Generated from `#/components/schemas/nullable-milestone/node_id`. - public var nodeId: Swift.String - /// The number of the milestone. - /// - /// - Remark: Generated from `#/components/schemas/nullable-milestone/number`. - public var number: Swift.Int - /// The state of the milestone. - /// - /// - Remark: Generated from `#/components/schemas/nullable-milestone/state`. - @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { - case open = "open" - case closed = "closed" - } - /// The state of the milestone. - /// - /// - Remark: Generated from `#/components/schemas/nullable-milestone/state`. - public var state: Components.Schemas.NullableMilestone.StatePayload - /// The title of the milestone. - /// - /// - Remark: Generated from `#/components/schemas/nullable-milestone/title`. - public var title: Swift.String - /// - Remark: Generated from `#/components/schemas/nullable-milestone/description`. - public var description: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-milestone/creator`. - public var creator: Components.Schemas.NullableSimpleUser? - /// - Remark: Generated from `#/components/schemas/nullable-milestone/open_issues`. - public var openIssues: Swift.Int - /// - Remark: Generated from `#/components/schemas/nullable-milestone/closed_issues`. - public var closedIssues: Swift.Int - /// - Remark: Generated from `#/components/schemas/nullable-milestone/created_at`. - public var createdAt: Foundation.Date - /// - Remark: Generated from `#/components/schemas/nullable-milestone/updated_at`. - public var updatedAt: Foundation.Date - /// - Remark: Generated from `#/components/schemas/nullable-milestone/closed_at`. - public var closedAt: Foundation.Date? - /// - Remark: Generated from `#/components/schemas/nullable-milestone/due_on`. - public var dueOn: Foundation.Date? - /// Creates a new `NullableMilestone`. - /// - /// - Parameters: - /// - url: - /// - htmlUrl: - /// - labelsUrl: - /// - id: - /// - nodeId: - /// - number: The number of the milestone. - /// - state: The state of the milestone. - /// - title: The title of the milestone. - /// - description: - /// - creator: - /// - openIssues: - /// - closedIssues: - /// - createdAt: - /// - updatedAt: - /// - closedAt: - /// - dueOn: - public init( - url: Swift.String, - htmlUrl: Swift.String, - labelsUrl: Swift.String, - id: Swift.Int, - nodeId: Swift.String, - number: Swift.Int, - state: Components.Schemas.NullableMilestone.StatePayload, - title: Swift.String, - description: Swift.String? = nil, - creator: Components.Schemas.NullableSimpleUser? = nil, - openIssues: Swift.Int, - closedIssues: Swift.Int, - createdAt: Foundation.Date, - updatedAt: Foundation.Date, - closedAt: Foundation.Date? = nil, - dueOn: Foundation.Date? = nil - ) { - self.url = url - self.htmlUrl = htmlUrl - self.labelsUrl = labelsUrl - self.id = id - self.nodeId = nodeId - self.number = number - self.state = state - self.title = title - self.description = description - self.creator = creator - self.openIssues = openIssues - self.closedIssues = closedIssues - self.createdAt = createdAt - self.updatedAt = updatedAt - self.closedAt = closedAt - self.dueOn = dueOn - } - public enum CodingKeys: String, CodingKey { - case url - case htmlUrl = "html_url" - case labelsUrl = "labels_url" - case id - case nodeId = "node_id" - case number - case state - case title - case description - case creator - case openIssues = "open_issues" - case closedIssues = "closed_issues" - case createdAt = "created_at" - case updatedAt = "updated_at" - case closedAt = "closed_at" - case dueOn = "due_on" - } - } - /// The type of issue. - /// - /// - Remark: Generated from `#/components/schemas/issue-type`. - public struct IssueType: Codable, Hashable, Sendable { - /// The unique identifier of the issue type. - /// - /// - Remark: Generated from `#/components/schemas/issue-type/id`. - public var id: Swift.Int - /// The node identifier of the issue type. - /// - /// - Remark: Generated from `#/components/schemas/issue-type/node_id`. - public var nodeId: Swift.String - /// The name of the issue type. - /// - /// - Remark: Generated from `#/components/schemas/issue-type/name`. - public var name: Swift.String - /// The description of the issue type. - /// - /// - Remark: Generated from `#/components/schemas/issue-type/description`. - public var description: Swift.String? - /// The color of the issue type. - /// - /// - Remark: Generated from `#/components/schemas/issue-type/color`. - @frozen public enum ColorPayload: String, Codable, Hashable, Sendable, CaseIterable { - case gray = "gray" - case blue = "blue" - case green = "green" - case yellow = "yellow" - case orange = "orange" - case red = "red" - case pink = "pink" - case purple = "purple" - } - /// The color of the issue type. - /// - /// - Remark: Generated from `#/components/schemas/issue-type/color`. - public var color: Components.Schemas.IssueType.ColorPayload? - /// The time the issue type created. - /// - /// - Remark: Generated from `#/components/schemas/issue-type/created_at`. - public var createdAt: Foundation.Date? - /// The time the issue type last updated. - /// - /// - Remark: Generated from `#/components/schemas/issue-type/updated_at`. - public var updatedAt: Foundation.Date? - /// The enabled state of the issue type. - /// - /// - Remark: Generated from `#/components/schemas/issue-type/is_enabled`. - public var isEnabled: Swift.Bool? - /// Creates a new `IssueType`. - /// - /// - Parameters: - /// - id: The unique identifier of the issue type. - /// - nodeId: The node identifier of the issue type. - /// - name: The name of the issue type. - /// - description: The description of the issue type. - /// - color: The color of the issue type. - /// - createdAt: The time the issue type created. - /// - updatedAt: The time the issue type last updated. - /// - isEnabled: The enabled state of the issue type. - public init( - id: Swift.Int, - nodeId: Swift.String, - name: Swift.String, - description: Swift.String? = nil, - color: Components.Schemas.IssueType.ColorPayload? = nil, - createdAt: Foundation.Date? = nil, - updatedAt: Foundation.Date? = nil, - isEnabled: Swift.Bool? = nil - ) { - self.id = id - self.nodeId = nodeId - self.name = name - self.description = description - self.color = color - self.createdAt = createdAt - self.updatedAt = updatedAt - self.isEnabled = isEnabled - } - public enum CodingKeys: String, CodingKey { - case id - case nodeId = "node_id" - case name - case description - case color - case createdAt = "created_at" - case updatedAt = "updated_at" - case isEnabled = "is_enabled" - } - } - /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. - /// - /// - Remark: Generated from `#/components/schemas/nullable-integration`. - public struct NullableIntegration: Codable, Hashable, Sendable { - /// Unique identifier of the GitHub app - /// - /// - Remark: Generated from `#/components/schemas/nullable-integration/id`. - public var id: Swift.Int - /// The slug name of the GitHub app - /// - /// - Remark: Generated from `#/components/schemas/nullable-integration/slug`. - public var slug: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/node_id`. - public var nodeId: Swift.String - /// - Remark: Generated from `#/components/schemas/nullable-integration/client_id`. - public var clientId: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/owner`. - @frozen public enum OwnerPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/nullable-integration/owner/case1`. - case SimpleUser(Components.Schemas.SimpleUser) - /// - Remark: Generated from `#/components/schemas/nullable-integration/owner/case2`. - case Enterprise(Components.Schemas.Enterprise) - public init(from decoder: any Decoder) throws { - var errors: [any Error] = [] - do { - self = .SimpleUser(try .init(from: decoder)) - return - } catch { - errors.append(error) - } - do { - self = .Enterprise(try .init(from: decoder)) - return - } catch { - errors.append(error) - } - throw Swift.DecodingError.failedToDecodeOneOfSchema( - type: Self.self, - codingPath: decoder.codingPath, - errors: errors - ) - } - public func encode(to encoder: any Encoder) throws { - switch self { - case let .SimpleUser(value): - try value.encode(to: encoder) - case let .Enterprise(value): - try value.encode(to: encoder) - } - } - } - /// - Remark: Generated from `#/components/schemas/nullable-integration/owner`. - public var owner: Components.Schemas.NullableIntegration.OwnerPayload - /// The name of the GitHub app - /// - /// - Remark: Generated from `#/components/schemas/nullable-integration/name`. - public var name: Swift.String - /// - Remark: Generated from `#/components/schemas/nullable-integration/description`. - public var description: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/external_url`. - public var externalUrl: Swift.String - /// - Remark: Generated from `#/components/schemas/nullable-integration/html_url`. - public var htmlUrl: Swift.String - /// - Remark: Generated from `#/components/schemas/nullable-integration/created_at`. - public var createdAt: Foundation.Date - /// - Remark: Generated from `#/components/schemas/nullable-integration/updated_at`. - public var updatedAt: Foundation.Date - /// The set of permissions for the GitHub app - /// - /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. - public struct PermissionsPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/issues`. - public var issues: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/checks`. - public var checks: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/metadata`. - public var metadata: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/contents`. - public var contents: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/deployments`. - public var deployments: Swift.String? - /// A container of undocumented properties. - public var additionalProperties: [String: Swift.String] - /// Creates a new `PermissionsPayload`. - /// - /// - Parameters: - /// - issues: - /// - checks: - /// - metadata: - /// - contents: - /// - deployments: - /// - additionalProperties: A container of undocumented properties. - public init( - issues: Swift.String? = nil, - checks: Swift.String? = nil, - metadata: Swift.String? = nil, - contents: Swift.String? = nil, - deployments: Swift.String? = nil, - additionalProperties: [String: Swift.String] = .init() - ) { - self.issues = issues - self.checks = checks - self.metadata = metadata - self.contents = contents - self.deployments = deployments - self.additionalProperties = additionalProperties - } - public enum CodingKeys: String, CodingKey { - case issues - case checks - case metadata - case contents - case deployments - } - public init(from decoder: any Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - self.issues = try container.decodeIfPresent( - Swift.String.self, - forKey: .issues - ) - self.checks = try container.decodeIfPresent( - Swift.String.self, - forKey: .checks - ) - self.metadata = try container.decodeIfPresent( - Swift.String.self, - forKey: .metadata - ) - self.contents = try container.decodeIfPresent( - Swift.String.self, - forKey: .contents - ) - self.deployments = try container.decodeIfPresent( - Swift.String.self, - forKey: .deployments - ) - additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [ - "issues", - "checks", - "metadata", - "contents", - "deployments" - ]) - } - public func encode(to encoder: any Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent( - self.issues, - forKey: .issues - ) - try container.encodeIfPresent( - self.checks, - forKey: .checks - ) - try container.encodeIfPresent( - self.metadata, - forKey: .metadata - ) - try container.encodeIfPresent( - self.contents, - forKey: .contents - ) - try container.encodeIfPresent( - self.deployments, - forKey: .deployments - ) - try encoder.encodeAdditionalProperties(additionalProperties) - } - } - /// The set of permissions for the GitHub app - /// - /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. - public var permissions: Components.Schemas.NullableIntegration.PermissionsPayload - /// The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. - /// - /// - Remark: Generated from `#/components/schemas/nullable-integration/events`. - public var events: [Swift.String] - /// The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. - /// - /// - Remark: Generated from `#/components/schemas/nullable-integration/installations_count`. - public var installationsCount: Swift.Int? - /// Creates a new `NullableIntegration`. - /// - /// - Parameters: - /// - id: Unique identifier of the GitHub app - /// - slug: The slug name of the GitHub app - /// - nodeId: - /// - clientId: - /// - owner: - /// - name: The name of the GitHub app - /// - description: - /// - externalUrl: - /// - htmlUrl: - /// - createdAt: - /// - updatedAt: - /// - permissions: The set of permissions for the GitHub app - /// - events: The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. - /// - installationsCount: The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. - public init( - id: Swift.Int, - slug: Swift.String? = nil, - nodeId: Swift.String, - clientId: Swift.String? = nil, - owner: Components.Schemas.NullableIntegration.OwnerPayload, - name: Swift.String, - description: Swift.String? = nil, - externalUrl: Swift.String, - htmlUrl: Swift.String, - createdAt: Foundation.Date, - updatedAt: Foundation.Date, - permissions: Components.Schemas.NullableIntegration.PermissionsPayload, - events: [Swift.String], - installationsCount: Swift.Int? = nil - ) { - self.id = id - self.slug = slug - self.nodeId = nodeId - self.clientId = clientId - self.owner = owner - self.name = name - self.description = description - self.externalUrl = externalUrl - self.htmlUrl = htmlUrl - self.createdAt = createdAt - self.updatedAt = updatedAt - self.permissions = permissions - self.events = events - self.installationsCount = installationsCount - } - public enum CodingKeys: String, CodingKey { - case id - case slug - case nodeId = "node_id" - case clientId = "client_id" - case owner - case name - case description - case externalUrl = "external_url" - case htmlUrl = "html_url" - case createdAt = "created_at" - case updatedAt = "updated_at" - case permissions - case events - case installationsCount = "installations_count" - } - } - /// How the author is associated with the repository. - /// - /// - Remark: Generated from `#/components/schemas/author-association`. - @frozen public enum AuthorAssociation: String, Codable, Hashable, Sendable, CaseIterable { - case collaborator = "COLLABORATOR" - case contributor = "CONTRIBUTOR" - case firstTimer = "FIRST_TIMER" - case firstTimeContributor = "FIRST_TIME_CONTRIBUTOR" - case mannequin = "MANNEQUIN" - case member = "MEMBER" - case none = "NONE" - case owner = "OWNER" - } - /// - Remark: Generated from `#/components/schemas/reaction-rollup`. - public struct ReactionRollup: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/reaction-rollup/url`. - public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/reaction-rollup/total_count`. - public var totalCount: Swift.Int - /// - Remark: Generated from `#/components/schemas/reaction-rollup/+1`. - public var _plus_1: Swift.Int - /// - Remark: Generated from `#/components/schemas/reaction-rollup/-1`. - public var _hyphen_1: Swift.Int - /// - Remark: Generated from `#/components/schemas/reaction-rollup/laugh`. - public var laugh: Swift.Int - /// - Remark: Generated from `#/components/schemas/reaction-rollup/confused`. - public var confused: Swift.Int - /// - Remark: Generated from `#/components/schemas/reaction-rollup/heart`. - public var heart: Swift.Int - /// - Remark: Generated from `#/components/schemas/reaction-rollup/hooray`. - public var hooray: Swift.Int - /// - Remark: Generated from `#/components/schemas/reaction-rollup/eyes`. - public var eyes: Swift.Int - /// - Remark: Generated from `#/components/schemas/reaction-rollup/rocket`. - public var rocket: Swift.Int - /// Creates a new `ReactionRollup`. - /// - /// - Parameters: - /// - url: - /// - totalCount: - /// - _plus_1: - /// - _hyphen_1: - /// - laugh: - /// - confused: - /// - heart: - /// - hooray: - /// - eyes: - /// - rocket: - public init( - url: Swift.String, - totalCount: Swift.Int, - _plus_1: Swift.Int, - _hyphen_1: Swift.Int, - laugh: Swift.Int, - confused: Swift.Int, - heart: Swift.Int, - hooray: Swift.Int, - eyes: Swift.Int, - rocket: Swift.Int - ) { - self.url = url - self.totalCount = totalCount - self._plus_1 = _plus_1 - self._hyphen_1 = _hyphen_1 - self.laugh = laugh - self.confused = confused - self.heart = heart - self.hooray = hooray - self.eyes = eyes - self.rocket = rocket - } - public enum CodingKeys: String, CodingKey { - case url - case totalCount = "total_count" - case _plus_1 = "+1" - case _hyphen_1 = "-1" - case laugh - case confused - case heart - case hooray - case eyes - case rocket - } - } - /// - Remark: Generated from `#/components/schemas/sub-issues-summary`. - public struct SubIssuesSummary: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/sub-issues-summary/total`. - public var total: Swift.Int - /// - Remark: Generated from `#/components/schemas/sub-issues-summary/completed`. - public var completed: Swift.Int - /// - Remark: Generated from `#/components/schemas/sub-issues-summary/percent_completed`. - public var percentCompleted: Swift.Int - /// Creates a new `SubIssuesSummary`. - /// - /// - Parameters: - /// - total: - /// - completed: - /// - percentCompleted: - public init( - total: Swift.Int, - completed: Swift.Int, - percentCompleted: Swift.Int - ) { - self.total = total - self.completed = completed - self.percentCompleted = percentCompleted - } - public enum CodingKeys: String, CodingKey { - case total - case completed - 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" - } - } - /// A value assigned to an issue field - /// - /// - Remark: Generated from `#/components/schemas/issue-field-value`. - public struct IssueFieldValue: Codable, Hashable, Sendable { - /// Unique identifier for the issue field. - /// - /// - Remark: Generated from `#/components/schemas/issue-field-value/issue_field_id`. - public var issueFieldId: Swift.Int64 - /// - Remark: Generated from `#/components/schemas/issue-field-value/node_id`. - public var nodeId: Swift.String - /// The data type of the issue field - /// - /// - Remark: Generated from `#/components/schemas/issue-field-value/data_type`. - @frozen public enum DataTypePayload: String, Codable, Hashable, Sendable, CaseIterable { - case text = "text" - case singleSelect = "single_select" - case number = "number" - case date = "date" - } - /// The data type of the issue field - /// - /// - Remark: Generated from `#/components/schemas/issue-field-value/data_type`. - public var dataType: Components.Schemas.IssueFieldValue.DataTypePayload - /// The value of the issue field - /// - /// - Remark: Generated from `#/components/schemas/issue-field-value/value`. - public struct ValuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/issue-field-value/value/value1`. - public var value1: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue-field-value/value/value2`. - public var value2: Swift.Double? - /// - Remark: Generated from `#/components/schemas/issue-field-value/value/value3`. - public var value3: Swift.Int? - /// Creates a new `ValuePayload`. - /// - /// - Parameters: - /// - value1: - /// - value2: - /// - value3: - public init( - value1: Swift.String? = nil, - value2: Swift.Double? = nil, - value3: Swift.Int? = nil - ) { - self.value1 = value1 - self.value2 = value2 - self.value3 = value3 - } - public init(from decoder: any Decoder) throws { - var errors: [any Error] = [] - do { - self.value1 = try decoder.decodeFromSingleValueContainer() - } catch { - errors.append(error) - } - do { - self.value2 = try decoder.decodeFromSingleValueContainer() - } catch { - errors.append(error) - } - do { - self.value3 = try decoder.decodeFromSingleValueContainer() - } catch { - errors.append(error) - } - try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( - [ - self.value1, - self.value2, - self.value3 - ], - type: Self.self, - codingPath: decoder.codingPath, - errors: errors - ) - } - public func encode(to encoder: any Encoder) throws { - try encoder.encodeFirstNonNilValueToSingleValueContainer([ - self.value1, - self.value2, - self.value3 - ]) - } - } - /// The value of the issue field - /// - /// - Remark: Generated from `#/components/schemas/issue-field-value/value`. - public var value: Components.Schemas.IssueFieldValue.ValuePayload? - /// Details about the selected option (only present for single_select fields) - /// - /// - Remark: Generated from `#/components/schemas/issue-field-value/single_select_option`. - public struct SingleSelectOptionPayload: Codable, Hashable, Sendable { - /// Unique identifier for the option. - /// - /// - Remark: Generated from `#/components/schemas/issue-field-value/single_select_option/id`. - public var id: Swift.Int64 - /// The name of the option - /// - /// - Remark: Generated from `#/components/schemas/issue-field-value/single_select_option/name`. - public var name: Swift.String - /// The color of the option - /// - /// - Remark: Generated from `#/components/schemas/issue-field-value/single_select_option/color`. - public var color: Swift.String - /// Creates a new `SingleSelectOptionPayload`. - /// - /// - Parameters: - /// - id: Unique identifier for the option. - /// - name: The name of the option - /// - color: The color of the option - public init( - id: Swift.Int64, - name: Swift.String, - color: Swift.String - ) { - self.id = id - self.name = name - self.color = color - } - public enum CodingKeys: String, CodingKey { - case id - case name - case color - } - } - /// Details about the selected option (only present for single_select fields) - /// - /// - Remark: Generated from `#/components/schemas/issue-field-value/single_select_option`. - public var singleSelectOption: Components.Schemas.IssueFieldValue.SingleSelectOptionPayload? - /// Creates a new `IssueFieldValue`. - /// - /// - Parameters: - /// - issueFieldId: Unique identifier for the issue field. - /// - nodeId: - /// - dataType: The data type of the issue field - /// - value: The value of the issue field - /// - singleSelectOption: Details about the selected option (only present for single_select fields) - public init( - issueFieldId: Swift.Int64, - nodeId: Swift.String, - dataType: Components.Schemas.IssueFieldValue.DataTypePayload, - value: Components.Schemas.IssueFieldValue.ValuePayload? = nil, - singleSelectOption: Components.Schemas.IssueFieldValue.SingleSelectOptionPayload? = nil - ) { - self.issueFieldId = issueFieldId - self.nodeId = nodeId - self.dataType = dataType - self.value = value - self.singleSelectOption = singleSelectOption - } - public enum CodingKeys: String, CodingKey { - case issueFieldId = "issue_field_id" - case nodeId = "node_id" - case dataType = "data_type" - case value - case singleSelectOption = "single_select_option" - } - } - /// Issues are a great way to keep track of tasks, enhancements, and bugs for your projects. - /// - /// - Remark: Generated from `#/components/schemas/issue`. - public struct Issue: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/issue/id`. - public var id: Swift.Int64 - /// - Remark: Generated from `#/components/schemas/issue/node_id`. - public var nodeId: Swift.String - /// URL for the issue - /// - /// - Remark: Generated from `#/components/schemas/issue/url`. - public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/issue/repository_url`. - public var repositoryUrl: Swift.String - /// - Remark: Generated from `#/components/schemas/issue/labels_url`. - public var labelsUrl: Swift.String - /// - Remark: Generated from `#/components/schemas/issue/comments_url`. - public var commentsUrl: Swift.String - /// - Remark: Generated from `#/components/schemas/issue/events_url`. - public var eventsUrl: Swift.String - /// - Remark: Generated from `#/components/schemas/issue/html_url`. - public var htmlUrl: Swift.String - /// Number uniquely identifying the issue within its repository - /// - /// - Remark: Generated from `#/components/schemas/issue/number`. - public var number: Swift.Int - /// State of the issue; either 'open' or 'closed' - /// - /// - Remark: Generated from `#/components/schemas/issue/state`. - public var state: Swift.String - /// The reason for the current state - /// - /// - Remark: Generated from `#/components/schemas/issue/state_reason`. - @frozen public enum StateReasonPayload: String, Codable, Hashable, Sendable, CaseIterable { - case completed = "completed" - case reopened = "reopened" - case notPlanned = "not_planned" - case duplicate = "duplicate" - } - /// The reason for the current state - /// - /// - Remark: Generated from `#/components/schemas/issue/state_reason`. - public var stateReason: Components.Schemas.Issue.StateReasonPayload? - /// Title of the issue - /// - /// - Remark: Generated from `#/components/schemas/issue/title`. - public var title: Swift.String - /// Contents of the issue - /// - /// - Remark: Generated from `#/components/schemas/issue/body`. - public var body: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/user`. - public var user: Components.Schemas.NullableSimpleUser? - /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload`. - @frozen public enum LabelsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case1`. - case case1(Swift.String) - /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2`. - public struct Case2Payload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/id`. - public var id: Swift.Int64? - /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/node_id`. - public var nodeId: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/url`. - public var url: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/name`. - public var name: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/description`. - public var description: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/color`. - public var color: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/default`. - public var _default: Swift.Bool? - /// Creates a new `Case2Payload`. - /// - /// - Parameters: - /// - id: - /// - nodeId: - /// - url: - /// - name: - /// - description: - /// - color: - /// - _default: - public init( - id: Swift.Int64? = nil, - nodeId: Swift.String? = nil, - url: Swift.String? = nil, - name: Swift.String? = nil, - description: Swift.String? = nil, - color: Swift.String? = nil, - _default: Swift.Bool? = nil - ) { - self.id = id - self.nodeId = nodeId - self.url = url - self.name = name - self.description = description - self.color = color - self._default = _default - } - public enum CodingKeys: String, CodingKey { - case id - case nodeId = "node_id" - case url - case name - case description - case color - case _default = "default" - } - } - /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2`. - case case2(Components.Schemas.Issue.LabelsPayloadPayload.Case2Payload) - public init(from decoder: any Decoder) throws { - var errors: [any Error] = [] - do { - self = .case1(try decoder.decodeFromSingleValueContainer()) - return - } catch { - errors.append(error) - } - do { - self = .case2(try .init(from: decoder)) - return - } catch { - errors.append(error) - } - throw Swift.DecodingError.failedToDecodeOneOfSchema( - type: Self.self, - codingPath: decoder.codingPath, - errors: errors - ) - } - public func encode(to encoder: any Encoder) throws { - switch self { - case let .case1(value): - try encoder.encodeToSingleValueContainer(value) - case let .case2(value): - try value.encode(to: encoder) - } - } - } - /// Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository - /// - /// - Remark: Generated from `#/components/schemas/issue/labels`. - public typealias LabelsPayload = [Components.Schemas.Issue.LabelsPayloadPayload] - /// Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository - /// - /// - Remark: Generated from `#/components/schemas/issue/labels`. - public var labels: Components.Schemas.Issue.LabelsPayload - /// - Remark: Generated from `#/components/schemas/issue/assignee`. - public var assignee: Components.Schemas.NullableSimpleUser? - /// - Remark: Generated from `#/components/schemas/issue/assignees`. - public var assignees: [Components.Schemas.SimpleUser]? - /// - Remark: Generated from `#/components/schemas/issue/milestone`. - public var milestone: Components.Schemas.NullableMilestone? - /// - Remark: Generated from `#/components/schemas/issue/locked`. - public var locked: Swift.Bool - /// - Remark: Generated from `#/components/schemas/issue/active_lock_reason`. - public var activeLockReason: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/comments`. - public var comments: Swift.Int - /// - Remark: Generated from `#/components/schemas/issue/pull_request`. - public struct PullRequestPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/issue/pull_request/merged_at`. - public var mergedAt: Foundation.Date? - /// - Remark: Generated from `#/components/schemas/issue/pull_request/diff_url`. - public var diffUrl: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/pull_request/html_url`. - public var htmlUrl: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/pull_request/patch_url`. - public var patchUrl: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/pull_request/url`. - public var url: Swift.String? - /// Creates a new `PullRequestPayload`. - /// - /// - Parameters: - /// - mergedAt: - /// - diffUrl: - /// - htmlUrl: - /// - patchUrl: - /// - url: - public init( - mergedAt: Foundation.Date? = nil, - diffUrl: Swift.String? = nil, - htmlUrl: Swift.String? = nil, - patchUrl: Swift.String? = nil, - url: Swift.String? = nil - ) { - self.mergedAt = mergedAt - self.diffUrl = diffUrl - self.htmlUrl = htmlUrl - self.patchUrl = patchUrl - self.url = url - } - public enum CodingKeys: String, CodingKey { - case mergedAt = "merged_at" - case diffUrl = "diff_url" - case htmlUrl = "html_url" - case patchUrl = "patch_url" - case url - } - } - /// - Remark: Generated from `#/components/schemas/issue/pull_request`. - public var pullRequest: Components.Schemas.Issue.PullRequestPayload? - /// - Remark: Generated from `#/components/schemas/issue/closed_at`. - public var closedAt: Foundation.Date? - /// - Remark: Generated from `#/components/schemas/issue/created_at`. - public var createdAt: Foundation.Date - /// - Remark: Generated from `#/components/schemas/issue/updated_at`. - public var updatedAt: Foundation.Date - /// - Remark: Generated from `#/components/schemas/issue/draft`. - public var draft: Swift.Bool? - /// - Remark: Generated from `#/components/schemas/issue/closed_by`. - public var closedBy: Components.Schemas.NullableSimpleUser? - /// - Remark: Generated from `#/components/schemas/issue/body_html`. - public var bodyHtml: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/body_text`. - public var bodyText: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/timeline_url`. - public var timelineUrl: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/type`. - public var _type: Components.Schemas.IssueType? - /// - Remark: Generated from `#/components/schemas/issue/repository`. - public var repository: Components.Schemas.Repository? - /// - Remark: Generated from `#/components/schemas/issue/performed_via_github_app`. - public var performedViaGithubApp: Components.Schemas.NullableIntegration? - /// - Remark: Generated from `#/components/schemas/issue/author_association`. - public var authorAssociation: Components.Schemas.AuthorAssociation? - /// - Remark: Generated from `#/components/schemas/issue/reactions`. - public var reactions: Components.Schemas.ReactionRollup? - /// - Remark: Generated from `#/components/schemas/issue/sub_issues_summary`. - public var subIssuesSummary: Components.Schemas.SubIssuesSummary? - /// URL to get the parent issue of this issue, if it is a sub-issue - /// - /// - Remark: Generated from `#/components/schemas/issue/parent_issue_url`. - public var parentIssueUrl: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/issue_dependencies_summary`. - public var issueDependenciesSummary: Components.Schemas.IssueDependenciesSummary? - /// - Remark: Generated from `#/components/schemas/issue/issue_field_values`. - public var issueFieldValues: [Components.Schemas.IssueFieldValue]? - /// Creates a new `Issue`. + /// - Remark: Generated from `#/components/schemas/code-of-conduct/key`. + public var key: Swift.String + /// - Remark: Generated from `#/components/schemas/code-of-conduct/name`. + public var name: Swift.String + /// - Remark: Generated from `#/components/schemas/code-of-conduct/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/code-of-conduct/body`. + public var body: Swift.String? + /// - Remark: Generated from `#/components/schemas/code-of-conduct/html_url`. + public var htmlUrl: Swift.String? + /// Creates a new `CodeOfConduct`. /// /// - Parameters: - /// - id: - /// - nodeId: - /// - url: URL for the issue - /// - repositoryUrl: - /// - labelsUrl: - /// - commentsUrl: - /// - eventsUrl: + /// - key: + /// - name: + /// - url: + /// - body: /// - htmlUrl: - /// - number: Number uniquely identifying the issue within its repository - /// - state: State of the issue; either 'open' or 'closed' - /// - stateReason: The reason for the current state - /// - title: Title of the issue - /// - body: Contents of the issue - /// - user: - /// - labels: Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository - /// - assignee: - /// - assignees: - /// - milestone: - /// - locked: - /// - activeLockReason: - /// - comments: - /// - pullRequest: - /// - closedAt: - /// - createdAt: - /// - updatedAt: - /// - draft: - /// - closedBy: - /// - bodyHtml: - /// - bodyText: - /// - timelineUrl: - /// - _type: - /// - repository: - /// - performedViaGithubApp: - /// - authorAssociation: - /// - reactions: - /// - subIssuesSummary: - /// - parentIssueUrl: URL to get the parent issue of this issue, if it is a sub-issue - /// - issueDependenciesSummary: - /// - issueFieldValues: public init( - id: Swift.Int64, - nodeId: Swift.String, + key: Swift.String, + name: Swift.String, url: Swift.String, - repositoryUrl: Swift.String, - labelsUrl: Swift.String, - commentsUrl: Swift.String, - eventsUrl: Swift.String, - htmlUrl: Swift.String, - number: Swift.Int, - state: Swift.String, - stateReason: Components.Schemas.Issue.StateReasonPayload? = nil, - title: Swift.String, body: Swift.String? = nil, - user: Components.Schemas.NullableSimpleUser? = nil, - labels: Components.Schemas.Issue.LabelsPayload, - assignee: Components.Schemas.NullableSimpleUser? = nil, - assignees: [Components.Schemas.SimpleUser]? = nil, - milestone: Components.Schemas.NullableMilestone? = nil, - locked: Swift.Bool, - activeLockReason: Swift.String? = nil, - comments: Swift.Int, - pullRequest: Components.Schemas.Issue.PullRequestPayload? = nil, - closedAt: Foundation.Date? = nil, - createdAt: Foundation.Date, - updatedAt: Foundation.Date, - draft: Swift.Bool? = nil, - closedBy: Components.Schemas.NullableSimpleUser? = nil, - bodyHtml: Swift.String? = nil, - bodyText: Swift.String? = nil, - timelineUrl: Swift.String? = nil, - _type: Components.Schemas.IssueType? = nil, - repository: Components.Schemas.Repository? = nil, - performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, - authorAssociation: Components.Schemas.AuthorAssociation? = nil, - reactions: Components.Schemas.ReactionRollup? = nil, - subIssuesSummary: Components.Schemas.SubIssuesSummary? = nil, - parentIssueUrl: Swift.String? = nil, - issueDependenciesSummary: Components.Schemas.IssueDependenciesSummary? = nil, - issueFieldValues: [Components.Schemas.IssueFieldValue]? = nil + htmlUrl: Swift.String? = nil ) { - self.id = id - self.nodeId = nodeId + self.key = key + self.name = name self.url = url - self.repositoryUrl = repositoryUrl - self.labelsUrl = labelsUrl - self.commentsUrl = commentsUrl - self.eventsUrl = eventsUrl - self.htmlUrl = htmlUrl - self.number = number - self.state = state - self.stateReason = stateReason - self.title = title self.body = body - self.user = user - self.labels = labels - self.assignee = assignee - self.assignees = assignees - self.milestone = milestone - self.locked = locked - self.activeLockReason = activeLockReason - self.comments = comments - self.pullRequest = pullRequest - self.closedAt = closedAt - self.createdAt = createdAt - self.updatedAt = updatedAt - self.draft = draft - self.closedBy = closedBy - self.bodyHtml = bodyHtml - self.bodyText = bodyText - self.timelineUrl = timelineUrl - self._type = _type - self.repository = repository - self.performedViaGithubApp = performedViaGithubApp - self.authorAssociation = authorAssociation - self.reactions = reactions - self.subIssuesSummary = subIssuesSummary - self.parentIssueUrl = parentIssueUrl - self.issueDependenciesSummary = issueDependenciesSummary - self.issueFieldValues = issueFieldValues + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { - case id - case nodeId = "node_id" + case key + case name case url - case repositoryUrl = "repository_url" - case labelsUrl = "labels_url" - case commentsUrl = "comments_url" - case eventsUrl = "events_url" - case htmlUrl = "html_url" - case number - case state - case stateReason = "state_reason" - case title case body - case user - case labels - case assignee - case assignees - case milestone - case locked - case activeLockReason = "active_lock_reason" - case comments - case pullRequest = "pull_request" - case closedAt = "closed_at" - case createdAt = "created_at" - case updatedAt = "updated_at" - case draft - case closedBy = "closed_by" - case bodyHtml = "body_html" - case bodyText = "body_text" - case timelineUrl = "timeline_url" - case _type = "type" - case repository - case performedViaGithubApp = "performed_via_github_app" - case authorAssociation = "author_association" - case reactions - case subIssuesSummary = "sub_issues_summary" - case parentIssueUrl = "parent_issue_url" - case issueDependenciesSummary = "issue_dependencies_summary" - case issueFieldValues = "issue_field_values" + case htmlUrl = "html_url" } } - /// Comments provide a way for people to collaborate on an issue. + /// Actor /// - /// - Remark: Generated from `#/components/schemas/issue-comment`. - public struct IssueComment: Codable, Hashable, Sendable { - /// Unique identifier of the issue comment - /// - /// - Remark: Generated from `#/components/schemas/issue-comment/id`. - public var id: Swift.Int64 - /// - Remark: Generated from `#/components/schemas/issue-comment/node_id`. - public var nodeId: Swift.String - /// URL for the issue comment - /// - /// - Remark: Generated from `#/components/schemas/issue-comment/url`. + /// - Remark: Generated from `#/components/schemas/actor`. + public struct Actor: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/actor/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/actor/login`. + public var login: Swift.String + /// - Remark: Generated from `#/components/schemas/actor/display_login`. + public var displayLogin: Swift.String? + /// - Remark: Generated from `#/components/schemas/actor/gravatar_id`. + public var gravatarId: Swift.String? + /// - Remark: Generated from `#/components/schemas/actor/url`. public var url: Swift.String - /// Contents of the issue comment - /// - /// - Remark: Generated from `#/components/schemas/issue-comment/body`. - public var body: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue-comment/body_text`. - public var bodyText: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue-comment/body_html`. - public var bodyHtml: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue-comment/html_url`. - public var htmlUrl: Swift.String - /// - Remark: Generated from `#/components/schemas/issue-comment/user`. - public var user: Components.Schemas.NullableSimpleUser? - /// - Remark: Generated from `#/components/schemas/issue-comment/created_at`. - public var createdAt: Foundation.Date - /// - Remark: Generated from `#/components/schemas/issue-comment/updated_at`. - public var updatedAt: Foundation.Date - /// - Remark: Generated from `#/components/schemas/issue-comment/issue_url`. - public var issueUrl: Swift.String - /// - Remark: Generated from `#/components/schemas/issue-comment/author_association`. - public var authorAssociation: Components.Schemas.AuthorAssociation - /// - Remark: Generated from `#/components/schemas/issue-comment/performed_via_github_app`. - public var performedViaGithubApp: Components.Schemas.NullableIntegration? - /// - Remark: Generated from `#/components/schemas/issue-comment/reactions`. - public var reactions: Components.Schemas.ReactionRollup? - /// Creates a new `IssueComment`. + /// - Remark: Generated from `#/components/schemas/actor/avatar_url`. + public var avatarUrl: Swift.String + /// Creates a new `Actor`. /// /// - Parameters: - /// - id: Unique identifier of the issue comment - /// - nodeId: - /// - url: URL for the issue comment - /// - body: Contents of the issue comment - /// - bodyText: - /// - bodyHtml: - /// - htmlUrl: - /// - user: - /// - createdAt: - /// - updatedAt: - /// - issueUrl: - /// - authorAssociation: - /// - performedViaGithubApp: - /// - reactions: + /// - id: + /// - login: + /// - displayLogin: + /// - gravatarId: + /// - url: + /// - avatarUrl: public init( - id: Swift.Int64, - nodeId: Swift.String, + id: Swift.Int, + login: Swift.String, + displayLogin: Swift.String? = nil, + gravatarId: Swift.String? = nil, url: Swift.String, - body: Swift.String? = nil, - bodyText: Swift.String? = nil, - bodyHtml: Swift.String? = nil, - htmlUrl: Swift.String, - user: Components.Schemas.NullableSimpleUser? = nil, - createdAt: Foundation.Date, - updatedAt: Foundation.Date, - issueUrl: Swift.String, - authorAssociation: Components.Schemas.AuthorAssociation, - performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, - reactions: Components.Schemas.ReactionRollup? = nil + avatarUrl: Swift.String ) { self.id = id - self.nodeId = nodeId + self.login = login + self.displayLogin = displayLogin + self.gravatarId = gravatarId self.url = url - self.body = body - self.bodyText = bodyText - self.bodyHtml = bodyHtml - self.htmlUrl = htmlUrl - self.user = user - self.createdAt = createdAt - self.updatedAt = updatedAt - self.issueUrl = issueUrl - self.authorAssociation = authorAssociation - self.performedViaGithubApp = performedViaGithubApp - self.reactions = reactions + self.avatarUrl = avatarUrl } public enum CodingKeys: String, CodingKey { case id - case nodeId = "node_id" + case login + case displayLogin = "display_login" + case gravatarId = "gravatar_id" case url - case body - case bodyText = "body_text" - case bodyHtml = "body_html" - case htmlUrl = "html_url" - case user - case createdAt = "created_at" - case updatedAt = "updated_at" - case issueUrl = "issue_url" - case authorAssociation = "author_association" - case performedViaGithubApp = "performed_via_github_app" - case reactions + case avatarUrl = "avatar_url" } } /// Event @@ -3617,87 +2262,178 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/event/org`. public var org: Components.Schemas.Actor? /// - Remark: Generated from `#/components/schemas/event/payload`. - public struct PayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/event/payload/action`. - public var action: Swift.String? - /// - Remark: Generated from `#/components/schemas/event/payload/issue`. - public var issue: Components.Schemas.Issue? - /// - Remark: Generated from `#/components/schemas/event/payload/comment`. - public var comment: Components.Schemas.IssueComment? - /// - Remark: Generated from `#/components/schemas/event/payload/PagesPayload`. - public struct PagesPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/event/payload/PagesPayload/page_name`. - public var pageName: Swift.String? - /// - Remark: Generated from `#/components/schemas/event/payload/PagesPayload/title`. - public var title: Swift.String? - /// - Remark: Generated from `#/components/schemas/event/payload/PagesPayload/summary`. - public var summary: Swift.String? - /// - Remark: Generated from `#/components/schemas/event/payload/PagesPayload/action`. - public var action: Swift.String? - /// - Remark: Generated from `#/components/schemas/event/payload/PagesPayload/sha`. - public var sha: Swift.String? - /// - Remark: Generated from `#/components/schemas/event/payload/PagesPayload/html_url`. - public var htmlUrl: Swift.String? - /// Creates a new `PagesPayloadPayload`. - /// - /// - Parameters: - /// - pageName: - /// - title: - /// - summary: - /// - action: - /// - sha: - /// - htmlUrl: - public init( - pageName: Swift.String? = nil, - title: Swift.String? = nil, - summary: Swift.String? = nil, - action: Swift.String? = nil, - sha: Swift.String? = nil, - htmlUrl: Swift.String? = nil - ) { - self.pageName = pageName - self.title = title - self.summary = summary - self.action = action - self.sha = sha - self.htmlUrl = htmlUrl + @frozen public enum PayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/event/payload/case1`. + case case1(OpenAPIRuntime.OpenAPIValueContainer) + /// - Remark: Generated from `#/components/schemas/event/payload/case2`. + case case2(OpenAPIRuntime.OpenAPIValueContainer) + /// - Remark: Generated from `#/components/schemas/event/payload/case3`. + case case3(OpenAPIRuntime.OpenAPIValueContainer) + /// - Remark: Generated from `#/components/schemas/event/payload/case4`. + case case4(OpenAPIRuntime.OpenAPIValueContainer) + /// - Remark: Generated from `#/components/schemas/event/payload/case5`. + case case5(OpenAPIRuntime.OpenAPIValueContainer) + /// - Remark: Generated from `#/components/schemas/event/payload/case6`. + case case6(OpenAPIRuntime.OpenAPIValueContainer) + /// - Remark: Generated from `#/components/schemas/event/payload/case7`. + case case7(OpenAPIRuntime.OpenAPIValueContainer) + /// - Remark: Generated from `#/components/schemas/event/payload/case8`. + case case8(OpenAPIRuntime.OpenAPIValueContainer) + /// - Remark: Generated from `#/components/schemas/event/payload/case9`. + case case9(OpenAPIRuntime.OpenAPIValueContainer) + /// - Remark: Generated from `#/components/schemas/event/payload/case10`. + case case10(OpenAPIRuntime.OpenAPIValueContainer) + /// - Remark: Generated from `#/components/schemas/event/payload/case11`. + case case11(OpenAPIRuntime.OpenAPIValueContainer) + /// - Remark: Generated from `#/components/schemas/event/payload/case12`. + case case12(OpenAPIRuntime.OpenAPIValueContainer) + /// - Remark: Generated from `#/components/schemas/event/payload/case13`. + case case13(OpenAPIRuntime.OpenAPIValueContainer) + /// - Remark: Generated from `#/components/schemas/event/payload/case14`. + case case14(OpenAPIRuntime.OpenAPIValueContainer) + /// - Remark: Generated from `#/components/schemas/event/payload/case15`. + case case15(OpenAPIRuntime.OpenAPIValueContainer) + /// - Remark: Generated from `#/components/schemas/event/payload/case16`. + case case16(OpenAPIRuntime.OpenAPIValueContainer) + public init(from decoder: any Decoder) throws { + var errors: [any Error] = [] + do { + self = .case1(try .init(from: decoder)) + return + } catch { + errors.append(error) } - public enum CodingKeys: String, CodingKey { - case pageName = "page_name" - case title - case summary - case action - case sha - case htmlUrl = "html_url" + do { + self = .case2(try .init(from: decoder)) + return + } catch { + errors.append(error) } + do { + self = .case3(try .init(from: decoder)) + return + } catch { + errors.append(error) + } + do { + self = .case4(try .init(from: decoder)) + return + } catch { + errors.append(error) + } + do { + self = .case5(try .init(from: decoder)) + return + } catch { + errors.append(error) + } + do { + self = .case6(try .init(from: decoder)) + return + } catch { + errors.append(error) + } + do { + self = .case7(try .init(from: decoder)) + return + } catch { + errors.append(error) + } + do { + self = .case8(try .init(from: decoder)) + return + } catch { + errors.append(error) + } + do { + self = .case9(try .init(from: decoder)) + return + } catch { + errors.append(error) + } + do { + self = .case10(try .init(from: decoder)) + return + } catch { + errors.append(error) + } + do { + self = .case11(try .init(from: decoder)) + return + } catch { + errors.append(error) + } + do { + self = .case12(try .init(from: decoder)) + return + } catch { + errors.append(error) + } + do { + self = .case13(try .init(from: decoder)) + return + } catch { + errors.append(error) + } + do { + self = .case14(try .init(from: decoder)) + return + } catch { + errors.append(error) + } + do { + self = .case15(try .init(from: decoder)) + return + } catch { + errors.append(error) + } + do { + self = .case16(try .init(from: decoder)) + return + } catch { + errors.append(error) + } + throw Swift.DecodingError.failedToDecodeOneOfSchema( + type: Self.self, + codingPath: decoder.codingPath, + errors: errors + ) } - /// - Remark: Generated from `#/components/schemas/event/payload/pages`. - public typealias PagesPayload = [Components.Schemas.Event.PayloadPayload.PagesPayloadPayload] - /// - Remark: Generated from `#/components/schemas/event/payload/pages`. - public var pages: Components.Schemas.Event.PayloadPayload.PagesPayload? - /// Creates a new `PayloadPayload`. - /// - /// - Parameters: - /// - action: - /// - issue: - /// - comment: - /// - pages: - public init( - action: Swift.String? = nil, - issue: Components.Schemas.Issue? = nil, - comment: Components.Schemas.IssueComment? = nil, - pages: Components.Schemas.Event.PayloadPayload.PagesPayload? = nil - ) { - self.action = action - self.issue = issue - self.comment = comment - self.pages = pages - } - public enum CodingKeys: String, CodingKey { - case action - case issue - case comment - case pages + public func encode(to encoder: any Encoder) throws { + switch self { + case let .case1(value): + try value.encode(to: encoder) + case let .case2(value): + try value.encode(to: encoder) + case let .case3(value): + try value.encode(to: encoder) + case let .case4(value): + try value.encode(to: encoder) + case let .case5(value): + try value.encode(to: encoder) + case let .case6(value): + try value.encode(to: encoder) + case let .case7(value): + try value.encode(to: encoder) + case let .case8(value): + try value.encode(to: encoder) + case let .case9(value): + try value.encode(to: encoder) + case let .case10(value): + try value.encode(to: encoder) + case let .case11(value): + try value.encode(to: encoder) + case let .case12(value): + try value.encode(to: encoder) + case let .case13(value): + try value.encode(to: encoder) + case let .case14(value): + try value.encode(to: encoder) + case let .case15(value): + try value.encode(to: encoder) + case let .case16(value): + try value.encode(to: encoder) + } } } /// - Remark: Generated from `#/components/schemas/event/payload`. @@ -5070,6 +3806,10 @@ public enum Components { /// /// - Remark: Generated from `#/components/parameters/username`. public typealias Username = Swift.String + /// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + /// + /// - Remark: Generated from `#/components/parameters/public-events-per-page`. + public typealias PublicEventsPerPage = Swift.Int /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. @@ -5336,7 +4076,7 @@ public enum Operations { /// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." /// /// - Remark: Generated from `#/paths/events/GET/query/per_page`. - public var perPage: Components.Parameters.PerPage? + public var perPage: Components.Parameters.PublicEventsPerPage? /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." /// /// - Remark: Generated from `#/paths/events/GET/query/page`. @@ -5347,7 +4087,7 @@ public enum Operations { /// - perPage: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." /// - page: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." public init( - perPage: Components.Parameters.PerPage? = nil, + perPage: Components.Parameters.PublicEventsPerPage? = nil, page: Components.Parameters.Page? = nil ) { self.perPage = perPage From 7ad72876f1aba7c5e3b97c001eb4547fe7371779 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 20 Oct 2025 21:37:36 +0000 Subject: [PATCH 4/7] Commit via running: make Sources/checks --- Sources/checks/Types.swift | 314 ++++++++++++++++++------------------- 1 file changed, 157 insertions(+), 157 deletions(-) diff --git a/Sources/checks/Types.swift b/Sources/checks/Types.swift index 8d870a6c47..4e53748b79 100644 --- a/Sources/checks/Types.swift +++ b/Sources/checks/Types.swift @@ -972,6 +972,163 @@ public enum Components { case installationsCount = "installations_count" } } + /// - Remark: Generated from `#/components/schemas/pull-request-minimal`. + public struct PullRequestMinimal: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/id`. + public var id: Swift.Int64 + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/number`. + public var number: Swift.Int + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head`. + public struct HeadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/ref`. + public var ref: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/sha`. + public var sha: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo`. + public struct RepoPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/id`. + public var id: Swift.Int64 + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/name`. + public var name: Swift.String + /// Creates a new `RepoPayload`. + /// + /// - Parameters: + /// - id: + /// - url: + /// - name: + public init( + id: Swift.Int64, + url: Swift.String, + name: Swift.String + ) { + self.id = id + self.url = url + self.name = name + } + public enum CodingKeys: String, CodingKey { + case id + case url + case name + } + } + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo`. + public var repo: Components.Schemas.PullRequestMinimal.HeadPayload.RepoPayload + /// Creates a new `HeadPayload`. + /// + /// - Parameters: + /// - ref: + /// - sha: + /// - repo: + public init( + ref: Swift.String, + sha: Swift.String, + repo: Components.Schemas.PullRequestMinimal.HeadPayload.RepoPayload + ) { + self.ref = ref + self.sha = sha + self.repo = repo + } + public enum CodingKeys: String, CodingKey { + case ref + case sha + case repo + } + } + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head`. + public var head: Components.Schemas.PullRequestMinimal.HeadPayload + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base`. + public struct BasePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/ref`. + public var ref: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/sha`. + public var sha: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo`. + public struct RepoPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/id`. + public var id: Swift.Int64 + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/name`. + public var name: Swift.String + /// Creates a new `RepoPayload`. + /// + /// - Parameters: + /// - id: + /// - url: + /// - name: + public init( + id: Swift.Int64, + url: Swift.String, + name: Swift.String + ) { + self.id = id + self.url = url + self.name = name + } + public enum CodingKeys: String, CodingKey { + case id + case url + case name + } + } + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo`. + public var repo: Components.Schemas.PullRequestMinimal.BasePayload.RepoPayload + /// Creates a new `BasePayload`. + /// + /// - Parameters: + /// - ref: + /// - sha: + /// - repo: + public init( + ref: Swift.String, + sha: Swift.String, + repo: Components.Schemas.PullRequestMinimal.BasePayload.RepoPayload + ) { + self.ref = ref + self.sha = sha + self.repo = repo + } + public enum CodingKeys: String, CodingKey { + case ref + case sha + case repo + } + } + /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base`. + public var base: Components.Schemas.PullRequestMinimal.BasePayload + /// Creates a new `PullRequestMinimal`. + /// + /// - Parameters: + /// - id: + /// - number: + /// - url: + /// - head: + /// - base: + public init( + id: Swift.Int64, + number: Swift.Int, + url: Swift.String, + head: Components.Schemas.PullRequestMinimal.HeadPayload, + base: Components.Schemas.PullRequestMinimal.BasePayload + ) { + self.id = id + self.number = number + self.url = url + self.head = head + self.base = base + } + public enum CodingKeys: String, CodingKey { + case id + case number + case url + case head + case base + } + } /// - Remark: Generated from `#/components/schemas/security-and-analysis`. public struct SecurityAndAnalysis: Codable, Hashable, Sendable { /// Enable or disable GitHub Advanced Security for the repository. @@ -1840,163 +1997,6 @@ public enum Components { try decoder.ensureNoAdditionalProperties(knownKeys: []) } } - /// - Remark: Generated from `#/components/schemas/pull-request-minimal`. - public struct PullRequestMinimal: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/id`. - public var id: Swift.Int64 - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/number`. - public var number: Swift.Int - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/url`. - public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head`. - public struct HeadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/ref`. - public var ref: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/sha`. - public var sha: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo`. - public struct RepoPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/id`. - public var id: Swift.Int64 - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/url`. - public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/name`. - public var name: Swift.String - /// Creates a new `RepoPayload`. - /// - /// - Parameters: - /// - id: - /// - url: - /// - name: - public init( - id: Swift.Int64, - url: Swift.String, - name: Swift.String - ) { - self.id = id - self.url = url - self.name = name - } - public enum CodingKeys: String, CodingKey { - case id - case url - case name - } - } - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo`. - public var repo: Components.Schemas.PullRequestMinimal.HeadPayload.RepoPayload - /// Creates a new `HeadPayload`. - /// - /// - Parameters: - /// - ref: - /// - sha: - /// - repo: - public init( - ref: Swift.String, - sha: Swift.String, - repo: Components.Schemas.PullRequestMinimal.HeadPayload.RepoPayload - ) { - self.ref = ref - self.sha = sha - self.repo = repo - } - public enum CodingKeys: String, CodingKey { - case ref - case sha - case repo - } - } - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head`. - public var head: Components.Schemas.PullRequestMinimal.HeadPayload - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base`. - public struct BasePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/ref`. - public var ref: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/sha`. - public var sha: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo`. - public struct RepoPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/id`. - public var id: Swift.Int64 - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/url`. - public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/name`. - public var name: Swift.String - /// Creates a new `RepoPayload`. - /// - /// - Parameters: - /// - id: - /// - url: - /// - name: - public init( - id: Swift.Int64, - url: Swift.String, - name: Swift.String - ) { - self.id = id - self.url = url - self.name = name - } - public enum CodingKeys: String, CodingKey { - case id - case url - case name - } - } - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo`. - public var repo: Components.Schemas.PullRequestMinimal.BasePayload.RepoPayload - /// Creates a new `BasePayload`. - /// - /// - Parameters: - /// - ref: - /// - sha: - /// - repo: - public init( - ref: Swift.String, - sha: Swift.String, - repo: Components.Schemas.PullRequestMinimal.BasePayload.RepoPayload - ) { - self.ref = ref - self.sha = sha - self.repo = repo - } - public enum CodingKeys: String, CodingKey { - case ref - case sha - case repo - } - } - /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base`. - public var base: Components.Schemas.PullRequestMinimal.BasePayload - /// Creates a new `PullRequestMinimal`. - /// - /// - Parameters: - /// - id: - /// - number: - /// - url: - /// - head: - /// - base: - public init( - id: Swift.Int64, - number: Swift.Int, - url: Swift.String, - head: Components.Schemas.PullRequestMinimal.HeadPayload, - base: Components.Schemas.PullRequestMinimal.BasePayload - ) { - self.id = id - self.number = number - self.url = url - self.head = head - self.base = base - } - public enum CodingKeys: String, CodingKey { - case id - case number - case url - case head - case base - } - } /// A deployment created as the result of an Actions check run from a workflow that references an environment /// /// - Remark: Generated from `#/components/schemas/deployment-simple`. From dc5131f40062cfe88af23466dc8a72710ede282d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 20 Oct 2025 21:41:03 +0000 Subject: [PATCH 5/7] Commit via running: make Sources/issues --- Sources/issues/Types.swift | 138 ++++++++++++++++++------------------- 1 file changed, 69 insertions(+), 69 deletions(-) diff --git a/Sources/issues/Types.swift b/Sources/issues/Types.swift index 508959253c..577180c1ca 100644 --- a/Sources/issues/Types.swift +++ b/Sources/issues/Types.swift @@ -3245,6 +3245,73 @@ public enum Components { case codeSearchIndexStatus = "code_search_index_status" } } + /// Color-coded labels help you categorize and filter your issues (just like labels in Gmail). + /// + /// - Remark: Generated from `#/components/schemas/label`. + public struct Label: Codable, Hashable, Sendable { + /// Unique identifier for the label. + /// + /// - Remark: Generated from `#/components/schemas/label/id`. + public var id: Swift.Int64 + /// - Remark: Generated from `#/components/schemas/label/node_id`. + public var nodeId: Swift.String + /// URL for the label + /// + /// - Remark: Generated from `#/components/schemas/label/url`. + public var url: Swift.String + /// The name of the label. + /// + /// - Remark: Generated from `#/components/schemas/label/name`. + public var name: Swift.String + /// Optional description of the label, such as its purpose. + /// + /// - Remark: Generated from `#/components/schemas/label/description`. + public var description: Swift.String? + /// 6-character hex code, without the leading #, identifying the color + /// + /// - Remark: Generated from `#/components/schemas/label/color`. + public var color: Swift.String + /// Whether this label comes by default in a new repository. + /// + /// - Remark: Generated from `#/components/schemas/label/default`. + public var _default: Swift.Bool + /// Creates a new `Label`. + /// + /// - Parameters: + /// - id: Unique identifier for the label. + /// - nodeId: + /// - url: URL for the label + /// - name: The name of the label. + /// - description: Optional description of the label, such as its purpose. + /// - color: 6-character hex code, without the leading #, identifying the color + /// - _default: Whether this label comes by default in a new repository. + public init( + id: Swift.Int64, + nodeId: Swift.String, + url: Swift.String, + name: Swift.String, + description: Swift.String? = nil, + color: Swift.String, + _default: Swift.Bool + ) { + self.id = id + self.nodeId = nodeId + self.url = url + self.name = name + self.description = description + self.color = color + self._default = _default + } + public enum CodingKeys: String, CodingKey { + case id + case nodeId = "node_id" + case url + case name + case description + case color + case _default = "default" + } + } /// A collection of related issues and pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone`. @@ -4447,7 +4514,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/issue-comment/issue_url`. public var issueUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue-comment/author_association`. - public var authorAssociation: Components.Schemas.AuthorAssociation + public var authorAssociation: Components.Schemas.AuthorAssociation? /// - Remark: Generated from `#/components/schemas/issue-comment/performed_via_github_app`. public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/issue-comment/reactions`. @@ -4481,7 +4548,7 @@ public enum Components { createdAt: Foundation.Date, updatedAt: Foundation.Date, issueUrl: Swift.String, - authorAssociation: Components.Schemas.AuthorAssociation, + authorAssociation: Components.Schemas.AuthorAssociation? = nil, performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, reactions: Components.Schemas.ReactionRollup? = nil ) { @@ -7278,73 +7345,6 @@ public enum Components { try self.value15?.encode(to: encoder) } } - /// Color-coded labels help you categorize and filter your issues (just like labels in Gmail). - /// - /// - Remark: Generated from `#/components/schemas/label`. - public struct Label: Codable, Hashable, Sendable { - /// Unique identifier for the label. - /// - /// - Remark: Generated from `#/components/schemas/label/id`. - public var id: Swift.Int64 - /// - Remark: Generated from `#/components/schemas/label/node_id`. - public var nodeId: Swift.String - /// URL for the label - /// - /// - Remark: Generated from `#/components/schemas/label/url`. - public var url: Swift.String - /// The name of the label. - /// - /// - Remark: Generated from `#/components/schemas/label/name`. - public var name: Swift.String - /// Optional description of the label, such as its purpose. - /// - /// - Remark: Generated from `#/components/schemas/label/description`. - public var description: Swift.String? - /// 6-character hex code, without the leading #, identifying the color - /// - /// - Remark: Generated from `#/components/schemas/label/color`. - public var color: Swift.String - /// Whether this label comes by default in a new repository. - /// - /// - Remark: Generated from `#/components/schemas/label/default`. - public var _default: Swift.Bool - /// Creates a new `Label`. - /// - /// - Parameters: - /// - id: Unique identifier for the label. - /// - nodeId: - /// - url: URL for the label - /// - name: The name of the label. - /// - description: Optional description of the label, such as its purpose. - /// - color: 6-character hex code, without the leading #, identifying the color - /// - _default: Whether this label comes by default in a new repository. - public init( - id: Swift.Int64, - nodeId: Swift.String, - url: Swift.String, - name: Swift.String, - description: Swift.String? = nil, - color: Swift.String, - _default: Swift.Bool - ) { - self.id = id - self.nodeId = nodeId - self.url = url - self.name = name - self.description = description - self.color = color - self._default = _default - } - public enum CodingKeys: String, CodingKey { - case id - case nodeId = "node_id" - case url - case name - case description - case color - case _default = "default" - } - } /// Timeline Comment Event /// /// - Remark: Generated from `#/components/schemas/timeline-comment-event`. From 2e40003a5581344ede3c30677a1ee4a71bd3c047 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 20 Oct 2025 21:46:01 +0000 Subject: [PATCH 6/7] Commit via running: make Sources/repos --- Sources/repos/Types.swift | 892 +++++++++++++++++++------------------- 1 file changed, 446 insertions(+), 446 deletions(-) diff --git a/Sources/repos/Types.swift b/Sources/repos/Types.swift index 3fa9537b53..7c1479eefa 100644 --- a/Sources/repos/Types.swift +++ b/Sources/repos/Types.swift @@ -8636,209 +8636,492 @@ public enum Components { case rocket } } - /// - Remark: Generated from `#/components/schemas/security-and-analysis`. - public struct SecurityAndAnalysis: Codable, Hashable, Sendable { - /// Enable or disable GitHub Advanced Security for the repository. + /// Data related to a release. + /// + /// - Remark: Generated from `#/components/schemas/release-asset`. + public struct ReleaseAsset: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/release-asset/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/release-asset/browser_download_url`. + public var browserDownloadUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/release-asset/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/release-asset/node_id`. + public var nodeId: Swift.String + /// The file name of the asset. /// - /// For standalone Code Scanning or Secret Protection products, this parameter cannot be used. + /// - Remark: Generated from `#/components/schemas/release-asset/name`. + public var name: Swift.String + /// - Remark: Generated from `#/components/schemas/release-asset/label`. + public var label: Swift.String? + /// State of the release asset. /// + /// - Remark: Generated from `#/components/schemas/release-asset/state`. + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { + case uploaded = "uploaded" + case open = "open" + } + /// State of the release asset. /// - /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public struct AdvancedSecurityPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { - case enabled = "enabled" - case disabled = "disabled" - } - /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - public var status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? - /// Creates a new `AdvancedSecurityPayload`. - /// - /// - Parameters: - /// - status: - public init(status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? = nil) { - self.status = status - } - public enum CodingKeys: String, CodingKey { - case status - } + /// - Remark: Generated from `#/components/schemas/release-asset/state`. + public var state: Components.Schemas.ReleaseAsset.StatePayload + /// - Remark: Generated from `#/components/schemas/release-asset/content_type`. + public var contentType: Swift.String + /// - Remark: Generated from `#/components/schemas/release-asset/size`. + public var size: Swift.Int + /// - Remark: Generated from `#/components/schemas/release-asset/digest`. + public var digest: Swift.String? + /// - Remark: Generated from `#/components/schemas/release-asset/download_count`. + public var downloadCount: Swift.Int + /// - Remark: Generated from `#/components/schemas/release-asset/created_at`. + public var createdAt: Foundation.Date + /// - Remark: Generated from `#/components/schemas/release-asset/updated_at`. + public var updatedAt: Foundation.Date + /// - Remark: Generated from `#/components/schemas/release-asset/uploader`. + public var uploader: Components.Schemas.NullableSimpleUser? + /// Creates a new `ReleaseAsset`. + /// + /// - Parameters: + /// - url: + /// - browserDownloadUrl: + /// - id: + /// - nodeId: + /// - name: The file name of the asset. + /// - label: + /// - state: State of the release asset. + /// - contentType: + /// - size: + /// - digest: + /// - downloadCount: + /// - createdAt: + /// - updatedAt: + /// - uploader: + public init( + url: Swift.String, + browserDownloadUrl: Swift.String, + id: Swift.Int, + nodeId: Swift.String, + name: Swift.String, + label: Swift.String? = nil, + state: Components.Schemas.ReleaseAsset.StatePayload, + contentType: Swift.String, + size: Swift.Int, + digest: Swift.String? = nil, + downloadCount: Swift.Int, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + uploader: Components.Schemas.NullableSimpleUser? = nil + ) { + self.url = url + self.browserDownloadUrl = browserDownloadUrl + self.id = id + self.nodeId = nodeId + self.name = name + self.label = label + self.state = state + self.contentType = contentType + self.size = size + self.digest = digest + self.downloadCount = downloadCount + self.createdAt = createdAt + self.updatedAt = updatedAt + self.uploader = uploader } - /// Enable or disable GitHub Advanced Security for the repository. + public enum CodingKeys: String, CodingKey { + case url + case browserDownloadUrl = "browser_download_url" + case id + case nodeId = "node_id" + case name + case label + case state + case contentType = "content_type" + case size + case digest + case downloadCount = "download_count" + case createdAt = "created_at" + case updatedAt = "updated_at" + case uploader + } + } + /// A release. + /// + /// - Remark: Generated from `#/components/schemas/release`. + public struct Release: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/release/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/release/html_url`. + public var htmlUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/release/assets_url`. + public var assetsUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/release/upload_url`. + public var uploadUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/release/tarball_url`. + public var tarballUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/release/zipball_url`. + public var zipballUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/release/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/release/node_id`. + public var nodeId: Swift.String + /// The name of the tag. /// - /// For standalone Code Scanning or Secret Protection products, this parameter cannot be used. + /// - Remark: Generated from `#/components/schemas/release/tag_name`. + public var tagName: Swift.String + /// Specifies the commitish value that determines where the Git tag is created from. /// + /// - Remark: Generated from `#/components/schemas/release/target_commitish`. + public var targetCommitish: Swift.String + /// - Remark: Generated from `#/components/schemas/release/name`. + public var name: Swift.String? + /// - Remark: Generated from `#/components/schemas/release/body`. + public var body: Swift.String? + /// true to create a draft (unpublished) release, false to create a published one. /// - /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public var advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? - /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public struct CodeSecurityPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { - case enabled = "enabled" - case disabled = "disabled" - } - /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - public var status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? - /// Creates a new `CodeSecurityPayload`. - /// - /// - Parameters: - /// - status: - public init(status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? = nil) { - self.status = status - } - public enum CodingKeys: String, CodingKey { - case status - } - } - /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public var codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? - /// Enable or disable Dependabot security updates for the repository. + /// - Remark: Generated from `#/components/schemas/release/draft`. + public var draft: Swift.Bool + /// Whether to identify the release as a prerelease or a full release. /// - /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public struct DependabotSecurityUpdatesPayload: Codable, Hashable, Sendable { - /// The enablement status of Dependabot security updates for the repository. - /// - /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { - case enabled = "enabled" - case disabled = "disabled" - } - /// The enablement status of Dependabot security updates for the repository. - /// - /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - public var status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? - /// Creates a new `DependabotSecurityUpdatesPayload`. - /// - /// - Parameters: - /// - status: The enablement status of Dependabot security updates for the repository. - public init(status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? = nil) { - self.status = status - } - public enum CodingKeys: String, CodingKey { - case status - } - } - /// Enable or disable Dependabot security updates for the repository. + /// - Remark: Generated from `#/components/schemas/release/prerelease`. + public var prerelease: Swift.Bool + /// Whether or not the release is immutable. /// - /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public var dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? - /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public struct SecretScanningPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { - case enabled = "enabled" - case disabled = "disabled" - } - /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? - /// Creates a new `SecretScanningPayload`. - /// - /// - Parameters: - /// - status: - public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? = nil) { - self.status = status - } - public enum CodingKeys: String, CodingKey { - case status - } - } - /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public var secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? - /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public struct SecretScanningPushProtectionPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { - case enabled = "enabled" - case disabled = "disabled" - } - /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? - /// Creates a new `SecretScanningPushProtectionPayload`. - /// - /// - Parameters: - /// - status: - public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? = nil) { - self.status = status - } + /// - Remark: Generated from `#/components/schemas/release/immutable`. + public var immutable: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/release/created_at`. + public var createdAt: Foundation.Date + /// - Remark: Generated from `#/components/schemas/release/published_at`. + public var publishedAt: Foundation.Date? + /// - Remark: Generated from `#/components/schemas/release/updated_at`. + public var updatedAt: Foundation.Date? + /// - Remark: Generated from `#/components/schemas/release/author`. + public var author: Components.Schemas.SimpleUser + /// - Remark: Generated from `#/components/schemas/release/assets`. + public var assets: [Components.Schemas.ReleaseAsset] + /// - Remark: Generated from `#/components/schemas/release/body_html`. + public var bodyHtml: Swift.String? + /// - Remark: Generated from `#/components/schemas/release/body_text`. + public var bodyText: Swift.String? + /// - Remark: Generated from `#/components/schemas/release/mentions_count`. + public var mentionsCount: Swift.Int? + /// The URL of the release discussion. + /// + /// - Remark: Generated from `#/components/schemas/release/discussion_url`. + public var discussionUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/release/reactions`. + public var reactions: Components.Schemas.ReactionRollup? + /// Creates a new `Release`. + /// + /// - Parameters: + /// - url: + /// - htmlUrl: + /// - assetsUrl: + /// - uploadUrl: + /// - tarballUrl: + /// - zipballUrl: + /// - id: + /// - nodeId: + /// - tagName: The name of the tag. + /// - targetCommitish: Specifies the commitish value that determines where the Git tag is created from. + /// - name: + /// - body: + /// - draft: true to create a draft (unpublished) release, false to create a published one. + /// - prerelease: Whether to identify the release as a prerelease or a full release. + /// - immutable: Whether or not the release is immutable. + /// - createdAt: + /// - publishedAt: + /// - updatedAt: + /// - author: + /// - assets: + /// - bodyHtml: + /// - bodyText: + /// - mentionsCount: + /// - discussionUrl: The URL of the release discussion. + /// - reactions: + public init( + url: Swift.String, + htmlUrl: Swift.String, + assetsUrl: Swift.String, + uploadUrl: Swift.String, + tarballUrl: Swift.String? = nil, + zipballUrl: Swift.String? = nil, + id: Swift.Int, + nodeId: Swift.String, + tagName: Swift.String, + targetCommitish: Swift.String, + name: Swift.String? = nil, + body: Swift.String? = nil, + draft: Swift.Bool, + prerelease: Swift.Bool, + immutable: Swift.Bool? = nil, + createdAt: Foundation.Date, + publishedAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + author: Components.Schemas.SimpleUser, + assets: [Components.Schemas.ReleaseAsset], + bodyHtml: Swift.String? = nil, + bodyText: Swift.String? = nil, + mentionsCount: Swift.Int? = nil, + discussionUrl: Swift.String? = nil, + reactions: Components.Schemas.ReactionRollup? = nil + ) { + self.url = url + self.htmlUrl = htmlUrl + self.assetsUrl = assetsUrl + self.uploadUrl = uploadUrl + self.tarballUrl = tarballUrl + self.zipballUrl = zipballUrl + self.id = id + self.nodeId = nodeId + self.tagName = tagName + self.targetCommitish = targetCommitish + self.name = name + self.body = body + self.draft = draft + self.prerelease = prerelease + self.immutable = immutable + self.createdAt = createdAt + self.publishedAt = publishedAt + self.updatedAt = updatedAt + self.author = author + self.assets = assets + self.bodyHtml = bodyHtml + self.bodyText = bodyText + self.mentionsCount = mentionsCount + self.discussionUrl = discussionUrl + self.reactions = reactions + } + public enum CodingKeys: String, CodingKey { + case url + case htmlUrl = "html_url" + case assetsUrl = "assets_url" + case uploadUrl = "upload_url" + case tarballUrl = "tarball_url" + case zipballUrl = "zipball_url" + case id + case nodeId = "node_id" + case tagName = "tag_name" + case targetCommitish = "target_commitish" + case name + case body + case draft + case prerelease + case immutable + case createdAt = "created_at" + case publishedAt = "published_at" + case updatedAt = "updated_at" + case author + case assets + case bodyHtml = "body_html" + case bodyText = "body_text" + case mentionsCount = "mentions_count" + case discussionUrl = "discussion_url" + case reactions + } + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis`. + public struct SecurityAndAnalysis: Codable, Hashable, Sendable { + /// Enable or disable GitHub Advanced Security for the repository. + /// + /// For standalone Code Scanning or Secret Protection products, this parameter cannot be used. + /// + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. + public struct AdvancedSecurityPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. + public var status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? + /// Creates a new `AdvancedSecurityPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? = nil) { + self.status = status + } public enum CodingKeys: String, CodingKey { case status } } - /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public var secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? - /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public struct SecretScanningNonProviderPatternsPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. + /// Enable or disable GitHub Advanced Security for the repository. + /// + /// For standalone Code Scanning or Secret Protection products, this parameter cannot be used. + /// + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. + public var advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. + public struct CodeSecurityPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } - /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? - /// Creates a new `SecretScanningNonProviderPatternsPayload`. + /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. + public var status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? + /// Creates a new `CodeSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { case status } } - /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public var secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? - /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public struct SecretScanningAiDetectionPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. + public var codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? + /// Enable or disable Dependabot security updates for the repository. + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. + public struct DependabotSecurityUpdatesPayload: Codable, Hashable, Sendable { + /// The enablement status of Dependabot security updates for the repository. + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } - /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? - /// Creates a new `SecretScanningAiDetectionPayload`. + /// The enablement status of Dependabot security updates for the repository. + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. + public var status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? + /// Creates a new `DependabotSecurityUpdatesPayload`. /// /// - Parameters: - /// - status: - public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? = nil) { + /// - status: The enablement status of Dependabot security updates for the repository. + public init(status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { case status } } - /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public var secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? - /// Creates a new `SecurityAndAnalysis`. + /// Enable or disable Dependabot security updates for the repository. /// - /// - Parameters: - /// - advancedSecurity: Enable or disable GitHub Advanced Security for the repository. - /// - codeSecurity: - /// - dependabotSecurityUpdates: Enable or disable Dependabot security updates for the repository. - /// - secretScanning: - /// - secretScanningPushProtection: - /// - secretScanningNonProviderPatterns: - /// - secretScanningAiDetection: - public init( - advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? = nil, - codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? = nil, - dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? = nil, - secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? = nil, - secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? = nil, - secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? = nil, - secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? = nil - ) { - self.advancedSecurity = advancedSecurity - self.codeSecurity = codeSecurity - self.dependabotSecurityUpdates = dependabotSecurityUpdates - self.secretScanning = secretScanning - self.secretScanningPushProtection = secretScanningPushProtection - self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns - self.secretScanningAiDetection = secretScanningAiDetection + /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. + public var dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. + public struct SecretScanningPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? + /// Creates a new `SecretScanningPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } } - public enum CodingKeys: String, CodingKey { - case advancedSecurity = "advanced_security" + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. + public var secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. + public struct SecretScanningPushProtectionPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? + /// Creates a new `SecretScanningPushProtectionPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. + public var secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. + public struct SecretScanningNonProviderPatternsPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? + /// Creates a new `SecretScanningNonProviderPatternsPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. + public var secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public struct SecretScanningAiDetectionPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? + /// Creates a new `SecretScanningAiDetectionPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public var secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? + /// Creates a new `SecurityAndAnalysis`. + /// + /// - Parameters: + /// - advancedSecurity: Enable or disable GitHub Advanced Security for the repository. + /// - codeSecurity: + /// - dependabotSecurityUpdates: Enable or disable Dependabot security updates for the repository. + /// - secretScanning: + /// - secretScanningPushProtection: + /// - secretScanningNonProviderPatterns: + /// - secretScanningAiDetection: + public init( + advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? = nil, + codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? = nil, + dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? = nil, + secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? = nil, + secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? = nil, + secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? = nil + ) { + self.advancedSecurity = advancedSecurity + self.codeSecurity = codeSecurity + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningAiDetection = secretScanningAiDetection + } + public enum CodingKeys: String, CodingKey { + case advancedSecurity = "advanced_security" case codeSecurity = "code_security" case dependabotSecurityUpdates = "dependabot_security_updates" case secretScanning = "secret_scanning" @@ -21574,289 +21857,6 @@ public enum Components { case altDomain = "alt_domain" } } - /// Data related to a release. - /// - /// - Remark: Generated from `#/components/schemas/release-asset`. - public struct ReleaseAsset: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/release-asset/url`. - public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/release-asset/browser_download_url`. - public var browserDownloadUrl: Swift.String - /// - Remark: Generated from `#/components/schemas/release-asset/id`. - public var id: Swift.Int - /// - Remark: Generated from `#/components/schemas/release-asset/node_id`. - public var nodeId: Swift.String - /// The file name of the asset. - /// - /// - Remark: Generated from `#/components/schemas/release-asset/name`. - public var name: Swift.String - /// - Remark: Generated from `#/components/schemas/release-asset/label`. - public var label: Swift.String? - /// State of the release asset. - /// - /// - Remark: Generated from `#/components/schemas/release-asset/state`. - @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { - case uploaded = "uploaded" - case open = "open" - } - /// State of the release asset. - /// - /// - Remark: Generated from `#/components/schemas/release-asset/state`. - public var state: Components.Schemas.ReleaseAsset.StatePayload - /// - Remark: Generated from `#/components/schemas/release-asset/content_type`. - public var contentType: Swift.String - /// - Remark: Generated from `#/components/schemas/release-asset/size`. - public var size: Swift.Int - /// - Remark: Generated from `#/components/schemas/release-asset/digest`. - public var digest: Swift.String? - /// - Remark: Generated from `#/components/schemas/release-asset/download_count`. - public var downloadCount: Swift.Int - /// - Remark: Generated from `#/components/schemas/release-asset/created_at`. - public var createdAt: Foundation.Date - /// - Remark: Generated from `#/components/schemas/release-asset/updated_at`. - public var updatedAt: Foundation.Date - /// - Remark: Generated from `#/components/schemas/release-asset/uploader`. - public var uploader: Components.Schemas.NullableSimpleUser? - /// Creates a new `ReleaseAsset`. - /// - /// - Parameters: - /// - url: - /// - browserDownloadUrl: - /// - id: - /// - nodeId: - /// - name: The file name of the asset. - /// - label: - /// - state: State of the release asset. - /// - contentType: - /// - size: - /// - digest: - /// - downloadCount: - /// - createdAt: - /// - updatedAt: - /// - uploader: - public init( - url: Swift.String, - browserDownloadUrl: Swift.String, - id: Swift.Int, - nodeId: Swift.String, - name: Swift.String, - label: Swift.String? = nil, - state: Components.Schemas.ReleaseAsset.StatePayload, - contentType: Swift.String, - size: Swift.Int, - digest: Swift.String? = nil, - downloadCount: Swift.Int, - createdAt: Foundation.Date, - updatedAt: Foundation.Date, - uploader: Components.Schemas.NullableSimpleUser? = nil - ) { - self.url = url - self.browserDownloadUrl = browserDownloadUrl - self.id = id - self.nodeId = nodeId - self.name = name - self.label = label - self.state = state - self.contentType = contentType - self.size = size - self.digest = digest - self.downloadCount = downloadCount - self.createdAt = createdAt - self.updatedAt = updatedAt - self.uploader = uploader - } - public enum CodingKeys: String, CodingKey { - case url - case browserDownloadUrl = "browser_download_url" - case id - case nodeId = "node_id" - case name - case label - case state - case contentType = "content_type" - case size - case digest - case downloadCount = "download_count" - case createdAt = "created_at" - case updatedAt = "updated_at" - case uploader - } - } - /// A release. - /// - /// - Remark: Generated from `#/components/schemas/release`. - public struct Release: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/release/url`. - public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/release/html_url`. - public var htmlUrl: Swift.String - /// - Remark: Generated from `#/components/schemas/release/assets_url`. - public var assetsUrl: Swift.String - /// - Remark: Generated from `#/components/schemas/release/upload_url`. - public var uploadUrl: Swift.String - /// - Remark: Generated from `#/components/schemas/release/tarball_url`. - public var tarballUrl: Swift.String? - /// - Remark: Generated from `#/components/schemas/release/zipball_url`. - public var zipballUrl: Swift.String? - /// - Remark: Generated from `#/components/schemas/release/id`. - public var id: Swift.Int - /// - Remark: Generated from `#/components/schemas/release/node_id`. - public var nodeId: Swift.String - /// The name of the tag. - /// - /// - Remark: Generated from `#/components/schemas/release/tag_name`. - public var tagName: Swift.String - /// Specifies the commitish value that determines where the Git tag is created from. - /// - /// - Remark: Generated from `#/components/schemas/release/target_commitish`. - public var targetCommitish: Swift.String - /// - Remark: Generated from `#/components/schemas/release/name`. - public var name: Swift.String? - /// - Remark: Generated from `#/components/schemas/release/body`. - public var body: Swift.String? - /// true to create a draft (unpublished) release, false to create a published one. - /// - /// - Remark: Generated from `#/components/schemas/release/draft`. - public var draft: Swift.Bool - /// Whether to identify the release as a prerelease or a full release. - /// - /// - Remark: Generated from `#/components/schemas/release/prerelease`. - public var prerelease: Swift.Bool - /// Whether or not the release is immutable. - /// - /// - Remark: Generated from `#/components/schemas/release/immutable`. - public var immutable: Swift.Bool? - /// - Remark: Generated from `#/components/schemas/release/created_at`. - public var createdAt: Foundation.Date - /// - Remark: Generated from `#/components/schemas/release/published_at`. - public var publishedAt: Foundation.Date? - /// - Remark: Generated from `#/components/schemas/release/updated_at`. - public var updatedAt: Foundation.Date? - /// - Remark: Generated from `#/components/schemas/release/author`. - public var author: Components.Schemas.SimpleUser - /// - Remark: Generated from `#/components/schemas/release/assets`. - public var assets: [Components.Schemas.ReleaseAsset] - /// - Remark: Generated from `#/components/schemas/release/body_html`. - public var bodyHtml: Swift.String? - /// - Remark: Generated from `#/components/schemas/release/body_text`. - public var bodyText: Swift.String? - /// - Remark: Generated from `#/components/schemas/release/mentions_count`. - public var mentionsCount: Swift.Int? - /// The URL of the release discussion. - /// - /// - Remark: Generated from `#/components/schemas/release/discussion_url`. - public var discussionUrl: Swift.String? - /// - Remark: Generated from `#/components/schemas/release/reactions`. - public var reactions: Components.Schemas.ReactionRollup? - /// Creates a new `Release`. - /// - /// - Parameters: - /// - url: - /// - htmlUrl: - /// - assetsUrl: - /// - uploadUrl: - /// - tarballUrl: - /// - zipballUrl: - /// - id: - /// - nodeId: - /// - tagName: The name of the tag. - /// - targetCommitish: Specifies the commitish value that determines where the Git tag is created from. - /// - name: - /// - body: - /// - draft: true to create a draft (unpublished) release, false to create a published one. - /// - prerelease: Whether to identify the release as a prerelease or a full release. - /// - immutable: Whether or not the release is immutable. - /// - createdAt: - /// - publishedAt: - /// - updatedAt: - /// - author: - /// - assets: - /// - bodyHtml: - /// - bodyText: - /// - mentionsCount: - /// - discussionUrl: The URL of the release discussion. - /// - reactions: - public init( - url: Swift.String, - htmlUrl: Swift.String, - assetsUrl: Swift.String, - uploadUrl: Swift.String, - tarballUrl: Swift.String? = nil, - zipballUrl: Swift.String? = nil, - id: Swift.Int, - nodeId: Swift.String, - tagName: Swift.String, - targetCommitish: Swift.String, - name: Swift.String? = nil, - body: Swift.String? = nil, - draft: Swift.Bool, - prerelease: Swift.Bool, - immutable: Swift.Bool? = nil, - createdAt: Foundation.Date, - publishedAt: Foundation.Date? = nil, - updatedAt: Foundation.Date? = nil, - author: Components.Schemas.SimpleUser, - assets: [Components.Schemas.ReleaseAsset], - bodyHtml: Swift.String? = nil, - bodyText: Swift.String? = nil, - mentionsCount: Swift.Int? = nil, - discussionUrl: Swift.String? = nil, - reactions: Components.Schemas.ReactionRollup? = nil - ) { - self.url = url - self.htmlUrl = htmlUrl - self.assetsUrl = assetsUrl - self.uploadUrl = uploadUrl - self.tarballUrl = tarballUrl - self.zipballUrl = zipballUrl - self.id = id - self.nodeId = nodeId - self.tagName = tagName - self.targetCommitish = targetCommitish - self.name = name - self.body = body - self.draft = draft - self.prerelease = prerelease - self.immutable = immutable - self.createdAt = createdAt - self.publishedAt = publishedAt - self.updatedAt = updatedAt - self.author = author - self.assets = assets - self.bodyHtml = bodyHtml - self.bodyText = bodyText - self.mentionsCount = mentionsCount - self.discussionUrl = discussionUrl - self.reactions = reactions - } - public enum CodingKeys: String, CodingKey { - case url - case htmlUrl = "html_url" - case assetsUrl = "assets_url" - case uploadUrl = "upload_url" - case tarballUrl = "tarball_url" - case zipballUrl = "zipball_url" - case id - case nodeId = "node_id" - case tagName = "tag_name" - case targetCommitish = "target_commitish" - case name - case body - case draft - case prerelease - case immutable - case createdAt = "created_at" - case publishedAt = "published_at" - case updatedAt = "updated_at" - case author - case assets - case bodyHtml = "body_html" - case bodyText = "body_text" - case mentionsCount = "mentions_count" - case discussionUrl = "discussion_url" - case reactions - } - } /// Generated name and body describing a release /// /// - Remark: Generated from `#/components/schemas/release-notes-content`. From 55ba30aaf841be5f617a760b23bf5aefd88f151b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 20 Oct 2025 21:46:24 +0000 Subject: [PATCH 7/7] Commit via running: make Sources/search --- Sources/search/Client.swift | 17 ++++++++++--- Sources/search/Types.swift | 50 +++++++++++++++++++++++++++++-------- 2 files changed, 52 insertions(+), 15 deletions(-) diff --git a/Sources/search/Client.swift b/Sources/search/Client.swift index 95c2694c62..fe57d347b6 100644 --- a/Sources/search/Client.swift +++ b/Sources/search/Client.swift @@ -330,13 +330,22 @@ public struct Client: APIProtocol { } /// Search issues and pull requests /// - /// > [!WARNING] - /// > **Notice:** Search for issues and pull requests will be overridden by advanced search on November 4, 2025. - /// > You can read more about this change on [the GitHub blog](https://github.blog/changelog/2025-03-06-github-issues-projects-api-support-for-issues-advanced-search-and-more/). + /// Find issues by state and keyword. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api). + /// + /// When searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted + /// search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata). + /// + /// For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this. + /// + /// `q=windows+label:bug+language:python+state:open&sort=created&order=asc` + /// + /// This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results. + /// + /// > [!NOTE] + /// > For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." /// /// - Remark: HTTP `GET /search/issues`. /// - Remark: Generated from `#/paths//search/issues/get(search/issues-and-pull-requests)`. - @available(*, deprecated) public func searchIssuesAndPullRequests(_ input: Operations.SearchIssuesAndPullRequests.Input) async throws -> Operations.SearchIssuesAndPullRequests.Output { try await client.send( input: input, diff --git a/Sources/search/Types.swift b/Sources/search/Types.swift index d3d33af1bb..3b97263dce 100644 --- a/Sources/search/Types.swift +++ b/Sources/search/Types.swift @@ -53,13 +53,22 @@ public protocol APIProtocol: Sendable { func searchCommits(_ input: Operations.SearchCommits.Input) async throws -> Operations.SearchCommits.Output /// Search issues and pull requests /// - /// > [!WARNING] - /// > **Notice:** Search for issues and pull requests will be overridden by advanced search on November 4, 2025. - /// > You can read more about this change on [the GitHub blog](https://github.blog/changelog/2025-03-06-github-issues-projects-api-support-for-issues-advanced-search-and-more/). + /// Find issues by state and keyword. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api). + /// + /// When searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted + /// search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata). + /// + /// For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this. + /// + /// `q=windows+label:bug+language:python+state:open&sort=created&order=asc` + /// + /// This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results. + /// + /// > [!NOTE] + /// > For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." /// /// - Remark: HTTP `GET /search/issues`. /// - Remark: Generated from `#/paths//search/issues/get(search/issues-and-pull-requests)`. - @available(*, deprecated) func searchIssuesAndPullRequests(_ input: Operations.SearchIssuesAndPullRequests.Input) async throws -> Operations.SearchIssuesAndPullRequests.Output /// Search labels /// @@ -185,13 +194,22 @@ extension APIProtocol { } /// Search issues and pull requests /// - /// > [!WARNING] - /// > **Notice:** Search for issues and pull requests will be overridden by advanced search on November 4, 2025. - /// > You can read more about this change on [the GitHub blog](https://github.blog/changelog/2025-03-06-github-issues-projects-api-support-for-issues-advanced-search-and-more/). + /// Find issues by state and keyword. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api). + /// + /// When searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted + /// search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata). + /// + /// For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this. + /// + /// `q=windows+label:bug+language:python+state:open&sort=created&order=asc` + /// + /// This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results. + /// + /// > [!NOTE] + /// > For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." /// /// - Remark: HTTP `GET /search/issues`. /// - Remark: Generated from `#/paths//search/issues/get(search/issues-and-pull-requests)`. - @available(*, deprecated) public func searchIssuesAndPullRequests( query: Operations.SearchIssuesAndPullRequests.Input.Query, headers: Operations.SearchIssuesAndPullRequests.Input.Headers = .init() @@ -5974,9 +5992,19 @@ public enum Operations { } /// Search issues and pull requests /// - /// > [!WARNING] - /// > **Notice:** Search for issues and pull requests will be overridden by advanced search on November 4, 2025. - /// > You can read more about this change on [the GitHub blog](https://github.blog/changelog/2025-03-06-github-issues-projects-api-support-for-issues-advanced-search-and-more/). + /// Find issues by state and keyword. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api). + /// + /// When searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted + /// search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata). + /// + /// For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this. + /// + /// `q=windows+label:bug+language:python+state:open&sort=created&order=asc` + /// + /// This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results. + /// + /// > [!NOTE] + /// > For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." /// /// - Remark: HTTP `GET /search/issues`. /// - Remark: Generated from `#/paths//search/issues/get(search/issues-and-pull-requests)`.