UNPKG

noverload-mcp

Version:

MCP server for Noverload - Access saved content in AI tools with advanced search, synthesis, and token management

177 lines 6.2 kB
import { z } from "zod"; export interface ClientConfig { accessToken: string; apiUrl: string; readOnly: boolean; } export declare const ContentSchema: z.ZodObject<{ id: z.ZodString; userId: z.ZodDefault<z.ZodOptional<z.ZodString>>; url: z.ZodString; title: z.ZodOptional<z.ZodNullable<z.ZodString>>; description: z.ZodOptional<z.ZodNullable<z.ZodString>>; contentType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["youtube", "x_twitter", "reddit", "article", "pdf"]>>>; status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed"]>>>; summary: z.ZodOptional<z.ZodNullable<z.ZodAny>>; keyInsights: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>>; rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>; tokenCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; ogImage: z.ZodOptional<z.ZodNullable<z.ZodString>>; processingMetadata: z.ZodOptional<z.ZodNullable<z.ZodAny>>; tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>; createdAt: z.ZodDefault<z.ZodOptional<z.ZodString>>; updatedAt: z.ZodDefault<z.ZodOptional<z.ZodString>>; }, "strip", z.ZodTypeAny, { id: string; userId: string; url: string; contentType: "youtube" | "x_twitter" | "reddit" | "article" | "pdf"; status: "pending" | "processing" | "completed" | "failed"; keyInsights: string[] | null; tags: string[]; createdAt: string; updatedAt: string; title?: string | null | undefined; description?: string | null | undefined; summary?: any; rawText?: string | null | undefined; tokenCount?: number | null | undefined; ogImage?: string | null | undefined; processingMetadata?: any; }, { id: string; url: string; userId?: string | undefined; title?: string | null | undefined; description?: string | null | undefined; contentType?: "youtube" | "x_twitter" | "reddit" | "article" | "pdf" | undefined; status?: "pending" | "processing" | "completed" | "failed" | undefined; summary?: any; keyInsights?: string[] | null | undefined; rawText?: string | null | undefined; tokenCount?: number | null | undefined; ogImage?: string | null | undefined; processingMetadata?: any; tags?: string[] | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; }>; export declare const ActionSchema: z.ZodObject<{ id: z.ZodString; contentId: z.ZodString; goalId: z.ZodNullable<z.ZodString>; title: z.ZodString; description: z.ZodNullable<z.ZodString>; priority: z.ZodEnum<["high", "medium", "low"]>; completed: z.ZodBoolean; completedAt: z.ZodNullable<z.ZodString>; createdAt: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; title: string; description: string | null; completed: boolean; createdAt: string; contentId: string; goalId: string | null; priority: "high" | "medium" | "low"; completedAt: string | null; }, { id: string; title: string; description: string | null; completed: boolean; createdAt: string; contentId: string; goalId: string | null; priority: "high" | "medium" | "low"; completedAt: string | null; }>; export declare const GoalSchema: z.ZodObject<{ id: z.ZodString; userId: z.ZodString; title: z.ZodString; description: z.ZodNullable<z.ZodString>; category: z.ZodEnum<["health", "wealth", "relationships"]>; isActive: z.ZodBoolean; createdAt: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; userId: string; title: string; description: string | null; createdAt: string; category: "health" | "wealth" | "relationships"; isActive: boolean; }, { id: string; userId: string; title: string; description: string | null; createdAt: string; category: "health" | "wealth" | "relationships"; isActive: boolean; }>; export type Content = z.infer<typeof ContentSchema>; export type Action = z.infer<typeof ActionSchema>; export type Goal = z.infer<typeof GoalSchema>; export declare class NoverloadClient { private config; private headers; constructor(config: ClientConfig); initialize(): Promise<void>; validateToken(): Promise<boolean>; private request; listContent(filters?: { status?: string; contentType?: string; limit?: number; }): Promise<Content[]>; getContent(id: string): Promise<Content>; saveContent(url: string): Promise<Content>; listActions(filters?: { contentId?: string; goalId?: string; completed?: boolean; }): Promise<Action[]>; completeAction(id: string): Promise<Action>; listGoals(): Promise<Goal[]>; searchContent(query: string, options?: { tags?: string[]; limit?: number; includeFullContent?: boolean; contentTypes?: string[]; dateFrom?: string; dateTo?: string; excludeDomains?: string[]; enableConceptExpansion?: boolean; searchMode?: "any" | "all" | "phrase"; fuzzyMatch?: boolean; }): Promise<any>; private searchContentV1; searchContentV2(params: { query: string; mode?: "smart" | "semantic" | "fulltext" | "hybrid" | "any" | "all" | "phrase"; limit?: number; contentTypes?: string[]; includeContent?: boolean; minRelevance?: number; }): Promise<any>; estimateSearchTokens(query: string, limit?: number): Promise<any>; synthesizeContent(params: { query: string; contentIds?: string[]; synthesisMode?: "overview" | "deep" | "actionable" | "comparison"; findContradictions?: boolean; findConnections?: boolean; maxSources?: number; }): Promise<any>; private synthesizeContentV1; findSimilarContent(contentId: string, options?: { limit?: number; minSimilarity?: number; }): Promise<any>; batchGetContent(ids: string[], includeFullContent?: boolean): Promise<any>; getEnrichedContent(ids: string[], includeFullContent?: boolean): Promise<any>; } //# sourceMappingURL=client.d.ts.map