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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Dm {
    public var threads: Threads {
        Threads(path: path + "/threads")
    }

    public struct Threads {
        /// Path: `/api/dm/threads`
        public let path: String

        /// Get Paginated Threads
        ///
        /// Get list of threads with thread name (user name or group name) and number of unread messages.
        public var get: Request<GenAPI.PaginatedThreadsResponse> {
            Request(path: path, method: "GET", id: "studio_api_dm_api_get_paginated_threads")
        }
    }
}
