UNPKG

mcp-limitless

Version:

A Model Context Protocol server for accessing Limitless AI lifelog data

539 lines (538 loc) 18.8 kB
import { z } from "zod"; /** * Configuration for the Limitless API client */ export declare const LimitlessConfigSchema: z.ZodDefault<z.ZodObject<{ apiKey: z.ZodOptional<z.ZodString>; baseUrl: z.ZodDefault<z.ZodOptional<z.ZodString>>; }, "strip", z.ZodTypeAny, { baseUrl: string; apiKey?: string | undefined; }, { apiKey?: string | undefined; baseUrl?: string | undefined; }>>; export type LimitlessConfig = z.infer<typeof LimitlessConfigSchema>; /** * Content item within a lifelog entry */ export declare const LifelogContentItemSchema: z.ZodObject<{ content: z.ZodString; type: z.ZodEnum<["heading1", "heading2", "blockquote", "text"]>; startTime: z.ZodOptional<z.ZodString>; endTime: z.ZodOptional<z.ZodString>; startOffsetMs: z.ZodOptional<z.ZodNumber>; endOffsetMs: z.ZodOptional<z.ZodNumber>; speakerName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }, { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }>; export type LifelogContentItem = z.infer<typeof LifelogContentItemSchema>; /** * Lifelog entry data structure */ export declare const LifelogEntrySchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; startTime: z.ZodString; endTime: z.ZodString; contents: z.ZodArray<z.ZodObject<{ content: z.ZodString; type: z.ZodEnum<["heading1", "heading2", "blockquote", "text"]>; startTime: z.ZodOptional<z.ZodString>; endTime: z.ZodOptional<z.ZodString>; startOffsetMs: z.ZodOptional<z.ZodNumber>; endOffsetMs: z.ZodOptional<z.ZodNumber>; speakerName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }, { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }>, "many">; markdown: z.ZodOptional<z.ZodString>; isStarred: z.ZodDefault<z.ZodBoolean>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { startTime: string; endTime: string; id: string; title: string; contents: { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }[]; isStarred: boolean; markdown?: string | undefined; updatedAt?: string | undefined; }, { startTime: string; endTime: string; id: string; title: string; contents: { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }[]; markdown?: string | undefined; isStarred?: boolean | undefined; updatedAt?: string | undefined; }>; export type LifelogEntry = z.infer<typeof LifelogEntrySchema>; /** * Parameters for listing lifelogs */ export declare const ListLifelogsParamsSchema: z.ZodObject<{ date: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; start_time: z.ZodOptional<z.ZodString>; end_time: z.ZodOptional<z.ZodString>; cursor: z.ZodOptional<z.ZodString>; sort_direction: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>; limit: z.ZodDefault<z.ZodNumber>; }, "strip", z.ZodTypeAny, { limit: number; date?: string | undefined; timezone?: string | undefined; start_time?: string | undefined; end_time?: string | undefined; cursor?: string | undefined; sort_direction?: "asc" | "desc" | undefined; }, { date?: string | undefined; timezone?: string | undefined; start_time?: string | undefined; end_time?: string | undefined; cursor?: string | undefined; sort_direction?: "asc" | "desc" | undefined; limit?: number | undefined; }>; export type ListLifelogsParams = z.infer<typeof ListLifelogsParamsSchema>; /** * Response for listing lifelogs */ export declare const ListLifelogsResponseSchema: z.ZodObject<{ data: z.ZodObject<{ lifelogs: z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; startTime: z.ZodString; endTime: z.ZodString; contents: z.ZodArray<z.ZodObject<{ content: z.ZodString; type: z.ZodEnum<["heading1", "heading2", "blockquote", "text"]>; startTime: z.ZodOptional<z.ZodString>; endTime: z.ZodOptional<z.ZodString>; startOffsetMs: z.ZodOptional<z.ZodNumber>; endOffsetMs: z.ZodOptional<z.ZodNumber>; speakerName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }, { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }>, "many">; markdown: z.ZodOptional<z.ZodString>; isStarred: z.ZodDefault<z.ZodBoolean>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { startTime: string; endTime: string; id: string; title: string; contents: { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }[]; isStarred: boolean; markdown?: string | undefined; updatedAt?: string | undefined; }, { startTime: string; endTime: string; id: string; title: string; contents: { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }[]; markdown?: string | undefined; isStarred?: boolean | undefined; updatedAt?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { lifelogs: { startTime: string; endTime: string; id: string; title: string; contents: { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }[]; isStarred: boolean; markdown?: string | undefined; updatedAt?: string | undefined; }[]; }, { lifelogs: { startTime: string; endTime: string; id: string; title: string; contents: { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }[]; markdown?: string | undefined; isStarred?: boolean | undefined; updatedAt?: string | undefined; }[]; }>; meta: z.ZodOptional<z.ZodObject<{ lifelogs: z.ZodObject<{ count: z.ZodNumber; }, "strip", z.ZodTypeAny, { count: number; }, { count: number; }>; }, "strip", z.ZodTypeAny, { lifelogs: { count: number; }; }, { lifelogs: { count: number; }; }>>; }, "strip", z.ZodTypeAny, { data: { lifelogs: { startTime: string; endTime: string; id: string; title: string; contents: { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }[]; isStarred: boolean; markdown?: string | undefined; updatedAt?: string | undefined; }[]; }; meta?: { lifelogs: { count: number; }; } | undefined; }, { data: { lifelogs: { startTime: string; endTime: string; id: string; title: string; contents: { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }[]; markdown?: string | undefined; isStarred?: boolean | undefined; updatedAt?: string | undefined; }[]; }; meta?: { lifelogs: { count: number; }; } | undefined; }>; export type ListLifelogsResponse = z.infer<typeof ListLifelogsResponseSchema>; /** * Response for getting a single lifelog */ export declare const GetLifelogResponseSchema: z.ZodObject<{ data: z.ZodObject<{ lifelog: z.ZodObject<{ id: z.ZodString; title: z.ZodString; startTime: z.ZodString; endTime: z.ZodString; contents: z.ZodArray<z.ZodObject<{ content: z.ZodString; type: z.ZodEnum<["heading1", "heading2", "blockquote", "text"]>; startTime: z.ZodOptional<z.ZodString>; endTime: z.ZodOptional<z.ZodString>; startOffsetMs: z.ZodOptional<z.ZodNumber>; endOffsetMs: z.ZodOptional<z.ZodNumber>; speakerName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }, { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }>, "many">; markdown: z.ZodOptional<z.ZodString>; isStarred: z.ZodDefault<z.ZodBoolean>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { startTime: string; endTime: string; id: string; title: string; contents: { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }[]; isStarred: boolean; markdown?: string | undefined; updatedAt?: string | undefined; }, { startTime: string; endTime: string; id: string; title: string; contents: { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }[]; markdown?: string | undefined; isStarred?: boolean | undefined; updatedAt?: string | undefined; }>; }, "strip", z.ZodTypeAny, { lifelog: { startTime: string; endTime: string; id: string; title: string; contents: { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }[]; isStarred: boolean; markdown?: string | undefined; updatedAt?: string | undefined; }; }, { lifelog: { startTime: string; endTime: string; id: string; title: string; contents: { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }[]; markdown?: string | undefined; isStarred?: boolean | undefined; updatedAt?: string | undefined; }; }>; }, "strip", z.ZodTypeAny, { data: { lifelog: { startTime: string; endTime: string; id: string; title: string; contents: { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }[]; isStarred: boolean; markdown?: string | undefined; updatedAt?: string | undefined; }; }; }, { data: { lifelog: { startTime: string; endTime: string; id: string; title: string; contents: { type: "heading1" | "heading2" | "blockquote" | "text"; content: string; startTime?: string | undefined; endTime?: string | undefined; startOffsetMs?: number | undefined; endOffsetMs?: number | undefined; speakerName?: string | undefined; }[]; markdown?: string | undefined; isStarred?: boolean | undefined; updatedAt?: string | undefined; }; }; }>; export type GetLifelogResponse = z.infer<typeof GetLifelogResponseSchema>; /** * Parameters for getting a specific lifelog entry */ export declare const GetLifelogParamsSchema: z.ZodObject<{ lifelog_id: z.ZodString; }, "strip", z.ZodTypeAny, { lifelog_id: string; }, { lifelog_id: string; }>; export type GetLifelogParams = z.infer<typeof GetLifelogParamsSchema>; /** * Limitless API error response */ export declare const LimitlessErrorSchema: z.ZodObject<{ error: z.ZodString; message: z.ZodString; status_code: z.ZodNumber; }, "strip", z.ZodTypeAny, { message: string; error: string; status_code: number; }, { message: string; error: string; status_code: number; }>; export type LimitlessError = z.infer<typeof LimitlessErrorSchema>; /** * Search parameters for lifelog entries */ export declare const SearchLifelogsParamsSchema: z.ZodObject<{ query: z.ZodString; date_from: z.ZodOptional<z.ZodString>; date_to: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; cursor: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodNumber>; }, "strip", z.ZodTypeAny, { limit: number; query: string; timezone?: string | undefined; cursor?: string | undefined; date_from?: string | undefined; date_to?: string | undefined; }, { query: string; timezone?: string | undefined; cursor?: string | undefined; limit?: number | undefined; date_from?: string | undefined; date_to?: string | undefined; }>; export type SearchLifelogsParams = z.infer<typeof SearchLifelogsParamsSchema>;