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

import Foundation
import Get
import URLQueryEncoder

extension Paths.V2.External.Oauth {
    public var userInfo: UserInfo {
        UserInfo(path: path + "/user-info")
    }

    public struct UserInfo {
        /// Path: `/api/v2/external/oauth/user-info`
        public let path: String

        /// Get User Info Via Oauth
        ///
        /// Get user profile and subscription details through OAuth.
        public var get: Request<GenAPI.ExternalUserInfoSchema> {
            Request(path: path, method: "GET", id: "studio_api_bots_external_api_get_user_info_via_oauth")
        }
    }
}
