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

import Foundation
import Get
import URLQueryEncoder

extension Paths.User {
    public var createSessionId: CreateSessionId {
        CreateSessionId(path: path + "/create_session_id")
    }

    public struct CreateSessionId {
        /// Path: `/api/user/create_session_id`
        public let path: String

        /// Create Session Id
        ///
        /// Create a session id for the user.
        /// 
        /// If a session id is already created, return the cached session id and extend the session length to 15 mins.
        public func post(_ body: GenAPI.CreateSessionIdSpec) -> Request<GenAPI.CreateSessionIdSchema> {
            Request(path: path, method: "POST", body: body, id: "studio_api_bots_user_api_create_session_id")
        }
    }
}
