"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.UploadPresets = void 0;
const uploadPresetsCreateUploadPreset_js_1 = require("../funcs/uploadPresetsCreateUploadPreset.js");
const uploadPresetsDeleteUploadPreset_js_1 = require("../funcs/uploadPresetsDeleteUploadPreset.js");
const uploadPresetsGetUploadPreset_js_1 = require("../funcs/uploadPresetsGetUploadPreset.js");
const uploadPresetsListUploadPresets_js_1 = require("../funcs/uploadPresetsListUploadPresets.js");
const uploadPresetsUpdateUploadPreset_js_1 = require("../funcs/uploadPresetsUpdateUploadPreset.js");
const sdks_js_1 = require("../lib/sdks.js");
const fp_js_1 = require("../types/fp.js");
class UploadPresets extends sdks_js_1.ClientSDK {
    /**
     * Creates a new upload preset with specified configuration settings
     */
    async createUploadPreset(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, uploadPresetsCreateUploadPreset_js_1.uploadPresetsCreateUploadPreset)(this, request, options));
    }
    /**
     * Lists all upload presets configured in the account
     */
    async listUploadPresets(orderBy, direction, nextCursor, options) {
        return (0, fp_js_1.unwrapAsync)((0, uploadPresetsListUploadPresets_js_1.uploadPresetsListUploadPresets)(this, orderBy, direction, nextCursor, options));
    }
    /**
     * Retrieves details of a single upload preset
     */
    async getUploadPreset(name, options) {
        return (0, fp_js_1.unwrapAsync)((0, uploadPresetsGetUploadPreset_js_1.uploadPresetsGetUploadPreset)(this, name, options));
    }
    /**
     * Updates an existing upload preset's configuration settings
     */
    async updateUploadPreset(name, uploadPreset, options) {
        return (0, fp_js_1.unwrapAsync)((0, uploadPresetsUpdateUploadPreset_js_1.uploadPresetsUpdateUploadPreset)(this, name, uploadPreset, options));
    }
    /**
     * Deletes an upload preset from the account
     */
    async deleteUploadPreset(name, options) {
        return (0, fp_js_1.unwrapAsync)((0, uploadPresetsDeleteUploadPreset_js_1.uploadPresetsDeleteUploadPreset)(this, name, options));
    }
}
exports.UploadPresets = UploadPresets;
//# sourceMappingURL=uploadpresets.js.map