Skip to content
50 changes: 49 additions & 1 deletion Sources/activity/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3780,6 +3780,7 @@ public enum Components {
@frozen public enum DataTypePayload: String, Codable, Hashable, Sendable, CaseIterable {
case text = "text"
case singleSelect = "single_select"
case multiSelect = "multi_select"
case number = "number"
case date = "date"
}
Expand Down Expand Up @@ -3893,6 +3894,49 @@ public enum Components {
///
/// - Remark: Generated from `#/components/schemas/issue-field-value/single_select_option`.
public var singleSelectOption: Components.Schemas.IssueFieldValue.SingleSelectOptionPayload?
/// - Remark: Generated from `#/components/schemas/issue-field-value/MultiSelectOptionsPayload`.
public struct MultiSelectOptionsPayloadPayload: Codable, Hashable, Sendable {
/// Unique identifier for the option.
///
/// - Remark: Generated from `#/components/schemas/issue-field-value/MultiSelectOptionsPayload/id`.
public var id: Swift.Int64
/// The name of the option
///
/// - Remark: Generated from `#/components/schemas/issue-field-value/MultiSelectOptionsPayload/name`.
public var name: Swift.String
/// The color of the option
///
/// - Remark: Generated from `#/components/schemas/issue-field-value/MultiSelectOptionsPayload/color`.
public var color: Swift.String
/// Creates a new `MultiSelectOptionsPayloadPayload`.
///
/// - 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 options
///
/// - Remark: Generated from `#/components/schemas/issue-field-value/multi_select_options`.
public typealias MultiSelectOptionsPayload = [Components.Schemas.IssueFieldValue.MultiSelectOptionsPayloadPayload]
/// Details about the selected options
///
/// - Remark: Generated from `#/components/schemas/issue-field-value/multi_select_options`.
public var multiSelectOptions: Components.Schemas.IssueFieldValue.MultiSelectOptionsPayload?
/// Creates a new `IssueFieldValue`.
///
/// - Parameters:
Expand All @@ -3901,25 +3945,29 @@ public enum Components {
/// - 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)
/// - multiSelectOptions: Details about the selected options
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
singleSelectOption: Components.Schemas.IssueFieldValue.SingleSelectOptionPayload? = nil,
multiSelectOptions: Components.Schemas.IssueFieldValue.MultiSelectOptionsPayload? = nil
) {
self.issueFieldId = issueFieldId
self.nodeId = nodeId
self.dataType = dataType
self.value = value
self.singleSelectOption = singleSelectOption
self.multiSelectOptions = multiSelectOptions
}
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"
case multiSelectOptions = "multi_select_options"
}
}
/// Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.
Expand Down
2 changes: 1 addition & 1 deletion Sources/billing/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public struct Client: APIProtocol {
/// Get all budgets for an organization
///
/// Gets all budgets for an organization. The authenticated user must be an organization admin or billing manager.
/// Each page returns up to 10 budgets.
/// Each page returns up to 100 budgets.
///
/// - Remark: HTTP `GET /organizations/{org}/settings/billing/budgets`.
/// - Remark: Generated from `#/paths//organizations/{org}/settings/billing/budgets/get(billing/get-all-budgets-org)`.
Expand Down
10 changes: 5 additions & 5 deletions Sources/billing/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public protocol APIProtocol: Sendable {
/// Get all budgets for an organization
///
/// Gets all budgets for an organization. The authenticated user must be an organization admin or billing manager.
/// Each page returns up to 10 budgets.
/// Each page returns up to 100 budgets.
///
/// - Remark: HTTP `GET /organizations/{org}/settings/billing/budgets`.
/// - Remark: Generated from `#/paths//organizations/{org}/settings/billing/budgets/get(billing/get-all-budgets-org)`.
Expand Down Expand Up @@ -152,7 +152,7 @@ extension APIProtocol {
/// Get all budgets for an organization
///
/// Gets all budgets for an organization. The authenticated user must be an organization admin or billing manager.
/// Each page returns up to 10 budgets.
/// Each page returns up to 100 budgets.
///
/// - Remark: HTTP `GET /organizations/{org}/settings/billing/budgets`.
/// - Remark: Generated from `#/paths//organizations/{org}/settings/billing/budgets/get(billing/get-all-budgets-org)`.
Expand Down Expand Up @@ -3653,7 +3653,7 @@ public enum Operations {
/// Get all budgets for an organization
///
/// Gets all budgets for an organization. The authenticated user must be an organization admin or billing manager.
/// Each page returns up to 10 budgets.
/// Each page returns up to 100 budgets.
///
/// - Remark: HTTP `GET /organizations/{org}/settings/billing/budgets`.
/// - Remark: Generated from `#/paths//organizations/{org}/settings/billing/budgets/get(billing/get-all-budgets-org)`.
Expand Down Expand Up @@ -3681,7 +3681,7 @@ public enum Operations {
///
/// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/budgets/GET/query/page`.
public var page: Swift.Int?
/// The number of results per page (max 10).
/// The number of results per page (max 100).
///
/// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/budgets/GET/query/per_page`.
public var perPage: Swift.Int?
Expand All @@ -3706,7 +3706,7 @@ public enum Operations {
///
/// - Parameters:
/// - page: The page number of the results to fetch.
/// - perPage: The number of results per page (max 10).
/// - perPage: The number of results per page (max 100).
/// - scope: Filter budgets by scope type.
/// - user: Filter consumed amount details for budgets by the specified user login.
public init(
Expand Down
12 changes: 6 additions & 6 deletions Sources/code-security/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2505,7 +2505,7 @@ public enum Operations {
/// A description of the code security configuration
///
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/description`.
public var description: Swift.String
public var description: Swift.String?
/// The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.
///
/// > [!WARNING]
Expand Down Expand Up @@ -2785,7 +2785,7 @@ public enum Operations {
/// - enforcement: The enforcement status for a security configuration
public init(
name: Swift.String,
description: Swift.String,
description: Swift.String? = nil,
advancedSecurity: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.AdvancedSecurityPayload? = nil,
codeSecurity: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.CodeSecurityPayload? = nil,
dependencyGraph: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.DependencyGraphPayload? = nil,
Expand Down Expand Up @@ -2863,7 +2863,7 @@ public enum Operations {
Swift.String.self,
forKey: .name
)
self.description = try container.decode(
self.description = try container.decodeIfPresent(
Swift.String.self,
forKey: .description
)
Expand Down Expand Up @@ -5481,7 +5481,7 @@ public enum Operations {
/// A description of the code security configuration
///
/// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/description`.
public var description: Swift.String
public var description: Swift.String?
/// The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.
///
/// > [!WARNING]
Expand Down Expand Up @@ -5864,7 +5864,7 @@ public enum Operations {
/// - enforcement: The enforcement status for a security configuration
public init(
name: Swift.String,
description: Swift.String,
description: Swift.String? = nil,
advancedSecurity: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.AdvancedSecurityPayload? = nil,
codeSecurity: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.CodeSecurityPayload? = nil,
dependencyGraph: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.DependencyGraphPayload? = nil,
Expand Down Expand Up @@ -5951,7 +5951,7 @@ public enum Operations {
Swift.String.self,
forKey: .name
)
self.description = try container.decode(
self.description = try container.decodeIfPresent(
Swift.String.self,
forKey: .description
)
Expand Down
Loading