You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/agent-tasks/Types.swift
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -430,10 +430,10 @@ public enum Operations {
430
430
///
431
431
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/GET/query/since`.
432
432
publicvarsince:Foundation.Date?
433
-
/// Filter tasks by creator user ID
433
+
/// Filter tasks by creator user ID. Accepts one or more user IDs.
434
434
///
435
435
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/GET/query/creator_id`.
436
-
publicvarcreatorId:Swift.Int?
436
+
publicvarcreatorId:[Swift.Int]?
437
437
/// Creates a new `Query`.
438
438
///
439
439
/// - Parameters:
@@ -444,7 +444,7 @@ public enum Operations {
444
444
/// - 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`.
445
445
/// - isArchived: Filter by archived status. When `true`, returns only archived tasks. When `false` or omitted, returns only non-archived tasks. Defaults to `false`.
446
446
/// - since: Only show tasks updated at or after this time (ISO 8601 timestamp)
447
-
/// - creatorId: Filter tasks by creator user ID
447
+
/// - creatorId: Filter tasks by creator user ID. Accepts one or more user IDs.
448
448
publicinit(
449
449
perPage:Swift.Int?=nil,
450
450
page:Swift.Int?=nil,
@@ -453,7 +453,7 @@ public enum Operations {
453
453
state:Swift.String?=nil,
454
454
isArchived:Swift.Bool?=nil,
455
455
since:Foundation.Date?=nil,
456
-
creatorId:Swift.Int?=nil
456
+
creatorId:[Swift.Int]?=nil
457
457
){
458
458
self.perPage = perPage
459
459
self.page = page
@@ -1815,29 +1815,37 @@ public enum Operations {
1815
1815
///
1816
1816
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/json/base_ref`.
1817
1817
publicvarbaseRef:Swift.String?
1818
+
/// 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.
1819
+
///
1820
+
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/json/head_ref`.
1821
+
publicvarheadRef:Swift.String?
1818
1822
/// Creates a new `JsonPayload`.
1819
1823
///
1820
1824
/// - Parameters:
1821
1825
/// - prompt: The user's prompt for the agent
1822
1826
/// - 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`
1823
1827
/// - createPullRequest: Whether to create a PR.
1824
1828
/// - baseRef: Base ref for new branch/PR
1829
+
/// - 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.
1825
1830
publicinit(
1826
1831
prompt:Swift.String,
1827
1832
model:Swift.String?=nil,
1828
1833
createPullRequest:Swift.Bool?=nil,
1829
-
baseRef:Swift.String?=nil
1834
+
baseRef:Swift.String?=nil,
1835
+
headRef:Swift.String?=nil
1830
1836
){
1831
1837
self.prompt = prompt
1832
1838
self.model = model
1833
1839
self.createPullRequest = createPullRequest
1834
1840
self.baseRef = baseRef
1841
+
self.headRef = headRef
1835
1842
}
1836
1843
publicenumCodingKeys:String,CodingKey{
1837
1844
case prompt
1838
1845
case model
1839
1846
case createPullRequest ="create_pull_request"
1840
1847
case baseRef ="base_ref"
1848
+
case headRef ="head_ref"
1841
1849
}
1842
1850
}
1843
1851
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/content/application\/json`.
Copy file name to clipboardExpand all lines: Sources/apps/Types.swift
+95-2Lines changed: 95 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2613,6 +2613,7 @@ public enum Components {
2613
2613
///
2614
2614
/// - Remark: Generated from `#/components/schemas/app-permissions/organization_copilot_seat_management`.
2615
2615
@frozen public enum OrganizationCopilotSeatManagementPayload: String, Codable, Hashable, Sendable, CaseIterable {
2616
+
case read = "read"
2616
2617
case write = "write"
2617
2618
}
2618
2619
/// 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.
@@ -8943,18 +8944,64 @@ public enum Operations {
8943
8944
public struct RepositoriesPayloadPayload: Codable, Hashable, Sendable {
8944
8945
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/RepositoriesPayload/value1`.
8945
8946
public var value1: Components.Schemas.Repository
8947
+
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/RepositoriesPayload/value2`.
8948
+
public struct Value2Payload: Codable, Hashable, Sendable {
8949
+
/// 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.
8950
+
///
8951
+
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/RepositoriesPayload/value2/custom_properties`.
8952
+
public struct CustomPropertiesPayload: Codable, Hashable, Sendable {
8953
+
/// A container of undocumented properties.
8954
+
public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer
8955
+
/// Creates a new `CustomPropertiesPayload`.
8956
+
///
8957
+
/// - Parameters:
8958
+
/// - additionalProperties: A container of undocumented properties.
8959
+
public init(additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init()) {
8960
+
self.additionalProperties = additionalProperties
8961
+
}
8962
+
public init(from decoder: any Swift.Decoder) throws {
/// 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.
8970
+
///
8971
+
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/RepositoriesPayload/value2/custom_properties`.
8972
+
public var customProperties: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload.CustomPropertiesPayload?
8973
+
/// Creates a new `Value2Payload`.
8974
+
///
8975
+
/// - Parameters:
8976
+
/// - 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.
8977
+
public init(customProperties: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload.CustomPropertiesPayload? = nil) {
8978
+
self.customProperties = customProperties
8979
+
}
8980
+
public enum CodingKeys: String, CodingKey {
8981
+
case customProperties = "custom_properties"
8982
+
}
8983
+
}
8984
+
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/RepositoriesPayload/value2`.
8985
+
public var value2: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload
8946
8986
/// Creates a new `RepositoriesPayloadPayload`.
8947
8987
///
8948
8988
/// - Parameters:
8949
8989
/// - value1:
8950
-
public init(value1: Components.Schemas.Repository) {
public init(from decoder: any Swift.Decoder) throws {
8954
8999
self.value1 = try .init(from: decoder)
9000
+
self.value2 = try .init(from: decoder)
8955
9001
}
8956
9002
public func encode(to encoder: any Swift.Encoder) throws {
8957
9003
try self.value1.encode(to: encoder)
9004
+
try self.value2.encode(to: encoder)
8958
9005
}
8959
9006
}
8960
9007
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/repositories`.
@@ -11189,18 +11236,64 @@ public enum Operations {
11189
11236
public struct RepositoriesPayloadPayload: Codable, Hashable, Sendable {
11190
11237
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/RepositoriesPayload/value1`.
11191
11238
public var value1: Components.Schemas.Repository
11239
+
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/RepositoriesPayload/value2`.
11240
+
public struct Value2Payload: Codable, Hashable, Sendable {
11241
+
/// 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.
11242
+
///
11243
+
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/RepositoriesPayload/value2/custom_properties`.
11244
+
public struct CustomPropertiesPayload: Codable, Hashable, Sendable {
11245
+
/// A container of undocumented properties.
11246
+
public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer
11247
+
/// Creates a new `CustomPropertiesPayload`.
11248
+
///
11249
+
/// - Parameters:
11250
+
/// - additionalProperties: A container of undocumented properties.
11251
+
public init(additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init()) {
11252
+
self.additionalProperties = additionalProperties
11253
+
}
11254
+
public init(from decoder: any Swift.Decoder) throws {
/// 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.
11262
+
///
11263
+
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/RepositoriesPayload/value2/custom_properties`.
11264
+
public var customProperties: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload.CustomPropertiesPayload?
11265
+
/// Creates a new `Value2Payload`.
11266
+
///
11267
+
/// - Parameters:
11268
+
/// - 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.
11269
+
public init(customProperties: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload.CustomPropertiesPayload? = nil) {
11270
+
self.customProperties = customProperties
11271
+
}
11272
+
public enum CodingKeys: String, CodingKey {
11273
+
case customProperties = "custom_properties"
11274
+
}
11275
+
}
11276
+
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/RepositoriesPayload/value2`.
11277
+
public var value2: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload
11192
11278
/// Creates a new `RepositoriesPayloadPayload`.
11193
11279
///
11194
11280
/// - Parameters:
11195
11281
/// - value1:
11196
-
public init(value1: Components.Schemas.Repository) {
0 commit comments