diff --git a/Sources/actions/Types.swift b/Sources/actions/Types.swift index 5e81f4a0d05..4d3a759df6e 100644 --- a/Sources/actions/Types.swift +++ b/Sources/actions/Types.swift @@ -3740,7 +3740,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -3803,7 +3803,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -3947,7 +3947,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -4010,7 +4010,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -7490,7 +7490,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pull-request-minimal`. public struct pull_hyphen_request_hyphen_minimal: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-minimal/id`. - public var id: Swift.Int + 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`. @@ -7504,7 +7504,7 @@ public enum Components { /// - 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.Int + 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`. @@ -7516,7 +7516,7 @@ public enum Components { /// - url: /// - name: public init( - id: Swift.Int, + id: Swift.Int64, url: Swift.String, name: Swift.String ) { @@ -7564,7 +7564,7 @@ public enum Components { /// - 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.Int + 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`. @@ -7576,7 +7576,7 @@ public enum Components { /// - url: /// - name: public init( - id: Swift.Int, + id: Swift.Int64, url: Swift.String, name: Swift.String ) { @@ -7624,7 +7624,7 @@ public enum Components { /// - head: /// - base: public init( - id: Swift.Int, + id: Swift.Int64, number: Swift.Int, url: Swift.String, head: Components.Schemas.pull_hyphen_request_hyphen_minimal.headPayload, @@ -8235,7 +8235,7 @@ public enum Components { /// The id of the environment. /// /// - Remark: Generated from `#/components/schemas/pending-deployment/environment/id`. - public var id: Swift.Int? + public var id: Swift.Int64? /// - Remark: Generated from `#/components/schemas/pending-deployment/environment/node_id`. public var node_id: Swift.String? /// The name of the environment. @@ -8255,7 +8255,7 @@ public enum Components { /// - url: /// - html_url: public init( - id: Swift.Int? = nil, + id: Swift.Int64? = nil, node_id: Swift.String? = nil, name: Swift.String? = nil, url: Swift.String? = nil, @@ -8403,7 +8403,7 @@ public enum Components { /// Unique identifier of the deployment /// /// - Remark: Generated from `#/components/schemas/deployment/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/deployment/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/deployment/sha`. @@ -8522,7 +8522,7 @@ public enum Components { /// - performed_via_github_app: public init( url: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, sha: Swift.String, ref: Swift.String, diff --git a/Sources/activity/Types.swift b/Sources/activity/Types.swift index 687bb8f2231..3e5255f0d1e 100644 --- a/Sources/activity/Types.swift +++ b/Sources/activity/Types.swift @@ -822,7 +822,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -885,7 +885,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -998,7 +998,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -1061,7 +1061,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, diff --git a/Sources/apps/Types.swift b/Sources/apps/Types.swift index 7e4fffed9b5..c9a3dab8d19 100644 --- a/Sources/apps/Types.swift +++ b/Sources/apps/Types.swift @@ -990,7 +990,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -1053,7 +1053,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -1197,7 +1197,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -1260,7 +1260,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -4183,7 +4183,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/authorization`. public struct authorization: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/authorization/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/authorization/url`. public var url: Swift.String /// A list of scopes that this authorization is in. @@ -4262,7 +4262,7 @@ public enum Components { /// - installation: /// - expires_at: public init( - id: Swift.Int, + id: Swift.Int64, url: Swift.String, scopes: [Swift.String]? = nil, token: Swift.String, diff --git a/Sources/checks/Types.swift b/Sources/checks/Types.swift index 7562aa0772a..2956d736c03 100644 --- a/Sources/checks/Types.swift +++ b/Sources/checks/Types.swift @@ -412,7 +412,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -475,7 +475,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -588,7 +588,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -651,7 +651,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -1743,7 +1743,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pull-request-minimal`. public struct pull_hyphen_request_hyphen_minimal: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-minimal/id`. - public var id: Swift.Int + 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`. @@ -1757,7 +1757,7 @@ public enum Components { /// - 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.Int + 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`. @@ -1769,7 +1769,7 @@ public enum Components { /// - url: /// - name: public init( - id: Swift.Int, + id: Swift.Int64, url: Swift.String, name: Swift.String ) { @@ -1817,7 +1817,7 @@ public enum Components { /// - 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.Int + 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`. @@ -1829,7 +1829,7 @@ public enum Components { /// - url: /// - name: public init( - id: Swift.Int, + id: Swift.Int64, url: Swift.String, name: Swift.String ) { @@ -1877,7 +1877,7 @@ public enum Components { /// - head: /// - base: public init( - id: Swift.Int, + id: Swift.Int64, number: Swift.Int, url: Swift.String, head: Components.Schemas.pull_hyphen_request_hyphen_minimal.headPayload, diff --git a/Sources/code-scanning/Types.swift b/Sources/code-scanning/Types.swift index f0bcdcdb404..00afa6db1fc 100644 --- a/Sources/code-scanning/Types.swift +++ b/Sources/code-scanning/Types.swift @@ -768,7 +768,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -831,7 +831,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -944,7 +944,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -1007,7 +1007,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -1583,7 +1583,6 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-dismissed-reason`. @frozen public enum code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_reason: String, Codable, Hashable, Sendable { - case _empty = "" case false_space_positive = "false positive" case won_apos_t_space_fix = "won't fix" case used_space_in_space_tests = "used in tests" diff --git a/Sources/code-security/Types.swift b/Sources/code-security/Types.swift index 5653045534b..201de6dcb2c 100644 --- a/Sources/code-security/Types.swift +++ b/Sources/code-security/Types.swift @@ -336,7 +336,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -399,7 +399,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, diff --git a/Sources/codespaces/Types.swift b/Sources/codespaces/Types.swift index 9e390e2322e..4125d00aaa0 100644 --- a/Sources/codespaces/Types.swift +++ b/Sources/codespaces/Types.swift @@ -1414,7 +1414,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -1477,7 +1477,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -1590,7 +1590,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -1653,7 +1653,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, diff --git a/Sources/copilot/Types.swift b/Sources/copilot/Types.swift index 87eb665ed7c..d7fa045ffff 100644 --- a/Sources/copilot/Types.swift +++ b/Sources/copilot/Types.swift @@ -472,7 +472,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -535,7 +535,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, diff --git a/Sources/dependabot/Types.swift b/Sources/dependabot/Types.swift index 11d0376e2e6..498d649e404 100644 --- a/Sources/dependabot/Types.swift +++ b/Sources/dependabot/Types.swift @@ -562,7 +562,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -625,7 +625,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -769,7 +769,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -832,7 +832,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, diff --git a/Sources/dependency-graph/Types.swift b/Sources/dependency-graph/Types.swift index 2c08b9d356b..8cb6940a2cb 100644 --- a/Sources/dependency-graph/Types.swift +++ b/Sources/dependency-graph/Types.swift @@ -370,6 +370,10 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/supplier`. public var supplier: Swift.String? + /// The copyright holders of the package, and any dates present with those notices, if available. + /// + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/copyrightText`. + public var copyrightText: Swift.String? /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/externalRefsPayload`. public struct externalRefsPayloadPayload: Codable, Hashable, Sendable { /// The category of reference to an external resource this reference refers to. @@ -420,6 +424,7 @@ public enum Components { /// - licenseConcluded: The license of the package as determined while creating the SPDX document. /// - licenseDeclared: The license of the package as declared by its author, or NOASSERTION if this information /// - supplier: The distribution source of this package, or NOASSERTION if this was not determined. + /// - copyrightText: The copyright holders of the package, and any dates present with those notices, if available. /// - externalRefs: public init( SPDXID: Swift.String? = nil, @@ -430,6 +435,7 @@ public enum Components { licenseConcluded: Swift.String? = nil, licenseDeclared: Swift.String? = nil, supplier: Swift.String? = nil, + copyrightText: Swift.String? = nil, externalRefs: Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom.sbomPayload.packagesPayloadPayload.externalRefsPayload? = nil ) { self.SPDXID = SPDXID @@ -440,6 +446,7 @@ public enum Components { self.licenseConcluded = licenseConcluded self.licenseDeclared = licenseDeclared self.supplier = supplier + self.copyrightText = copyrightText self.externalRefs = externalRefs } public enum CodingKeys: String, CodingKey { @@ -451,6 +458,7 @@ public enum Components { case licenseConcluded case licenseDeclared case supplier + case copyrightText case externalRefs } } diff --git a/Sources/gists/Types.swift b/Sources/gists/Types.swift index fac5344e483..5a83c7f3781 100644 --- a/Sources/gists/Types.swift +++ b/Sources/gists/Types.swift @@ -582,7 +582,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -645,7 +645,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -758,7 +758,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -821,7 +821,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, diff --git a/Sources/issues/Types.swift b/Sources/issues/Types.swift index 4a32a2a76db..9053cf95d88 100644 --- a/Sources/issues/Types.swift +++ b/Sources/issues/Types.swift @@ -1236,7 +1236,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -1299,7 +1299,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -1412,7 +1412,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -1475,7 +1475,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -6971,11 +6971,11 @@ public enum Components { /// The ID of the pull request review to which the comment belongs. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/pull_request_review_id`. - public var pull_request_review_id: Swift.Int? + public var pull_request_review_id: Swift.Int64? /// The ID of the pull request review comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// The node ID of the pull request review comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/node_id`. @@ -7193,8 +7193,8 @@ public enum Components { /// - body_text: public init( url: Swift.String, - pull_request_review_id: Swift.Int? = nil, - id: Swift.Int, + pull_request_review_id: Swift.Int64? = nil, + id: Swift.Int64, node_id: Swift.String, diff_hunk: Swift.String, path: Swift.String, diff --git a/Sources/migrations/Types.swift b/Sources/migrations/Types.swift index 6be9ce93c19..1c59a69b657 100644 --- a/Sources/migrations/Types.swift +++ b/Sources/migrations/Types.swift @@ -772,7 +772,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -835,7 +835,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -948,7 +948,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -1011,7 +1011,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, diff --git a/Sources/orgs/Types.swift b/Sources/orgs/Types.swift index d01c23874f7..0798809915a 100644 --- a/Sources/orgs/Types.swift +++ b/Sources/orgs/Types.swift @@ -2264,7 +2264,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -2327,7 +2327,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -2471,7 +2471,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -2534,7 +2534,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -6080,7 +6080,7 @@ public enum Components { /// The unique identifier of the role. /// /// - Remark: Generated from `#/components/schemas/organization-role/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// The name of the role. /// /// - Remark: Generated from `#/components/schemas/organization-role/name`. @@ -6114,7 +6114,7 @@ public enum Components { /// - created_at: The date and time the role was created. /// - updated_at: The date and time the role was last updated. public init( - id: Swift.Int, + id: Swift.Int64, name: Swift.String, description: Swift.String? = nil, permissions: [Swift.String], diff --git a/Sources/packages/Types.swift b/Sources/packages/Types.swift index 9eaab52dc69..af59e0c73a7 100644 --- a/Sources/packages/Types.swift +++ b/Sources/packages/Types.swift @@ -836,7 +836,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -899,7 +899,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -1012,7 +1012,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -1075,7 +1075,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, diff --git a/Sources/projects/Types.swift b/Sources/projects/Types.swift index dde96de8f76..6f3d4018056 100644 --- a/Sources/projects/Types.swift +++ b/Sources/projects/Types.swift @@ -624,7 +624,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -687,7 +687,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -831,7 +831,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -894,7 +894,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, diff --git a/Sources/pulls/Types.swift b/Sources/pulls/Types.swift index 0da3033a1f3..657603697ca 100644 --- a/Sources/pulls/Types.swift +++ b/Sources/pulls/Types.swift @@ -1066,7 +1066,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -1129,7 +1129,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -1273,7 +1273,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -1336,7 +1336,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -3318,7 +3318,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pull-request-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/pull-request-simple/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/html_url`. @@ -3626,7 +3626,7 @@ public enum Components { /// - draft: Indicates whether or not the pull request is a draft. public init( url: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, html_url: Swift.String, diff_url: Swift.String, @@ -3749,11 +3749,11 @@ public enum Components { /// The ID of the pull request review to which the comment belongs. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/pull_request_review_id`. - public var pull_request_review_id: Swift.Int? + public var pull_request_review_id: Swift.Int64? /// The ID of the pull request review comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// The node ID of the pull request review comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/node_id`. @@ -3971,8 +3971,8 @@ public enum Components { /// - body_text: public init( url: Swift.String, - pull_request_review_id: Swift.Int? = nil, - id: Swift.Int, + pull_request_review_id: Swift.Int64? = nil, + id: Swift.Int64, node_id: Swift.String, diff_hunk: Swift.String, path: Swift.String, @@ -4069,7 +4069,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pull-request/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/pull-request/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/html_url`. @@ -4945,7 +4945,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pull-request/head/user/html_url`. public var html_url: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/head/user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/pull-request/head/user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/head/user/login`. @@ -4995,7 +4995,7 @@ public enum Components { gists_url: Swift.String, gravatar_id: Swift.String? = nil, html_url: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, login: Swift.String, organizations_url: Swift.String, @@ -5790,7 +5790,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pull-request/base/user/html_url`. public var html_url: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/base/user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/pull-request/base/user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/base/user/login`. @@ -5840,7 +5840,7 @@ public enum Components { gists_url: Swift.String, gravatar_id: Swift.String? = nil, html_url: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, login: Swift.String, organizations_url: Swift.String, @@ -6073,7 +6073,7 @@ public enum Components { /// - changed_files: public init( url: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, html_url: Swift.String, diff_url: Swift.String, @@ -6434,9 +6434,9 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/review-comment/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/review-comment/pull_request_review_id`. - public var pull_request_review_id: Swift.Int? + public var pull_request_review_id: Swift.Int64? /// - Remark: Generated from `#/components/schemas/review-comment/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/review-comment/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/review-comment/diff_hunk`. @@ -6575,8 +6575,8 @@ public enum Components { /// - original_start_line: The original first line of the range for a multi-line comment. public init( url: Swift.String, - pull_request_review_id: Swift.Int? = nil, - id: Swift.Int, + pull_request_review_id: Swift.Int64? = nil, + id: Swift.Int64, node_id: Swift.String, diff_hunk: Swift.String, path: Swift.String, diff --git a/Sources/reactions/Types.swift b/Sources/reactions/Types.swift index f62657db493..442c25ef1e7 100644 --- a/Sources/reactions/Types.swift +++ b/Sources/reactions/Types.swift @@ -747,7 +747,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -810,7 +810,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, diff --git a/Sources/repos/Types.swift b/Sources/repos/Types.swift index 7a346ea909a..318587e4263 100644 --- a/Sources/repos/Types.swift +++ b/Sources/repos/Types.swift @@ -5818,7 +5818,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -5881,7 +5881,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -6025,7 +6025,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -6088,7 +6088,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -11078,21 +11078,36 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-property-spec/property_values`. public var property_values: [Swift.String] + /// The source of the repository property. Defaults to 'custom' if not specified. + /// + /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-property-spec/source`. + @frozen public enum sourcePayload: String, Codable, Hashable, Sendable { + case custom = "custom" + case system = "system" + } + /// The source of the repository property. Defaults to 'custom' if not specified. + /// + /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-property-spec/source`. + public var source: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_spec.sourcePayload? /// Creates a new `repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_spec`. /// /// - Parameters: /// - name: The name of the repository property to target /// - property_values: The values to match for the repository property + /// - source: The source of the repository property. Defaults to 'custom' if not specified. public init( name: Swift.String, - property_values: [Swift.String] + property_values: [Swift.String], + source: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_spec.sourcePayload? = nil ) { self.name = name self.property_values = property_values + self.source = source } public enum CodingKeys: String, CodingKey { case name case property_values + case source } } /// Parameters for a repository property condition @@ -13264,7 +13279,7 @@ public enum Components { /// Unique identifier of the deployment /// /// - Remark: Generated from `#/components/schemas/deployment/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/deployment/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/deployment/sha`. @@ -13383,7 +13398,7 @@ public enum Components { /// - performed_via_github_app: public init( url: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, sha: Swift.String, ref: Swift.String, @@ -13860,7 +13875,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/login`. public var login: Swift.String? /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/id`. - public var id: Swift.Int? + public var id: Swift.Int64? /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/node_id`. public var node_id: Swift.String? /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/avatar_url`. @@ -13916,7 +13931,7 @@ public enum Components { /// - site_admin: public init( login: Swift.String? = nil, - id: Swift.Int? = nil, + id: Swift.Int64? = nil, node_id: Swift.String? = nil, avatar_url: Swift.String? = nil, gravatar_id: Swift.String? = nil, @@ -15771,7 +15786,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/collaborator/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/collaborator/email`. public var email: Swift.String? /// - Remark: Generated from `#/components/schemas/collaborator/name`. @@ -15880,7 +15895,7 @@ public enum Components { /// - role_name: public init( login: Swift.String, - id: Swift.Int, + id: Swift.Int64, email: Swift.String? = nil, name: Swift.String? = nil, node_id: Swift.String, @@ -16048,7 +16063,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-collaborator/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-collaborator/email`. public var email: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-collaborator/name`. @@ -16157,7 +16172,7 @@ public enum Components { /// - role_name: public init( login: Swift.String, - id: Swift.Int, + id: Swift.Int64, email: Swift.String? = nil, name: Swift.String? = nil, node_id: Swift.String, @@ -16484,7 +16499,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pull-request-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/pull-request-simple/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/html_url`. @@ -16792,7 +16807,7 @@ public enum Components { /// - draft: Indicates whether or not the pull request is a draft. public init( url: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, html_url: Swift.String, diff_url: Swift.String, @@ -18551,7 +18566,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/deployment-status/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/deployment-status/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/deployment-status/node_id`. public var node_id: Swift.String /// The state of the status. @@ -18622,7 +18637,7 @@ public enum Components { /// - performed_via_github_app: public init( url: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, state: Components.Schemas.deployment_hyphen_status.statePayload, creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, diff --git a/Sources/search/Types.swift b/Sources/search/Types.swift index fda7ba981b1..bc1a9f242c0 100644 --- a/Sources/search/Types.swift +++ b/Sources/search/Types.swift @@ -338,7 +338,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -401,7 +401,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -514,7 +514,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -577,7 +577,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, diff --git a/Sources/secret-scanning/Types.swift b/Sources/secret-scanning/Types.swift index 726d1f00c91..50ed04e2659 100644 --- a/Sources/secret-scanning/Types.swift +++ b/Sources/secret-scanning/Types.swift @@ -236,7 +236,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -299,7 +299,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -412,7 +412,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -475,7 +475,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, diff --git a/Sources/security-advisories/Types.swift b/Sources/security-advisories/Types.swift index 4c15332217f..26d89015530 100644 --- a/Sources/security-advisories/Types.swift +++ b/Sources/security-advisories/Types.swift @@ -432,7 +432,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -495,7 +495,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -1075,7 +1075,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -1138,7 +1138,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, diff --git a/Sources/teams/Types.swift b/Sources/teams/Types.swift index 24013631da4..8ac8d458564 100644 --- a/Sources/teams/Types.swift +++ b/Sources/teams/Types.swift @@ -1882,7 +1882,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -1945,7 +1945,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -2058,7 +2058,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. @@ -2121,7 +2121,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, diff --git a/Sources/users/Client.swift b/Sources/users/Client.swift index 3694247dba4..61359f3a9e4 100644 --- a/Sources/users/Client.swift +++ b/Sources/users/Client.swift @@ -4362,6 +4362,96 @@ public struct Client: APIProtocol { } ) } + /// Get a user using their ID + /// + /// Provides publicly available information about someone with a GitHub account. This method takes their durable user `ID` instead of their `login`, which can change over time. + /// + /// The `email` key in the following response is the publicly visible email address from your GitHub [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub. For more information, see [Authentication](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#authentication). + /// + /// The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/rest/users/emails)". + /// + /// - Remark: HTTP `GET /user/{account_id}`. + /// - Remark: Generated from `#/paths//user/{account_id}/get(users/get-by-id)`. + public func users_sol_get_hyphen_by_hyphen_id(_ input: Operations.users_sol_get_hyphen_by_hyphen_id.Input) async throws -> Operations.users_sol_get_hyphen_by_hyphen_id.Output { + try await client.send( + input: input, + forOperation: Operations.users_sol_get_hyphen_by_hyphen_id.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/user/{}", + parameters: [ + input.path.account_id + ] + ) + var request: HTTPTypes.HTTPRequest = .init( + soar_path: path, + method: .get + ) + suppressMutabilityWarning(&request) + converter.setAcceptHeader( + in: &request.headerFields, + contentTypes: input.headers.accept + ) + return (request, nil) + }, + deserializer: { response, responseBody in + switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.users_sol_get_hyphen_by_hyphen_id.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Operations.users_sol_get_hyphen_by_hyphen_id.Output.Ok.Body.jsonPayload.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) + case 404: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Components.Responses.not_found.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.basic_hyphen_error.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .notFound(.init(body: body)) + default: + return .undocumented( + statusCode: response.status.code, + .init( + headerFields: response.headerFields, + body: responseBody + ) + ) + } + } + ) + } /// List users /// /// Lists all users, in the order that they signed up on GitHub. This list includes personal user accounts and organization accounts. diff --git a/Sources/users/Types.swift b/Sources/users/Types.swift index 8bb347d335a..d3fc05e4e73 100644 --- a/Sources/users/Types.swift +++ b/Sources/users/Types.swift @@ -265,6 +265,17 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /user/ssh_signing_keys/{ssh_signing_key_id}`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/delete(users/delete-ssh-signing-key-for-authenticated-user)`. func users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output + /// Get a user using their ID + /// + /// Provides publicly available information about someone with a GitHub account. This method takes their durable user `ID` instead of their `login`, which can change over time. + /// + /// The `email` key in the following response is the publicly visible email address from your GitHub [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub. For more information, see [Authentication](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#authentication). + /// + /// The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/rest/users/emails)". + /// + /// - Remark: HTTP `GET /user/{account_id}`. + /// - Remark: Generated from `#/paths//user/{account_id}/get(users/get-by-id)`. + func users_sol_get_hyphen_by_hyphen_id(_ input: Operations.users_sol_get_hyphen_by_hyphen_id.Input) async throws -> Operations.users_sol_get_hyphen_by_hyphen_id.Output /// List users /// /// Lists all users, in the order that they signed up on GitHub. This list includes personal user accounts and organization accounts. @@ -856,6 +867,25 @@ extension APIProtocol { headers: headers )) } + /// Get a user using their ID + /// + /// Provides publicly available information about someone with a GitHub account. This method takes their durable user `ID` instead of their `login`, which can change over time. + /// + /// The `email` key in the following response is the publicly visible email address from your GitHub [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub. For more information, see [Authentication](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#authentication). + /// + /// The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/rest/users/emails)". + /// + /// - Remark: HTTP `GET /user/{account_id}`. + /// - Remark: Generated from `#/paths//user/{account_id}/get(users/get-by-id)`. + public func users_sol_get_hyphen_by_hyphen_id( + path: Operations.users_sol_get_hyphen_by_hyphen_id.Input.Path, + headers: Operations.users_sol_get_hyphen_by_hyphen_id.Input.Headers = .init() + ) async throws -> Operations.users_sol_get_hyphen_by_hyphen_id.Output { + try await users_sol_get_hyphen_by_hyphen_id(Operations.users_sol_get_hyphen_by_hyphen_id.Input( + path: path, + headers: headers + )) + } /// List users /// /// Lists all users, in the order that they signed up on GitHub. This list includes personal user accounts and organization accounts. @@ -1072,7 +1102,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/id`. - public var id: Swift.Int + public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. @@ -1135,7 +1165,7 @@ public enum Components { name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, - id: Swift.Int, + id: Swift.Int64, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -2915,6 +2945,10 @@ public enum Components { /// /// - Remark: Generated from `#/components/parameters/page`. public typealias page = Swift.Int + /// account_id parameter + /// + /// - Remark: Generated from `#/components/parameters/account-id`. + public typealias account_hyphen_id = Swift.Int /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/components/parameters/username`. @@ -10532,6 +10566,200 @@ public enum Operations { } } } + /// Get a user using their ID + /// + /// Provides publicly available information about someone with a GitHub account. This method takes their durable user `ID` instead of their `login`, which can change over time. + /// + /// The `email` key in the following response is the publicly visible email address from your GitHub [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub. For more information, see [Authentication](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#authentication). + /// + /// The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/rest/users/emails)". + /// + /// - Remark: HTTP `GET /user/{account_id}`. + /// - Remark: Generated from `#/paths//user/{account_id}/get(users/get-by-id)`. + public enum users_sol_get_hyphen_by_hyphen_id { + public static let id: Swift.String = "users/get-by-id" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/user/{account_id}/GET/path`. + public struct Path: Sendable, Hashable { + /// account_id parameter + /// + /// - Remark: Generated from `#/paths/user/{account_id}/GET/path/account_id`. + public var account_id: Components.Parameters.account_hyphen_id + /// Creates a new `Path`. + /// + /// - Parameters: + /// - account_id: account_id parameter + public init(account_id: Components.Parameters.account_hyphen_id) { + self.account_id = account_id + } + } + public var path: Operations.users_sol_get_hyphen_by_hyphen_id.Input.Path + /// - Remark: Generated from `#/paths/user/{account_id}/GET/header`. + public struct Headers: Sendable, Hashable { + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + /// Creates a new `Headers`. + /// + /// - Parameters: + /// - accept: + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + self.accept = accept + } + } + public var headers: Operations.users_sol_get_hyphen_by_hyphen_id.Input.Headers + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + /// - headers: + public init( + path: Operations.users_sol_get_hyphen_by_hyphen_id.Input.Path, + headers: Operations.users_sol_get_hyphen_by_hyphen_id.Input.Headers = .init() + ) { + self.path = path + self.headers = headers + } + } + @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content/json`. + @frozen public enum jsonPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content/json/case1`. + case private_hyphen_user(Components.Schemas.private_hyphen_user) + /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content/json/case2`. + case public_hyphen_user(Components.Schemas.public_hyphen_user) + public init(from decoder: any Decoder) throws { + var errors: [any Error] = [] + do { + self = .private_hyphen_user(try .init(from: decoder)) + return + } catch { + errors.append(error) + } + do { + self = .public_hyphen_user(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 .private_hyphen_user(value): + try value.encode(to: encoder) + case let .public_hyphen_user(value): + try value.encode(to: encoder) + } + } + } + /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content/application\/json`. + case json(Operations.users_sol_get_hyphen_by_hyphen_id.Output.Ok.Body.jsonPayload) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Operations.users_sol_get_hyphen_by_hyphen_id.Output.Ok.Body.jsonPayload { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.users_sol_get_hyphen_by_hyphen_id.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.users_sol_get_hyphen_by_hyphen_id.Output.Ok.Body) { + self.body = body + } + } + /// Response + /// + /// - Remark: Generated from `#/paths//user/{account_id}/get(users/get-by-id)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.users_sol_get_hyphen_by_hyphen_id.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.users_sol_get_hyphen_by_hyphen_id.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } + /// Resource not found + /// + /// - Remark: Generated from `#/paths//user/{account_id}/get(users/get-by-id)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + case notFound(Components.Responses.not_found) + /// The associated value of the enum case if `self` is `.notFound`. + /// + /// - Throws: An error if `self` is not `.notFound`. + /// - SeeAlso: `.notFound`. + public var notFound: Components.Responses.not_found { + get throws { + switch self { + case let .notFound(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "notFound", + response: self + ) + } + } + } + /// Undocumented response. + /// + /// A response with a code that is not documented in the OpenAPI document. + case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload) + } + @frozen public enum AcceptableContentType: AcceptableProtocol { + case json + case other(Swift.String) + public init?(rawValue: Swift.String) { + switch rawValue.lowercased() { + case "application/json": + self = .json + default: + self = .other(rawValue) + } + } + public var rawValue: Swift.String { + switch self { + case let .other(string): + return string + case .json: + return "application/json" + } + } + public static var allCases: [Self] { + [ + .json + ] + } + } + } /// List users /// /// Lists all users, in the order that they signed up on GitHub. This list includes personal user accounts and organization accounts. diff --git a/Submodule/github/rest-api-description b/Submodule/github/rest-api-description index d2303fdde41..5af586d1351 160000 --- a/Submodule/github/rest-api-description +++ b/Submodule/github/rest-api-description @@ -1 +1 @@ -Subproject commit d2303fdde41a01ecb82983c478eba68dd73f8dcf +Subproject commit 5af586d1351db51ce7f285a897f508e7be0169d9