"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Prompts = void 0;
const promptsCreate_js_1 = require("../funcs/promptsCreate.js");
const promptsDelete_js_1 = require("../funcs/promptsDelete.js");
const promptsGetVersion_js_1 = require("../funcs/promptsGetVersion.js");
const promptsList_js_1 = require("../funcs/promptsList.js");
const promptsListVersions_js_1 = require("../funcs/promptsListVersions.js");
const promptsRetrieve_js_1 = require("../funcs/promptsRetrieve.js");
const promptsUpdate_js_1 = require("../funcs/promptsUpdate.js");
const sdks_js_1 = require("../lib/sdks.js");
const fp_js_1 = require("../types/fp.js");
class Prompts extends sdks_js_1.ClientSDK {
    /**
     * List all prompts
     *
     * @remarks
     * Returns a list of your prompts. The prompts are returned sorted by creation date, with the most recent prompts appearing first
     */
    async list(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, promptsList_js_1.promptsList)(this, request, options));
    }
    /**
     * Create a prompt
     */
    async create(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, promptsCreate_js_1.promptsCreate)(this, request, options));
    }
    /**
     * Retrieve a prompt
     *
     * @remarks
     * Retrieves a prompt object
     */
    async retrieve(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, promptsRetrieve_js_1.promptsRetrieve)(this, request, options));
    }
    /**
     * Update a prompt
     */
    async update(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, promptsUpdate_js_1.promptsUpdate)(this, request, options));
    }
    /**
     * Delete a prompt
     */
    async delete(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, promptsDelete_js_1.promptsDelete)(this, request, options));
    }
    /**
     * List all prompt versions
     *
     * @remarks
     * Returns a list of your prompt versions. The prompt versions are returned sorted by creation date, with the most recent prompt versions appearing first
     */
    async listVersions(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, promptsListVersions_js_1.promptsListVersions)(this, request, options));
    }
    /**
     * Retrieve a prompt version
     *
     * @remarks
     * Retrieves a specific version of a prompt by its ID and version ID.
     */
    async getVersion(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, promptsGetVersion_js_1.promptsGetVersion)(this, request, options));
    }
}
exports.Prompts = Prompts;
//# sourceMappingURL=prompts.js.map