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

Perform a soft delete on a specific Organization on the service provider. The operation changes the status of the Organization to 'tobedeleted'.`,
    args,
    tool: async (client, args, ctx) => {
        const [result, apiCall] = await organizationsDelete(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=organizationsDelete.js.map