/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import { resourcesDelete } from "../../funcs/resourcesDelete.js";
import * as operations from "../../models/operations/index.js";
import { formatResult } from "../tools.js";
const args = {
    request: operations.DeleteResourceRequest$inboundSchema,
};
export const tool$resourcesDelete = {
    name: "resources-delete",
    description: `Delete a resource

Perform a soft delete on a specific resource. This operation changes the status of the resource to 'tobedeleted'.`,
    args,
    tool: async (client, args, ctx) => {
        const [result, apiCall] = await resourcesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
        if (!result.ok) {
            return {
                content: [{ type: "text", text: result.error.message }],
                isError: true,
            };
        }
        return formatResult(void 0, apiCall);
    },
};
//# sourceMappingURL=resourcesDelete.js.map