/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { foldersUpdateFolder } from "../../funcs/foldersUpdateFolder.js";
import * as operations from "../../models/operations/index.js";
import { formatResult } from "../tools.js";
const args = {
    folder: z.string(),
    requestBody: operations.UpdateFolderRequestBody$inboundSchema,
};
export const tool$foldersUpdateFolder = {
    name: "move-folder",
    description: `Renames or moves an entire folder (along with all assets it contains) to a

Updates a folder's properties.`,
    scopes: ["librarian"],
    args,
    tool: async (client, args, ctx) => {
        const [result, apiCall] = await foldersUpdateFolder(client, args.folder, args.requestBody, { fetchOptions: { signal: ctx.signal } }).$inspect();
        if (!result.ok) {
            return {
                content: [{ type: "text", text: result.error.message }],
                isError: true,
            };
        }
        const value = result.value;
        return formatResult(value, apiCall);
    },
};
//# sourceMappingURL=foldersUpdateFolder.js.map