feat(toolList): add enums for message filter options

- Added enum values for 'has', 'authorType', 'sortBy', and 'sortOrder'
This commit is contained in:
Sooty 2025-10-15 16:38:04 +01:00
parent 70c4843d9e
commit cdff846b2a
1 changed files with 5 additions and 5 deletions

View File

@ -82,7 +82,7 @@ export const toolList = [
forumChannelId: { type: "string" }, forumChannelId: { type: "string" },
title: { type: "string" }, title: { type: "string" },
content: { type: "string" }, content: { type: "string" },
tags: { tags: {
type: "array", type: "array",
items: { type: "string" } items: { type: "string" }
} }
@ -312,14 +312,14 @@ export const toolList = [
content: { type: "string", description: "Search for messages containing specific text" }, content: { type: "string", description: "Search for messages containing specific text" },
authorId: { type: "string", description: "Filter messages by a specific user ID" }, authorId: { type: "string", description: "Filter messages by a specific user ID" },
mentions: { type: "string", description: "Filter messages that mention a specific user ID" }, mentions: { type: "string", description: "Filter messages that mention a specific user ID" },
has: { type: "string", description: "Filter messages that contain specific content types (e.g., link, embed, file, poll, image, video, sound, sticker, snapshot)" }, has: { type: "string", description: "Filter messages that contain specific content types (e.g., link, embed, file, poll, image, video, sound, sticker, snapshot)", enum: ["link", "embed", "file", "poll", "image", "video", "sound", "sticker", "snapshot"] },
maxId: { type: "string", description: "Filter messages with IDs less than this value (messages before this ID)" }, maxId: { type: "string", description: "Filter messages with IDs less than this value (messages before this ID)" },
minId: { type: "string", description: "Filter messages with IDs greater than this value (messages after this ID)" }, minId: { type: "string", description: "Filter messages with IDs greater than this value (messages after this ID)" },
channelId: { type: "string", description: "Filter messages within a specific channel ID" }, channelId: { type: "string", description: "Filter messages within a specific channel ID" },
pinned: { type: "boolean", description: "Filter messages based on whether they are pinned" }, pinned: { type: "boolean", description: "Filter messages based on whether they are pinned" },
authorType: { type: "string", description: "Filter messages by author type (user, bot, webhook)" }, authorType: { type: "string", description: "Filter messages by author type (user, bot, webhook)", enum: ["user", "bot", "webhook"] },
sortBy: { type: "string", description: "Sort results by 'timestamp' or 'relevance'" }, sortBy: { type: "string", description: "Sort results by 'timestamp' or 'relevance'", enum: ["timestamp", "relevance"] },
sortOrder: { type: "string", description: "Sort order: 'desc' for descending or 'asc' for ascending" }, sortOrder: { type: "string", description: "Sort order: 'desc' for descending or 'asc' for ascending", enum: ["desc", "asc"] },
limit: { type: "number", description: "Maximum number of messages to return (default 25, max 100)" }, limit: { type: "number", description: "Maximum number of messages to return (default 25, max 100)" },
offset: { type: "number", description: "Number of messages to skip (for pagination)" } offset: { type: "number", description: "Number of messages to skip (for pagination)" }
}, },