import z from 'zod'; export declare const zSnippetTypes: z.ZodEnum<["YouTube", "RSS", "WebPage", "File"]>; export declare const snippet: z.ZodObject<{ _id: z.ZodString; organizationId: z.ZodString; sourceId: z.ZodString; syncId: z.ZodString; documentId: z.ZodString; title: z.ZodString; text: z.ZodString; type: z.ZodEnum<["YouTube", "RSS", "WebPage", "File"]>; url: z.ZodString; domain: z.ZodOptional; lang: z.ZodOptional; hash: z.ZodString; index: z.ZodNumber; startTime: z.ZodNullable; startSeconds: z.ZodNumber; endTime: z.ZodOptional; endSeconds: z.ZodOptional; releasedAt: z.ZodOptional; views: z.ZodOptional; pageNumber: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; startTime: string | null; startSeconds: number; url: string; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }, { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; startTime: string | null; startSeconds: number; url: string; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }>; export type Snippet = z.infer; export declare enum SnippetSortBy { Relevance = "Relevance", MostPopular = "Most Popular", LeastPopular = "Least Popular", MostRecent = "Most Recent", LeastRecent = "Least Recent" } export interface SnippetService { create(request: CreateSnippetRequest): Promise; get(request: GetSnippetRequest): Promise; list(request: ListSnippetsRequest): Promise; count(request: CountSnippetsRequest): Promise; } /** ****************************************************************************** * Create Snippet ******************************************************************************* */ export declare const createSnippetParams: z.ZodObject<{ organizationId: z.ZodString; sourceId: z.ZodString; syncId: z.ZodString; documentId: z.ZodString; title: z.ZodString; text: z.ZodString; type: z.ZodEnum<["YouTube", "RSS", "WebPage", "File"]>; url: z.ZodString; domain: z.ZodOptional; lang: z.ZodOptional; hash: z.ZodString; index: z.ZodNumber; startTime: z.ZodOptional; startSeconds: z.ZodOptional; endTime: z.ZodOptional; endSeconds: z.ZodOptional; releasedAt: z.ZodOptional; views: z.ZodOptional; pageNumber: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; url: string; organizationId: string; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; startTime?: string | undefined; startSeconds?: number | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }, { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; url: string; organizationId: string; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; startTime?: string | undefined; startSeconds?: number | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }>; export declare const createSnippetRequest: z.ZodObject<{ params: z.ZodArray; url: z.ZodString; domain: z.ZodOptional; lang: z.ZodOptional; hash: z.ZodString; index: z.ZodNumber; startTime: z.ZodOptional; startSeconds: z.ZodOptional; endTime: z.ZodOptional; endSeconds: z.ZodOptional; releasedAt: z.ZodOptional; views: z.ZodOptional; pageNumber: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; url: string; organizationId: string; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; startTime?: string | undefined; startSeconds?: number | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }, { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; url: string; organizationId: string; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; startTime?: string | undefined; startSeconds?: number | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { params: { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; url: string; organizationId: string; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; startTime?: string | undefined; startSeconds?: number | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }[]; }, { params: { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; url: string; organizationId: string; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; startTime?: string | undefined; startSeconds?: number | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }[]; }>; export declare const createSnippetResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; snippets: z.ZodOptional; url: z.ZodString; domain: z.ZodOptional; lang: z.ZodOptional; hash: z.ZodString; index: z.ZodNumber; startTime: z.ZodNullable; startSeconds: z.ZodNumber; endTime: z.ZodOptional; endSeconds: z.ZodOptional; releasedAt: z.ZodOptional; views: z.ZodOptional; pageNumber: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; startTime: string | null; startSeconds: number; url: string; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }, { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; startTime: string | null; startSeconds: number; url: string; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; snippets?: { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; startTime: string | null; startSeconds: number; url: string; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }[] | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; snippets?: { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; startTime: string | null; startSeconds: number; url: string; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }[] | undefined; }>; export type CreateSnippetParams = z.infer; export type CreateSnippetRequest = z.infer; export type CreateSnippetResponse = z.infer; /** ****************************************************************************** * Get Snippet ******************************************************************************* */ export declare const getSnippetParams: z.ZodObject<{ snippetId: z.ZodString; }, "strip", z.ZodTypeAny, { snippetId: string; }, { snippetId: string; }>; export declare const getSnippetRequest: z.ZodObject<{ params: z.ZodObject<{ snippetId: z.ZodString; }, "strip", z.ZodTypeAny, { snippetId: string; }, { snippetId: string; }>; }, "strip", z.ZodTypeAny, { params: { snippetId: string; }; }, { params: { snippetId: string; }; }>; export declare const getSnippetResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; snippet: z.ZodOptional; url: z.ZodString; domain: z.ZodOptional; lang: z.ZodOptional; hash: z.ZodString; index: z.ZodNumber; startTime: z.ZodNullable; startSeconds: z.ZodNumber; endTime: z.ZodOptional; endSeconds: z.ZodOptional; releasedAt: z.ZodOptional; views: z.ZodOptional; pageNumber: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; startTime: string | null; startSeconds: number; url: string; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }, { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; startTime: string | null; startSeconds: number; url: string; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }>>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; snippet?: { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; startTime: string | null; startSeconds: number; url: string; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; } | null | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; snippet?: { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; startTime: string | null; startSeconds: number; url: string; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; } | null | undefined; }>; export type GetSnippetParams = z.infer; export type GetSnippetRequest = z.infer; export type GetSnippetResponse = z.infer; /** ****************************************************************************** * List Snippets ******************************************************************************* */ export declare const listSnippetsParams: z.ZodObject<{ _ids: z.ZodOptional>; documentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { _ids?: string[] | undefined; documentId?: string | undefined; }, { _ids?: string[] | undefined; documentId?: string | undefined; }>; export declare const listSnippetsRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ _ids: z.ZodOptional>; documentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { _ids?: string[] | undefined; documentId?: string | undefined; }, { _ids?: string[] | undefined; documentId?: string | undefined; }>; }, "strip", z.ZodTypeAny, { params: { _ids?: string[] | undefined; documentId?: string | undefined; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { _ids?: string[] | undefined; documentId?: string | undefined; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const listSnippetsResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; snippets: z.ZodOptional; url: z.ZodString; domain: z.ZodOptional; lang: z.ZodOptional; hash: z.ZodString; index: z.ZodNumber; startTime: z.ZodNullable; startSeconds: z.ZodNumber; endTime: z.ZodOptional; endSeconds: z.ZodOptional; releasedAt: z.ZodOptional; views: z.ZodOptional; pageNumber: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; startTime: string | null; startSeconds: number; url: string; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }, { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; startTime: string | null; startSeconds: number; url: string; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; snippets?: { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; startTime: string | null; startSeconds: number; url: string; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }[] | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; snippets?: { type: "YouTube" | "RSS" | "WebPage" | "File"; text: string; startTime: string | null; startSeconds: number; url: string; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sourceId: string; syncId: string; title: string; documentId: string; hash: string; index: number; domain?: string | undefined; lang?: string | undefined; endTime?: string | undefined; endSeconds?: number | undefined; releasedAt?: number | undefined; views?: number | undefined; pageNumber?: number | undefined; }[] | undefined; }>; export type ListSnippetsParams = z.infer; export type ListSnippetsRequest = z.infer; export type ListSnippetsResponse = z.infer; /** ****************************************************************************** * Count Snippets ******************************************************************************* */ export declare const countSnippetsParams: z.ZodObject<{ sourceId: z.ZodString; }, "strip", z.ZodTypeAny, { sourceId: string; }, { sourceId: string; }>; export declare const countSnippetsRequest: z.ZodObject<{ params: z.ZodObject<{ sourceId: z.ZodString; }, "strip", z.ZodTypeAny, { sourceId: string; }, { sourceId: string; }>; }, "strip", z.ZodTypeAny, { params: { sourceId: string; }; }, { params: { sourceId: string; }; }>; export declare const countSnippetsResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; count: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; count?: number | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; count?: number | undefined; }>; export type CountSnippetsParams = z.infer; export type CountSnippetsRequest = z.infer; export type CountSnippetsResponse = z.infer;