@@ -2327,8 +2327,14 @@ extension APIProtocol {
2327
2327
///
2328
2328
/// - Remark: HTTP `DELETE /orgs/{org}/actions/runners/{runner_id}`.
2329
2329
/// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-org)`.
2330
- public func actionsDeleteSelfHostedRunnerFromOrg(path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromOrg.Output {
2331
- try await actionsDeleteSelfHostedRunnerFromOrg(Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input(path: path))
2330
+ public func actionsDeleteSelfHostedRunnerFromOrg(
2331
+ path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path,
2332
+ headers: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Headers = .init()
2333
+ ) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromOrg.Output {
2334
+ try await actionsDeleteSelfHostedRunnerFromOrg(Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input(
2335
+ path: path,
2336
+ headers: headers
2337
+ ))
2332
2338
}
2333
2339
/// List labels for a self-hosted runner for an organization
2334
2340
///
@@ -3321,8 +3327,14 @@ extension APIProtocol {
3321
3327
///
3322
3328
/// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}`.
3323
3329
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-repo)`.
3324
- public func actionsDeleteSelfHostedRunnerFromRepo(path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromRepo.Output {
3325
- try await actionsDeleteSelfHostedRunnerFromRepo(Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input(path: path))
3330
+ public func actionsDeleteSelfHostedRunnerFromRepo(
3331
+ path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path,
3332
+ headers: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Headers = .init()
3333
+ ) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromRepo.Output {
3334
+ try await actionsDeleteSelfHostedRunnerFromRepo(Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input(
3335
+ path: path,
3336
+ headers: headers
3337
+ ))
3326
3338
}
3327
3339
/// List labels for a self-hosted runner for a repository
3328
3340
///
@@ -5228,6 +5240,35 @@ public enum Components {
5228
5240
///
5229
5241
/// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`.
5230
5242
public var anonymousAccessEnabled: Swift.Bool?
5243
+ /// The status of the code search index for this repository
5244
+ ///
5245
+ /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`.
5246
+ public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable {
5247
+ /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_search_ok`.
5248
+ public var lexicalSearchOk: Swift.Bool?
5249
+ /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_commit_sha`.
5250
+ public var lexicalCommitSha: Swift.String?
5251
+ /// Creates a new `CodeSearchIndexStatusPayload`.
5252
+ ///
5253
+ /// - Parameters:
5254
+ /// - lexicalSearchOk:
5255
+ /// - lexicalCommitSha:
5256
+ public init(
5257
+ lexicalSearchOk: Swift.Bool? = nil,
5258
+ lexicalCommitSha: Swift.String? = nil
5259
+ ) {
5260
+ self.lexicalSearchOk = lexicalSearchOk
5261
+ self.lexicalCommitSha = lexicalCommitSha
5262
+ }
5263
+ public enum CodingKeys: String, CodingKey {
5264
+ case lexicalSearchOk = "lexical_search_ok"
5265
+ case lexicalCommitSha = "lexical_commit_sha"
5266
+ }
5267
+ }
5268
+ /// The status of the code search index for this repository
5269
+ ///
5270
+ /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`.
5271
+ public var codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload?
5231
5272
/// Creates a new `Repository`.
5232
5273
///
5233
5274
/// - Parameters:
@@ -5326,6 +5367,7 @@ public enum Components {
5326
5367
/// - masterBranch:
5327
5368
/// - starredAt:
5328
5369
/// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository
5370
+ /// - codeSearchIndexStatus: The status of the code search index for this repository
5329
5371
public init(
5330
5372
id: Swift.Int64,
5331
5373
nodeId: Swift.String,
@@ -5421,7 +5463,8 @@ public enum Components {
5421
5463
watchers: Swift.Int,
5422
5464
masterBranch: Swift.String? = nil,
5423
5465
starredAt: Swift.String? = nil,
5424
- anonymousAccessEnabled: Swift.Bool? = nil
5466
+ anonymousAccessEnabled: Swift.Bool? = nil,
5467
+ codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? = nil
5425
5468
) {
5426
5469
self.id = id
5427
5470
self.nodeId = nodeId
@@ -5518,6 +5561,7 @@ public enum Components {
5518
5561
self.masterBranch = masterBranch
5519
5562
self.starredAt = starredAt
5520
5563
self.anonymousAccessEnabled = anonymousAccessEnabled
5564
+ self.codeSearchIndexStatus = codeSearchIndexStatus
5521
5565
}
5522
5566
public enum CodingKeys: String, CodingKey {
5523
5567
case id
@@ -5615,6 +5659,7 @@ public enum Components {
5615
5659
case masterBranch = "master_branch"
5616
5660
case starredAt = "starred_at"
5617
5661
case anonymousAccessEnabled = "anonymous_access_enabled"
5662
+ case codeSearchIndexStatus = "code_search_index_status"
5618
5663
}
5619
5664
}
5620
5665
/// Code Of Conduct
@@ -17165,12 +17210,29 @@ public enum Operations {
17165
17210
}
17166
17211
}
17167
17212
public var path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path
17213
+ /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/DELETE/header`.
17214
+ public struct Headers: Sendable, Hashable {
17215
+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.ActionsDeleteSelfHostedRunnerFromOrg.AcceptableContentType>]
17216
+ /// Creates a new `Headers`.
17217
+ ///
17218
+ /// - Parameters:
17219
+ /// - accept:
17220
+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.ActionsDeleteSelfHostedRunnerFromOrg.AcceptableContentType>] = .defaultValues()) {
17221
+ self.accept = accept
17222
+ }
17223
+ }
17224
+ public var headers: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Headers
17168
17225
/// Creates a new `Input`.
17169
17226
///
17170
17227
/// - Parameters:
17171
17228
/// - path:
17172
- public init(path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path) {
17229
+ /// - headers:
17230
+ public init(
17231
+ path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path,
17232
+ headers: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Headers = .init()
17233
+ ) {
17173
17234
self.path = path
17235
+ self.headers = headers
17174
17236
}
17175
17237
}
17176
17238
@frozen public enum Output: Sendable, Hashable {
@@ -17209,11 +17271,59 @@ public enum Operations {
17209
17271
}
17210
17272
}
17211
17273
}
17274
+ /// Validation failed, or the endpoint has been spammed.
17275
+ ///
17276
+ /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-org)/responses/422`.
17277
+ ///
17278
+ /// HTTP response code: `422 unprocessableContent`.
17279
+ case unprocessableContent(Components.Responses.ValidationFailedSimple)
17280
+ /// The associated value of the enum case if `self` is `.unprocessableContent`.
17281
+ ///
17282
+ /// - Throws: An error if `self` is not `.unprocessableContent`.
17283
+ /// - SeeAlso: `.unprocessableContent`.
17284
+ public var unprocessableContent: Components.Responses.ValidationFailedSimple {
17285
+ get throws {
17286
+ switch self {
17287
+ case let .unprocessableContent(response):
17288
+ return response
17289
+ default:
17290
+ try throwUnexpectedResponseStatus(
17291
+ expectedStatus: "unprocessableContent",
17292
+ response: self
17293
+ )
17294
+ }
17295
+ }
17296
+ }
17212
17297
/// Undocumented response.
17213
17298
///
17214
17299
/// A response with a code that is not documented in the OpenAPI document.
17215
17300
case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)
17216
17301
}
17302
+ @frozen public enum AcceptableContentType: AcceptableProtocol {
17303
+ case json
17304
+ case other(Swift.String)
17305
+ public init?(rawValue: Swift.String) {
17306
+ switch rawValue.lowercased() {
17307
+ case "application/json":
17308
+ self = .json
17309
+ default:
17310
+ self = .other(rawValue)
17311
+ }
17312
+ }
17313
+ public var rawValue: Swift.String {
17314
+ switch self {
17315
+ case let .other(string):
17316
+ return string
17317
+ case .json:
17318
+ return "application/json"
17319
+ }
17320
+ }
17321
+ public static var allCases: [Self] {
17322
+ [
17323
+ .json
17324
+ ]
17325
+ }
17326
+ }
17217
17327
}
17218
17328
/// List labels for a self-hosted runner for an organization
17219
17329
///
@@ -25593,12 +25703,29 @@ public enum Operations {
25593
25703
}
25594
25704
}
25595
25705
public var path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path
25706
+ /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/DELETE/header`.
25707
+ public struct Headers: Sendable, Hashable {
25708
+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.ActionsDeleteSelfHostedRunnerFromRepo.AcceptableContentType>]
25709
+ /// Creates a new `Headers`.
25710
+ ///
25711
+ /// - Parameters:
25712
+ /// - accept:
25713
+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.ActionsDeleteSelfHostedRunnerFromRepo.AcceptableContentType>] = .defaultValues()) {
25714
+ self.accept = accept
25715
+ }
25716
+ }
25717
+ public var headers: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Headers
25596
25718
/// Creates a new `Input`.
25597
25719
///
25598
25720
/// - Parameters:
25599
25721
/// - path:
25600
- public init(path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path) {
25722
+ /// - headers:
25723
+ public init(
25724
+ path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path,
25725
+ headers: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Headers = .init()
25726
+ ) {
25601
25727
self.path = path
25728
+ self.headers = headers
25602
25729
}
25603
25730
}
25604
25731
@frozen public enum Output: Sendable, Hashable {
@@ -25637,11 +25764,59 @@ public enum Operations {
25637
25764
}
25638
25765
}
25639
25766
}
25767
+ /// Validation failed, or the endpoint has been spammed.
25768
+ ///
25769
+ /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-repo)/responses/422`.
25770
+ ///
25771
+ /// HTTP response code: `422 unprocessableContent`.
25772
+ case unprocessableContent(Components.Responses.ValidationFailedSimple)
25773
+ /// The associated value of the enum case if `self` is `.unprocessableContent`.
25774
+ ///
25775
+ /// - Throws: An error if `self` is not `.unprocessableContent`.
25776
+ /// - SeeAlso: `.unprocessableContent`.
25777
+ public var unprocessableContent: Components.Responses.ValidationFailedSimple {
25778
+ get throws {
25779
+ switch self {
25780
+ case let .unprocessableContent(response):
25781
+ return response
25782
+ default:
25783
+ try throwUnexpectedResponseStatus(
25784
+ expectedStatus: "unprocessableContent",
25785
+ response: self
25786
+ )
25787
+ }
25788
+ }
25789
+ }
25640
25790
/// Undocumented response.
25641
25791
///
25642
25792
/// A response with a code that is not documented in the OpenAPI document.
25643
25793
case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)
25644
25794
}
25795
+ @frozen public enum AcceptableContentType: AcceptableProtocol {
25796
+ case json
25797
+ case other(Swift.String)
25798
+ public init?(rawValue: Swift.String) {
25799
+ switch rawValue.lowercased() {
25800
+ case "application/json":
25801
+ self = .json
25802
+ default:
25803
+ self = .other(rawValue)
25804
+ }
25805
+ }
25806
+ public var rawValue: Swift.String {
25807
+ switch self {
25808
+ case let .other(string):
25809
+ return string
25810
+ case .json:
25811
+ return "application/json"
25812
+ }
25813
+ }
25814
+ public static var allCases: [Self] {
25815
+ [
25816
+ .json
25817
+ ]
25818
+ }
25819
+ }
25645
25820
}
25646
25821
/// List labels for a self-hosted runner for a repository
25647
25822
///
0 commit comments