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
18 changes: 13 additions & 5 deletions Sources/agent-tasks/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,10 @@ public enum Operations {
///
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/GET/query/since`.
public var since: Foundation.Date?
/// Filter tasks by creator user ID
/// Filter tasks by creator user ID. Accepts one or more user IDs.
///
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/GET/query/creator_id`.
public var creatorId: Swift.Int?
public var creatorId: [Swift.Int]?
/// Creates a new `Query`.
///
/// - Parameters:
Expand All @@ -444,7 +444,7 @@ public enum Operations {
/// - state: Comma-separated list of task states to filter by. Can be any combination of: `queued`, `in_progress`, `completed`, `failed`, `idle`, `waiting_for_user`, `timed_out`, `cancelled`.
/// - isArchived: Filter by archived status. When `true`, returns only archived tasks. When `false` or omitted, returns only non-archived tasks. Defaults to `false`.
/// - since: Only show tasks updated at or after this time (ISO 8601 timestamp)
/// - creatorId: Filter tasks by creator user ID
/// - creatorId: Filter tasks by creator user ID. Accepts one or more user IDs.
public init(
perPage: Swift.Int? = nil,
page: Swift.Int? = nil,
Expand All @@ -453,7 +453,7 @@ public enum Operations {
state: Swift.String? = nil,
isArchived: Swift.Bool? = nil,
since: Foundation.Date? = nil,
creatorId: Swift.Int? = nil
creatorId: [Swift.Int]? = nil
) {
self.perPage = perPage
self.page = page
Expand Down Expand Up @@ -1815,29 +1815,37 @@ public enum Operations {
///
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/json/base_ref`.
public var baseRef: Swift.String?
/// Head ref for existing branch/PR. If provided with `base_ref`, the agent looks up open PR context for `head_ref` targeting `base_ref` and commits to `head_ref` instead of creating a new branch.
///
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/json/head_ref`.
public var headRef: Swift.String?
/// Creates a new `JsonPayload`.
///
/// - Parameters:
/// - prompt: The user's prompt for the agent
/// - model: The model to use for this task. The allowed models may change over time and depend on the user's GitHub Copilot plan and organization policies. Currently supported values: `claude-sonnet-4.6`, `claude-opus-4.6`, `gpt-5.2-codex`, `gpt-5.3-codex`, `gpt-5.4`, `claude-sonnet-4.5`, `claude-opus-4.5`
/// - createPullRequest: Whether to create a PR.
/// - baseRef: Base ref for new branch/PR
/// - headRef: Head ref for existing branch/PR. If provided with `base_ref`, the agent looks up open PR context for `head_ref` targeting `base_ref` and commits to `head_ref` instead of creating a new branch.
public init(
prompt: Swift.String,
model: Swift.String? = nil,
createPullRequest: Swift.Bool? = nil,
baseRef: Swift.String? = nil
baseRef: Swift.String? = nil,
headRef: Swift.String? = nil
) {
self.prompt = prompt
self.model = model
self.createPullRequest = createPullRequest
self.baseRef = baseRef
self.headRef = headRef
}
public enum CodingKeys: String, CodingKey {
case prompt
case model
case createPullRequest = "create_pull_request"
case baseRef = "base_ref"
case headRef = "head_ref"
}
}
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/content/application\/json`.
Expand Down
97 changes: 95 additions & 2 deletions Sources/apps/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2613,6 +2613,7 @@ public enum Components {
///
/// - Remark: Generated from `#/components/schemas/app-permissions/organization_copilot_seat_management`.
@frozen public enum OrganizationCopilotSeatManagementPayload: String, Codable, Hashable, Sendable, CaseIterable {
case read = "read"
case write = "write"
}
/// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change.
Expand Down Expand Up @@ -8943,18 +8944,64 @@ public enum Operations {
public struct RepositoriesPayloadPayload: Codable, Hashable, Sendable {
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/RepositoriesPayload/value1`.
public var value1: Components.Schemas.Repository
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/RepositoriesPayload/value2`.
public struct Value2Payload: Codable, Hashable, Sendable {
/// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. Present for org repos only.
///
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/RepositoriesPayload/value2/custom_properties`.
public struct CustomPropertiesPayload: Codable, Hashable, Sendable {
/// A container of undocumented properties.
public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer
/// Creates a new `CustomPropertiesPayload`.
///
/// - Parameters:
/// - additionalProperties: A container of undocumented properties.
public init(additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init()) {
self.additionalProperties = additionalProperties
}
public init(from decoder: any Swift.Decoder) throws {
additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [])
}
public func encode(to encoder: any Swift.Encoder) throws {
try encoder.encodeAdditionalProperties(additionalProperties)
}
}
/// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. Present for org repos only.
///
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/RepositoriesPayload/value2/custom_properties`.
public var customProperties: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload.CustomPropertiesPayload?
/// Creates a new `Value2Payload`.
///
/// - Parameters:
/// - customProperties: The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. Present for org repos only.
public init(customProperties: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload.CustomPropertiesPayload? = nil) {
self.customProperties = customProperties
}
public enum CodingKeys: String, CodingKey {
case customProperties = "custom_properties"
}
}
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/RepositoriesPayload/value2`.
public var value2: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload
/// Creates a new `RepositoriesPayloadPayload`.
///
/// - Parameters:
/// - value1:
public init(value1: Components.Schemas.Repository) {
/// - value2:
public init(
value1: Components.Schemas.Repository,
value2: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload
) {
self.value1 = value1
self.value2 = value2
}
public init(from decoder: any Swift.Decoder) throws {
self.value1 = try .init(from: decoder)
self.value2 = try .init(from: decoder)
}
public func encode(to encoder: any Swift.Encoder) throws {
try self.value1.encode(to: encoder)
try self.value2.encode(to: encoder)
}
}
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/repositories`.
Expand Down Expand Up @@ -11189,18 +11236,64 @@ public enum Operations {
public struct RepositoriesPayloadPayload: Codable, Hashable, Sendable {
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/RepositoriesPayload/value1`.
public var value1: Components.Schemas.Repository
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/RepositoriesPayload/value2`.
public struct Value2Payload: Codable, Hashable, Sendable {
/// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. Present for org repos only.
///
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/RepositoriesPayload/value2/custom_properties`.
public struct CustomPropertiesPayload: Codable, Hashable, Sendable {
/// A container of undocumented properties.
public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer
/// Creates a new `CustomPropertiesPayload`.
///
/// - Parameters:
/// - additionalProperties: A container of undocumented properties.
public init(additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init()) {
self.additionalProperties = additionalProperties
}
public init(from decoder: any Swift.Decoder) throws {
additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [])
}
public func encode(to encoder: any Swift.Encoder) throws {
try encoder.encodeAdditionalProperties(additionalProperties)
}
}
/// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. Present for org repos only.
///
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/RepositoriesPayload/value2/custom_properties`.
public var customProperties: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload.CustomPropertiesPayload?
/// Creates a new `Value2Payload`.
///
/// - Parameters:
/// - customProperties: The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. Present for org repos only.
public init(customProperties: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload.CustomPropertiesPayload? = nil) {
self.customProperties = customProperties
}
public enum CodingKeys: String, CodingKey {
case customProperties = "custom_properties"
}
}
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/RepositoriesPayload/value2`.
public var value2: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload
/// Creates a new `RepositoriesPayloadPayload`.
///
/// - Parameters:
/// - value1:
public init(value1: Components.Schemas.Repository) {
/// - value2:
public init(
value1: Components.Schemas.Repository,
value2: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload
) {
self.value1 = value1
self.value2 = value2
}
public init(from decoder: any Swift.Decoder) throws {
self.value1 = try .init(from: decoder)
self.value2 = try .init(from: decoder)
}
public func encode(to encoder: any Swift.Encoder) throws {
try self.value1.encode(to: encoder)
try self.value2.encode(to: encoder)
}
}
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/repositories`.
Expand Down
Loading