/* eslint-disable */ // @ts-nocheck - Circular reference errors in generated Convex component types are expected /** * Generated `api` utility. * * THIS CODE IS AUTOMATICALLY GENERATED. * * To regenerate, run `npx convex dev`. * @module */ import type * as agents_bugReportAgent from "../agents/bugReportAgent.js"; import type * as agents_feedbackAgent from "../agents/feedbackAgent.js"; import type * as agents_feedbackInterviewAgent from "../agents/feedbackInterviewAgent.js"; import type * as agents_index from "../agents/index.js"; import type * as bugReports from "../bugReports.js"; import type * as emails_bugReportEmails from "../emails/bugReportEmails.js"; import type * as emails_feedbackEmails from "../emails/feedbackEmails.js"; import type * as feedback from "../feedback.js"; import type * as index from "../index.js"; import type * as inputRequests from "../inputRequests.js"; import type * as supportTeams from "../supportTeams.js"; import type { ApiFromModules, FilterApi, FunctionReference, } from "convex/server"; import { anyApi, componentsGeneric } from "convex/server"; const fullApi: ApiFromModules<{ "agents/bugReportAgent": typeof agents_bugReportAgent; "agents/feedbackAgent": typeof agents_feedbackAgent; "agents/feedbackInterviewAgent": typeof agents_feedbackInterviewAgent; "agents/index": typeof agents_index; bugReports: typeof bugReports; "emails/bugReportEmails": typeof emails_bugReportEmails; "emails/feedbackEmails": typeof emails_feedbackEmails; feedback: typeof feedback; index: typeof index; inputRequests: typeof inputRequests; supportTeams: typeof supportTeams; }> = anyApi as any; /** * A utility for referencing Convex functions in your app's public API. * * Usage: * ```js * const myFunctionReference = api.myModule.myFunction; * ``` */ export const api: FilterApi< typeof fullApi, FunctionReference > = anyApi as any; /** * A utility for referencing Convex functions in your app's internal API. * * Usage: * ```js * const myFunctionReference = internal.myModule.myFunction; * ``` */ export const internal: FilterApi< typeof fullApi, FunctionReference > = anyApi as any; export const components = componentsGeneric() as unknown as { agent: { apiKeys: { destroy: FunctionReference< "mutation", "internal", { apiKey?: string; name?: string }, | "missing" | "deleted" | "name mismatch" | "must provide either apiKey or name" >; issue: FunctionReference< "mutation", "internal", { name?: string }, string >; validate: FunctionReference< "query", "internal", { apiKey: string }, boolean >; }; files: { addFile: FunctionReference< "mutation", "internal", { filename?: string; hash: string; mimeType: string; storageId: string; }, { fileId: string; storageId: string } >; copyFile: FunctionReference< "mutation", "internal", { fileId: string }, null >; deleteFiles: FunctionReference< "mutation", "internal", { fileIds: Array; force?: boolean }, Array >; get: FunctionReference< "query", "internal", { fileId: string }, null | { _creationTime: number; _id: string; filename?: string; hash: string; lastTouchedAt: number; mimeType: string; refcount: number; storageId: string; } >; getFilesToDelete: FunctionReference< "query", "internal", { paginationOpts: { cursor: string | null; endCursor?: string | null; id?: number; maximumBytesRead?: number; maximumRowsRead?: number; numItems: number; }; }, { continueCursor: string; isDone: boolean; page: Array<{ _creationTime: number; _id: string; filename?: string; hash: string; lastTouchedAt: number; mimeType: string; refcount: number; storageId: string; }>; } >; useExistingFile: FunctionReference< "mutation", "internal", { filename?: string; hash: string }, null | { fileId: string; storageId: string } >; }; messages: { addMessages: FunctionReference< "mutation", "internal", { agentName?: string; embeddings?: { dimension: | 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; model: string; vectors: Array | null>; }; failPendingSteps?: boolean; hideFromUserIdSearch?: boolean; messages: Array<{ error?: string; fileIds?: Array; finishReason?: | "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown"; message: | { content: | string | Array< | { providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; text: string; type: "text"; } | { image: string | ArrayBuffer; mimeType?: string; providerOptions?: Record< string, Record >; type: "image"; } | { data: string | ArrayBuffer; filename?: string; mimeType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; type: "file"; } >; providerOptions?: Record>; role: "user"; } | { content: | string | Array< | { providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; text: string; type: "text"; } | { data: string | ArrayBuffer; filename?: string; mimeType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; type: "file"; } | { providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; signature?: string; text: string; type: "reasoning"; } | { data: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; type: "redacted-reasoning"; } | { args: any; providerExecuted?: boolean; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; toolCallId: string; toolName: string; type: "tool-call"; } | { args?: any; experimental_content?: Array< | { text: string; type: "text" } | { data: string; mimeType?: string; type: "image"; } >; isError?: boolean; output?: | { type: "text"; value: string } | { type: "json"; value: any } | { type: "error-text"; value: string } | { type: "error-json"; value: any } | { type: "content"; value: Array< | { text: string; type: "text" } | { data: string; mediaType: string; type: "media"; } >; }; providerExecuted?: boolean; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; result?: any; toolCallId: string; toolName: string; type: "tool-result"; } | { id: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; sourceType: "url"; title?: string; type: "source"; url: string; } | { filename?: string; id: string; mediaType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; sourceType: "document"; title: string; type: "source"; } >; providerOptions?: Record>; role: "assistant"; } | { content: Array<{ args?: any; experimental_content?: Array< | { text: string; type: "text" } | { data: string; mimeType?: string; type: "image" } >; isError?: boolean; output?: | { type: "text"; value: string } | { type: "json"; value: any } | { type: "error-text"; value: string } | { type: "error-json"; value: any } | { type: "content"; value: Array< | { text: string; type: "text" } | { data: string; mediaType: string; type: "media" } >; }; providerExecuted?: boolean; providerMetadata?: Record>; providerOptions?: Record>; result?: any; toolCallId: string; toolName: string; type: "tool-result"; }>; providerOptions?: Record>; role: "tool"; } | { content: string; providerOptions?: Record>; role: "system"; }; model?: string; provider?: string; providerMetadata?: Record>; reasoning?: string; reasoningDetails?: Array< | { providerMetadata?: Record>; providerOptions?: Record>; signature?: string; text: string; type: "reasoning"; } | { signature?: string; text: string; type: "text" } | { data: string; type: "redacted" } >; sources?: Array< | { id: string; providerMetadata?: Record>; providerOptions?: Record>; sourceType: "url"; title?: string; type?: "source"; url: string; } | { filename?: string; id: string; mediaType: string; providerMetadata?: Record>; providerOptions?: Record>; sourceType: "document"; title: string; type: "source"; } >; status?: "pending" | "success" | "failed"; text?: string; usage?: { cachedInputTokens?: number; completionTokens: number; promptTokens: number; reasoningTokens?: number; totalTokens: number; }; warnings?: Array< | { details?: string; setting: string; type: "unsupported-setting"; } | { details?: string; tool: any; type: "unsupported-tool" } | { message: string; type: "other" } >; }>; pendingMessageId?: string; promptMessageId?: string; threadId: string; userId?: string; }, { messages: Array<{ _creationTime: number; _id: string; agentName?: string; embeddingId?: string; error?: string; fileIds?: Array; finishReason?: | "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown"; id?: string; message?: | { content: | string | Array< | { providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; text: string; type: "text"; } | { image: string | ArrayBuffer; mimeType?: string; providerOptions?: Record< string, Record >; type: "image"; } | { data: string | ArrayBuffer; filename?: string; mimeType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; type: "file"; } >; providerOptions?: Record>; role: "user"; } | { content: | string | Array< | { providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; text: string; type: "text"; } | { data: string | ArrayBuffer; filename?: string; mimeType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; type: "file"; } | { providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; signature?: string; text: string; type: "reasoning"; } | { data: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; type: "redacted-reasoning"; } | { args: any; providerExecuted?: boolean; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; toolCallId: string; toolName: string; type: "tool-call"; } | { args?: any; experimental_content?: Array< | { text: string; type: "text" } | { data: string; mimeType?: string; type: "image"; } >; isError?: boolean; output?: | { type: "text"; value: string } | { type: "json"; value: any } | { type: "error-text"; value: string } | { type: "error-json"; value: any } | { type: "content"; value: Array< | { text: string; type: "text" } | { data: string; mediaType: string; type: "media"; } >; }; providerExecuted?: boolean; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; result?: any; toolCallId: string; toolName: string; type: "tool-result"; } | { id: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; sourceType: "url"; title?: string; type: "source"; url: string; } | { filename?: string; id: string; mediaType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; sourceType: "document"; title: string; type: "source"; } >; providerOptions?: Record>; role: "assistant"; } | { content: Array<{ args?: any; experimental_content?: Array< | { text: string; type: "text" } | { data: string; mimeType?: string; type: "image" } >; isError?: boolean; output?: | { type: "text"; value: string } | { type: "json"; value: any } | { type: "error-text"; value: string } | { type: "error-json"; value: any } | { type: "content"; value: Array< | { text: string; type: "text" } | { data: string; mediaType: string; type: "media" } >; }; providerExecuted?: boolean; providerMetadata?: Record>; providerOptions?: Record>; result?: any; toolCallId: string; toolName: string; type: "tool-result"; }>; providerOptions?: Record>; role: "tool"; } | { content: string; providerOptions?: Record>; role: "system"; }; model?: string; order: number; provider?: string; providerMetadata?: Record>; providerOptions?: Record>; reasoning?: string; reasoningDetails?: Array< | { providerMetadata?: Record>; providerOptions?: Record>; signature?: string; text: string; type: "reasoning"; } | { signature?: string; text: string; type: "text" } | { data: string; type: "redacted" } >; sources?: Array< | { id: string; providerMetadata?: Record>; providerOptions?: Record>; sourceType: "url"; title?: string; type?: "source"; url: string; } | { filename?: string; id: string; mediaType: string; providerMetadata?: Record>; providerOptions?: Record>; sourceType: "document"; title: string; type: "source"; } >; status: "pending" | "success" | "failed"; stepOrder: number; text?: string; threadId: string; tool: boolean; usage?: { cachedInputTokens?: number; completionTokens: number; promptTokens: number; reasoningTokens?: number; totalTokens: number; }; userId?: string; warnings?: Array< | { details?: string; setting: string; type: "unsupported-setting"; } | { details?: string; tool: any; type: "unsupported-tool" } | { message: string; type: "other" } >; }>; } >; cloneThread: FunctionReference< "action", "internal", { batchSize?: number; copyUserIdForVectorSearch?: boolean; excludeToolMessages?: boolean; insertAtOrder?: number; limit?: number; sourceThreadId: string; statuses?: Array<"pending" | "success" | "failed">; targetThreadId: string; upToAndIncludingMessageId?: string; }, number >; deleteByIds: FunctionReference< "mutation", "internal", { messageIds: Array }, Array >; deleteByOrder: FunctionReference< "mutation", "internal", { endOrder: number; endStepOrder?: number; startOrder: number; startStepOrder?: number; threadId: string; }, { isDone: boolean; lastOrder?: number; lastStepOrder?: number } >; finalizeMessage: FunctionReference< "mutation", "internal", { messageId: string; result: { status: "success" } | { error: string; status: "failed" }; }, null >; getMessagesByIds: FunctionReference< "query", "internal", { messageIds: Array }, Array; finishReason?: | "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown"; id?: string; message?: | { content: | string | Array< | { providerMetadata?: Record< string, Record >; providerOptions?: Record>; text: string; type: "text"; } | { image: string | ArrayBuffer; mimeType?: string; providerOptions?: Record>; type: "image"; } | { data: string | ArrayBuffer; filename?: string; mimeType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; type: "file"; } >; providerOptions?: Record>; role: "user"; } | { content: | string | Array< | { providerMetadata?: Record< string, Record >; providerOptions?: Record>; text: string; type: "text"; } | { data: string | ArrayBuffer; filename?: string; mimeType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; type: "file"; } | { providerMetadata?: Record< string, Record >; providerOptions?: Record>; signature?: string; text: string; type: "reasoning"; } | { data: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; type: "redacted-reasoning"; } | { args: any; providerExecuted?: boolean; providerMetadata?: Record< string, Record >; providerOptions?: Record>; toolCallId: string; toolName: string; type: "tool-call"; } | { args?: any; experimental_content?: Array< | { text: string; type: "text" } | { data: string; mimeType?: string; type: "image" } >; isError?: boolean; output?: | { type: "text"; value: string } | { type: "json"; value: any } | { type: "error-text"; value: string } | { type: "error-json"; value: any } | { type: "content"; value: Array< | { text: string; type: "text" } | { data: string; mediaType: string; type: "media"; } >; }; providerExecuted?: boolean; providerMetadata?: Record< string, Record >; providerOptions?: Record>; result?: any; toolCallId: string; toolName: string; type: "tool-result"; } | { id: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; sourceType: "url"; title?: string; type: "source"; url: string; } | { filename?: string; id: string; mediaType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; sourceType: "document"; title: string; type: "source"; } >; providerOptions?: Record>; role: "assistant"; } | { content: Array<{ args?: any; experimental_content?: Array< | { text: string; type: "text" } | { data: string; mimeType?: string; type: "image" } >; isError?: boolean; output?: | { type: "text"; value: string } | { type: "json"; value: any } | { type: "error-text"; value: string } | { type: "error-json"; value: any } | { type: "content"; value: Array< | { text: string; type: "text" } | { data: string; mediaType: string; type: "media" } >; }; providerExecuted?: boolean; providerMetadata?: Record>; providerOptions?: Record>; result?: any; toolCallId: string; toolName: string; type: "tool-result"; }>; providerOptions?: Record>; role: "tool"; } | { content: string; providerOptions?: Record>; role: "system"; }; model?: string; order: number; provider?: string; providerMetadata?: Record>; providerOptions?: Record>; reasoning?: string; reasoningDetails?: Array< | { providerMetadata?: Record>; providerOptions?: Record>; signature?: string; text: string; type: "reasoning"; } | { signature?: string; text: string; type: "text" } | { data: string; type: "redacted" } >; sources?: Array< | { id: string; providerMetadata?: Record>; providerOptions?: Record>; sourceType: "url"; title?: string; type?: "source"; url: string; } | { filename?: string; id: string; mediaType: string; providerMetadata?: Record>; providerOptions?: Record>; sourceType: "document"; title: string; type: "source"; } >; status: "pending" | "success" | "failed"; stepOrder: number; text?: string; threadId: string; tool: boolean; usage?: { cachedInputTokens?: number; completionTokens: number; promptTokens: number; reasoningTokens?: number; totalTokens: number; }; userId?: string; warnings?: Array< | { details?: string; setting: string; type: "unsupported-setting" } | { details?: string; tool: any; type: "unsupported-tool" } | { message: string; type: "other" } >; }> >; getMessageSearchFields: FunctionReference< "query", "internal", { messageId: string }, { embedding?: Array; embeddingModel?: string; text?: string } >; listMessagesByThreadId: FunctionReference< "query", "internal", { excludeToolMessages?: boolean; order: "asc" | "desc"; paginationOpts?: { cursor: string | null; endCursor?: string | null; id?: number; maximumBytesRead?: number; maximumRowsRead?: number; numItems: number; }; statuses?: Array<"pending" | "success" | "failed">; threadId: string; upToAndIncludingMessageId?: string; }, { continueCursor: string; isDone: boolean; page: Array<{ _creationTime: number; _id: string; agentName?: string; embeddingId?: string; error?: string; fileIds?: Array; finishReason?: | "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown"; id?: string; message?: | { content: | string | Array< | { providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; text: string; type: "text"; } | { image: string | ArrayBuffer; mimeType?: string; providerOptions?: Record< string, Record >; type: "image"; } | { data: string | ArrayBuffer; filename?: string; mimeType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; type: "file"; } >; providerOptions?: Record>; role: "user"; } | { content: | string | Array< | { providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; text: string; type: "text"; } | { data: string | ArrayBuffer; filename?: string; mimeType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; type: "file"; } | { providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; signature?: string; text: string; type: "reasoning"; } | { data: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; type: "redacted-reasoning"; } | { args: any; providerExecuted?: boolean; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; toolCallId: string; toolName: string; type: "tool-call"; } | { args?: any; experimental_content?: Array< | { text: string; type: "text" } | { data: string; mimeType?: string; type: "image"; } >; isError?: boolean; output?: | { type: "text"; value: string } | { type: "json"; value: any } | { type: "error-text"; value: string } | { type: "error-json"; value: any } | { type: "content"; value: Array< | { text: string; type: "text" } | { data: string; mediaType: string; type: "media"; } >; }; providerExecuted?: boolean; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; result?: any; toolCallId: string; toolName: string; type: "tool-result"; } | { id: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; sourceType: "url"; title?: string; type: "source"; url: string; } | { filename?: string; id: string; mediaType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; sourceType: "document"; title: string; type: "source"; } >; providerOptions?: Record>; role: "assistant"; } | { content: Array<{ args?: any; experimental_content?: Array< | { text: string; type: "text" } | { data: string; mimeType?: string; type: "image" } >; isError?: boolean; output?: | { type: "text"; value: string } | { type: "json"; value: any } | { type: "error-text"; value: string } | { type: "error-json"; value: any } | { type: "content"; value: Array< | { text: string; type: "text" } | { data: string; mediaType: string; type: "media" } >; }; providerExecuted?: boolean; providerMetadata?: Record>; providerOptions?: Record>; result?: any; toolCallId: string; toolName: string; type: "tool-result"; }>; providerOptions?: Record>; role: "tool"; } | { content: string; providerOptions?: Record>; role: "system"; }; model?: string; order: number; provider?: string; providerMetadata?: Record>; providerOptions?: Record>; reasoning?: string; reasoningDetails?: Array< | { providerMetadata?: Record>; providerOptions?: Record>; signature?: string; text: string; type: "reasoning"; } | { signature?: string; text: string; type: "text" } | { data: string; type: "redacted" } >; sources?: Array< | { id: string; providerMetadata?: Record>; providerOptions?: Record>; sourceType: "url"; title?: string; type?: "source"; url: string; } | { filename?: string; id: string; mediaType: string; providerMetadata?: Record>; providerOptions?: Record>; sourceType: "document"; title: string; type: "source"; } >; status: "pending" | "success" | "failed"; stepOrder: number; text?: string; threadId: string; tool: boolean; usage?: { cachedInputTokens?: number; completionTokens: number; promptTokens: number; reasoningTokens?: number; totalTokens: number; }; userId?: string; warnings?: Array< | { details?: string; setting: string; type: "unsupported-setting"; } | { details?: string; tool: any; type: "unsupported-tool" } | { message: string; type: "other" } >; }>; pageStatus?: "SplitRecommended" | "SplitRequired" | null; splitCursor?: string | null; } >; searchMessages: FunctionReference< "action", "internal", { embedding?: Array; embeddingModel?: string; limit: number; messageRange?: { after: number; before: number }; searchAllMessagesForUserId?: string; targetMessageId?: string; text?: string; textSearch?: boolean; threadId?: string; vectorScoreThreshold?: number; vectorSearch?: boolean; }, Array<{ _creationTime: number; _id: string; agentName?: string; embeddingId?: string; error?: string; fileIds?: Array; finishReason?: | "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown"; id?: string; message?: | { content: | string | Array< | { providerMetadata?: Record< string, Record >; providerOptions?: Record>; text: string; type: "text"; } | { image: string | ArrayBuffer; mimeType?: string; providerOptions?: Record>; type: "image"; } | { data: string | ArrayBuffer; filename?: string; mimeType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; type: "file"; } >; providerOptions?: Record>; role: "user"; } | { content: | string | Array< | { providerMetadata?: Record< string, Record >; providerOptions?: Record>; text: string; type: "text"; } | { data: string | ArrayBuffer; filename?: string; mimeType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; type: "file"; } | { providerMetadata?: Record< string, Record >; providerOptions?: Record>; signature?: string; text: string; type: "reasoning"; } | { data: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; type: "redacted-reasoning"; } | { args: any; providerExecuted?: boolean; providerMetadata?: Record< string, Record >; providerOptions?: Record>; toolCallId: string; toolName: string; type: "tool-call"; } | { args?: any; experimental_content?: Array< | { text: string; type: "text" } | { data: string; mimeType?: string; type: "image" } >; isError?: boolean; output?: | { type: "text"; value: string } | { type: "json"; value: any } | { type: "error-text"; value: string } | { type: "error-json"; value: any } | { type: "content"; value: Array< | { text: string; type: "text" } | { data: string; mediaType: string; type: "media"; } >; }; providerExecuted?: boolean; providerMetadata?: Record< string, Record >; providerOptions?: Record>; result?: any; toolCallId: string; toolName: string; type: "tool-result"; } | { id: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; sourceType: "url"; title?: string; type: "source"; url: string; } | { filename?: string; id: string; mediaType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; sourceType: "document"; title: string; type: "source"; } >; providerOptions?: Record>; role: "assistant"; } | { content: Array<{ args?: any; experimental_content?: Array< | { text: string; type: "text" } | { data: string; mimeType?: string; type: "image" } >; isError?: boolean; output?: | { type: "text"; value: string } | { type: "json"; value: any } | { type: "error-text"; value: string } | { type: "error-json"; value: any } | { type: "content"; value: Array< | { text: string; type: "text" } | { data: string; mediaType: string; type: "media" } >; }; providerExecuted?: boolean; providerMetadata?: Record>; providerOptions?: Record>; result?: any; toolCallId: string; toolName: string; type: "tool-result"; }>; providerOptions?: Record>; role: "tool"; } | { content: string; providerOptions?: Record>; role: "system"; }; model?: string; order: number; provider?: string; providerMetadata?: Record>; providerOptions?: Record>; reasoning?: string; reasoningDetails?: Array< | { providerMetadata?: Record>; providerOptions?: Record>; signature?: string; text: string; type: "reasoning"; } | { signature?: string; text: string; type: "text" } | { data: string; type: "redacted" } >; sources?: Array< | { id: string; providerMetadata?: Record>; providerOptions?: Record>; sourceType: "url"; title?: string; type?: "source"; url: string; } | { filename?: string; id: string; mediaType: string; providerMetadata?: Record>; providerOptions?: Record>; sourceType: "document"; title: string; type: "source"; } >; status: "pending" | "success" | "failed"; stepOrder: number; text?: string; threadId: string; tool: boolean; usage?: { cachedInputTokens?: number; completionTokens: number; promptTokens: number; reasoningTokens?: number; totalTokens: number; }; userId?: string; warnings?: Array< | { details?: string; setting: string; type: "unsupported-setting" } | { details?: string; tool: any; type: "unsupported-tool" } | { message: string; type: "other" } >; }> >; textSearch: FunctionReference< "query", "internal", { limit: number; searchAllMessagesForUserId?: string; targetMessageId?: string; text?: string; threadId?: string; }, Array<{ _creationTime: number; _id: string; agentName?: string; embeddingId?: string; error?: string; fileIds?: Array; finishReason?: | "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown"; id?: string; message?: | { content: | string | Array< | { providerMetadata?: Record< string, Record >; providerOptions?: Record>; text: string; type: "text"; } | { image: string | ArrayBuffer; mimeType?: string; providerOptions?: Record>; type: "image"; } | { data: string | ArrayBuffer; filename?: string; mimeType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; type: "file"; } >; providerOptions?: Record>; role: "user"; } | { content: | string | Array< | { providerMetadata?: Record< string, Record >; providerOptions?: Record>; text: string; type: "text"; } | { data: string | ArrayBuffer; filename?: string; mimeType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; type: "file"; } | { providerMetadata?: Record< string, Record >; providerOptions?: Record>; signature?: string; text: string; type: "reasoning"; } | { data: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; type: "redacted-reasoning"; } | { args: any; providerExecuted?: boolean; providerMetadata?: Record< string, Record >; providerOptions?: Record>; toolCallId: string; toolName: string; type: "tool-call"; } | { args?: any; experimental_content?: Array< | { text: string; type: "text" } | { data: string; mimeType?: string; type: "image" } >; isError?: boolean; output?: | { type: "text"; value: string } | { type: "json"; value: any } | { type: "error-text"; value: string } | { type: "error-json"; value: any } | { type: "content"; value: Array< | { text: string; type: "text" } | { data: string; mediaType: string; type: "media"; } >; }; providerExecuted?: boolean; providerMetadata?: Record< string, Record >; providerOptions?: Record>; result?: any; toolCallId: string; toolName: string; type: "tool-result"; } | { id: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; sourceType: "url"; title?: string; type: "source"; url: string; } | { filename?: string; id: string; mediaType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; sourceType: "document"; title: string; type: "source"; } >; providerOptions?: Record>; role: "assistant"; } | { content: Array<{ args?: any; experimental_content?: Array< | { text: string; type: "text" } | { data: string; mimeType?: string; type: "image" } >; isError?: boolean; output?: | { type: "text"; value: string } | { type: "json"; value: any } | { type: "error-text"; value: string } | { type: "error-json"; value: any } | { type: "content"; value: Array< | { text: string; type: "text" } | { data: string; mediaType: string; type: "media" } >; }; providerExecuted?: boolean; providerMetadata?: Record>; providerOptions?: Record>; result?: any; toolCallId: string; toolName: string; type: "tool-result"; }>; providerOptions?: Record>; role: "tool"; } | { content: string; providerOptions?: Record>; role: "system"; }; model?: string; order: number; provider?: string; providerMetadata?: Record>; providerOptions?: Record>; reasoning?: string; reasoningDetails?: Array< | { providerMetadata?: Record>; providerOptions?: Record>; signature?: string; text: string; type: "reasoning"; } | { signature?: string; text: string; type: "text" } | { data: string; type: "redacted" } >; sources?: Array< | { id: string; providerMetadata?: Record>; providerOptions?: Record>; sourceType: "url"; title?: string; type?: "source"; url: string; } | { filename?: string; id: string; mediaType: string; providerMetadata?: Record>; providerOptions?: Record>; sourceType: "document"; title: string; type: "source"; } >; status: "pending" | "success" | "failed"; stepOrder: number; text?: string; threadId: string; tool: boolean; usage?: { cachedInputTokens?: number; completionTokens: number; promptTokens: number; reasoningTokens?: number; totalTokens: number; }; userId?: string; warnings?: Array< | { details?: string; setting: string; type: "unsupported-setting" } | { details?: string; tool: any; type: "unsupported-tool" } | { message: string; type: "other" } >; }> >; updateMessage: FunctionReference< "mutation", "internal", { messageId: string; patch: { error?: string; fileIds?: Array; finishReason?: | "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown"; message?: | { content: | string | Array< | { providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; text: string; type: "text"; } | { image: string | ArrayBuffer; mimeType?: string; providerOptions?: Record< string, Record >; type: "image"; } | { data: string | ArrayBuffer; filename?: string; mimeType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; type: "file"; } >; providerOptions?: Record>; role: "user"; } | { content: | string | Array< | { providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; text: string; type: "text"; } | { data: string | ArrayBuffer; filename?: string; mimeType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; type: "file"; } | { providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; signature?: string; text: string; type: "reasoning"; } | { data: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; type: "redacted-reasoning"; } | { args: any; providerExecuted?: boolean; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; toolCallId: string; toolName: string; type: "tool-call"; } | { args?: any; experimental_content?: Array< | { text: string; type: "text" } | { data: string; mimeType?: string; type: "image"; } >; isError?: boolean; output?: | { type: "text"; value: string } | { type: "json"; value: any } | { type: "error-text"; value: string } | { type: "error-json"; value: any } | { type: "content"; value: Array< | { text: string; type: "text" } | { data: string; mediaType: string; type: "media"; } >; }; providerExecuted?: boolean; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; result?: any; toolCallId: string; toolName: string; type: "tool-result"; } | { id: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; sourceType: "url"; title?: string; type: "source"; url: string; } | { filename?: string; id: string; mediaType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record< string, Record >; sourceType: "document"; title: string; type: "source"; } >; providerOptions?: Record>; role: "assistant"; } | { content: Array<{ args?: any; experimental_content?: Array< | { text: string; type: "text" } | { data: string; mimeType?: string; type: "image" } >; isError?: boolean; output?: | { type: "text"; value: string } | { type: "json"; value: any } | { type: "error-text"; value: string } | { type: "error-json"; value: any } | { type: "content"; value: Array< | { text: string; type: "text" } | { data: string; mediaType: string; type: "media" } >; }; providerExecuted?: boolean; providerMetadata?: Record>; providerOptions?: Record>; result?: any; toolCallId: string; toolName: string; type: "tool-result"; }>; providerOptions?: Record>; role: "tool"; } | { content: string; providerOptions?: Record>; role: "system"; }; model?: string; provider?: string; providerOptions?: Record>; status?: "pending" | "success" | "failed"; }; }, { _creationTime: number; _id: string; agentName?: string; embeddingId?: string; error?: string; fileIds?: Array; finishReason?: | "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown"; id?: string; message?: | { content: | string | Array< | { providerMetadata?: Record< string, Record >; providerOptions?: Record>; text: string; type: "text"; } | { image: string | ArrayBuffer; mimeType?: string; providerOptions?: Record>; type: "image"; } | { data: string | ArrayBuffer; filename?: string; mimeType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; type: "file"; } >; providerOptions?: Record>; role: "user"; } | { content: | string | Array< | { providerMetadata?: Record< string, Record >; providerOptions?: Record>; text: string; type: "text"; } | { data: string | ArrayBuffer; filename?: string; mimeType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; type: "file"; } | { providerMetadata?: Record< string, Record >; providerOptions?: Record>; signature?: string; text: string; type: "reasoning"; } | { data: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; type: "redacted-reasoning"; } | { args: any; providerExecuted?: boolean; providerMetadata?: Record< string, Record >; providerOptions?: Record>; toolCallId: string; toolName: string; type: "tool-call"; } | { args?: any; experimental_content?: Array< | { text: string; type: "text" } | { data: string; mimeType?: string; type: "image" } >; isError?: boolean; output?: | { type: "text"; value: string } | { type: "json"; value: any } | { type: "error-text"; value: string } | { type: "error-json"; value: any } | { type: "content"; value: Array< | { text: string; type: "text" } | { data: string; mediaType: string; type: "media"; } >; }; providerExecuted?: boolean; providerMetadata?: Record< string, Record >; providerOptions?: Record>; result?: any; toolCallId: string; toolName: string; type: "tool-result"; } | { id: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; sourceType: "url"; title?: string; type: "source"; url: string; } | { filename?: string; id: string; mediaType: string; providerMetadata?: Record< string, Record >; providerOptions?: Record>; sourceType: "document"; title: string; type: "source"; } >; providerOptions?: Record>; role: "assistant"; } | { content: Array<{ args?: any; experimental_content?: Array< | { text: string; type: "text" } | { data: string; mimeType?: string; type: "image" } >; isError?: boolean; output?: | { type: "text"; value: string } | { type: "json"; value: any } | { type: "error-text"; value: string } | { type: "error-json"; value: any } | { type: "content"; value: Array< | { text: string; type: "text" } | { data: string; mediaType: string; type: "media" } >; }; providerExecuted?: boolean; providerMetadata?: Record>; providerOptions?: Record>; result?: any; toolCallId: string; toolName: string; type: "tool-result"; }>; providerOptions?: Record>; role: "tool"; } | { content: string; providerOptions?: Record>; role: "system"; }; model?: string; order: number; provider?: string; providerMetadata?: Record>; providerOptions?: Record>; reasoning?: string; reasoningDetails?: Array< | { providerMetadata?: Record>; providerOptions?: Record>; signature?: string; text: string; type: "reasoning"; } | { signature?: string; text: string; type: "text" } | { data: string; type: "redacted" } >; sources?: Array< | { id: string; providerMetadata?: Record>; providerOptions?: Record>; sourceType: "url"; title?: string; type?: "source"; url: string; } | { filename?: string; id: string; mediaType: string; providerMetadata?: Record>; providerOptions?: Record>; sourceType: "document"; title: string; type: "source"; } >; status: "pending" | "success" | "failed"; stepOrder: number; text?: string; threadId: string; tool: boolean; usage?: { cachedInputTokens?: number; completionTokens: number; promptTokens: number; reasoningTokens?: number; totalTokens: number; }; userId?: string; warnings?: Array< | { details?: string; setting: string; type: "unsupported-setting" } | { details?: string; tool: any; type: "unsupported-tool" } | { message: string; type: "other" } >; } >; }; streams: { abort: FunctionReference< "mutation", "internal", { finalDelta?: { end: number; parts: Array; start: number; streamId: string; }; reason: string; streamId: string; }, boolean >; abortByOrder: FunctionReference< "mutation", "internal", { order: number; reason: string; threadId: string }, boolean >; addDelta: FunctionReference< "mutation", "internal", { end: number; parts: Array; start: number; streamId: string }, boolean >; create: FunctionReference< "mutation", "internal", { agentName?: string; format?: "UIMessageChunk" | "TextStreamPart"; model?: string; order: number; provider?: string; providerOptions?: Record>; stepOrder: number; threadId: string; userId?: string; }, string >; deleteAllStreamsForThreadIdAsync: FunctionReference< "mutation", "internal", { deltaCursor?: string; streamOrder?: number; threadId: string }, { deltaCursor?: string; isDone: boolean; streamOrder?: number } >; deleteAllStreamsForThreadIdSync: FunctionReference< "action", "internal", { threadId: string }, null >; deleteStreamAsync: FunctionReference< "mutation", "internal", { cursor?: string; streamId: string }, null >; deleteStreamSync: FunctionReference< "mutation", "internal", { streamId: string }, null >; finish: FunctionReference< "mutation", "internal", { finalDelta?: { end: number; parts: Array; start: number; streamId: string; }; streamId: string; }, null >; heartbeat: FunctionReference< "mutation", "internal", { streamId: string }, null >; list: FunctionReference< "query", "internal", { startOrder?: number; statuses?: Array<"streaming" | "finished" | "aborted">; threadId: string; }, Array<{ agentName?: string; format?: "UIMessageChunk" | "TextStreamPart"; model?: string; order: number; provider?: string; providerOptions?: Record>; status: "streaming" | "finished" | "aborted"; stepOrder: number; streamId: string; userId?: string; }> >; listDeltas: FunctionReference< "query", "internal", { cursors: Array<{ cursor: number; streamId: string }>; threadId: string; }, Array<{ end: number; parts: Array; start: number; streamId: string; }> >; }; threads: { createThread: FunctionReference< "mutation", "internal", { defaultSystemPrompt?: string; parentThreadIds?: Array; summary?: string; title?: string; userId?: string; }, { _creationTime: number; _id: string; status: "active" | "archived"; summary?: string; title?: string; userId?: string; } >; deleteAllForThreadIdAsync: FunctionReference< "mutation", "internal", { cursor?: string; deltaCursor?: string; limit?: number; messagesDone?: boolean; streamOrder?: number; streamsDone?: boolean; threadId: string; }, { isDone: boolean } >; deleteAllForThreadIdSync: FunctionReference< "action", "internal", { limit?: number; threadId: string }, null >; getThread: FunctionReference< "query", "internal", { threadId: string }, { _creationTime: number; _id: string; status: "active" | "archived"; summary?: string; title?: string; userId?: string; } | null >; listThreadsByUserId: FunctionReference< "query", "internal", { order?: "asc" | "desc"; paginationOpts?: { cursor: string | null; endCursor?: string | null; id?: number; maximumBytesRead?: number; maximumRowsRead?: number; numItems: number; }; userId?: string; }, { continueCursor: string; isDone: boolean; page: Array<{ _creationTime: number; _id: string; status: "active" | "archived"; summary?: string; title?: string; userId?: string; }>; pageStatus?: "SplitRecommended" | "SplitRequired" | null; splitCursor?: string | null; } >; searchThreadTitles: FunctionReference< "query", "internal", { limit: number; query: string; userId?: string | null }, Array<{ _creationTime: number; _id: string; status: "active" | "archived"; summary?: string; title?: string; userId?: string; }> >; updateThread: FunctionReference< "mutation", "internal", { patch: { status?: "active" | "archived"; summary?: string; title?: string; userId?: string; }; threadId: string; }, { _creationTime: number; _id: string; status: "active" | "archived"; summary?: string; title?: string; userId?: string; } >; }; users: { deleteAllForUserId: FunctionReference< "action", "internal", { userId: string }, null >; deleteAllForUserIdAsync: FunctionReference< "mutation", "internal", { userId: string }, boolean >; listUsersWithThreads: FunctionReference< "query", "internal", { paginationOpts: { cursor: string | null; endCursor?: string | null; id?: number; maximumBytesRead?: number; maximumRowsRead?: number; numItems: number; }; }, { continueCursor: string; isDone: boolean; page: Array; pageStatus?: "SplitRecommended" | "SplitRequired" | null; splitCursor?: string | null; } >; }; vector: { index: { deleteBatch: FunctionReference< "mutation", "internal", { ids: Array< | string | string | string | string | string | string | string | string | string | string >; }, null >; deleteBatchForThread: FunctionReference< "mutation", "internal", { cursor?: string; limit: number; model: string; threadId: string; vectorDimension: | 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; }, { continueCursor: string; isDone: boolean } >; insertBatch: FunctionReference< "mutation", "internal", { vectorDimension: | 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; vectors: Array<{ messageId?: string; model: string; table: string; threadId?: string; userId?: string; vector: Array; }>; }, Array< | string | string | string | string | string | string | string | string | string | string > >; paginate: FunctionReference< "query", "internal", { cursor?: string; limit: number; table?: string; targetModel: string; vectorDimension: | 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; }, { continueCursor: string; ids: Array< | string | string | string | string | string | string | string | string | string | string >; isDone: boolean; } >; updateBatch: FunctionReference< "mutation", "internal", { vectors: Array<{ id: | string | string | string | string | string | string | string | string | string | string; model: string; vector: Array; }>; }, null >; }; }; }; };