import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { z } from 'zod'; import { CplaceApiClient } from '../api.js'; declare const BOARD_TOOL_DEFINITIONS: { readonly cplace_board_get_configuration: { readonly description: "Get current board widget configuration in a structured format suitable for modification.\n\nReturns the current state of:\n- cards: Card sources (searches) with display attribute mappings\n- columns: Column structure (static or dynamic mode)\n- swimlanes: Swimlane structure (if enabled)\n- visualComponents: UI settings and toggles\n\nWORKFLOW: Use this tool first, then modify the relevant section and pass to the corresponding configure tool."; readonly inputSchema: { readonly context: z.ZodEffects; pageUID: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page"; pageUID: string; }, { type: "page"; pageUID: string; }>, z.ZodObject<{ type: z.ZodLiteral<"type">; workspaceId: z.ZodString; typeInternalName: z.ZodString; alternativeLayoutName: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }, { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }>]>, { type: "page"; pageUID: string; } | { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }, unknown>; readonly widgetId: z.ZodString; }; readonly annotations: { readonly title: "Get Board Configuration"; }; }; readonly cplace_board_configure_cards: { readonly description: "Configure card sources for a board widget. Declares the complete set of card sources - existing sources not in the array will be removed.\n\nIMPORTANT: Configure cards BEFORE columns/swimlanes, as they reference cards via searchId.\n\nEach card source defines:\n- searchId: Unique identifier used by columns/swimlanes to reference this source\n- search: cplaceJson from cplace_search_pages (defines which pages become cards)\n- cardDisplay: Visual card appearance (date footer, tag badges, border color, icon indicators)\n\n**WARNING**: Do not manually construct search JSON! The search parameter requires a specific format with a \"filters\" array.\n\n**Correct Usage**: Use the cplaceJson field from cplace_search_pages response\n\n**Search JSON Workflow**:\n1. Call cplace_search_pages with your desired filter (e.g., types, workspace)\n2. Take the cplaceJson field from the response\n3. Use that value for the search parameter\n\nExample of CORRECT format: {\"filters\":[{\"relativeSpace\":\"true\"},{\"types\":[\"cf.myApp.myType\"]}]}\nExample of WRONG format: {\"types\":[\"cf.myApp.myType\"]} (missing filters array - will cause \"No value for filters\" error)\n\nWORKFLOW:\n1. Get current config: cplace_board_get_configuration\n2. Modify the cards array\n3. Call this tool with the complete desired cards array"; readonly inputSchema: { readonly context: z.ZodEffects; pageUID: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page"; pageUID: string; }, { type: "page"; pageUID: string; }>, z.ZodObject<{ type: z.ZodLiteral<"type">; workspaceId: z.ZodString; typeInternalName: z.ZodString; alternativeLayoutName: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }, { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }>]>, { type: "page"; pageUID: string; } | { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }, unknown>; readonly widgetId: z.ZodString; readonly cards: z.ZodArray; cardDisplay: z.ZodOptional; tagAttributes: z.ZodOptional>; colorAttribute: z.ZodOptional; }, "strip", z.ZodTypeAny, { attribute: string; colorMapping: Record; }, { attribute: string; colorMapping: Record; }>>; iconAttributes: z.ZodOptional>; }, "strip", z.ZodTypeAny, { attribute: string; enabled: boolean; }, { attribute: string; enabled?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { dateAttribute?: string | undefined; tagAttributes?: string[] | undefined; colorAttribute?: { attribute: string; colorMapping: Record; } | undefined; iconAttributes?: { attribute: string; enabled: boolean; }[] | undefined; }, { dateAttribute?: string | undefined; tagAttributes?: string[] | undefined; colorAttribute?: { attribute: string; colorMapping: Record; } | undefined; iconAttributes?: { attribute: string; enabled?: boolean | undefined; }[] | undefined; }>>; }, "strip", z.ZodTypeAny, { search: string; searchId: string; typeId?: string | undefined; cardDisplay?: { dateAttribute?: string | undefined; tagAttributes?: string[] | undefined; colorAttribute?: { attribute: string; colorMapping: Record; } | undefined; iconAttributes?: { attribute: string; enabled: boolean; }[] | undefined; } | undefined; }, { search: string; searchId: string; typeId?: string | undefined; cardDisplay?: { dateAttribute?: string | undefined; tagAttributes?: string[] | undefined; colorAttribute?: { attribute: string; colorMapping: Record; } | undefined; iconAttributes?: { attribute: string; enabled?: boolean | undefined; }[] | undefined; } | undefined; }>, "many">; }; readonly annotations: { readonly title: "Configure Board Cards"; }; }; readonly cplace_board_configure_columns: { readonly description: "Configure column structure for a board widget. Declares the complete column configuration.\n\nMODES:\n- static: Explicitly define columns with value mappings (most common)\n- dynamic: Auto-generate columns from attribute values\n\nVALID ATTRIBUTE TYPES for column mapping: Enumeration, Reference, Date, or linked attributes of these types.\nNOT valid: Workflow (excluded despite resembling enumerations), Number, Boolean, Color (these are only valid for card display attributes).\n\nVALUE MAPPING FIELDS (mutually exclusive per mapping):\n- values: For enumeration attributes (string values like \"Open\", \"Closed\")\n- referenceValues: For reference attributes (page UIDs like \"6a0pydt3gd31ea3d42hdhqf4t\")\n- dateRange: For date attributes ({start, end} date strings)\n\nIMPORTANT: All searchId references must exist in the board's card configurations.\nConfigure cards first if adding new card sources.\n\nSTATIC MODE: Array order = column order (left to right)\nDYNAMIC MODE: Columns auto-generated from enumeration attribute values. Date-based dynamic columns are not supported.\n\nWORKFLOW:\n1. Ensure cards are configured with desired searchIds\n2. Get current config: cplace_board_get_configuration\n3. Modify or replace columns configuration\n4. Call this tool with complete desired state"; readonly inputSchema: { readonly context: z.ZodEffects; pageUID: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page"; pageUID: string; }, { type: "page"; pageUID: string; }>, z.ZodObject<{ type: z.ZodLiteral<"type">; workspaceId: z.ZodString; typeInternalName: z.ZodString; alternativeLayoutName: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }, { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }>]>, { type: "page"; pageUID: string; } | { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }, unknown>; readonly widgetId: z.ZodString; readonly mode: z.ZodEnum<["static", "dynamic"]>; readonly columns: z.ZodOptional; }, "strip", z.ZodTypeAny, { en: string; de?: string | undefined; }, { en: string; de?: string | undefined; }>; mappings: z.ZodArray>; referenceValues: z.ZodOptional>; dateRange: z.ZodOptional>; }, "strip", z.ZodTypeAny, { attribute: string; searchId: string; values?: string[] | undefined; referenceValues?: string[] | undefined; dateRange?: { start: string; end: string; } | undefined; }, { attribute: string; searchId: string; values?: string[] | undefined; referenceValues?: string[] | undefined; dateRange?: { start: string; end: string; } | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { columnId: string; names: { en: string; de?: string | undefined; }; mappings: { attribute: string; searchId: string; values?: string[] | undefined; referenceValues?: string[] | undefined; dateRange?: { start: string; end: string; } | undefined; }[]; }, { columnId: string; names: { en: string; de?: string | undefined; }; mappings: { attribute: string; searchId: string; values?: string[] | undefined; referenceValues?: string[] | undefined; dateRange?: { start: string; end: string; } | undefined; }[]; }>, "many">>; readonly dynamicConfig: z.ZodOptional, "many">; }, "strip", z.ZodTypeAny, { mappedAttributes: { attribute: string; searchId: string; }[]; }, { mappedAttributes: { attribute: string; searchId: string; }[]; }>>; }; readonly annotations: { readonly title: "Configure Board Columns"; }; }; readonly cplace_board_configure_swimlanes: { readonly description: "Configure swimlane structure for a board widget. Swimlanes create horizontal groupings within columns.\n\nSET enabled: false to remove all swimlanes (flat board).\n\nMODES (when enabled):\n- static: Explicitly define swimlanes with value mappings\n- dynamic: Auto-generate swimlanes from enumeration attribute values. Date-based dynamic swimlanes are not supported.\n\nVALID ATTRIBUTE TYPES for swimlane mapping: Enumeration, Reference, Date, or linked attributes of these types.\nNOT valid: Workflow (excluded despite resembling enumerations), Number, Boolean, Color (these are only valid for card display attributes).\n\nVALUE MAPPING FIELDS (mutually exclusive per mapping):\n- values: For enumeration attributes (string values like \"Open\", \"Closed\")\n- referenceValues: For reference attributes (page UIDs like \"6a0pydt3gd31ea3d42hdhqf4t\")\n- dateRange: For date attributes ({start, end} date strings)\n\nIMPORTANT: All searchId references must exist in the board's card configurations.\n\nWORKFLOW:\n1. Ensure cards are configured with desired searchIds\n2. Get current config: cplace_board_get_configuration\n3. Modify or replace swimlanes configuration\n4. Call this tool with complete desired state"; readonly inputSchema: { readonly context: z.ZodEffects; pageUID: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page"; pageUID: string; }, { type: "page"; pageUID: string; }>, z.ZodObject<{ type: z.ZodLiteral<"type">; workspaceId: z.ZodString; typeInternalName: z.ZodString; alternativeLayoutName: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }, { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }>]>, { type: "page"; pageUID: string; } | { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }, unknown>; readonly widgetId: z.ZodString; readonly enabled: z.ZodBoolean; readonly mode: z.ZodOptional>; readonly swimlanes: z.ZodOptional; }, "strip", z.ZodTypeAny, { en: string; de?: string | undefined; }, { en: string; de?: string | undefined; }>; mappings: z.ZodArray>; referenceValues: z.ZodOptional>; dateRange: z.ZodOptional>; }, "strip", z.ZodTypeAny, { attribute: string; searchId: string; values?: string[] | undefined; referenceValues?: string[] | undefined; dateRange?: { start: string; end: string; } | undefined; }, { attribute: string; searchId: string; values?: string[] | undefined; referenceValues?: string[] | undefined; dateRange?: { start: string; end: string; } | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { names: { en: string; de?: string | undefined; }; mappings: { attribute: string; searchId: string; values?: string[] | undefined; referenceValues?: string[] | undefined; dateRange?: { start: string; end: string; } | undefined; }[]; swimlaneId: string; }, { names: { en: string; de?: string | undefined; }; mappings: { attribute: string; searchId: string; values?: string[] | undefined; referenceValues?: string[] | undefined; dateRange?: { start: string; end: string; } | undefined; }[]; swimlaneId: string; }>, "many">>; readonly dynamicConfig: z.ZodOptional, "many">; }, "strip", z.ZodTypeAny, { mappedAttributes: { attribute: string; searchId: string; }[]; }, { mappedAttributes: { attribute: string; searchId: string; }[]; }>>; }; readonly annotations: { readonly title: "Configure Board Swimlanes"; }; }; readonly cplace_board_configure_visual: { readonly description: "Configure visual settings for a board widget. Controls UI features and display options.\n\nAvailable settings:\n- showCardCount: Show card count in column headers\n- enableQuickAdd: Show \"+\" button to create new cards\n- showUnmappedContainer: Show container for cards without valid column mapping\n- enableCardDetailsView: Show card details inline instead of navigation\n- showSpaceAfterLastColumn: Add visual spacing after last column\n- enableRecentHistory: Show button to highlight recently changed cards\n- recentHistoryWeeks: Time range for \"recent\" cards (default: 2)\n\nOmitted settings retain their current values (this tool does partial updates for visual settings)."; readonly inputSchema: { readonly context: z.ZodEffects; pageUID: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page"; pageUID: string; }, { type: "page"; pageUID: string; }>, z.ZodObject<{ type: z.ZodLiteral<"type">; workspaceId: z.ZodString; typeInternalName: z.ZodString; alternativeLayoutName: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }, { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }>]>, { type: "page"; pageUID: string; } | { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }, unknown>; readonly widgetId: z.ZodString; readonly showCardCount: z.ZodOptional; readonly enableQuickAdd: z.ZodOptional; readonly showUnmappedContainer: z.ZodOptional; readonly unmappedContainerNames: z.ZodOptional; }, "strip", z.ZodTypeAny, { en: string; de?: string | undefined; }, { en: string; de?: string | undefined; }>>; readonly enableCardDetailsView: z.ZodOptional; readonly showSpaceAfterLastColumn: z.ZodOptional; readonly enableRecentHistory: z.ZodOptional; readonly recentHistoryWeeks: z.ZodOptional; }; readonly annotations: { readonly title: "Configure Board Visual Settings"; }; }; }; export declare function registerBoardWidgetTools(server: McpServer, client: CplaceApiClient): void; export { BOARD_TOOL_DEFINITIONS }; //# sourceMappingURL=board-widget.d.ts.map