"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Messaging = void 0;
const messagingCreateConversation_js_1 = require("../funcs/messagingCreateConversation.js");
const messagingDownloadMessagingAttachment_js_1 = require("../funcs/messagingDownloadMessagingAttachment.js");
const messagingGetAttachment_js_1 = require("../funcs/messagingGetAttachment.js");
const messagingGetConversation_js_1 = require("../funcs/messagingGetConversation.js");
const messagingGetMessage_js_1 = require("../funcs/messagingGetMessage.js");
const messagingGetUser_js_1 = require("../funcs/messagingGetUser.js");
const messagingListAttachments_js_1 = require("../funcs/messagingListAttachments.js");
const messagingListConversationMessages_js_1 = require("../funcs/messagingListConversationMessages.js");
const messagingListConversations_js_1 = require("../funcs/messagingListConversations.js");
const messagingListUsers_js_1 = require("../funcs/messagingListUsers.js");
const messagingSendMessage_js_1 = require("../funcs/messagingSendMessage.js");
const sdks_js_1 = require("../lib/sdks.js");
const operations_js_1 = require("../sdk/types/operations.js");
const fp_js_1 = require("./types/fp.js");
class Messaging extends sdks_js_1.ClientSDK {
    /**
     * Create Conversation
     */
    async createConversation(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, messagingCreateConversation_js_1.messagingCreateConversation)(this, request, options));
    }
    /**
     * Download Attachment
     */
    async downloadMessagingAttachment(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, messagingDownloadMessagingAttachment_js_1.messagingDownloadMessagingAttachment)(this, request, options));
    }
    /**
     * Get Attachment
     */
    async getAttachment(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, messagingGetAttachment_js_1.messagingGetAttachment)(this, request, options));
    }
    /**
     * Get Conversation
     */
    async getConversation(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, messagingGetConversation_js_1.messagingGetConversation)(this, request, options));
    }
    /**
     * Get Message
     */
    async getMessage(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, messagingGetMessage_js_1.messagingGetMessage)(this, request, options));
    }
    /**
     * Get User
     */
    async getUser(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, messagingGetUser_js_1.messagingGetUser)(this, request, options));
    }
    /**
     * List Attachments
     */
    async listAttachments(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, messagingListAttachments_js_1.messagingListAttachments)(this, request, options));
    }
    /**
     * List Conversation Messages
     */
    async listConversationMessages(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, messagingListConversationMessages_js_1.messagingListConversationMessages)(this, request, options));
    }
    /**
     * List Conversations
     */
    async listConversations(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, messagingListConversations_js_1.messagingListConversations)(this, request, options));
    }
    /**
     * List Users
     */
    async listUsers(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, messagingListUsers_js_1.messagingListUsers)(this, request, options));
    }
    /**
     * Send Message
     */
    async sendMessage(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, messagingSendMessage_js_1.messagingSendMessage)(this, request, options));
    }
}
exports.Messaging = Messaging;
//# sourceMappingURL=messaging.js.map