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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Chat {
    public var history: History {
        History(path: path + "/history")
    }

    public struct History {
        /// Path: `/api/chat/history`
        public let path: String

        /// Get Chats
        public func get(channelType: String, channelId: String) -> Request<GenAPI.ChatRoomResponse> {
            Request(path: path, method: "GET", query: [("channel_type", channelType), ("channel_id", channelId)], id: "studio_api_chat_api_get_chats")
        }
    }
}
