// Generated by Create API
// https://github.com/CreateAPI/CreateAPI

import Foundation
import Get
import URLQueryEncoder

extension Paths.V2.External.Oauth {
    public var search: Search {
        Search(path: path + "/search")
    }

    public struct Search {
        /// Path: `/api/v2/external/oauth/search`
        public let path: String

        /// Search User Library Via Oauth
        ///
        /// Search the user's library via OAuth with the 'read_music' scope.
        public func post(_ body: GenAPI.SearchRequest) -> Request<GenAPI.SearchResult> {
            Request(path: path, method: "POST", body: body, id: "studio_api_bots_external_api_search_user_library_via_oauth")
        }
    }
}
