import { z } from 'zod'; import { CredentialType } from '@bubblelab/shared-schemas'; /** * User/owner (normalized) */ export declare const GranolaUserSchema: z.ZodObject<{ name: z.ZodNullable; email: z.ZodString; }, "strip", z.ZodTypeAny, { name: string | null; email: string; }, { name: string | null; email: string; }>; /** * Calendar event associated with a note (normalized) */ export declare const GranolaCalendarEventSchema: z.ZodObject<{ title: z.ZodNullable; invitees: z.ZodArray; organiser: z.ZodNullable; calendarEventId: z.ZodNullable; startTime: z.ZodNullable; endTime: z.ZodNullable; }, "strip", z.ZodTypeAny, { title: string | null; startTime: string | null; endTime: string | null; invitees: string[]; organiser: string | null; calendarEventId: string | null; }, { title: string | null; startTime: string | null; endTime: string | null; invitees: string[]; organiser: string | null; calendarEventId: string | null; }>; /** * Folder membership (normalized) */ export declare const GranolaFolderSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; }, { name: string; id: string; }>; /** * Transcript entry (normalized) */ export declare const GranolaTranscriptEntrySchema: z.ZodObject<{ source: z.ZodEnum<["microphone", "speaker"]>; speakerLabel: z.ZodNullable; text: z.ZodString; startTime: z.ZodString; endTime: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; source: "microphone" | "speaker"; startTime: string; endTime: string; speakerLabel: string | null; }, { text: string; source: "microphone" | "speaker"; startTime: string; endTime: string; speakerLabel: string | null; }>; /** * Note summary — returned inside list_notes (normalized). */ export declare const GranolaNoteSummarySchema: z.ZodObject<{ id: z.ZodString; title: z.ZodNullable; owner: z.ZodObject<{ name: z.ZodNullable; email: z.ZodString; }, "strip", z.ZodTypeAny, { name: string | null; email: string; }, { name: string | null; email: string; }>; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { title: string | null; id: string; owner: { name: string | null; email: string; }; createdAt: string; updatedAt: string; }, { title: string | null; id: string; owner: { name: string | null; email: string; }; createdAt: string; updatedAt: string; }>; /** * Full note fields — returned FLAT on get_note (no wrapper object). * All fields are optional so callers using `sections` filtering don't * see undefined vs. missing differences at the type level. */ export declare const GranolaNoteFieldsSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodNullable; owner: z.ZodOptional; email: z.ZodString; }, "strip", z.ZodTypeAny, { name: string | null; email: string; }, { name: string | null; email: string; }>>; createdAt: z.ZodString; updatedAt: z.ZodString; notesUrl: z.ZodNullable; summaryText: z.ZodOptional; summaryMarkdown: z.ZodOptional>; attendees: z.ZodOptional; email: z.ZodString; }, "strip", z.ZodTypeAny, { name: string | null; email: string; }, { name: string | null; email: string; }>, "many">>; calendarEvent: z.ZodOptional; invitees: z.ZodArray; organiser: z.ZodNullable; calendarEventId: z.ZodNullable; startTime: z.ZodNullable; endTime: z.ZodNullable; }, "strip", z.ZodTypeAny, { title: string | null; startTime: string | null; endTime: string | null; invitees: string[]; organiser: string | null; calendarEventId: string | null; }, { title: string | null; startTime: string | null; endTime: string | null; invitees: string[]; organiser: string | null; calendarEventId: string | null; }>>>; folders: z.ZodOptional, "many">>; transcript: z.ZodOptional; speakerLabel: z.ZodNullable; text: z.ZodString; startTime: z.ZodString; endTime: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; source: "microphone" | "speaker"; startTime: string; endTime: string; speakerLabel: string | null; }, { text: string; source: "microphone" | "speaker"; startTime: string; endTime: string; speakerLabel: string | null; }>, "many">>>; }, "strip", z.ZodTypeAny, { title: string | null; id: string; createdAt: string; updatedAt: string; notesUrl: string | null; owner?: { name: string | null; email: string; } | undefined; attendees?: { name: string | null; email: string; }[] | undefined; transcript?: { text: string; source: "microphone" | "speaker"; startTime: string; endTime: string; speakerLabel: string | null; }[] | null | undefined; summaryText?: string | undefined; summaryMarkdown?: string | null | undefined; calendarEvent?: { title: string | null; startTime: string | null; endTime: string | null; invitees: string[]; organiser: string | null; calendarEventId: string | null; } | null | undefined; folders?: { name: string; id: string; }[] | undefined; }, { title: string | null; id: string; createdAt: string; updatedAt: string; notesUrl: string | null; owner?: { name: string | null; email: string; } | undefined; attendees?: { name: string | null; email: string; }[] | undefined; transcript?: { text: string; source: "microphone" | "speaker"; startTime: string; endTime: string; speakerLabel: string | null; }[] | null | undefined; summaryText?: string | undefined; summaryMarkdown?: string | null | undefined; calendarEvent?: { title: string | null; startTime: string | null; endTime: string | null; invitees: string[]; organiser: string | null; calendarEventId: string | null; } | null | undefined; folders?: { name: string; id: string; }[] | undefined; }>; declare const SectionSchema: z.ZodEnum<["summary", "attendees", "calendar", "folders", "transcript"]>; export declare const GranolaParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; createdBefore: z.ZodOptional; createdAfter: z.ZodOptional; updatedAfter: z.ZodOptional; cursor: z.ZodOptional; pageSize: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_notes"; pageSize: number; credentials?: Partial> | undefined; cursor?: string | undefined; createdBefore?: string | undefined; createdAfter?: string | undefined; updatedAfter?: string | undefined; }, { operation: "list_notes"; credentials?: Partial> | undefined; cursor?: string | undefined; pageSize?: number | undefined; createdBefore?: string | undefined; createdAfter?: string | undefined; updatedAfter?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_note">; noteId: z.ZodString; sections: z.ZodOptional, "many">>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_note"; noteId: string; credentials?: Partial> | undefined; sections?: ("summary" | "calendar" | "attendees" | "transcript" | "folders")[] | undefined; }, { operation: "get_note"; noteId: string; credentials?: Partial> | undefined; sections?: ("summary" | "calendar" | "attendees" | "transcript" | "folders")[] | undefined; }>]>; export declare const GranolaResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; success: z.ZodBoolean; notes: z.ZodOptional; owner: z.ZodObject<{ name: z.ZodNullable; email: z.ZodString; }, "strip", z.ZodTypeAny, { name: string | null; email: string; }, { name: string | null; email: string; }>; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { title: string | null; id: string; owner: { name: string | null; email: string; }; createdAt: string; updatedAt: string; }, { title: string | null; id: string; owner: { name: string | null; email: string; }; createdAt: string; updatedAt: string; }>, "many">>; hasMore: z.ZodOptional; cursor: z.ZodOptional>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_notes"; cursor?: string | null | undefined; notes?: { title: string | null; id: string; owner: { name: string | null; email: string; }; createdAt: string; updatedAt: string; }[] | undefined; hasMore?: boolean | undefined; }, { error: string; success: boolean; operation: "list_notes"; cursor?: string | null | undefined; notes?: { title: string | null; id: string; owner: { name: string | null; email: string; }; createdAt: string; updatedAt: string; }[] | undefined; hasMore?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_note">; success: z.ZodBoolean; error: z.ZodString; } & { id: z.ZodOptional; title: z.ZodOptional>; owner: z.ZodOptional; email: z.ZodString; }, "strip", z.ZodTypeAny, { name: string | null; email: string; }, { name: string | null; email: string; }>>>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; notesUrl: z.ZodOptional>; summaryText: z.ZodOptional>; summaryMarkdown: z.ZodOptional>>; attendees: z.ZodOptional; email: z.ZodString; }, "strip", z.ZodTypeAny, { name: string | null; email: string; }, { name: string | null; email: string; }>, "many">>>; calendarEvent: z.ZodOptional; invitees: z.ZodArray; organiser: z.ZodNullable; calendarEventId: z.ZodNullable; startTime: z.ZodNullable; endTime: z.ZodNullable; }, "strip", z.ZodTypeAny, { title: string | null; startTime: string | null; endTime: string | null; invitees: string[]; organiser: string | null; calendarEventId: string | null; }, { title: string | null; startTime: string | null; endTime: string | null; invitees: string[]; organiser: string | null; calendarEventId: string | null; }>>>>; folders: z.ZodOptional, "many">>>; transcript: z.ZodOptional; speakerLabel: z.ZodNullable; text: z.ZodString; startTime: z.ZodString; endTime: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; source: "microphone" | "speaker"; startTime: string; endTime: string; speakerLabel: string | null; }, { text: string; source: "microphone" | "speaker"; startTime: string; endTime: string; speakerLabel: string | null; }>, "many">>>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_note"; title?: string | null | undefined; id?: string | undefined; owner?: { name: string | null; email: string; } | undefined; attendees?: { name: string | null; email: string; }[] | undefined; transcript?: { text: string; source: "microphone" | "speaker"; startTime: string; endTime: string; speakerLabel: string | null; }[] | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; notesUrl?: string | null | undefined; summaryText?: string | undefined; summaryMarkdown?: string | null | undefined; calendarEvent?: { title: string | null; startTime: string | null; endTime: string | null; invitees: string[]; organiser: string | null; calendarEventId: string | null; } | null | undefined; folders?: { name: string; id: string; }[] | undefined; }, { error: string; success: boolean; operation: "get_note"; title?: string | null | undefined; id?: string | undefined; owner?: { name: string | null; email: string; } | undefined; attendees?: { name: string | null; email: string; }[] | undefined; transcript?: { text: string; source: "microphone" | "speaker"; startTime: string; endTime: string; speakerLabel: string | null; }[] | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; notesUrl?: string | null | undefined; summaryText?: string | undefined; summaryMarkdown?: string | null | undefined; calendarEvent?: { title: string | null; startTime: string | null; endTime: string | null; invitees: string[]; organiser: string | null; calendarEventId: string | null; } | null | undefined; folders?: { name: string; id: string; }[] | undefined; }>]>; export type GranolaParams = z.output; export type GranolaParamsInput = z.input; export type GranolaResult = z.output; export type GranolaListNotesParams = Extract; export type GranolaGetNoteParams = Extract; export type GranolaSection = z.output; export type GranolaNoteSummary = z.output; export type GranolaNoteFields = z.output; export type GranolaUser = z.output; export type GranolaCalendarEvent = z.output; export type GranolaFolder = z.output; export type GranolaTranscriptEntry = z.output; export {}; //# sourceMappingURL=granola.schema.d.ts.map