Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
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
56 changes: 28 additions & 28 deletions Sources/actions/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13104,6 +13104,34 @@ public enum Components {
self.body = body
}
}
public struct Gone: Sendable, Hashable {
/// - Remark: Generated from `#/components/responses/gone/content`.
@frozen public enum Body: Sendable, Hashable {
/// - Remark: Generated from `#/components/responses/gone/content/application\/json`.
case json(Components.Schemas.BasicError)
/// The associated value of the enum case if `self` is `.json`.
///
/// - Throws: An error if `self` is not `.json`.
/// - SeeAlso: `.json`.
public var json: Components.Schemas.BasicError {
get throws {
switch self {
case let .json(body):
return body
}
}
}
}
/// Received HTTP response body
public var body: Components.Responses.Gone.Body
/// Creates a new `Gone`.
///
/// - Parameters:
/// - body: Received HTTP response body
public init(body: Components.Responses.Gone.Body) {
self.body = body
}
}
public struct InternalError: Sendable, Hashable {
/// - Remark: Generated from `#/components/responses/internal_error/content`.
@frozen public enum Body: Sendable, Hashable {
Expand Down Expand Up @@ -13315,34 +13343,6 @@ public enum Components {
self.body = body
}
}
public struct Gone: Sendable, Hashable {
/// - Remark: Generated from `#/components/responses/gone/content`.
@frozen public enum Body: Sendable, Hashable {
/// - Remark: Generated from `#/components/responses/gone/content/application\/json`.
case json(Components.Schemas.BasicError)
/// The associated value of the enum case if `self` is `.json`.
///
/// - Throws: An error if `self` is not `.json`.
/// - SeeAlso: `.json`.
public var json: Components.Schemas.BasicError {
get throws {
switch self {
case let .json(body):
return body
}
}
}
}
/// Received HTTP response body
public var body: Components.Responses.Gone.Body
/// Creates a new `Gone`.
///
/// - Parameters:
/// - body: Received HTTP response body
public init(body: Components.Responses.Gone.Body) {
self.body = body
}
}
}
/// Types generated from the `#/components/headers` section of the OpenAPI document.
public enum Headers {
Expand Down
241 changes: 236 additions & 5 deletions Sources/agent-tasks/Types.swift

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Sources/apps/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2236,7 +2236,7 @@ public enum Components {
case createdAt = "created_at"
}
}
/// The permissions granted to the user access token.
/// The permissions granted to the fine-grained access token.
///
/// - Remark: Generated from `#/components/schemas/app-permissions`.
public struct AppPermissions: Codable, Hashable, Sendable {
Expand Down
47 changes: 41 additions & 6 deletions Sources/billing/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,7 @@ public enum Components {
case repository = "repository"
case costCenter = "cost_center"
case multiUserCustomer = "multi_user_customer"
case multiUserCostCenter = "multi_user_cost_center"
case user = "user"
}
/// The scope of the budget
Expand Down Expand Up @@ -1071,6 +1072,7 @@ public enum Components {
case repository = "repository"
case costCenter = "cost_center"
case multiUserCustomer = "multi_user_customer"
case multiUserCostCenter = "multi_user_cost_center"
case user = "user"
}
/// The type of scope for the budget
Expand Down Expand Up @@ -1246,6 +1248,7 @@ public enum Components {
case repository = "repository"
case costCenter = "cost_center"
case multiUserCustomer = "multi_user_customer"
case multiUserCostCenter = "multi_user_cost_center"
case user = "user"
}
/// The type of scope for the budget
Expand Down Expand Up @@ -1416,6 +1419,7 @@ public enum Components {
case repository = "repository"
case costCenter = "cost_center"
case multiUserCustomer = "multi_user_customer"
case multiUserCostCenter = "multi_user_cost_center"
case user = "user"
}
/// The type of scope for the budget
Expand Down Expand Up @@ -3714,6 +3718,11 @@ public enum Operations {
}
/// Filter budgets by scope type.
///
/// - `organization`: Budgets scoped to the organization.
/// - `repository`: Budgets scoped to a repository.
/// - `multi_user_customer`: Universal budgets that apply to all users in the organization.
/// - `user`: Budgets scoped to an individual user.
///
/// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/budgets/GET/query/scope`.
public var scope: Operations.BillingGetAllBudgetsOrg.Input.Query.ScopePayload?
/// Filter consumed amount details for budgets by the specified user login.
Expand Down Expand Up @@ -3970,7 +3979,15 @@ public enum Operations {
}
/// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/budgets/POST/requestBody/json/budget_alerting`.
public var budgetAlerting: Operations.BillingCreateOrganizationBudget.Input.Body.JsonPayload.BudgetAlertingPayload?
/// The scope of the budget for this organization. Use 'organization' for org-level budgets or 'repository' for repo-specific budgets within the organization. `user` and `multi_user_customer` scopes are only supported when `budget_product_sku` is `ai_credits` or `premium_requests`.
/// The scope of the budget for this organization.
///
/// - `organization`: Apply the budget to the organization.
/// - `repository`: Apply the budget to a specific repository in the organization.
/// - `multi_user_customer`: Apply a universal budget to all users in the organization.
/// - `user`: Apply the budget to a single user in the organization.
///
/// `user` and `multi_user_customer` scopes are only supported when
/// `budget_product_sku` is `ai_credits` or `premium_requests`.
///
/// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/budgets/POST/requestBody/json/budget_scope`.
@frozen public enum BudgetScopePayload: String, Codable, Hashable, Sendable, CaseIterable {
Expand All @@ -3979,7 +3996,15 @@ public enum Operations {
case multiUserCustomer = "multi_user_customer"
case user = "user"
}
/// The scope of the budget for this organization. Use 'organization' for org-level budgets or 'repository' for repo-specific budgets within the organization. `user` and `multi_user_customer` scopes are only supported when `budget_product_sku` is `ai_credits` or `premium_requests`.
/// The scope of the budget for this organization.
///
/// - `organization`: Apply the budget to the organization.
/// - `repository`: Apply the budget to a specific repository in the organization.
/// - `multi_user_customer`: Apply a universal budget to all users in the organization.
/// - `user`: Apply the budget to a single user in the organization.
///
/// `user` and `multi_user_customer` scopes are only supported when
/// `budget_product_sku` is `ai_credits` or `premium_requests`.
///
/// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/budgets/POST/requestBody/json/budget_scope`.
public var budgetScope: Operations.BillingCreateOrganizationBudget.Input.Body.JsonPayload.BudgetScopePayload?
Expand Down Expand Up @@ -4072,7 +4097,7 @@ public enum Operations {
/// - budgetAmount: The budget amount in whole dollars. For license-based products, this represents the number of licenses.
/// - preventFurtherUsage: Whether to prevent additional spending once the budget is exceeded. For `user` and `multi_user_customer` scopes, this must be `true`.
/// - budgetAlerting:
/// - budgetScope: The scope of the budget for this organization. Use 'organization' for org-level budgets or 'repository' for repo-specific budgets within the organization. `user` and `multi_user_customer` scopes are only supported when `budget_product_sku` is `ai_credits` or `premium_requests`.
/// - budgetScope: The scope of the budget for this organization.
/// - budgetEntityName: The name of the entity to apply the budget to
/// - budgetType: The type of pricing model used by the budget. Determines how `budget_product_sku` is interpreted.
/// - budgetProductSku: A single product or SKU that will be covered in the budget
Expand Down Expand Up @@ -4758,7 +4783,12 @@ public enum Operations {
}
/// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/budgets/{budget_id}/PATCH/requestBody/json/budget_alerting`.
public var budgetAlerting: Operations.BillingUpdateBudgetOrg.Input.Body.JsonPayload.BudgetAlertingPayload?
/// The scope of the budget
/// The scope of the budget for this organization.
///
/// - `organization`: Apply the budget to the organization.
/// - `repository`: Apply the budget to a specific repository in the organization.
/// - `multi_user_customer`: Apply a universal budget to all users in the organization.
/// - `user`: Apply the budget to a single user in the organization.
///
/// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/budgets/{budget_id}/PATCH/requestBody/json/budget_scope`.
@frozen public enum BudgetScopePayload: String, Codable, Hashable, Sendable, CaseIterable {
Expand All @@ -4769,7 +4799,12 @@ public enum Operations {
case multiUserCustomer = "multi_user_customer"
case user = "user"
}
/// The scope of the budget
/// The scope of the budget for this organization.
///
/// - `organization`: Apply the budget to the organization.
/// - `repository`: Apply the budget to a specific repository in the organization.
/// - `multi_user_customer`: Apply a universal budget to all users in the organization.
/// - `user`: Apply the budget to a single user in the organization.
///
/// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/budgets/{budget_id}/PATCH/requestBody/json/budget_scope`.
public var budgetScope: Operations.BillingUpdateBudgetOrg.Input.Body.JsonPayload.BudgetScopePayload?
Expand Down Expand Up @@ -4862,7 +4897,7 @@ public enum Operations {
/// - budgetAmount: The budget amount in whole dollars. For license-based products, this represents the number of licenses.
/// - preventFurtherUsage: Whether to prevent additional spending once the budget is exceeded. For budgets with `user` or `multi_user_customer` scope, this must remain `true`.
/// - budgetAlerting:
/// - budgetScope: The scope of the budget
/// - budgetScope: The scope of the budget for this organization.
/// - budgetEntityName: The name of the entity to apply the budget to
/// - budgetType: The type of pricing model used by the budget. Determines how `budget_product_sku` is interpreted.
/// - budgetProductSku: A single product or SKU that will be covered in the budget
Expand Down
Loading