Build Information
Failed to build SwiftTube, reference 0.1.0 (64f0f1
), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 09:08:42 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<AbuseReports.YoutubeAbuseReportsInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension AbuseReports {
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeAbuseReportsInsert {
7 | public static let service = APIService<Response>(id: "youtube.abuseReports.insert", tag: "abuseReports", method: "POST", path: "/youtube/v3/abuseReports", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.abuseReports.insert", tag: "abuseReports", method: "POST", path: "/youtube/v3/abuseReports", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:121:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
119 | }
120 |
121 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
122 | public typealias SuccessType = AbuseReport
123 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:121:17: error: type 'AbuseReports.YoutubeAbuseReportsInsert.Response' does not conform to protocol 'Response'
119 | }
120 |
121 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'AbuseReports.YoutubeAbuseReportsInsert.Response' does not conform to protocol 'Response'
122 | public typealias SuccessType = AbuseReport
123 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:154:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
152 | switch statusCode {
153 | case 200: self = try .status200(decoder.decode(AbuseReport.self, from: data))
154 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
155 | }
156 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeActivitiesList {
7 | public static let service = APIService<Response>(id: "youtube.activities.list", tag: "activities", method: "GET", path: "/youtube/v3/activities", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.readonly"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Activities.YoutubeActivitiesList.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeActivitiesList {
7 | public static let service = APIService<Response>(id: "youtube.activities.list", tag: "activities", method: "GET", path: "/youtube/v3/activities", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.readonly"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Activities.YoutubeActivitiesList.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Activities {
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeActivitiesList {
7 | public static let service = APIService<Response>(id: "youtube.activities.list", tag: "activities", method: "GET", path: "/youtube/v3/activities", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.readonly"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.activities.list", tag: "activities", method: "GET", path: "/youtube/v3/activities", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.readonly"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:166:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
164 | }
165 |
166 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
167 | public typealias SuccessType = ActivityListResponse
168 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:166:17: error: type 'Activities.YoutubeActivitiesList.Response' does not conform to protocol 'Response'
164 | }
165 |
166 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Activities.YoutubeActivitiesList.Response' does not conform to protocol 'Response'
167 | public typealias SuccessType = ActivityListResponse
168 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:199:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
197 | switch statusCode {
198 | case 200: self = try .status200(decoder.decode(ActivityListResponse.self, from: data))
199 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Deletes a resource. */
6 | enum YoutubeCaptionsDelete {
7 | public static let service = APIService<Response>(id: "youtube.captions.delete", tag: "captions", method: "DELETE", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsDelete.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Deletes a resource. */
6 | enum YoutubeCaptionsDelete {
7 | public static let service = APIService<Response>(id: "youtube.captions.delete", tag: "captions", method: "DELETE", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsDelete.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Captions {
5 | /** Deletes a resource. */
6 | enum YoutubeCaptionsDelete {
7 | public static let service = APIService<Response>(id: "youtube.captions.delete", tag: "captions", method: "DELETE", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.captions.delete", tag: "captions", method: "DELETE", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:129:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
127 | }
128 |
129 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
130 | public typealias SuccessType = Void
131 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:129:17: error: type 'Captions.YoutubeCaptionsDelete.Response' does not conform to protocol 'Response'
127 | }
128 |
129 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Captions.YoutubeCaptionsDelete.Response' does not conform to protocol 'Response'
130 | public typealias SuccessType = Void
131 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:162:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
160 | switch statusCode {
161 | case 200: self = .status200
162 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
163 | }
164 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Downloads a caption track. */
6 | enum YoutubeCaptionsDownload {
7 | public static let service = APIService<Response>(id: "youtube.captions.download", tag: "captions", method: "GET", path: "/youtube/v3/captions/{id}", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsDownload.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Downloads a caption track. */
6 | enum YoutubeCaptionsDownload {
7 | public static let service = APIService<Response>(id: "youtube.captions.download", tag: "captions", method: "GET", path: "/youtube/v3/captions/{id}", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsDownload.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Captions {
5 | /** Downloads a caption track. */
6 | enum YoutubeCaptionsDownload {
7 | public static let service = APIService<Response>(id: "youtube.captions.download", tag: "captions", method: "GET", path: "/youtube/v3/captions/{id}", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.captions.download", tag: "captions", method: "GET", path: "/youtube/v3/captions/{id}", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:147:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
145 | }
146 |
147 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
148 | public typealias SuccessType = Void
149 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:147:17: error: type 'Captions.YoutubeCaptionsDownload.Response' does not conform to protocol 'Response'
145 | }
146 |
147 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Captions.YoutubeCaptionsDownload.Response' does not conform to protocol 'Response'
148 | public typealias SuccessType = Void
149 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:180:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
178 | switch statusCode {
179 | case 200: self = .status200
180 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
181 | }
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeCaptionsInsert {
7 | public static let service = APIService<Response>(id: "youtube.captions.insert", tag: "captions", method: "POST", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeCaptionsInsert {
7 | public static let service = APIService<Response>(id: "youtube.captions.insert", tag: "captions", method: "POST", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Captions {
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeCaptionsInsert {
7 | public static let service = APIService<Response>(id: "youtube.captions.insert", tag: "captions", method: "POST", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.captions.insert", tag: "captions", method: "POST", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:137:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
135 | }
136 |
137 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
138 | public typealias SuccessType = Caption
139 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:137:17: error: type 'Captions.YoutubeCaptionsInsert.Response' does not conform to protocol 'Response'
135 | }
136 |
137 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Captions.YoutubeCaptionsInsert.Response' does not conform to protocol 'Response'
138 | public typealias SuccessType = Caption
139 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:170:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
168 | switch statusCode {
169 | case 200: self = try .status200(decoder.decode(Caption.self, from: data))
170 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeCaptionsList {
7 | public static let service = APIService<Response>(id: "youtube.captions.list", tag: "captions", method: "GET", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsList.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeCaptionsList {
7 | public static let service = APIService<Response>(id: "youtube.captions.list", tag: "captions", method: "GET", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsList.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Captions {
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeCaptionsList {
7 | public static let service = APIService<Response>(id: "youtube.captions.list", tag: "captions", method: "GET", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.captions.list", tag: "captions", method: "GET", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:142:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
140 | }
141 |
142 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
143 | public typealias SuccessType = CaptionListResponse
144 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:142:17: error: type 'Captions.YoutubeCaptionsList.Response' does not conform to protocol 'Response'
140 | }
141 |
142 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Captions.YoutubeCaptionsList.Response' does not conform to protocol 'Response'
143 | public typealias SuccessType = CaptionListResponse
144 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:175:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
173 | switch statusCode {
174 | case 200: self = try .status200(decoder.decode(CaptionListResponse.self, from: data))
175 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
176 | }
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Updates an existing resource. */
6 | enum YoutubeCaptionsUpdate {
7 | public static let service = APIService<Response>(id: "youtube.captions.update", tag: "captions", method: "PUT", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsUpdate.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Updates an existing resource. */
6 | enum YoutubeCaptionsUpdate {
7 | public static let service = APIService<Response>(id: "youtube.captions.update", tag: "captions", method: "PUT", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsUpdate.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Captions {
5 | /** Updates an existing resource. */
6 | enum YoutubeCaptionsUpdate {
7 | public static let service = APIService<Response>(id: "youtube.captions.update", tag: "captions", method: "PUT", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.captions.update", tag: "captions", method: "PUT", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:137:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
135 | }
136 |
137 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
138 | public typealias SuccessType = Caption
139 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:137:17: error: type 'Captions.YoutubeCaptionsUpdate.Response' does not conform to protocol 'Response'
135 | }
136 |
137 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Captions.YoutubeCaptionsUpdate.Response' does not conform to protocol 'Response'
138 | public typealias SuccessType = Caption
139 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:170:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
168 | switch statusCode {
169 | case 200: self = try .status200(decoder.decode(Caption.self, from: data))
170 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeChannelBannersInsert {
7 | public static let service = APIService<Response>(id: "youtube.channelBanners.insert", tag: "channelBanners", method: "POST", path: "/youtube/v3/channelBanners/insert", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.upload"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<ChannelBanners.YoutubeChannelBannersInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeChannelBannersInsert {
7 | public static let service = APIService<Response>(id: "youtube.channelBanners.insert", tag: "channelBanners", method: "POST", path: "/youtube/v3/channelBanners/insert", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.upload"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<ChannelBanners.YoutubeChannelBannersInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension ChannelBanners {
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeChannelBannersInsert {
7 | public static let service = APIService<Response>(id: "youtube.channelBanners.insert", tag: "channelBanners", method: "POST", path: "/youtube/v3/channelBanners/insert", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.upload"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.channelBanners.insert", tag: "channelBanners", method: "POST", path: "/youtube/v3/channelBanners/insert", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.upload"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:132:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
130 | }
131 |
132 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
133 | public typealias SuccessType = ChannelBannerResource
134 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:132:17: error: type 'ChannelBanners.YoutubeChannelBannersInsert.Response' does not conform to protocol 'Response'
130 | }
131 |
132 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'ChannelBanners.YoutubeChannelBannersInsert.Response' does not conform to protocol 'Response'
133 | public typealias SuccessType = ChannelBannerResource
134 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:165:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
163 | switch statusCode {
164 | case 200: self = try .status200(decoder.decode(ChannelBannerResource.self, from: data))
165 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
166 | }
167 | }
[311/312] Compiling SwiftTube YoutubeCaptionsUpdate.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoLiveStreamingDetails.swift:10:29: warning: 'DateTime' is deprecated: renamed to 'Date'
8 |
9 | /** The time that the broadcast actually ended. This value will not be available until the broadcast is over. */
10 | public var actualEndTime: DateTime?
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
11 |
12 | /** The time that the broadcast actually started. This value will not be available until the broadcast begins. */
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoLiveStreamingDetails.swift:13:31: warning: 'DateTime' is deprecated: renamed to 'Date'
11 |
12 | /** The time that the broadcast actually started. This value will not be available until the broadcast begins. */
13 | public var actualStartTime: DateTime?
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
14 |
15 | /** The number of viewers currently watching the broadcast. The property and its value will be present if the broadcast has current viewers and the broadcast owner has not hidden the viewcount for the video. Note that YouTube stops tracking the number of concurrent viewers for a broadcast when the broadcast ends. So, this property would not identify the number of viewers watching an archived video of a live broadcast that already ended. */
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoLiveStreamingDetails.swift:19:32: warning: 'DateTime' is deprecated: renamed to 'Date'
17 |
18 | /** The time that the broadcast is scheduled to end. If the value is empty or the property is not present, then the broadcast is scheduled to contiue indefinitely. */
19 | public var scheduledEndTime: DateTime?
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
20 |
21 | /** The time that the broadcast is scheduled to begin. */
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoLiveStreamingDetails.swift:22:34: warning: 'DateTime' is deprecated: renamed to 'Date'
20 |
21 | /** The time that the broadcast is scheduled to begin. */
22 | public var scheduledStartTime: DateTime?
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
23 |
24 | public init(activeLiveChatId: String? = nil, actualEndTime: DateTime? = nil, actualStartTime: DateTime? = nil, concurrentViewers: String? = nil, scheduledEndTime: DateTime? = nil, scheduledStartTime: DateTime? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoLiveStreamingDetails.swift:24:63: warning: 'DateTime' is deprecated: renamed to 'Date'
22 | public var scheduledStartTime: DateTime?
23 |
24 | public init(activeLiveChatId: String? = nil, actualEndTime: DateTime? = nil, actualStartTime: DateTime? = nil, concurrentViewers: String? = nil, scheduledEndTime: DateTime? = nil, scheduledStartTime: DateTime? = nil) {
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
25 | self.activeLiveChatId = activeLiveChatId
26 | self.actualEndTime = actualEndTime
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoLiveStreamingDetails.swift:24:97: warning: 'DateTime' is deprecated: renamed to 'Date'
22 | public var scheduledStartTime: DateTime?
23 |
24 | public init(activeLiveChatId: String? = nil, actualEndTime: DateTime? = nil, actualStartTime: DateTime? = nil, concurrentViewers: String? = nil, scheduledEndTime: DateTime? = nil, scheduledStartTime: DateTime? = nil) {
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
25 | self.activeLiveChatId = activeLiveChatId
26 | self.actualEndTime = actualEndTime
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoLiveStreamingDetails.swift:24:166: warning: 'DateTime' is deprecated: renamed to 'Date'
22 | public var scheduledStartTime: DateTime?
23 |
24 | public init(activeLiveChatId: String? = nil, actualEndTime: DateTime? = nil, actualStartTime: DateTime? = nil, concurrentViewers: String? = nil, scheduledEndTime: DateTime? = nil, scheduledStartTime: DateTime? = nil) {
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
25 | self.activeLiveChatId = activeLiveChatId
26 | self.actualEndTime = actualEndTime
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoLiveStreamingDetails.swift:24:203: warning: 'DateTime' is deprecated: renamed to 'Date'
22 | public var scheduledStartTime: DateTime?
23 |
24 | public init(activeLiveChatId: String? = nil, actualEndTime: DateTime? = nil, actualStartTime: DateTime? = nil, concurrentViewers: String? = nil, scheduledEndTime: DateTime? = nil, scheduledStartTime: DateTime? = nil) {
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
25 | self.activeLiveChatId = activeLiveChatId
26 | self.actualEndTime = actualEndTime
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoRecordingDetails.swift:13:29: warning: 'DateTime' is deprecated: renamed to 'Date'
11 |
12 | /** The date and time when the video was recorded. */
13 | public var recordingDate: DateTime?
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
14 |
15 | public init(location: GeoPoint? = nil, locationDescription: String? = nil, recordingDate: DateTime? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoRecordingDetails.swift:15:93: warning: 'DateTime' is deprecated: renamed to 'Date'
13 | public var recordingDate: DateTime?
14 |
15 | public init(location: GeoPoint? = nil, locationDescription: String? = nil, recordingDate: DateTime? = nil) {
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
16 | self.location = location
17 | self.locationDescription = locationDescription
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoSnippet.swift:39:27: warning: 'DateTime' is deprecated: renamed to 'Date'
37 |
38 | /** The date and time when the video was uploaded. */
39 | public var publishedAt: DateTime?
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
40 |
41 | /** A list of keyword tags associated with the video. Tags may contain spaces. */
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoSnippet.swift:50:295: warning: 'DateTime' is deprecated: renamed to 'Date'
48 | public var title: String?
49 |
50 | public init(categoryId: String? = nil, channelId: String? = nil, channelTitle: String? = nil, defaultAudioLanguage: String? = nil, defaultLanguage: String? = nil, description: String? = nil, liveBroadcastContent: LiveBroadcastContent? = nil, localized: VideoLocalization? = nil, publishedAt: DateTime? = nil, tags: [String]? = nil, thumbnails: ThumbnailDetails? = nil, title: String? = nil) {
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
51 | self.categoryId = categoryId
52 | self.channelId = channelId
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoStatus.swift:70:25: warning: 'DateTime' is deprecated: renamed to 'Date'
68 |
69 | /** The date and time when the video is scheduled to publish. It can be set only if the privacy status of the video is private.. */
70 | public var publishAt: DateTime?
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
71 |
72 | /** This value explains why YouTube rejected an uploaded video. This property is only present if the uploadStatus property indicates that the upload was rejected. */
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoStatus.swift:80:210: warning: 'DateTime' is deprecated: renamed to 'Date'
78 | public var uploadStatus: UploadStatus?
79 |
80 | public init(embeddable: Bool? = nil, failureReason: FailureReason? = nil, license: License? = nil, madeForKids: Bool? = nil, privacyStatus: PrivacyStatus? = nil, publicStatsViewable: Bool? = nil, publishAt: DateTime? = nil, rejectionReason: RejectionReason? = nil, selfDeclaredMadeForKids: Bool? = nil, uploadStatus: UploadStatus? = nil) {
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
81 | self.embeddable = embeddable
82 | self.failureReason = failureReason
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeAbuseReportsInsert {
7 | public static let service = APIService<Response>(id: "youtube.abuseReports.insert", tag: "abuseReports", method: "POST", path: "/youtube/v3/abuseReports", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<AbuseReports.YoutubeAbuseReportsInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeAbuseReportsInsert {
7 | public static let service = APIService<Response>(id: "youtube.abuseReports.insert", tag: "abuseReports", method: "POST", path: "/youtube/v3/abuseReports", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<AbuseReports.YoutubeAbuseReportsInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension AbuseReports {
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeAbuseReportsInsert {
7 | public static let service = APIService<Response>(id: "youtube.abuseReports.insert", tag: "abuseReports", method: "POST", path: "/youtube/v3/abuseReports", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.abuseReports.insert", tag: "abuseReports", method: "POST", path: "/youtube/v3/abuseReports", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:121:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
119 | }
120 |
121 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
122 | public typealias SuccessType = AbuseReport
123 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:121:17: error: type 'AbuseReports.YoutubeAbuseReportsInsert.Response' does not conform to protocol 'Response'
119 | }
120 |
121 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'AbuseReports.YoutubeAbuseReportsInsert.Response' does not conform to protocol 'Response'
122 | public typealias SuccessType = AbuseReport
123 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:154:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
152 | switch statusCode {
153 | case 200: self = try .status200(decoder.decode(AbuseReport.self, from: data))
154 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
155 | }
156 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeActivitiesList {
7 | public static let service = APIService<Response>(id: "youtube.activities.list", tag: "activities", method: "GET", path: "/youtube/v3/activities", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.readonly"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Activities.YoutubeActivitiesList.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeActivitiesList {
7 | public static let service = APIService<Response>(id: "youtube.activities.list", tag: "activities", method: "GET", path: "/youtube/v3/activities", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.readonly"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Activities.YoutubeActivitiesList.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Activities {
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeActivitiesList {
7 | public static let service = APIService<Response>(id: "youtube.activities.list", tag: "activities", method: "GET", path: "/youtube/v3/activities", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.readonly"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.activities.list", tag: "activities", method: "GET", path: "/youtube/v3/activities", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.readonly"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:166:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
164 | }
165 |
166 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
167 | public typealias SuccessType = ActivityListResponse
168 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:166:17: error: type 'Activities.YoutubeActivitiesList.Response' does not conform to protocol 'Response'
164 | }
165 |
166 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Activities.YoutubeActivitiesList.Response' does not conform to protocol 'Response'
167 | public typealias SuccessType = ActivityListResponse
168 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:199:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
197 | switch statusCode {
198 | case 200: self = try .status200(decoder.decode(ActivityListResponse.self, from: data))
199 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Deletes a resource. */
6 | enum YoutubeCaptionsDelete {
7 | public static let service = APIService<Response>(id: "youtube.captions.delete", tag: "captions", method: "DELETE", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsDelete.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Deletes a resource. */
6 | enum YoutubeCaptionsDelete {
7 | public static let service = APIService<Response>(id: "youtube.captions.delete", tag: "captions", method: "DELETE", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsDelete.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Captions {
5 | /** Deletes a resource. */
6 | enum YoutubeCaptionsDelete {
7 | public static let service = APIService<Response>(id: "youtube.captions.delete", tag: "captions", method: "DELETE", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.captions.delete", tag: "captions", method: "DELETE", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:129:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
127 | }
128 |
129 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
130 | public typealias SuccessType = Void
131 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:129:17: error: type 'Captions.YoutubeCaptionsDelete.Response' does not conform to protocol 'Response'
127 | }
128 |
129 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Captions.YoutubeCaptionsDelete.Response' does not conform to protocol 'Response'
130 | public typealias SuccessType = Void
131 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:162:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
160 | switch statusCode {
161 | case 200: self = .status200
162 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
163 | }
164 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Downloads a caption track. */
6 | enum YoutubeCaptionsDownload {
7 | public static let service = APIService<Response>(id: "youtube.captions.download", tag: "captions", method: "GET", path: "/youtube/v3/captions/{id}", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsDownload.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Downloads a caption track. */
6 | enum YoutubeCaptionsDownload {
7 | public static let service = APIService<Response>(id: "youtube.captions.download", tag: "captions", method: "GET", path: "/youtube/v3/captions/{id}", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsDownload.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Captions {
5 | /** Downloads a caption track. */
6 | enum YoutubeCaptionsDownload {
7 | public static let service = APIService<Response>(id: "youtube.captions.download", tag: "captions", method: "GET", path: "/youtube/v3/captions/{id}", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.captions.download", tag: "captions", method: "GET", path: "/youtube/v3/captions/{id}", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:147:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
145 | }
146 |
147 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
148 | public typealias SuccessType = Void
149 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:147:17: error: type 'Captions.YoutubeCaptionsDownload.Response' does not conform to protocol 'Response'
145 | }
146 |
147 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Captions.YoutubeCaptionsDownload.Response' does not conform to protocol 'Response'
148 | public typealias SuccessType = Void
149 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:180:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
178 | switch statusCode {
179 | case 200: self = .status200
180 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
181 | }
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeCaptionsInsert {
7 | public static let service = APIService<Response>(id: "youtube.captions.insert", tag: "captions", method: "POST", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeCaptionsInsert {
7 | public static let service = APIService<Response>(id: "youtube.captions.insert", tag: "captions", method: "POST", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Captions {
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeCaptionsInsert {
7 | public static let service = APIService<Response>(id: "youtube.captions.insert", tag: "captions", method: "POST", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.captions.insert", tag: "captions", method: "POST", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:137:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
135 | }
136 |
137 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
138 | public typealias SuccessType = Caption
139 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:137:17: error: type 'Captions.YoutubeCaptionsInsert.Response' does not conform to protocol 'Response'
135 | }
136 |
137 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Captions.YoutubeCaptionsInsert.Response' does not conform to protocol 'Response'
138 | public typealias SuccessType = Caption
139 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:170:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
168 | switch statusCode {
169 | case 200: self = try .status200(decoder.decode(Caption.self, from: data))
170 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeCaptionsList {
7 | public static let service = APIService<Response>(id: "youtube.captions.list", tag: "captions", method: "GET", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsList.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeCaptionsList {
7 | public static let service = APIService<Response>(id: "youtube.captions.list", tag: "captions", method: "GET", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsList.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Captions {
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeCaptionsList {
7 | public static let service = APIService<Response>(id: "youtube.captions.list", tag: "captions", method: "GET", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.captions.list", tag: "captions", method: "GET", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:142:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
140 | }
141 |
142 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
143 | public typealias SuccessType = CaptionListResponse
144 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:142:17: error: type 'Captions.YoutubeCaptionsList.Response' does not conform to protocol 'Response'
140 | }
141 |
142 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Captions.YoutubeCaptionsList.Response' does not conform to protocol 'Response'
143 | public typealias SuccessType = CaptionListResponse
144 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:175:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
173 | switch statusCode {
174 | case 200: self = try .status200(decoder.decode(CaptionListResponse.self, from: data))
175 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
176 | }
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Updates an existing resource. */
6 | enum YoutubeCaptionsUpdate {
7 | public static let service = APIService<Response>(id: "youtube.captions.update", tag: "captions", method: "PUT", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsUpdate.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Updates an existing resource. */
6 | enum YoutubeCaptionsUpdate {
7 | public static let service = APIService<Response>(id: "youtube.captions.update", tag: "captions", method: "PUT", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsUpdate.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Captions {
5 | /** Updates an existing resource. */
6 | enum YoutubeCaptionsUpdate {
7 | public static let service = APIService<Response>(id: "youtube.captions.update", tag: "captions", method: "PUT", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.captions.update", tag: "captions", method: "PUT", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:137:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
135 | }
136 |
137 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
138 | public typealias SuccessType = Caption
139 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:137:17: error: type 'Captions.YoutubeCaptionsUpdate.Response' does not conform to protocol 'Response'
135 | }
136 |
137 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Captions.YoutubeCaptionsUpdate.Response' does not conform to protocol 'Response'
138 | public typealias SuccessType = Caption
139 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:170:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
168 | switch statusCode {
169 | case 200: self = try .status200(decoder.decode(Caption.self, from: data))
170 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeChannelBannersInsert {
7 | public static let service = APIService<Response>(id: "youtube.channelBanners.insert", tag: "channelBanners", method: "POST", path: "/youtube/v3/channelBanners/insert", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.upload"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<ChannelBanners.YoutubeChannelBannersInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeChannelBannersInsert {
7 | public static let service = APIService<Response>(id: "youtube.channelBanners.insert", tag: "channelBanners", method: "POST", path: "/youtube/v3/channelBanners/insert", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.upload"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<ChannelBanners.YoutubeChannelBannersInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension ChannelBanners {
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeChannelBannersInsert {
7 | public static let service = APIService<Response>(id: "youtube.channelBanners.insert", tag: "channelBanners", method: "POST", path: "/youtube/v3/channelBanners/insert", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.upload"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.channelBanners.insert", tag: "channelBanners", method: "POST", path: "/youtube/v3/channelBanners/insert", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.upload"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:132:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
130 | }
131 |
132 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
133 | public typealias SuccessType = ChannelBannerResource
134 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:132:17: error: type 'ChannelBanners.YoutubeChannelBannersInsert.Response' does not conform to protocol 'Response'
130 | }
131 |
132 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'ChannelBanners.YoutubeChannelBannersInsert.Response' does not conform to protocol 'Response'
133 | public typealias SuccessType = ChannelBannerResource
134 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:165:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
163 | switch statusCode {
164 | case 200: self = try .status200(decoder.decode(ChannelBannerResource.self, from: data))
165 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
166 | }
167 | }
[312/312] Compiling SwiftTube YoutubeChannelBannersInsert.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoLiveStreamingDetails.swift:10:29: warning: 'DateTime' is deprecated: renamed to 'Date'
8 |
9 | /** The time that the broadcast actually ended. This value will not be available until the broadcast is over. */
10 | public var actualEndTime: DateTime?
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
11 |
12 | /** The time that the broadcast actually started. This value will not be available until the broadcast begins. */
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoLiveStreamingDetails.swift:13:31: warning: 'DateTime' is deprecated: renamed to 'Date'
11 |
12 | /** The time that the broadcast actually started. This value will not be available until the broadcast begins. */
13 | public var actualStartTime: DateTime?
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
14 |
15 | /** The number of viewers currently watching the broadcast. The property and its value will be present if the broadcast has current viewers and the broadcast owner has not hidden the viewcount for the video. Note that YouTube stops tracking the number of concurrent viewers for a broadcast when the broadcast ends. So, this property would not identify the number of viewers watching an archived video of a live broadcast that already ended. */
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoLiveStreamingDetails.swift:19:32: warning: 'DateTime' is deprecated: renamed to 'Date'
17 |
18 | /** The time that the broadcast is scheduled to end. If the value is empty or the property is not present, then the broadcast is scheduled to contiue indefinitely. */
19 | public var scheduledEndTime: DateTime?
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
20 |
21 | /** The time that the broadcast is scheduled to begin. */
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoLiveStreamingDetails.swift:22:34: warning: 'DateTime' is deprecated: renamed to 'Date'
20 |
21 | /** The time that the broadcast is scheduled to begin. */
22 | public var scheduledStartTime: DateTime?
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
23 |
24 | public init(activeLiveChatId: String? = nil, actualEndTime: DateTime? = nil, actualStartTime: DateTime? = nil, concurrentViewers: String? = nil, scheduledEndTime: DateTime? = nil, scheduledStartTime: DateTime? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoLiveStreamingDetails.swift:24:63: warning: 'DateTime' is deprecated: renamed to 'Date'
22 | public var scheduledStartTime: DateTime?
23 |
24 | public init(activeLiveChatId: String? = nil, actualEndTime: DateTime? = nil, actualStartTime: DateTime? = nil, concurrentViewers: String? = nil, scheduledEndTime: DateTime? = nil, scheduledStartTime: DateTime? = nil) {
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
25 | self.activeLiveChatId = activeLiveChatId
26 | self.actualEndTime = actualEndTime
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoLiveStreamingDetails.swift:24:97: warning: 'DateTime' is deprecated: renamed to 'Date'
22 | public var scheduledStartTime: DateTime?
23 |
24 | public init(activeLiveChatId: String? = nil, actualEndTime: DateTime? = nil, actualStartTime: DateTime? = nil, concurrentViewers: String? = nil, scheduledEndTime: DateTime? = nil, scheduledStartTime: DateTime? = nil) {
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
25 | self.activeLiveChatId = activeLiveChatId
26 | self.actualEndTime = actualEndTime
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoLiveStreamingDetails.swift:24:166: warning: 'DateTime' is deprecated: renamed to 'Date'
22 | public var scheduledStartTime: DateTime?
23 |
24 | public init(activeLiveChatId: String? = nil, actualEndTime: DateTime? = nil, actualStartTime: DateTime? = nil, concurrentViewers: String? = nil, scheduledEndTime: DateTime? = nil, scheduledStartTime: DateTime? = nil) {
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
25 | self.activeLiveChatId = activeLiveChatId
26 | self.actualEndTime = actualEndTime
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoLiveStreamingDetails.swift:24:203: warning: 'DateTime' is deprecated: renamed to 'Date'
22 | public var scheduledStartTime: DateTime?
23 |
24 | public init(activeLiveChatId: String? = nil, actualEndTime: DateTime? = nil, actualStartTime: DateTime? = nil, concurrentViewers: String? = nil, scheduledEndTime: DateTime? = nil, scheduledStartTime: DateTime? = nil) {
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
25 | self.activeLiveChatId = activeLiveChatId
26 | self.actualEndTime = actualEndTime
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoRecordingDetails.swift:13:29: warning: 'DateTime' is deprecated: renamed to 'Date'
11 |
12 | /** The date and time when the video was recorded. */
13 | public var recordingDate: DateTime?
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
14 |
15 | public init(location: GeoPoint? = nil, locationDescription: String? = nil, recordingDate: DateTime? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoRecordingDetails.swift:15:93: warning: 'DateTime' is deprecated: renamed to 'Date'
13 | public var recordingDate: DateTime?
14 |
15 | public init(location: GeoPoint? = nil, locationDescription: String? = nil, recordingDate: DateTime? = nil) {
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
16 | self.location = location
17 | self.locationDescription = locationDescription
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoSnippet.swift:39:27: warning: 'DateTime' is deprecated: renamed to 'Date'
37 |
38 | /** The date and time when the video was uploaded. */
39 | public var publishedAt: DateTime?
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
40 |
41 | /** A list of keyword tags associated with the video. Tags may contain spaces. */
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoSnippet.swift:50:295: warning: 'DateTime' is deprecated: renamed to 'Date'
48 | public var title: String?
49 |
50 | public init(categoryId: String? = nil, channelId: String? = nil, channelTitle: String? = nil, defaultAudioLanguage: String? = nil, defaultLanguage: String? = nil, description: String? = nil, liveBroadcastContent: LiveBroadcastContent? = nil, localized: VideoLocalization? = nil, publishedAt: DateTime? = nil, tags: [String]? = nil, thumbnails: ThumbnailDetails? = nil, title: String? = nil) {
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
51 | self.categoryId = categoryId
52 | self.channelId = channelId
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoStatus.swift:70:25: warning: 'DateTime' is deprecated: renamed to 'Date'
68 |
69 | /** The date and time when the video is scheduled to publish. It can be set only if the privacy status of the video is private.. */
70 | public var publishAt: DateTime?
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
71 |
72 | /** This value explains why YouTube rejected an uploaded video. This property is only present if the uploadStatus property indicates that the upload was rejected. */
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Models/VideoStatus.swift:80:210: warning: 'DateTime' is deprecated: renamed to 'Date'
78 | public var uploadStatus: UploadStatus?
79 |
80 | public init(embeddable: Bool? = nil, failureReason: FailureReason? = nil, license: License? = nil, madeForKids: Bool? = nil, privacyStatus: PrivacyStatus? = nil, publicStatsViewable: Bool? = nil, publishAt: DateTime? = nil, rejectionReason: RejectionReason? = nil, selfDeclaredMadeForKids: Bool? = nil, uploadStatus: UploadStatus? = nil) {
| |- warning: 'DateTime' is deprecated: renamed to 'Date'
| `- note: use 'Date' instead
81 | self.embeddable = embeddable
82 | self.failureReason = failureReason
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeAbuseReportsInsert {
7 | public static let service = APIService<Response>(id: "youtube.abuseReports.insert", tag: "abuseReports", method: "POST", path: "/youtube/v3/abuseReports", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<AbuseReports.YoutubeAbuseReportsInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeAbuseReportsInsert {
7 | public static let service = APIService<Response>(id: "youtube.abuseReports.insert", tag: "abuseReports", method: "POST", path: "/youtube/v3/abuseReports", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<AbuseReports.YoutubeAbuseReportsInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension AbuseReports {
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeAbuseReportsInsert {
7 | public static let service = APIService<Response>(id: "youtube.abuseReports.insert", tag: "abuseReports", method: "POST", path: "/youtube/v3/abuseReports", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.abuseReports.insert", tag: "abuseReports", method: "POST", path: "/youtube/v3/abuseReports", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:121:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
119 | }
120 |
121 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
122 | public typealias SuccessType = AbuseReport
123 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:121:17: error: type 'AbuseReports.YoutubeAbuseReportsInsert.Response' does not conform to protocol 'Response'
119 | }
120 |
121 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'AbuseReports.YoutubeAbuseReportsInsert.Response' does not conform to protocol 'Response'
122 | public typealias SuccessType = AbuseReport
123 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/AbuseReports/YoutubeAbuseReportsInsert.swift:154:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
152 | switch statusCode {
153 | case 200: self = try .status200(decoder.decode(AbuseReport.self, from: data))
154 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
155 | }
156 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeActivitiesList {
7 | public static let service = APIService<Response>(id: "youtube.activities.list", tag: "activities", method: "GET", path: "/youtube/v3/activities", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.readonly"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Activities.YoutubeActivitiesList.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeActivitiesList {
7 | public static let service = APIService<Response>(id: "youtube.activities.list", tag: "activities", method: "GET", path: "/youtube/v3/activities", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.readonly"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Activities.YoutubeActivitiesList.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Activities {
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeActivitiesList {
7 | public static let service = APIService<Response>(id: "youtube.activities.list", tag: "activities", method: "GET", path: "/youtube/v3/activities", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.readonly"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.activities.list", tag: "activities", method: "GET", path: "/youtube/v3/activities", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.readonly"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:166:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
164 | }
165 |
166 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
167 | public typealias SuccessType = ActivityListResponse
168 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:166:17: error: type 'Activities.YoutubeActivitiesList.Response' does not conform to protocol 'Response'
164 | }
165 |
166 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Activities.YoutubeActivitiesList.Response' does not conform to protocol 'Response'
167 | public typealias SuccessType = ActivityListResponse
168 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Activities/YoutubeActivitiesList.swift:199:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
197 | switch statusCode {
198 | case 200: self = try .status200(decoder.decode(ActivityListResponse.self, from: data))
199 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Deletes a resource. */
6 | enum YoutubeCaptionsDelete {
7 | public static let service = APIService<Response>(id: "youtube.captions.delete", tag: "captions", method: "DELETE", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsDelete.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Deletes a resource. */
6 | enum YoutubeCaptionsDelete {
7 | public static let service = APIService<Response>(id: "youtube.captions.delete", tag: "captions", method: "DELETE", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsDelete.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Captions {
5 | /** Deletes a resource. */
6 | enum YoutubeCaptionsDelete {
7 | public static let service = APIService<Response>(id: "youtube.captions.delete", tag: "captions", method: "DELETE", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.captions.delete", tag: "captions", method: "DELETE", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:129:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
127 | }
128 |
129 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
130 | public typealias SuccessType = Void
131 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:129:17: error: type 'Captions.YoutubeCaptionsDelete.Response' does not conform to protocol 'Response'
127 | }
128 |
129 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Captions.YoutubeCaptionsDelete.Response' does not conform to protocol 'Response'
130 | public typealias SuccessType = Void
131 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDelete.swift:162:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
160 | switch statusCode {
161 | case 200: self = .status200
162 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
163 | }
164 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Downloads a caption track. */
6 | enum YoutubeCaptionsDownload {
7 | public static let service = APIService<Response>(id: "youtube.captions.download", tag: "captions", method: "GET", path: "/youtube/v3/captions/{id}", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsDownload.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Downloads a caption track. */
6 | enum YoutubeCaptionsDownload {
7 | public static let service = APIService<Response>(id: "youtube.captions.download", tag: "captions", method: "GET", path: "/youtube/v3/captions/{id}", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsDownload.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Captions {
5 | /** Downloads a caption track. */
6 | enum YoutubeCaptionsDownload {
7 | public static let service = APIService<Response>(id: "youtube.captions.download", tag: "captions", method: "GET", path: "/youtube/v3/captions/{id}", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.captions.download", tag: "captions", method: "GET", path: "/youtube/v3/captions/{id}", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:147:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
145 | }
146 |
147 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
148 | public typealias SuccessType = Void
149 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:147:17: error: type 'Captions.YoutubeCaptionsDownload.Response' does not conform to protocol 'Response'
145 | }
146 |
147 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Captions.YoutubeCaptionsDownload.Response' does not conform to protocol 'Response'
148 | public typealias SuccessType = Void
149 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsDownload.swift:180:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
178 | switch statusCode {
179 | case 200: self = .status200
180 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
181 | }
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeCaptionsInsert {
7 | public static let service = APIService<Response>(id: "youtube.captions.insert", tag: "captions", method: "POST", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeCaptionsInsert {
7 | public static let service = APIService<Response>(id: "youtube.captions.insert", tag: "captions", method: "POST", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Captions {
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeCaptionsInsert {
7 | public static let service = APIService<Response>(id: "youtube.captions.insert", tag: "captions", method: "POST", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.captions.insert", tag: "captions", method: "POST", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2c", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:137:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
135 | }
136 |
137 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
138 | public typealias SuccessType = Caption
139 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:137:17: error: type 'Captions.YoutubeCaptionsInsert.Response' does not conform to protocol 'Response'
135 | }
136 |
137 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Captions.YoutubeCaptionsInsert.Response' does not conform to protocol 'Response'
138 | public typealias SuccessType = Caption
139 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsInsert.swift:170:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
168 | switch statusCode {
169 | case 200: self = try .status200(decoder.decode(Caption.self, from: data))
170 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeCaptionsList {
7 | public static let service = APIService<Response>(id: "youtube.captions.list", tag: "captions", method: "GET", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsList.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeCaptionsList {
7 | public static let service = APIService<Response>(id: "youtube.captions.list", tag: "captions", method: "GET", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsList.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Captions {
5 | /** Retrieves a list of resources, possibly filtered. */
6 | enum YoutubeCaptionsList {
7 | public static let service = APIService<Response>(id: "youtube.captions.list", tag: "captions", method: "GET", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.captions.list", tag: "captions", method: "GET", path: "/youtube/v3/captions", hasBody: false, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:142:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
140 | }
141 |
142 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
143 | public typealias SuccessType = CaptionListResponse
144 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:142:17: error: type 'Captions.YoutubeCaptionsList.Response' does not conform to protocol 'Response'
140 | }
141 |
142 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Captions.YoutubeCaptionsList.Response' does not conform to protocol 'Response'
143 | public typealias SuccessType = CaptionListResponse
144 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsList.swift:175:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
173 | switch statusCode {
174 | case 200: self = try .status200(decoder.decode(CaptionListResponse.self, from: data))
175 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
176 | }
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Updates an existing resource. */
6 | enum YoutubeCaptionsUpdate {
7 | public static let service = APIService<Response>(id: "youtube.captions.update", tag: "captions", method: "PUT", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsUpdate.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Updates an existing resource. */
6 | enum YoutubeCaptionsUpdate {
7 | public static let service = APIService<Response>(id: "youtube.captions.update", tag: "captions", method: "PUT", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<Captions.YoutubeCaptionsUpdate.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension Captions {
5 | /** Updates an existing resource. */
6 | enum YoutubeCaptionsUpdate {
7 | public static let service = APIService<Response>(id: "youtube.captions.update", tag: "captions", method: "PUT", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.captions.update", tag: "captions", method: "PUT", path: "/youtube/v3/captions", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtubepartner"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:137:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
135 | }
136 |
137 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
138 | public typealias SuccessType = Caption
139 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:137:17: error: type 'Captions.YoutubeCaptionsUpdate.Response' does not conform to protocol 'Response'
135 | }
136 |
137 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'Captions.YoutubeCaptionsUpdate.Response' does not conform to protocol 'Response'
138 | public typealias SuccessType = Caption
139 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/Captions/YoutubeCaptionsUpdate.swift:170:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
168 | switch statusCode {
169 | case 200: self = try .status200(decoder.decode(Caption.self, from: data))
170 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
171 | }
172 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:7:33: warning: 'APIService' is deprecated: renamed to 'Service'
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeChannelBannersInsert {
7 | public static let service = APIService<Response>(id: "youtube.channelBanners.insert", tag: "channelBanners", method: "POST", path: "/youtube/v3/channelBanners/insert", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.upload"])])
| |- warning: 'APIService' is deprecated: renamed to 'Service'
| `- note: use 'Service' instead
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:7:23: warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<ChannelBanners.YoutubeChannelBannersInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeChannelBannersInsert {
7 | public static let service = APIService<Response>(id: "youtube.channelBanners.insert", tag: "channelBanners", method: "POST", path: "/youtube/v3/channelBanners/insert", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.upload"])])
| `- warning: static property 'service' is not concurrency-safe because non-'Sendable' type 'Service<ChannelBanners.YoutubeChannelBannersInsert.Response>' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Service.swift:1:15: note: generic struct 'Service' does not conform to the 'Sendable' protocol
1 | public struct Service<ResponseType: Response> {
| `- note: generic struct 'Service' does not conform to the 'Sendable' protocol
2 | public let id: String
3 | public let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
1 | import Foundation
2 | import Prch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Prch'
3 |
4 | public extension ChannelBanners {
5 | /** Inserts a new resource into this collection. */
6 | enum YoutubeChannelBannersInsert {
7 | public static let service = APIService<Response>(id: "youtube.channelBanners.insert", tag: "channelBanners", method: "POST", path: "/youtube/v3/channelBanners/insert", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.upload"])])
| |- note: annotate 'service' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public final class Request: APIRequest<Response> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:9:33: error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
7 | public static let service = APIService<Response>(id: "youtube.channelBanners.insert", tag: "channelBanners", method: "POST", path: "/youtube/v3/channelBanners/insert", hasBody: true, securityRequirements: [SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.force-ssl"]), SecurityRequirement(type: "Oauth2", scopes: ["https://www.googleapis.com/auth/youtube.upload"])])
8 |
9 | public final class Request: APIRequest<Response> {
| `- error: generic type 'DeprecatedRequest' specialized with too few type parameters (got 1, but expected 2)
10 | public struct Options {
11 | /** V1 error format. */
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Deprecated/DeprecatedRequest.swift:4:12: note: generic type 'DeprecatedRequest' declared here
2 |
3 | @available(*, deprecated, message: "use `Request`")
4 | open class DeprecatedRequest<
| `- note: generic type 'DeprecatedRequest' declared here
5 | ResponseType: Response, APIType
6 | >: Request where ResponseType.APIType == APIType {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:132:27: warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
130 | }
131 |
132 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| |- warning: 'APIResponseValue' is deprecated: renamed to 'DeprecatedResponse'
| `- note: use 'DeprecatedResponse' instead
133 | public typealias SuccessType = ChannelBannerResource
134 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:132:17: error: type 'ChannelBanners.YoutubeChannelBannersInsert.Response' does not conform to protocol 'Response'
130 | }
131 |
132 | public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
| `- error: type 'ChannelBanners.YoutubeChannelBannersInsert.Response' does not conform to protocol 'Response'
133 | public typealias SuccessType = ChannelBannerResource
134 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Prch/Sources/Prch/Response.swift:5:18: note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
3 | public protocol Response: CustomDebugStringConvertible, CustomStringConvertible {
4 | associatedtype SuccessType
5 | associatedtype FailureType
| `- note: protocol requires nested type 'FailureType'; add nested type 'FailureType' for conformance
6 | associatedtype APIType: API
| `- note: protocol requires nested type 'APIType'; add nested type 'APIType' for conformance
7 | var statusCode: Int { get }
8 | var response: ClientResult<SuccessType, FailureType> { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTube/Requests/ChannelBanners/YoutubeChannelBannersInsert.swift:165:24: warning: 'APIClientError' is deprecated: renamed to 'ClientError'
163 | switch statusCode {
164 | case 200: self = try .status200(decoder.decode(ChannelBannerResource.self, from: data))
165 | default: throw APIClientError.unexpectedStatusCode(statusCode: statusCode, data: data)
| |- warning: 'APIClientError' is deprecated: renamed to 'ClientError'
| `- note: use 'ClientError' instead
166 | }
167 | }
BUILD FAILURE 6.0 macosSpm