UNPKG

vespa-ts

Version:

A reusable TypeScript package for interacting with Vespa search engine with dependency injection support

1,341 lines 178 kB
import { z } from "zod"; import config from "./config"; export declare const fileSchema = "file"; export declare const userSchema = "user"; export declare const eventSchema = "event"; export declare const mailAttachmentSchema = "mail_attachment"; export declare const mailSchema = "mail"; export declare const chatContainerSchema = "chat_container"; export declare const chatTeamSchema = "chat_team"; export declare const chatMessageSchema = "chat_message"; export declare const chatUserSchema = "chat_user"; export declare const chatAttachment = "chat_attachment"; export declare const userQuerySchema = "user_query"; export declare const datasourceSchema = "datasource"; export declare const dataSourceFileSchema = "datasource_file"; export type VespaSchema = typeof fileSchema | typeof userSchema | typeof mailSchema | typeof eventSchema | typeof userQuerySchema | typeof mailAttachmentSchema | typeof chatContainerSchema | typeof chatTeamSchema | typeof chatMessageSchema | typeof chatUserSchema | typeof chatAttachment | typeof datasourceSchema | typeof dataSourceFileSchema; export declare enum Apps { GoogleWorkspace = "google-workspace", GoogleDrive = "google-drive", Gmail = "gmail", GoogleCalendar = "google-calendar", Slack = "slack", MCP = "mcp", Github = "github", Xyne = "xyne", DataSource = "data-source" } export declare enum GooglePeopleEntity { Contacts = "Contacts", OtherContacts = "OtherContacts", AdminDirectory = "AdminDirectory" } export declare enum MailEntity { Email = "mail" } export declare enum CalendarEntity { Event = "event" } export declare enum SlackEntity { Team = "team", User = "user", Message = "message", Channel = "channel", File = "file" } export declare enum DriveEntity { Docs = "docs", Sheets = "sheets", Slides = "slides", Presentation = "presentation", PDF = "pdf", Folder = "folder", Misc = "driveFile", Drawing = "drawing", Form = "form", Script = "script", Site = "site", Map = "map", Audio = "audio", Video = "video", Photo = "photo", ThirdPartyApp = "third_party_app", Image = "image", Zip = "zip", WordDocument = "word_document", ExcelSpreadsheet = "excel_spreadsheet", PowerPointPresentation = "powerpoint_presentation", Text = "text", CSV = "csv" } export declare enum MailAttachmentEntity { PDF = "pdf", Sheets = "sheets", CSV = "csv", WordDocument = "worddocument", PowerPointPresentation = "powerpointpresentation", Text = "text", NotValid = "notvalid" } export declare const isMailAttachment: (entity: Entity) => boolean; export declare const PeopleEntitySchema: z.ZodEnum<typeof GooglePeopleEntity>; export declare const ChatEntitySchema: z.ZodEnum<typeof SlackEntity>; export type PeopleEntity = z.infer<typeof PeopleEntitySchema>; export declare enum NotionEntity { Page = "page", Database = "database" } export declare const FileEntitySchema: z.ZodEnum<typeof DriveEntity>; export declare const MailEntitySchema: z.ZodEnum<typeof MailEntity>; export declare const MailAttachmentEntitySchema: z.ZodEnum<typeof MailAttachmentEntity>; export declare const EventEntitySchema: z.ZodEnum<typeof CalendarEntity>; export declare enum SystemEntity { SystemInfo = "system_info", UserProfile = "user_profile" } export declare enum DataSourceEntity { DataSourceFile = "data_source_file" } export declare const SystemEntitySchema: z.ZodEnum<typeof SystemEntity>; export declare const DataSourceEntitySchema: z.ZodEnum<typeof DataSourceEntity>; export declare const entitySchema: z.ZodUnion<readonly [z.ZodEnum<typeof SystemEntity>, z.ZodEnum<typeof GooglePeopleEntity>, z.ZodEnum<typeof DriveEntity>, z.ZodEnum<typeof NotionEntity>, z.ZodEnum<typeof MailEntity>, z.ZodEnum<typeof CalendarEntity>, z.ZodEnum<typeof MailAttachmentEntity>, z.ZodEnum<typeof SlackEntity>, z.ZodEnum<typeof DataSourceEntity>]>; export type Entity = SystemEntity | PeopleEntity | DriveEntity | NotionEntity | MailEntity | CalendarEntity | MailAttachmentEntity | SlackEntity | DataSourceEntity; export type WorkspaceEntity = DriveEntity; export declare const scoredChunk: z.ZodObject<{ chunk: z.ZodString; score: z.ZodNumber; index: z.ZodNumber; }, z.core.$strip>; export type ScoredChunk = z.infer<typeof scoredChunk>; export declare const defaultVespaFieldsSchema: z.ZodObject<{ relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>; export declare const VespaFileSchema: z.ZodObject<{ docId: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof DriveEntity>; title: z.ZodString; url: z.ZodNullable<z.ZodString>; parentId: z.ZodNullable<z.ZodString>; chunks: z.ZodArray<z.ZodString>; owner: z.ZodNullable<z.ZodString>; ownerEmail: z.ZodNullable<z.ZodString>; photoLink: z.ZodNullable<z.ZodString>; permissions: z.ZodArray<z.ZodString>; mimeType: z.ZodNullable<z.ZodString>; metadata: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodObject<{ spreadsheetId: z.ZodString; totalSheets: z.ZodNumber; }, z.core.$strip>]>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>; export declare const FileMatchFeaturesSchema: z.ZodObject<{ "bm25(title)": z.ZodOptional<z.ZodNumber>; "bm25(chunks)": z.ZodOptional<z.ZodNumber>; "closeness(field, chunk_embeddings)": z.ZodOptional<z.ZodNumber>; chunk_scores: z.ZodObject<{ cells: z.ZodRecord<z.ZodString, z.ZodNumber>; }, z.core.$strip>; }, z.core.$strip>; declare const MailMatchFeaturesSchema: z.ZodObject<{ "bm25(subject)": z.ZodOptional<z.ZodNumber>; "bm25(chunks)": z.ZodOptional<z.ZodNumber>; "bm25(attachmentFilenames)": z.ZodOptional<z.ZodNumber>; chunk_scores: z.ZodObject<{ cells: z.ZodRecord<z.ZodString, z.ZodNumber>; }, z.core.$strip>; }, z.core.$strip>; declare const MailAttachmentMatchFeaturesSchema: z.ZodObject<{ chunk_vector_score: z.ZodOptional<z.ZodNumber>; scaled_bm25_chunks: z.ZodOptional<z.ZodNumber>; scaled_bm25_filename: z.ZodOptional<z.ZodNumber>; chunk_scores: z.ZodObject<{ cells: z.ZodRecord<z.ZodString, z.ZodNumber>; }, z.core.$strip>; }, z.core.$strip>; export type FileMatchFeatures = z.infer<typeof FileMatchFeaturesSchema>; export type MailMatchFeatures = z.infer<typeof MailMatchFeaturesSchema>; export type MailAttachmentMatchFeatures = z.infer<typeof MailAttachmentMatchFeaturesSchema>; declare const DataSourceFileMatchFeaturesSchema: z.ZodObject<{ "bm25(fileName)": z.ZodOptional<z.ZodNumber>; "bm25(chunks)": z.ZodOptional<z.ZodNumber>; "closeness(field, chunk_embeddings)": z.ZodOptional<z.ZodNumber>; chunk_scores: z.ZodOptional<z.ZodObject<{ cells: z.ZodRecord<z.ZodString, z.ZodNumber>; }, z.core.$strip>>; }, z.core.$strip>; export type DataSourceFileMatchFeatures = z.infer<typeof DataSourceFileMatchFeaturesSchema>; export declare const VespaMatchFeatureSchema: z.ZodUnion<readonly [z.ZodObject<{ "bm25(title)": z.ZodOptional<z.ZodNumber>; "bm25(chunks)": z.ZodOptional<z.ZodNumber>; "closeness(field, chunk_embeddings)": z.ZodOptional<z.ZodNumber>; chunk_scores: z.ZodObject<{ cells: z.ZodRecord<z.ZodString, z.ZodNumber>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ "bm25(subject)": z.ZodOptional<z.ZodNumber>; "bm25(chunks)": z.ZodOptional<z.ZodNumber>; "bm25(attachmentFilenames)": z.ZodOptional<z.ZodNumber>; chunk_scores: z.ZodObject<{ cells: z.ZodRecord<z.ZodString, z.ZodNumber>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ chunk_vector_score: z.ZodOptional<z.ZodNumber>; scaled_bm25_chunks: z.ZodOptional<z.ZodNumber>; scaled_bm25_filename: z.ZodOptional<z.ZodNumber>; chunk_scores: z.ZodObject<{ cells: z.ZodRecord<z.ZodString, z.ZodNumber>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ "bm25(fileName)": z.ZodOptional<z.ZodNumber>; "bm25(chunks)": z.ZodOptional<z.ZodNumber>; "closeness(field, chunk_embeddings)": z.ZodOptional<z.ZodNumber>; chunk_scores: z.ZodOptional<z.ZodObject<{ cells: z.ZodRecord<z.ZodString, z.ZodNumber>; }, z.core.$strip>>; }, z.core.$strip>]>; export declare const VespaDataSourceSchemaBase: z.ZodObject<{ docId: z.ZodString; name: z.ZodString; createdBy: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>; export type VespaDataSource = z.infer<typeof VespaDataSourceSchemaBase>; export declare const VespaDataSourceSearchSchema: z.ZodObject<{ docId: z.ZodString; name: z.ZodString; createdBy: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; sddocname: z.ZodLiteral<"datasource">; matchfeatures: z.ZodOptional<z.ZodAny>; rankfeatures: z.ZodOptional<z.ZodAny>; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>; export type VespaDataSourceSearch = z.infer<typeof VespaDataSourceSearchSchema>; export declare const VespaDataSourceFileSchemaBase: z.ZodObject<{ docId: z.ZodString; description: z.ZodOptional<z.ZodString>; app: z.ZodLiteral<Apps.DataSource>; fileName: z.ZodOptional<z.ZodString>; fileSize: z.ZodOptional<z.ZodNumber>; chunks: z.ZodArray<z.ZodString>; image_chunks: z.ZodOptional<z.ZodArray<z.ZodString>>; chunks_pos: z.ZodOptional<z.ZodArray<z.ZodNumber>>; image_chunks_pos: z.ZodOptional<z.ZodArray<z.ZodNumber>>; uploadedBy: z.ZodString; duration: z.ZodOptional<z.ZodNumber>; mimeType: z.ZodOptional<z.ZodString>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; dataSourceRef: z.ZodString; metadata: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export type VespaDataSourceFile = z.infer<typeof VespaDataSourceFileSchemaBase>; export declare const VespaDataSourceFileSearchSchema: z.ZodObject<{ docId: z.ZodString; description: z.ZodOptional<z.ZodString>; app: z.ZodLiteral<Apps.DataSource>; fileName: z.ZodOptional<z.ZodString>; fileSize: z.ZodOptional<z.ZodNumber>; chunks: z.ZodArray<z.ZodString>; image_chunks: z.ZodOptional<z.ZodArray<z.ZodString>>; chunks_pos: z.ZodOptional<z.ZodArray<z.ZodNumber>>; image_chunks_pos: z.ZodOptional<z.ZodArray<z.ZodNumber>>; uploadedBy: z.ZodString; duration: z.ZodOptional<z.ZodNumber>; mimeType: z.ZodOptional<z.ZodString>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; dataSourceRef: z.ZodString; metadata: z.ZodOptional<z.ZodString>; sddocname: z.ZodLiteral<"datasource_file">; matchfeatures: z.ZodObject<{ "bm25(fileName)": z.ZodOptional<z.ZodNumber>; "bm25(chunks)": z.ZodOptional<z.ZodNumber>; "closeness(field, chunk_embeddings)": z.ZodOptional<z.ZodNumber>; chunk_scores: z.ZodOptional<z.ZodObject<{ cells: z.ZodRecord<z.ZodString, z.ZodNumber>; }, z.core.$strip>>; }, z.core.$strip>; rankfeatures: z.ZodOptional<z.ZodAny>; dataSourceName: z.ZodOptional<z.ZodString>; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; chunks_summary: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{ chunk: z.ZodString; score: z.ZodNumber; index: z.ZodNumber; }, z.core.$strip>]>>>; image_chunks_summary: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{ chunk: z.ZodString; score: z.ZodNumber; index: z.ZodNumber; }, z.core.$strip>]>>>; chunks_pos_summary: z.ZodOptional<z.ZodArray<z.ZodNumber>>; image_chunks_pos_summary: z.ZodOptional<z.ZodArray<z.ZodNumber>>; }, z.core.$strip>; export type VespaDataSourceFileSearch = z.infer<typeof VespaDataSourceFileSearchSchema>; export declare const VespaFileSearchSchema: z.ZodObject<{ docId: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof DriveEntity>; title: z.ZodString; url: z.ZodNullable<z.ZodString>; parentId: z.ZodNullable<z.ZodString>; chunks: z.ZodArray<z.ZodString>; owner: z.ZodNullable<z.ZodString>; ownerEmail: z.ZodNullable<z.ZodString>; photoLink: z.ZodNullable<z.ZodString>; permissions: z.ZodArray<z.ZodString>; mimeType: z.ZodNullable<z.ZodString>; metadata: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodObject<{ spreadsheetId: z.ZodString; totalSheets: z.ZodNumber; }, z.core.$strip>]>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; sddocname: z.ZodLiteral<"file">; matchfeatures: z.ZodObject<{ "bm25(title)": z.ZodOptional<z.ZodNumber>; "bm25(chunks)": z.ZodOptional<z.ZodNumber>; "closeness(field, chunk_embeddings)": z.ZodOptional<z.ZodNumber>; chunk_scores: z.ZodObject<{ cells: z.ZodRecord<z.ZodString, z.ZodNumber>; }, z.core.$strip>; }, z.core.$strip>; rankfeatures: z.ZodOptional<z.ZodAny>; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; chunks_summary: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{ chunk: z.ZodString; score: z.ZodNumber; index: z.ZodNumber; }, z.core.$strip>]>>>; }, z.core.$strip>; export declare const VespaFileGetSchema: z.ZodObject<{ docId: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof DriveEntity>; title: z.ZodString; url: z.ZodNullable<z.ZodString>; parentId: z.ZodNullable<z.ZodString>; chunks: z.ZodArray<z.ZodString>; owner: z.ZodNullable<z.ZodString>; ownerEmail: z.ZodNullable<z.ZodString>; photoLink: z.ZodNullable<z.ZodString>; permissions: z.ZodArray<z.ZodString>; mimeType: z.ZodNullable<z.ZodString>; metadata: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodObject<{ spreadsheetId: z.ZodString; totalSheets: z.ZodNumber; }, z.core.$strip>]>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>; export declare const VespaUserSchema: z.ZodObject<{ docId: z.ZodString; name: z.ZodOptional<z.ZodString>; email: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof GooglePeopleEntity>; gender: z.ZodOptional<z.ZodString>; photoLink: z.ZodOptional<z.ZodString>; aliases: z.ZodOptional<z.ZodArray<z.ZodString>>; language: z.ZodOptional<z.ZodString>; includeInGlobalAddressList: z.ZodOptional<z.ZodBoolean>; isAdmin: z.ZodOptional<z.ZodBoolean>; isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>; suspended: z.ZodOptional<z.ZodBoolean>; archived: z.ZodOptional<z.ZodBoolean>; urls: z.ZodOptional<z.ZodArray<z.ZodString>>; rankfeatures: z.ZodOptional<z.ZodAny>; orgName: z.ZodOptional<z.ZodString>; orgJobTitle: z.ZodOptional<z.ZodString>; orgDepartment: z.ZodOptional<z.ZodString>; orgLocation: z.ZodOptional<z.ZodString>; orgDescription: z.ZodOptional<z.ZodString>; creationTime: z.ZodNumber; lastLoggedIn: z.ZodOptional<z.ZodNumber>; birthday: z.ZodOptional<z.ZodNumber>; occupations: z.ZodOptional<z.ZodArray<z.ZodString>>; userDefined: z.ZodOptional<z.ZodArray<z.ZodString>>; customerId: z.ZodOptional<z.ZodString>; clientData: z.ZodOptional<z.ZodArray<z.ZodString>>; owner: z.ZodOptional<z.ZodString>; sddocname: z.ZodLiteral<"user">; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>; export declare const AttachmentSchema: z.ZodObject<{ fileType: z.ZodString; fileSize: z.ZodNumber; }, z.core.$strip>; export declare const MailSchema: z.ZodObject<{ docId: z.ZodString; threadId: z.ZodString; mailId: z.ZodOptional<z.ZodString>; subject: z.ZodDefault<z.ZodString>; chunks: z.ZodArray<z.ZodString>; timestamp: z.ZodNumber; app: z.ZodEnum<typeof Apps>; userMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; entity: z.ZodEnum<typeof MailEntity>; permissions: z.ZodArray<z.ZodString>; from: z.ZodString; to: z.ZodArray<z.ZodString>; cc: z.ZodArray<z.ZodString>; bcc: z.ZodArray<z.ZodString>; mimeType: z.ZodString; attachmentFilenames: z.ZodArray<z.ZodString>; attachments: z.ZodArray<z.ZodObject<{ fileType: z.ZodString; fileSize: z.ZodNumber; }, z.core.$strip>>; labels: z.ZodArray<z.ZodString>; }, z.core.$strip>; export declare const VespaMailSchema: z.ZodObject<{ threadId: z.ZodString; mailId: z.ZodOptional<z.ZodString>; subject: z.ZodDefault<z.ZodString>; chunks: z.ZodArray<z.ZodString>; timestamp: z.ZodNumber; app: z.ZodEnum<typeof Apps>; userMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; entity: z.ZodEnum<typeof MailEntity>; permissions: z.ZodArray<z.ZodString>; from: z.ZodString; to: z.ZodArray<z.ZodString>; cc: z.ZodArray<z.ZodString>; bcc: z.ZodArray<z.ZodString>; mimeType: z.ZodString; attachmentFilenames: z.ZodArray<z.ZodString>; attachments: z.ZodArray<z.ZodObject<{ fileType: z.ZodString; fileSize: z.ZodNumber; }, z.core.$strip>>; labels: z.ZodArray<z.ZodString>; docId: z.ZodString; }, z.core.$strip>; export declare const MailAttachmentSchema: z.ZodObject<{ docId: z.ZodString; mailId: z.ZodString; threadId: z.ZodString; partId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof MailAttachmentEntity>; chunks: z.ZodArray<z.ZodString>; timestamp: z.ZodNumber; permissions: z.ZodArray<z.ZodString>; filename: z.ZodString; fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>; fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; }, z.core.$strip>; export declare const VespaMailAttachmentSchema: z.ZodObject<{ docId: z.ZodString; mailId: z.ZodString; threadId: z.ZodString; partId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof MailAttachmentEntity>; chunks: z.ZodArray<z.ZodString>; timestamp: z.ZodNumber; permissions: z.ZodArray<z.ZodString>; filename: z.ZodString; fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>; fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; }, z.core.$strip>; export declare const VespaEventSchema: z.ZodObject<{ docId: z.ZodString; name: z.ZodString; description: z.ZodString; url: z.ZodString; status: z.ZodString; location: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof CalendarEntity>; creator: z.ZodObject<{ email: z.ZodString; displayName: z.ZodString; }, z.core.$strip>; organizer: z.ZodObject<{ email: z.ZodString; displayName: z.ZodString; }, z.core.$strip>; attendees: z.ZodArray<z.ZodObject<{ email: z.ZodString; displayName: z.ZodString; }, z.core.$strip>>; attendeesNames: z.ZodArray<z.ZodString>; startTime: z.ZodNumber; endTime: z.ZodNumber; attachmentFilenames: z.ZodArray<z.ZodString>; attachments: z.ZodArray<z.ZodObject<{ fileId: z.ZodString; title: z.ZodString; fileUrl: z.ZodString; mimeType: z.ZodString; }, z.core.$strip>>; recurrence: z.ZodArray<z.ZodString>; baseUrl: z.ZodString; joiningLink: z.ZodString; permissions: z.ZodArray<z.ZodString>; cancelledInstances: z.ZodArray<z.ZodString>; defaultStartTime: z.ZodBoolean; }, z.core.$strip>; export declare const VespaMailSearchSchema: z.ZodObject<{ threadId: z.ZodString; mailId: z.ZodOptional<z.ZodString>; subject: z.ZodDefault<z.ZodString>; chunks: z.ZodArray<z.ZodString>; timestamp: z.ZodNumber; app: z.ZodEnum<typeof Apps>; userMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; entity: z.ZodEnum<typeof MailEntity>; permissions: z.ZodArray<z.ZodString>; from: z.ZodString; to: z.ZodArray<z.ZodString>; cc: z.ZodArray<z.ZodString>; bcc: z.ZodArray<z.ZodString>; mimeType: z.ZodString; attachmentFilenames: z.ZodArray<z.ZodString>; attachments: z.ZodArray<z.ZodObject<{ fileType: z.ZodString; fileSize: z.ZodNumber; }, z.core.$strip>>; labels: z.ZodArray<z.ZodString>; docId: z.ZodString; sddocname: z.ZodLiteral<"mail">; matchfeatures: z.ZodObject<{ "bm25(subject)": z.ZodOptional<z.ZodNumber>; "bm25(chunks)": z.ZodOptional<z.ZodNumber>; "bm25(attachmentFilenames)": z.ZodOptional<z.ZodNumber>; chunk_scores: z.ZodObject<{ cells: z.ZodRecord<z.ZodString, z.ZodNumber>; }, z.core.$strip>; }, z.core.$strip>; rankfeatures: z.ZodOptional<z.ZodAny>; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; chunks_summary: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{ chunk: z.ZodString; score: z.ZodNumber; index: z.ZodNumber; }, z.core.$strip>]>>>; }, z.core.$strip>; export declare const VespaMailAttachmentSearchSchema: z.ZodObject<{ docId: z.ZodString; mailId: z.ZodString; threadId: z.ZodString; partId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof MailAttachmentEntity>; chunks: z.ZodArray<z.ZodString>; timestamp: z.ZodNumber; permissions: z.ZodArray<z.ZodString>; filename: z.ZodString; fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>; fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; sddocname: z.ZodLiteral<"mail_attachment">; matchfeatures: z.ZodObject<{ chunk_vector_score: z.ZodOptional<z.ZodNumber>; scaled_bm25_chunks: z.ZodOptional<z.ZodNumber>; scaled_bm25_filename: z.ZodOptional<z.ZodNumber>; chunk_scores: z.ZodObject<{ cells: z.ZodRecord<z.ZodString, z.ZodNumber>; }, z.core.$strip>; }, z.core.$strip>; rankfeatures: z.ZodOptional<z.ZodAny>; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; chunks_summary: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{ chunk: z.ZodString; score: z.ZodNumber; index: z.ZodNumber; }, z.core.$strip>]>>>; }, z.core.$strip>; export declare const VespaEventSearchSchema: z.ZodObject<{ docId: z.ZodString; name: z.ZodString; description: z.ZodString; url: z.ZodString; status: z.ZodString; location: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof CalendarEntity>; creator: z.ZodObject<{ email: z.ZodString; displayName: z.ZodString; }, z.core.$strip>; organizer: z.ZodObject<{ email: z.ZodString; displayName: z.ZodString; }, z.core.$strip>; attendees: z.ZodArray<z.ZodObject<{ email: z.ZodString; displayName: z.ZodString; }, z.core.$strip>>; attendeesNames: z.ZodArray<z.ZodString>; startTime: z.ZodNumber; endTime: z.ZodNumber; attachmentFilenames: z.ZodArray<z.ZodString>; attachments: z.ZodArray<z.ZodObject<{ fileId: z.ZodString; title: z.ZodString; fileUrl: z.ZodString; mimeType: z.ZodString; }, z.core.$strip>>; recurrence: z.ZodArray<z.ZodString>; baseUrl: z.ZodString; joiningLink: z.ZodString; permissions: z.ZodArray<z.ZodString>; cancelledInstances: z.ZodArray<z.ZodString>; defaultStartTime: z.ZodBoolean; sddocname: z.ZodLiteral<"event">; rankfeatures: z.ZodOptional<z.ZodAny>; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>; export declare const VespaUserQueryHistorySchema: z.ZodObject<{ docId: z.ZodString; query_text: z.ZodString; timestamp: z.ZodNumber; count: z.ZodNumber; }, z.core.$strip>; export declare const VespaUserQueryHGetSchema: z.ZodObject<{ docId: z.ZodString; query_text: z.ZodString; timestamp: z.ZodNumber; count: z.ZodNumber; sddocname: z.ZodLiteral<"user_query">; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>; export declare const VespaMailGetSchema: z.ZodObject<{ threadId: z.ZodString; mailId: z.ZodOptional<z.ZodString>; subject: z.ZodDefault<z.ZodString>; chunks: z.ZodArray<z.ZodString>; timestamp: z.ZodNumber; app: z.ZodEnum<typeof Apps>; userMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; entity: z.ZodEnum<typeof MailEntity>; permissions: z.ZodArray<z.ZodString>; from: z.ZodString; to: z.ZodArray<z.ZodString>; cc: z.ZodArray<z.ZodString>; bcc: z.ZodArray<z.ZodString>; mimeType: z.ZodString; attachmentFilenames: z.ZodArray<z.ZodString>; attachments: z.ZodArray<z.ZodObject<{ fileType: z.ZodString; fileSize: z.ZodNumber; }, z.core.$strip>>; labels: z.ZodArray<z.ZodString>; docId: z.ZodString; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>; export declare const VespaMailAttachmentGetSchema: z.ZodObject<{ docId: z.ZodString; mailId: z.ZodString; threadId: z.ZodString; partId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof MailAttachmentEntity>; chunks: z.ZodArray<z.ZodString>; timestamp: z.ZodNumber; permissions: z.ZodArray<z.ZodString>; filename: z.ZodString; fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>; fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>; export declare const VespaChatMessageSchema: z.ZodObject<{ docId: z.ZodString; teamId: z.ZodString; channelId: z.ZodString; text: z.ZodString; userId: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof SlackEntity>; name: z.ZodString; username: z.ZodString; image: z.ZodString; channelName: z.ZodOptional<z.ZodString>; isIm: z.ZodOptional<z.ZodBoolean>; isMpim: z.ZodOptional<z.ZodBoolean>; isPrivate: z.ZodOptional<z.ZodBoolean>; permissions: z.ZodOptional<z.ZodArray<z.ZodString>>; teamName: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; createdAt: z.ZodNumber; teamRef: z.ZodString; threadId: z.ZodDefault<z.ZodString>; attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>; mentions: z.ZodArray<z.ZodString>; updatedAt: z.ZodNumber; deletedAt: z.ZodNumber; metadata: z.ZodString; }, z.core.$strip>; export declare const VespaChatMessageSearchSchema: z.ZodObject<{ docId: z.ZodString; teamId: z.ZodString; channelId: z.ZodString; text: z.ZodString; userId: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof SlackEntity>; name: z.ZodString; username: z.ZodString; image: z.ZodString; channelName: z.ZodOptional<z.ZodString>; isIm: z.ZodOptional<z.ZodBoolean>; isMpim: z.ZodOptional<z.ZodBoolean>; isPrivate: z.ZodOptional<z.ZodBoolean>; permissions: z.ZodOptional<z.ZodArray<z.ZodString>>; teamName: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; createdAt: z.ZodNumber; teamRef: z.ZodString; threadId: z.ZodDefault<z.ZodString>; attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>; mentions: z.ZodArray<z.ZodString>; updatedAt: z.ZodNumber; deletedAt: z.ZodNumber; metadata: z.ZodString; sddocname: z.ZodLiteral<"chat_message">; matchfeatures: z.ZodObject<{ vector_score: z.ZodOptional<z.ZodNumber>; combined_nativeRank: z.ZodOptional<z.ZodNumber>; "nativeRank(text)": z.ZodOptional<z.ZodNumber>; "nativeRank(username)": z.ZodOptional<z.ZodNumber>; "nativeRank(name)": z.ZodOptional<z.ZodNumber>; }, z.core.$strip>; rankfeatures: z.ZodOptional<z.ZodAny>; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; chunks_summary: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$strip>; export declare const VespaChatMessageGetSchema: z.ZodObject<{ docId: z.ZodString; teamId: z.ZodString; channelId: z.ZodString; text: z.ZodString; userId: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof SlackEntity>; name: z.ZodString; username: z.ZodString; image: z.ZodString; channelName: z.ZodOptional<z.ZodString>; isIm: z.ZodOptional<z.ZodBoolean>; isMpim: z.ZodOptional<z.ZodBoolean>; isPrivate: z.ZodOptional<z.ZodBoolean>; permissions: z.ZodOptional<z.ZodArray<z.ZodString>>; teamName: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; createdAt: z.ZodNumber; teamRef: z.ZodString; threadId: z.ZodDefault<z.ZodString>; attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>; mentions: z.ZodArray<z.ZodString>; updatedAt: z.ZodNumber; deletedAt: z.ZodNumber; metadata: z.ZodString; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>; export declare const VespaChatUserSchema: z.ZodObject<{ docId: z.ZodString; name: z.ZodString; title: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof SlackEntity>; image: z.ZodString; email: z.ZodString; statusText: z.ZodString; tz: z.ZodString; teamId: z.ZodString; deleted: z.ZodBoolean; isAdmin: z.ZodBoolean; updatedAt: z.ZodNumber; }, z.core.$strip>; export declare const VespaChatUserGetSchema: z.ZodObject<{ id: z.ZodString; pathId: z.ZodString; fields: z.ZodObject<{ docId: z.ZodString; name: z.ZodString; title: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof SlackEntity>; image: z.ZodString; email: z.ZodString; statusText: z.ZodString; tz: z.ZodString; teamId: z.ZodString; deleted: z.ZodBoolean; isAdmin: z.ZodBoolean; updatedAt: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; export type ChatUserCore = z.infer<typeof VespaChatUserGetSchema>; export declare const VespaChatUserSearchSchema: z.ZodObject<{ docId: z.ZodString; name: z.ZodString; title: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof SlackEntity>; image: z.ZodString; email: z.ZodString; statusText: z.ZodString; tz: z.ZodString; teamId: z.ZodString; deleted: z.ZodBoolean; isAdmin: z.ZodBoolean; updatedAt: z.ZodNumber; sddocname: z.ZodLiteral<"chat_user">; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>; export declare const VespaChatContainerSchema: z.ZodObject<{ docId: z.ZodString; name: z.ZodString; channelName: z.ZodString; creator: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof SlackEntity>; isPrivate: z.ZodBoolean; isArchived: z.ZodBoolean; isGeneral: z.ZodBoolean; isIm: z.ZodBoolean; isMpim: z.ZodBoolean; domain: z.ZodOptional<z.ZodString>; permissions: z.ZodArray<z.ZodString>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; lastSyncedAt: z.ZodNumber; topic: z.ZodString; description: z.ZodString; count: z.ZodNumber; }, z.core.$strip>; export declare const VespaChatContainerSearchSchema: z.ZodObject<{ docId: z.ZodString; name: z.ZodString; channelName: z.ZodString; creator: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof SlackEntity>; isPrivate: z.ZodBoolean; isArchived: z.ZodBoolean; isGeneral: z.ZodBoolean; isIm: z.ZodBoolean; isMpim: z.ZodBoolean; domain: z.ZodOptional<z.ZodString>; permissions: z.ZodArray<z.ZodString>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; lastSyncedAt: z.ZodNumber; topic: z.ZodString; description: z.ZodString; count: z.ZodNumber; sddocname: z.ZodLiteral<"chat_container">; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>; export declare const ChatContainerMatchFeaturesSchema: z.ZodObject<{ "bm25(name)": z.ZodOptional<z.ZodNumber>; "bm25(topic)": z.ZodOptional<z.ZodNumber>; "bm25(description)": z.ZodOptional<z.ZodNumber>; "closeness(field, chunk_embeddings)": z.ZodOptional<z.ZodNumber>; }, z.core.$strip>; export declare const VespaChatTeamSchema: z.ZodObject<{ docId: z.ZodString; name: z.ZodString; app: z.ZodEnum<typeof Apps>; icon: z.ZodString; url: z.ZodString; domain: z.ZodString; email_domain: z.ZodString; own: z.ZodBoolean; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; count: z.ZodNumber; }, z.core.$strip>; export declare const VespaChatTeamGetSchema: z.ZodObject<{ docId: z.ZodString; name: z.ZodString; app: z.ZodEnum<typeof Apps>; icon: z.ZodString; url: z.ZodString; domain: z.ZodString; email_domain: z.ZodString; own: z.ZodBoolean; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; count: z.ZodNumber; sddocname: z.ZodLiteral<"chat_team">; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>; export type VespaChatTeam = z.infer<typeof VespaChatTeamSchema>; export type VespaChatTeamGet = z.infer<typeof VespaChatTeamGetSchema>; export type VespaChatUserType = z.infer<typeof VespaChatUserSchema>; export declare const VespaSearchFieldsUnionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ docId: z.ZodString; name: z.ZodOptional<z.ZodString>; email: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof GooglePeopleEntity>; gender: z.ZodOptional<z.ZodString>; photoLink: z.ZodOptional<z.ZodString>; aliases: z.ZodOptional<z.ZodArray<z.ZodString>>; language: z.ZodOptional<z.ZodString>; includeInGlobalAddressList: z.ZodOptional<z.ZodBoolean>; isAdmin: z.ZodOptional<z.ZodBoolean>; isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>; suspended: z.ZodOptional<z.ZodBoolean>; archived: z.ZodOptional<z.ZodBoolean>; urls: z.ZodOptional<z.ZodArray<z.ZodString>>; rankfeatures: z.ZodOptional<z.ZodAny>; orgName: z.ZodOptional<z.ZodString>; orgJobTitle: z.ZodOptional<z.ZodString>; orgDepartment: z.ZodOptional<z.ZodString>; orgLocation: z.ZodOptional<z.ZodString>; orgDescription: z.ZodOptional<z.ZodString>; creationTime: z.ZodNumber; lastLoggedIn: z.ZodOptional<z.ZodNumber>; birthday: z.ZodOptional<z.ZodNumber>; occupations: z.ZodOptional<z.ZodArray<z.ZodString>>; userDefined: z.ZodOptional<z.ZodArray<z.ZodString>>; customerId: z.ZodOptional<z.ZodString>; clientData: z.ZodOptional<z.ZodArray<z.ZodString>>; owner: z.ZodOptional<z.ZodString>; sddocname: z.ZodLiteral<"user">; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>, z.ZodObject<{ docId: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof DriveEntity>; title: z.ZodString; url: z.ZodNullable<z.ZodString>; parentId: z.ZodNullable<z.ZodString>; chunks: z.ZodArray<z.ZodString>; owner: z.ZodNullable<z.ZodString>; ownerEmail: z.ZodNullable<z.ZodString>; photoLink: z.ZodNullable<z.ZodString>; permissions: z.ZodArray<z.ZodString>; mimeType: z.ZodNullable<z.ZodString>; metadata: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodObject<{ spreadsheetId: z.ZodString; totalSheets: z.ZodNumber; }, z.core.$strip>]>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; sddocname: z.ZodLiteral<"file">; matchfeatures: z.ZodObject<{ "bm25(title)": z.ZodOptional<z.ZodNumber>; "bm25(chunks)": z.ZodOptional<z.ZodNumber>; "closeness(field, chunk_embeddings)": z.ZodOptional<z.ZodNumber>; chunk_scores: z.ZodObject<{ cells: z.ZodRecord<z.ZodString, z.ZodNumber>; }, z.core.$strip>; }, z.core.$strip>; rankfeatures: z.ZodOptional<z.ZodAny>; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; chunks_summary: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{ chunk: z.ZodString; score: z.ZodNumber; index: z.ZodNumber; }, z.core.$strip>]>>>; }, z.core.$strip>, z.ZodObject<{ threadId: z.ZodString; mailId: z.ZodOptional<z.ZodString>; subject: z.ZodDefault<z.ZodString>; chunks: z.ZodArray<z.ZodString>; timestamp: z.ZodNumber; app: z.ZodEnum<typeof Apps>; userMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; entity: z.ZodEnum<typeof MailEntity>; permissions: z.ZodArray<z.ZodString>; from: z.ZodString; to: z.ZodArray<z.ZodString>; cc: z.ZodArray<z.ZodString>; bcc: z.ZodArray<z.ZodString>; mimeType: z.ZodString; attachmentFilenames: z.ZodArray<z.ZodString>; attachments: z.ZodArray<z.ZodObject<{ fileType: z.ZodString; fileSize: z.ZodNumber; }, z.core.$strip>>; labels: z.ZodArray<z.ZodString>; docId: z.ZodString; sddocname: z.ZodLiteral<"mail">; matchfeatures: z.ZodObject<{ "bm25(subject)": z.ZodOptional<z.ZodNumber>; "bm25(chunks)": z.ZodOptional<z.ZodNumber>; "bm25(attachmentFilenames)": z.ZodOptional<z.ZodNumber>; chunk_scores: z.ZodObject<{ cells: z.ZodRecord<z.ZodString, z.ZodNumber>; }, z.core.$strip>; }, z.core.$strip>; rankfeatures: z.ZodOptional<z.ZodAny>; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; chunks_summary: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{ chunk: z.ZodString; score: z.ZodNumber; index: z.ZodNumber; }, z.core.$strip>]>>>; }, z.core.$strip>, z.ZodObject<{ docId: z.ZodString; name: z.ZodString; description: z.ZodString; url: z.ZodString; status: z.ZodString; location: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof CalendarEntity>; creator: z.ZodObject<{ email: z.ZodString; displayName: z.ZodString; }, z.core.$strip>; organizer: z.ZodObject<{ email: z.ZodString; displayName: z.ZodString; }, z.core.$strip>; attendees: z.ZodArray<z.ZodObject<{ email: z.ZodString; displayName: z.ZodString; }, z.core.$strip>>; attendeesNames: z.ZodArray<z.ZodString>; startTime: z.ZodNumber; endTime: z.ZodNumber; attachmentFilenames: z.ZodArray<z.ZodString>; attachments: z.ZodArray<z.ZodObject<{ fileId: z.ZodString; title: z.ZodString; fileUrl: z.ZodString; mimeType: z.ZodString; }, z.core.$strip>>; recurrence: z.ZodArray<z.ZodString>; baseUrl: z.ZodString; joiningLink: z.ZodString; permissions: z.ZodArray<z.ZodString>; cancelledInstances: z.ZodArray<z.ZodString>; defaultStartTime: z.ZodBoolean; sddocname: z.ZodLiteral<"event">; rankfeatures: z.ZodOptional<z.ZodAny>; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>, z.ZodObject<{ docId: z.ZodString; query_text: z.ZodString; timestamp: z.ZodNumber; count: z.ZodNumber; sddocname: z.ZodLiteral<"user_query">; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>, z.ZodObject<{ docId: z.ZodString; mailId: z.ZodString; threadId: z.ZodString; partId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof MailAttachmentEntity>; chunks: z.ZodArray<z.ZodString>; timestamp: z.ZodNumber; permissions: z.ZodArray<z.ZodString>; filename: z.ZodString; fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>; fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; sddocname: z.ZodLiteral<"mail_attachment">; matchfeatures: z.ZodObject<{ chunk_vector_score: z.ZodOptional<z.ZodNumber>; scaled_bm25_chunks: z.ZodOptional<z.ZodNumber>; scaled_bm25_filename: z.ZodOptional<z.ZodNumber>; chunk_scores: z.ZodObject<{ cells: z.ZodRecord<z.ZodString, z.ZodNumber>; }, z.core.$strip>; }, z.core.$strip>; rankfeatures: z.ZodOptional<z.ZodAny>; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; chunks_summary: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{ chunk: z.ZodString; score: z.ZodNumber; index: z.ZodNumber; }, z.core.$strip>]>>>; }, z.core.$strip>, z.ZodObject<{ docId: z.ZodString; name: z.ZodString; channelName: z.ZodString; creator: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof SlackEntity>; isPrivate: z.ZodBoolean; isArchived: z.ZodBoolean; isGeneral: z.ZodBoolean; isIm: z.ZodBoolean; isMpim: z.ZodBoolean; domain: z.ZodOptional<z.ZodString>; permissions: z.ZodArray<z.ZodString>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; lastSyncedAt: z.ZodNumber; topic: z.ZodString; description: z.ZodString; count: z.ZodNumber; sddocname: z.ZodLiteral<"chat_container">; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>, z.ZodObject<{ docId: z.ZodString; name: z.ZodString; title: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof SlackEntity>; image: z.ZodString; email: z.ZodString; statusText: z.ZodString; tz: z.ZodString; teamId: z.ZodString; deleted: z.ZodBoolean; isAdmin: z.ZodBoolean; updatedAt: z.ZodNumber; sddocname: z.ZodLiteral<"chat_user">; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>, z.ZodObject<{ docId: z.ZodString; teamId: z.ZodString; channelId: z.ZodString; text: z.ZodString; userId: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof SlackEntity>; name: z.ZodString; username: z.ZodString; image: z.ZodString; channelName: z.ZodOptional<z.ZodString>; isIm: z.ZodOptional<z.ZodBoolean>; isMpim: z.ZodOptional<z.ZodBoolean>; isPrivate: z.ZodOptional<z.ZodBoolean>; permissions: z.ZodOptional<z.ZodArray<z.ZodString>>; teamName: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; createdAt: z.ZodNumber; teamRef: z.ZodString; threadId: z.ZodDefault<z.ZodString>; attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>; mentions: z.ZodArray<z.ZodString>; updatedAt: z.ZodNumber; deletedAt: z.ZodNumber; metadata: z.ZodString; sddocname: z.ZodLiteral<"chat_message">; matchfeatures: z.ZodObject<{ vector_score: z.ZodOptional<z.ZodNumber>; combined_nativeRank: z.ZodOptional<z.ZodNumber>; "nativeRank(text)": z.ZodOptional<z.ZodNumber>; "nativeRank(username)": z.ZodOptional<z.ZodNumber>; "nativeRank(name)": z.ZodOptional<z.ZodNumber>; }, z.core.$strip>; rankfeatures: z.ZodOptional<z.ZodAny>; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; chunks_summary: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$strip>, z.ZodObject<{ docId: z.ZodString; name: z.ZodString; createdBy: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; sddocname: z.ZodLiteral<"datasource">; matchfeatures: z.ZodOptional<z.ZodAny>; rankfeatures: z.ZodOptional<z.ZodAny>; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>, z.ZodObject<{ docId: z.ZodString; description: z.ZodOptional<z.ZodString>; app: z.ZodLiteral<Apps.DataSource>; fileName: z.ZodOptional<z.ZodString>; fileSize: z.ZodOptional<z.ZodNumber>; chunks: z.ZodArray<z.ZodString>; image_chunks: z.ZodOptional<z.ZodArray<z.ZodString>>; chunks_pos: z.ZodOptional<z.ZodArray<z.ZodNumber>>; image_chunks_pos: z.ZodOptional<z.ZodArray<z.ZodNumber>>; uploadedBy: z.ZodString; duration: z.ZodOptional<z.ZodNumber>; mimeType: z.ZodOptional<z.ZodString>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; dataSourceRef: z.ZodString; metadata: z.ZodOptional<z.ZodString>; sddocname: z.ZodLiteral<"datasource_file">; matchfeatures: z.ZodObject<{ "bm25(fileName)": z.ZodOptional<z.ZodNumber>; "bm25(chunks)": z.ZodOptional<z.ZodNumber>; "closeness(field, chunk_embeddings)": z.ZodOptional<z.ZodNumber>; chunk_scores: z.ZodOptional<z.ZodObject<{ cells: z.ZodRecord<z.ZodString, z.ZodNumber>; }, z.core.$strip>>; }, z.core.$strip>; rankfeatures: z.ZodOptional<z.ZodAny>; dataSourceName: z.ZodOptional<z.ZodString>; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; chunks_summary: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{ chunk: z.ZodString; score: z.ZodNumber; index: z.ZodNumber; }, z.core.$strip>]>>>; image_chunks_summary: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{ chunk: z.ZodString; score: z.ZodNumber; index: z.ZodNumber; }, z.core.$strip>]>>>; chunks_pos_summary: z.ZodOptional<z.ZodArray<z.ZodNumber>>; image_chunks_pos_summary: z.ZodOptional<z.ZodArray<z.ZodNumber>>; }, z.core.$strip>]>; export declare const VespaDataSourceFileGetSchema: z.ZodObject<{ docId: z.ZodString; description: z.ZodOptional<z.ZodString>; app: z.ZodLiteral<Apps.DataSource>; fileName: z.ZodOptional<z.ZodString>; fileSize: z.ZodOptional<z.ZodNumber>; chunks: z.ZodArray<z.ZodString>; image_chunks: z.ZodOptional<z.ZodArray<z.ZodString>>; chunks_pos: z.ZodOptional<z.ZodArray<z.ZodNumber>>; image_chunks_pos: z.ZodOptional<z.ZodArray<z.ZodNumber>>; uploadedBy: z.ZodString; duration: z.ZodOptional<z.ZodNumber>; mimeType: z.ZodOptional<z.ZodString>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; dataSourceRef: z.ZodString; metadata: z.ZodOptional<z.ZodString>; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>; export type VespaDataSourceFileGet = z.infer<typeof VespaDataSourceFileGetSchema>; export declare const VespaGetFieldsSchema: z.ZodUnion<readonly [z.ZodObject<{ docId: z.ZodString; name: z.ZodOptional<z.ZodString>; email: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof GooglePeopleEntity>; gender: z.ZodOptional<z.ZodString>; photoLink: z.ZodOptional<z.ZodString>; aliases: z.ZodOptional<z.ZodArray<z.ZodString>>; language: z.ZodOptional<z.ZodString>; includeInGlobalAddressList: z.ZodOptional<z.ZodBoolean>; isAdmin: z.ZodOptional<z.ZodBoolean>; isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>; suspended: z.ZodOptional<z.ZodBoolean>; archived: z.ZodOptional<z.ZodBoolean>; urls: z.ZodOptional<z.ZodArray<z.ZodString>>; rankfeatures: z.ZodOptional<z.ZodAny>; orgName: z.ZodOptional<z.ZodString>; orgJobTitle: z.ZodOptional<z.ZodString>; orgDepartment: z.ZodOptional<z.ZodString>; orgLocation: z.ZodOptional<z.ZodString>; orgDescription: z.ZodOptional<z.ZodString>; creationTime: z.ZodNumber; lastLoggedIn: z.ZodOptional<z.ZodNumber>; birthday: z.ZodOptional<z.ZodNumber>; occupations: z.ZodOptional<z.ZodArray<z.ZodString>>; userDefined: z.ZodOptional<z.ZodArray<z.ZodString>>; customerId: z.ZodOptional<z.ZodString>; clientData: z.ZodOptional<z.ZodArray<z.ZodString>>; owner: z.ZodOptional<z.ZodString>; sddocname: z.ZodLiteral<"user">; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>, z.ZodObject<{ docId: z.ZodString; app: z.ZodEnum<typeof Apps>; entity: z.ZodEnum<typeof DriveEntity>; title: z.ZodString; url: z.ZodNullable<z.ZodString>; parentId: z.ZodNullable<z.ZodString>; chunks: z.ZodArray<z.ZodString>; owner: z.ZodNullable<z.ZodString>; ownerEmail: z.ZodNullable<z.ZodString>; photoLink: z.ZodNullable<z.ZodString>; permissions: z.ZodArray<z.ZodString>; mimeType: z.ZodNullable<z.ZodString>; metadata: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodObject<{ spreadsheetId: z.ZodString; totalSheets: z.ZodNumber; }, z.core.$strip>]>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; relevance: z.ZodNumber; source: z.ZodString; documentid: z.ZodString; }, z.core.$strip>, z.ZodObject<{ threadId: z.ZodString; mailId: z.ZodOptional<z.ZodString>; subject: z.ZodDefault<z.ZodString>; chunks: z.ZodArray<z.ZodString>; timestamp: z.ZodNumber; app: z.ZodEnum<typeof Apps>; userMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; entity: z.ZodEnum<typeof MailEntity>; permissions: z.ZodArray<z.ZodString>; from: z.ZodString; to: z.ZodArray<z.ZodString>; cc: z.ZodArray<z.ZodString>; bcc: z.ZodArray<z.ZodString>; mimeType: z.ZodString; attachmentFilenames: z.ZodArray<z.ZodString>; attachments: z.ZodArray<z.ZodObject<{ fileType: z.ZodString; fileSize: z.Zo