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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
443 changes: 443 additions & 0 deletions Sources/billing/Client.swift

Large diffs are not rendered by default.

1,099 changes: 1,087 additions & 12 deletions Sources/billing/Types.swift

Large diffs are not rendered by default.

24 changes: 21 additions & 3 deletions Sources/code-scanning/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2058,6 +2058,8 @@ public enum Components {
public var repository: Components.Schemas.SimpleRepository
/// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/dismissal_approved_by`.
public var dismissalApprovedBy: Components.Schemas.NullableSimpleUser?
/// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/assignees`.
public var assignees: [Components.Schemas.SimpleUser]?
/// Creates a new `CodeScanningOrganizationAlertItems`.
///
/// - Parameters:
Expand All @@ -2078,6 +2080,7 @@ public enum Components {
/// - mostRecentInstance:
/// - repository:
/// - dismissalApprovedBy:
/// - assignees:
public init(
number: Components.Schemas.AlertNumber,
createdAt: Components.Schemas.AlertCreatedAt,
Expand All @@ -2095,7 +2098,8 @@ public enum Components {
tool: Components.Schemas.CodeScanningAnalysisTool,
mostRecentInstance: Components.Schemas.CodeScanningAlertInstance,
repository: Components.Schemas.SimpleRepository,
dismissalApprovedBy: Components.Schemas.NullableSimpleUser? = nil
dismissalApprovedBy: Components.Schemas.NullableSimpleUser? = nil,
assignees: [Components.Schemas.SimpleUser]? = nil
) {
self.number = number
self.createdAt = createdAt
Expand All @@ -2114,6 +2118,7 @@ public enum Components {
self.mostRecentInstance = mostRecentInstance
self.repository = repository
self.dismissalApprovedBy = dismissalApprovedBy
self.assignees = assignees
}
public enum CodingKeys: String, CodingKey {
case number
Expand All @@ -2133,6 +2138,7 @@ public enum Components {
case mostRecentInstance = "most_recent_instance"
case repository
case dismissalApprovedBy = "dismissal_approved_by"
case assignees
}
}
/// - Remark: Generated from `#/components/schemas/code-scanning-alert-items`.
Expand Down Expand Up @@ -2169,6 +2175,8 @@ public enum Components {
public var mostRecentInstance: Components.Schemas.CodeScanningAlertInstance
/// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/dismissal_approved_by`.
public var dismissalApprovedBy: Components.Schemas.NullableSimpleUser?
/// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/assignees`.
public var assignees: [Components.Schemas.SimpleUser]?
/// Creates a new `CodeScanningAlertItems`.
///
/// - Parameters:
Expand All @@ -2188,6 +2196,7 @@ public enum Components {
/// - tool:
/// - mostRecentInstance:
/// - dismissalApprovedBy:
/// - assignees:
public init(
number: Components.Schemas.AlertNumber,
createdAt: Components.Schemas.AlertCreatedAt,
Expand All @@ -2204,7 +2213,8 @@ public enum Components {
rule: Components.Schemas.CodeScanningAlertRuleSummary,
tool: Components.Schemas.CodeScanningAnalysisTool,
mostRecentInstance: Components.Schemas.CodeScanningAlertInstance,
dismissalApprovedBy: Components.Schemas.NullableSimpleUser? = nil
dismissalApprovedBy: Components.Schemas.NullableSimpleUser? = nil,
assignees: [Components.Schemas.SimpleUser]? = nil
) {
self.number = number
self.createdAt = createdAt
Expand All @@ -2222,6 +2232,7 @@ public enum Components {
self.tool = tool
self.mostRecentInstance = mostRecentInstance
self.dismissalApprovedBy = dismissalApprovedBy
self.assignees = assignees
}
public enum CodingKeys: String, CodingKey {
case number
Expand All @@ -2240,6 +2251,7 @@ public enum Components {
case tool
case mostRecentInstance = "most_recent_instance"
case dismissalApprovedBy = "dismissal_approved_by"
case assignees
}
}
/// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule`.
Expand Down Expand Up @@ -2377,6 +2389,8 @@ public enum Components {
public var mostRecentInstance: Components.Schemas.CodeScanningAlertInstance
/// - Remark: Generated from `#/components/schemas/code-scanning-alert/dismissal_approved_by`.
public var dismissalApprovedBy: Components.Schemas.NullableSimpleUser?
/// - Remark: Generated from `#/components/schemas/code-scanning-alert/assignees`.
public var assignees: [Components.Schemas.SimpleUser]?
/// Creates a new `CodeScanningAlert`.
///
/// - Parameters:
Expand All @@ -2396,6 +2410,7 @@ public enum Components {
/// - tool:
/// - mostRecentInstance:
/// - dismissalApprovedBy:
/// - assignees:
public init(
number: Components.Schemas.AlertNumber,
createdAt: Components.Schemas.AlertCreatedAt,
Expand All @@ -2412,7 +2427,8 @@ public enum Components {
rule: Components.Schemas.CodeScanningAlertRule,
tool: Components.Schemas.CodeScanningAnalysisTool,
mostRecentInstance: Components.Schemas.CodeScanningAlertInstance,
dismissalApprovedBy: Components.Schemas.NullableSimpleUser? = nil
dismissalApprovedBy: Components.Schemas.NullableSimpleUser? = nil,
assignees: [Components.Schemas.SimpleUser]? = nil
) {
self.number = number
self.createdAt = createdAt
Expand All @@ -2430,6 +2446,7 @@ public enum Components {
self.tool = tool
self.mostRecentInstance = mostRecentInstance
self.dismissalApprovedBy = dismissalApprovedBy
self.assignees = assignees
}
public enum CodingKeys: String, CodingKey {
case number
Expand All @@ -2448,6 +2465,7 @@ public enum Components {
case tool
case mostRecentInstance = "most_recent_instance"
case dismissalApprovedBy = "dismissal_approved_by"
case assignees
}
}
/// Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`.
Expand Down
8 changes: 7 additions & 1 deletion Sources/orgs/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11955,25 +11955,31 @@ public enum Operations {
public var repositoryId: Swift.Int?
/// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle_url`.
public var bundleUrl: Swift.String?
/// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/initiator`.
public var initiator: Swift.String?
/// Creates a new `AttestationsPayloadPayload`.
///
/// - Parameters:
/// - bundle: The attestation's Sigstore Bundle.
/// - repositoryId:
/// - bundleUrl:
/// - initiator:
public init(
bundle: Operations.OrgsListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload? = nil,
repositoryId: Swift.Int? = nil,
bundleUrl: Swift.String? = nil
bundleUrl: Swift.String? = nil,
initiator: Swift.String? = nil
) {
self.bundle = bundle
self.repositoryId = repositoryId
self.bundleUrl = bundleUrl
self.initiator = initiator
}
public enum CodingKeys: String, CodingKey {
case bundle
case repositoryId = "repository_id"
case bundleUrl = "bundle_url"
case initiator
}
}
/// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/attestations`.
Expand Down
8 changes: 7 additions & 1 deletion Sources/repos/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27966,25 +27966,31 @@ public enum Operations {
public var repositoryId: Swift.Int?
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle_url`.
public var bundleUrl: Swift.String?
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/initiator`.
public var initiator: Swift.String?
/// Creates a new `AttestationsPayloadPayload`.
///
/// - Parameters:
/// - bundle: The attestation's Sigstore Bundle.
/// - repositoryId:
/// - bundleUrl:
/// - initiator:
public init(
bundle: Operations.ReposListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload? = nil,
repositoryId: Swift.Int? = nil,
bundleUrl: Swift.String? = nil
bundleUrl: Swift.String? = nil,
initiator: Swift.String? = nil
) {
self.bundle = bundle
self.repositoryId = repositoryId
self.bundleUrl = bundleUrl
self.initiator = initiator
}
public enum CodingKeys: String, CodingKey {
case bundle
case repositoryId = "repository_id"
case bundleUrl = "bundle_url"
case initiator
}
}
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/attestations`.
Expand Down
8 changes: 7 additions & 1 deletion Sources/users/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12601,25 +12601,31 @@ public enum Operations {
public var repositoryId: Swift.Int?
/// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle_url`.
public var bundleUrl: Swift.String?
/// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/initiator`.
public var initiator: Swift.String?
/// Creates a new `AttestationsPayloadPayload`.
///
/// - Parameters:
/// - bundle: The attestation's Sigstore Bundle.
/// - repositoryId:
/// - bundleUrl:
/// - initiator:
public init(
bundle: Operations.UsersListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload? = nil,
repositoryId: Swift.Int? = nil,
bundleUrl: Swift.String? = nil
bundleUrl: Swift.String? = nil,
initiator: Swift.String? = nil
) {
self.bundle = bundle
self.repositoryId = repositoryId
self.bundleUrl = bundleUrl
self.initiator = initiator
}
public enum CodingKeys: String, CodingKey {
case bundle
case repositoryId = "repository_id"
case bundleUrl = "bundle_url"
case initiator
}
}
/// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/attestations`.
Expand Down
2 changes: 1 addition & 1 deletion Submodule/github/rest-api-description