n8n
Version:
n8n Workflow Automation Tool
33 lines • 1.24 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SLACK_ACTION_TOOL_DEFINITIONS = void 0;
const zod_1 = require("zod");
const addReactionActionInputSchema = zod_1.z.object({
action: zod_1.z.literal('add_reaction'),
input: zod_1.z
.object({
emoji: zod_1.z
.string()
.min(1)
.describe('Emoji name or shortcode to add, for example eyes or :white_check_mark:.'),
threadId: zod_1.z
.string()
.min(1)
.optional()
.describe('Optional Slack thread ID. Defaults to the latest message context.'),
messageId: zod_1.z
.string()
.min(1)
.optional()
.describe('Optional Slack message timestamp. Defaults to the latest message context.'),
})
.strict(),
});
exports.SLACK_ACTION_TOOL_DEFINITIONS = [
{
name: 'add_reaction',
inputSchema: addReactionActionInputSchema,
description: 'add_reaction: input.emoji is required. For Slack, optional input.threadId and input.messageId target a specific message; otherwise the latest message context is used.',
},
];
//# sourceMappingURL=slack-tool-definitions.js.map