"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Documents = void 0;
const documentsDownloadFile_js_1 = require("../funcs/documentsDownloadFile.js");
const documentsGetDrive_js_1 = require("../funcs/documentsGetDrive.js");
const documentsGetFile_js_1 = require("../funcs/documentsGetFile.js");
const documentsGetFolder_js_1 = require("../funcs/documentsGetFolder.js");
const documentsListDrives_js_1 = require("../funcs/documentsListDrives.js");
const documentsListFiles_js_1 = require("../funcs/documentsListFiles.js");
const documentsListFolders_js_1 = require("../funcs/documentsListFolders.js");
const documentsSearchFiles_js_1 = require("../funcs/documentsSearchFiles.js");
const documentsUploadFile_js_1 = require("../funcs/documentsUploadFile.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 Documents extends sdks_js_1.ClientSDK {
    /**
     * Download File
     */
    async downloadFile(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, documentsDownloadFile_js_1.documentsDownloadFile)(this, request, options));
    }
    /**
     * Get Drive
     */
    async getDrive(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, documentsGetDrive_js_1.documentsGetDrive)(this, request, options));
    }
    /**
     * Get File
     */
    async getFile(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, documentsGetFile_js_1.documentsGetFile)(this, request, options));
    }
    /**
     * Get Folder
     */
    async getFolder(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, documentsGetFolder_js_1.documentsGetFolder)(this, request, options));
    }
    /**
     * List Drives
     */
    async listDrives(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, documentsListDrives_js_1.documentsListDrives)(this, request, options));
    }
    /**
     * List Files
     */
    async listFiles(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, documentsListFiles_js_1.documentsListFiles)(this, request, options));
    }
    /**
     * List Folders
     */
    async listFolders(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, documentsListFolders_js_1.documentsListFolders)(this, request, options));
    }
    /**
     * Search Files
     */
    async searchFiles(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, documentsSearchFiles_js_1.documentsSearchFiles)(this, request, options));
    }
    /**
     * Upload File
     */
    async uploadFile(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, documentsUploadFile_js_1.documentsUploadFile)(this, request, options));
    }
}
exports.Documents = Documents;
//# sourceMappingURL=documents.js.map