UNPKG

aibiao-excel-mcp-server

Version:

专为aibiao.cn定制的AI Excel操作MCP服务器 - 让AI智能分析和处理Excel数据

333 lines 9.7 kB
import { z } from 'zod'; export interface AibiaoResponse<T> { success: boolean; message?: string; data?: T; costInfo?: { cost: number; remainingQuota: number; }; } export interface ApiKeyStatus { apiKey: string | null; totalQuota: number; usedQuota: number; isActive: boolean; error?: string; } export interface ChatMessage { id: string; role: 'user' | 'assistant'; content: any; timestamp: number; } export interface Chat { id: string; title: string; file_urls?: string[]; created_at: string; updated_at: string; messageCount?: number; fileCount?: number; previewMessages?: ChatMessage[]; messages?: ChatMessage[]; status?: "waiting" | "completed" | "failed"; steps?: Array<{ content: string; status: number; }>; result?: string; questions?: string[]; } export interface ChatListResponse { chats: Chat[]; pagination: { currentPage: number; totalPages: number; totalCount: number; hasNextPage: boolean; hasPrevPage: boolean; }; filters: { search?: string; startDate?: string | null; endDate?: string | null; sortBy: string; sortOrder: string; }; } export interface Chart { id: string; title: string; titleCN?: string; category: string; chartType?: string; path?: string; created_at: string; updated_at: string; chartUrl: string; shareUrl: string; isApiCreated?: boolean; options?: any; echartsOption?: any; tableData?: any; } export interface ChartListResponse { charts: Chart[]; pagination: { currentPage: number; totalPages: number; totalCount: number; hasNextPage: boolean; hasPrevPage: boolean; }; filters: { search?: string; category?: string; startDate?: string | null; endDate?: string | null; sortBy: string; sortOrder: string; }; } export interface Workflow { workflowId: string; name: string; description?: string; createdAt: string; updatedAt: string; requiredInputsCount: number; codeUrlsCount: number; messagesCount: number; originChatId: string; originChat?: Chat; codeUrls?: string[]; } export interface WorkflowListResponse { workflows: Workflow[]; pagination: { currentPage: number; totalPages: number; totalCount: number; hasNextPage: boolean; hasPrevPage: boolean; }; filters: { search?: string; startDate?: string | null; endDate?: string | null; sortBy: string; sortOrder: string; }; } export declare const QueryApiKeyStatusSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; export declare const CreateChatSchema: z.ZodObject<{ fileUrls: z.ZodArray<z.ZodString, "many">; title: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { fileUrls: string[]; title?: string | undefined; }, { fileUrls: string[]; title?: string | undefined; }>; export declare const AppendChatSchema: z.ZodObject<{ chatId: z.ZodString; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; chatId: string; }, { message: string; chatId: string; }>; export declare const ListChatsSchema: z.ZodObject<{ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; includeMessages: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; search: z.ZodOptional<z.ZodString>; sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "title"]>>>; sortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; startDate: z.ZodOptional<z.ZodString>; endDate: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { page: number; limit: number; includeMessages: boolean; sortBy: "title" | "created_at" | "updated_at"; sortOrder: "asc" | "desc"; search?: string | undefined; startDate?: string | undefined; endDate?: string | undefined; }, { page?: number | undefined; limit?: number | undefined; includeMessages?: boolean | undefined; search?: string | undefined; sortBy?: "title" | "created_at" | "updated_at" | undefined; sortOrder?: "asc" | "desc" | undefined; startDate?: string | undefined; endDate?: string | undefined; }>; export declare const GetChatSchema: z.ZodObject<{ chatId: z.ZodString; includeMessages: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; messageLimit: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { chatId: string; includeMessages: boolean; messageLimit?: number | undefined; }, { chatId: string; includeMessages?: boolean | undefined; messageLimit?: number | undefined; }>; export declare const UpdateChatTitleSchema: z.ZodObject<{ chatId: z.ZodString; title: z.ZodString; }, "strip", z.ZodTypeAny, { title: string; chatId: string; }, { title: string; chatId: string; }>; export declare const DeleteChatSchema: z.ZodObject<{ chatId: z.ZodString; }, "strip", z.ZodTypeAny, { chatId: string; }, { chatId: string; }>; export declare const CreateChartSchema: z.ZodObject<{ fileUrl: z.ZodString; prompt: z.ZodString; }, "strip", z.ZodTypeAny, { fileUrl: string; prompt: string; }, { fileUrl: string; prompt: string; }>; export declare const ListChartsSchema: z.ZodObject<{ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "title", "category"]>>>; sortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; search: z.ZodOptional<z.ZodString>; category: z.ZodOptional<z.ZodString>; startDate: z.ZodOptional<z.ZodString>; endDate: z.ZodOptional<z.ZodString>; includeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; includeData: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { page: number; limit: number; sortBy: "title" | "created_at" | "updated_at" | "category"; sortOrder: "asc" | "desc"; includeOptions: boolean; includeData: boolean; search?: string | undefined; startDate?: string | undefined; endDate?: string | undefined; category?: string | undefined; }, { page?: number | undefined; limit?: number | undefined; search?: string | undefined; sortBy?: "title" | "created_at" | "updated_at" | "category" | undefined; sortOrder?: "asc" | "desc" | undefined; startDate?: string | undefined; endDate?: string | undefined; category?: string | undefined; includeOptions?: boolean | undefined; includeData?: boolean | undefined; }>; export declare const DeleteChartSchema: z.ZodObject<{ chartId: z.ZodString; }, "strip", z.ZodTypeAny, { chartId: string; }, { chartId: string; }>; export declare const SaveWorkflowSchema: z.ZodObject<{ chatId: z.ZodString; workflowName: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { chatId: string; workflowName: string; description?: string | undefined; }, { chatId: string; workflowName: string; description?: string | undefined; }>; export declare const ListWorkflowsSchema: z.ZodObject<{ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "name"]>>>; sortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; search: z.ZodOptional<z.ZodString>; startDate: z.ZodOptional<z.ZodString>; endDate: z.ZodOptional<z.ZodString>; includeOriginChat: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; includeCodeUrls: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; isPublic: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { page: number; limit: number; sortBy: "createdAt" | "updatedAt" | "name"; sortOrder: "asc" | "desc"; includeOriginChat: boolean; includeCodeUrls: boolean; search?: string | undefined; startDate?: string | undefined; endDate?: string | undefined; isPublic?: boolean | undefined; }, { page?: number | undefined; limit?: number | undefined; search?: string | undefined; sortBy?: "createdAt" | "updatedAt" | "name" | undefined; sortOrder?: "asc" | "desc" | undefined; startDate?: string | undefined; endDate?: string | undefined; includeOriginChat?: boolean | undefined; includeCodeUrls?: boolean | undefined; isPublic?: boolean | undefined; }>; export declare const ExecuteWorkflowSchema: z.ZodObject<{ workflowId: z.ZodString; fileUrls: z.ZodArray<z.ZodString, "many">; title: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { fileUrls: string[]; workflowId: string; title?: string | undefined; }, { fileUrls: string[]; workflowId: string; title?: string | undefined; }>; export declare const UpdateWorkflowNameSchema: z.ZodObject<{ workflowId: z.ZodString; name: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; workflowId: string; description?: string | undefined; }, { name: string; workflowId: string; description?: string | undefined; }>; export declare const DeleteWorkflowSchema: z.ZodObject<{ workflowId: z.ZodString; }, "strip", z.ZodTypeAny, { workflowId: string; }, { workflowId: string; }>; //# sourceMappingURL=schemas.d.ts.map