/* eslint-disable */ /** * Generated `ComponentApi` utility. * * THIS CODE IS AUTOMATICALLY GENERATED. * * To regenerate, run `npx convex dev`. * @module */ import type { FunctionReference } from "convex/server"; /** * A utility for referencing a Convex component's exposed API. * * Useful when expecting a parameter like `components.myComponent`. * Usage: * ```ts * async function myFunction(ctx: QueryCtx, component: ComponentApi) { * return ctx.runQuery(component.someFile.someQuery, { ...args }); * } * ``` */ export type ComponentApi = { agents: { bugReportAgent: { processBugReportPublic: FunctionReference< "action", "internal", { bugReportId: string; openRouterApiKey?: string; resendApiKey?: string; resendFromEmail?: string; }, { error?: string; success: boolean }, Name >; }; feedbackAgent: { processFeedbackPublic: FunctionReference< "action", "internal", { feedbackId: string; openRouterApiKey?: string; resendApiKey?: string; resendFromEmail?: string; }, { error?: string; success: boolean }, Name >; }; feedbackInterviewAgent: { continueInterview: FunctionReference< "action", "internal", { context?: { additionalInstructions?: string; appDescription?: string; appName?: string; customQuestions?: { bug?: Array; feedback?: Array; }; featureAreas?: Array<{ description?: string; name: string }>; knownIssues?: Array<{ description?: string; title: string }>; }; openRouterApiKey: string; reportType: "bug" | "feedback"; requestId: string; response: string; sessionId: string; threadId: string; }, { generatedReport?: { description: string; featureArea?: string; priority?: "nice_to_have" | "important" | "critical"; reproductionSteps?: Array; severity?: "low" | "medium" | "high" | "critical"; title: string; type?: "feature_request" | "change_request" | "general"; }; isComplete: boolean; pendingRequest?: { config?: any; inputType: string; prompt: string; requestId: string; }; response: string; waitingForInput: boolean; }, Name >; getSessionByThread: FunctionReference< "query", "internal", { threadId: string }, { _creationTime: number; _id: string; context?: string; createdAt: number; generatedDescription?: string; generatedFeatureArea?: string; generatedFeedbackType?: | "feature_request" | "change_request" | "general"; generatedPriority?: "nice_to_have" | "important" | "critical"; generatedReproSteps?: Array; generatedSeverity?: "low" | "medium" | "high" | "critical"; generatedTitle?: string; isComplete: boolean; reportType: "bug" | "feedback"; reporterEmail: string; reporterId: string; reporterName: string; reporterType: "staff" | "customer"; threadId: string; updatedAt: number; } | null, Name >; startBugInterview: FunctionReference< "action", "internal", { context?: { additionalInstructions?: string; appDescription?: string; appName?: string; customQuestions?: { bug?: Array; feedback?: Array; }; featureAreas?: Array<{ description?: string; name: string }>; knownIssues?: Array<{ description?: string; title: string }>; }; openRouterApiKey: string; reporterEmail: string; reporterId: string; reporterName: string; reporterType: "staff" | "customer"; }, { pendingRequest?: { config?: any; inputType: string; prompt: string; requestId: string; }; response: string; sessionId: string; threadId: string; waitingForInput: boolean; }, Name >; startFeedbackInterview: FunctionReference< "action", "internal", { context?: { additionalInstructions?: string; appDescription?: string; appName?: string; customQuestions?: { bug?: Array; feedback?: Array; }; featureAreas?: Array<{ description?: string; name: string }>; knownIssues?: Array<{ description?: string; title: string }>; }; openRouterApiKey: string; reporterEmail: string; reporterId: string; reporterName: string; reporterType: "staff" | "customer"; }, { pendingRequest?: { config?: any; inputType: string; prompt: string; requestId: string; }; response: string; sessionId: string; threadId: string; waitingForInput: boolean; }, Name >; }; index: { continueInterview: FunctionReference< "action", "internal", { context?: { additionalInstructions?: string; appDescription?: string; appName?: string; customQuestions?: { bug?: Array; feedback?: Array; }; featureAreas?: Array<{ description?: string; name: string }>; knownIssues?: Array<{ description?: string; title: string }>; }; openRouterApiKey: string; reportType: "bug" | "feedback"; requestId: string; response: string; sessionId: string; threadId: string; }, { generatedReport?: { description: string; featureArea?: string; priority?: "nice_to_have" | "important" | "critical"; reproductionSteps?: Array; severity?: "low" | "medium" | "high" | "critical"; title: string; type?: "feature_request" | "change_request" | "general"; }; isComplete: boolean; pendingRequest?: { config?: any; inputType: string; prompt: string; requestId: string; }; response: string; waitingForInput: boolean; }, Name >; getSessionByThread: FunctionReference< "query", "internal", { threadId: string }, { _creationTime: number; _id: string; context?: string; createdAt: number; generatedDescription?: string; generatedFeatureArea?: string; generatedFeedbackType?: | "feature_request" | "change_request" | "general"; generatedPriority?: "nice_to_have" | "important" | "critical"; generatedReproSteps?: Array; generatedSeverity?: "low" | "medium" | "high" | "critical"; generatedTitle?: string; isComplete: boolean; reportType: "bug" | "feedback"; reporterEmail: string; reporterId: string; reporterName: string; reporterType: "staff" | "customer"; threadId: string; updatedAt: number; } | null, Name >; processBugReportPublic: FunctionReference< "action", "internal", { bugReportId: string; openRouterApiKey?: string; resendApiKey?: string; resendFromEmail?: string; }, { error?: string; success: boolean }, Name >; processFeedbackPublic: FunctionReference< "action", "internal", { feedbackId: string; openRouterApiKey?: string; resendApiKey?: string; resendFromEmail?: string; }, { error?: string; success: boolean }, Name >; startBugInterview: FunctionReference< "action", "internal", { context?: { additionalInstructions?: string; appDescription?: string; appName?: string; customQuestions?: { bug?: Array; feedback?: Array; }; featureAreas?: Array<{ description?: string; name: string }>; knownIssues?: Array<{ description?: string; title: string }>; }; openRouterApiKey: string; reporterEmail: string; reporterId: string; reporterName: string; reporterType: "staff" | "customer"; }, { pendingRequest?: { config?: any; inputType: string; prompt: string; requestId: string; }; response: string; sessionId: string; threadId: string; waitingForInput: boolean; }, Name >; startFeedbackInterview: FunctionReference< "action", "internal", { context?: { additionalInstructions?: string; appDescription?: string; appName?: string; customQuestions?: { bug?: Array; feedback?: Array; }; featureAreas?: Array<{ description?: string; name: string }>; knownIssues?: Array<{ description?: string; title: string }>; }; openRouterApiKey: string; reporterEmail: string; reporterId: string; reporterName: string; reporterType: "staff" | "customer"; }, { pendingRequest?: { config?: any; inputType: string; prompt: string; requestId: string; }; response: string; sessionId: string; threadId: string; waitingForInput: boolean; }, Name >; }; }; bugReports: { archive: FunctionReference< "mutation", "internal", { reportId: string }, null, Name >; create: FunctionReference< "mutation", "internal", { browserInfo: string; consoleErrors?: string; description: string; networkState: string; openRouterApiKey?: string; reporterEmail: string; reporterId: string; reporterName: string; reporterType: "staff" | "customer"; resendApiKey?: string; resendFromEmail?: string; route?: string; screenshotStorageId?: string; severity: "low" | "medium" | "high" | "critical"; skipAutoProcess?: boolean; title: string; url: string; viewportHeight: number; viewportWidth: number; }, string, Name >; generateUploadUrl: FunctionReference< "mutation", "internal", {}, string, Name >; get: FunctionReference< "query", "internal", { reportId: string }, { _creationTime: number; _id: string; aiAnalyzedAt?: number; aiEstimatedEffort?: "low" | "medium" | "high"; aiReproductionSteps?: Array; aiRootCauseAnalysis?: string; aiSuggestedFix?: string; aiSuggestedSeverity?: "low" | "medium" | "high" | "critical"; aiSummary?: string; aiThreadId?: string; browserInfo: string; consoleErrors?: string; createdAt: number; description: string; isArchived?: boolean; networkState: string; notificationsSentAt?: number; reporterEmail: string; reporterId: string; reporterName: string; reporterType: "staff" | "customer"; route?: string; screenshotStorageId?: string; severity: "low" | "medium" | "high" | "critical"; status: "open" | "in-progress" | "resolved" | "closed"; title: string; updatedAt: number; url: string; viewportHeight: number; viewportWidth: number; } | null, Name >; getAiAnalysis: FunctionReference< "query", "internal", { reportId: string }, { aiAnalyzedAt: number | null; aiEstimatedEffort: "low" | "medium" | "high" | null; aiReproductionSteps: Array | null; aiRootCauseAnalysis: string | null; aiSuggestedFix: string | null; aiSuggestedSeverity: "low" | "medium" | "high" | "critical" | null; aiSummary: string | null; notificationsSentAt: number | null; } | null, Name >; getScreenshotUrl: FunctionReference< "query", "internal", { storageId: string }, string | null, Name >; list: FunctionReference< "query", "internal", { includeArchived?: boolean; limit?: number; severity?: "low" | "medium" | "high" | "critical"; status?: "open" | "in-progress" | "resolved" | "closed"; }, Array<{ _creationTime: number; _id: string; aiAnalyzedAt?: number; aiEstimatedEffort?: "low" | "medium" | "high"; aiReproductionSteps?: Array; aiRootCauseAnalysis?: string; aiSuggestedFix?: string; aiSuggestedSeverity?: "low" | "medium" | "high" | "critical"; aiSummary?: string; aiThreadId?: string; browserInfo: string; consoleErrors?: string; createdAt: number; description: string; isArchived?: boolean; networkState: string; notificationsSentAt?: number; reporterEmail: string; reporterId: string; reporterName: string; reporterType: "staff" | "customer"; route?: string; screenshotStorageId?: string; severity: "low" | "medium" | "high" | "critical"; status: "open" | "in-progress" | "resolved" | "closed"; title: string; updatedAt: number; url: string; viewportHeight: number; viewportWidth: number; }>, Name >; unarchive: FunctionReference< "mutation", "internal", { reportId: string }, null, Name >; updateStatus: FunctionReference< "mutation", "internal", { reportId: string; status: "open" | "in-progress" | "resolved" | "closed"; }, null, Name >; }; feedback: { archive: FunctionReference< "mutation", "internal", { feedbackId: string }, null, Name >; create: FunctionReference< "mutation", "internal", { browserInfo: string; consoleErrors?: string; description: string; networkState: string; openRouterApiKey?: string; priority: "nice_to_have" | "important" | "critical"; reporterEmail: string; reporterId: string; reporterName: string; reporterType: "staff" | "customer"; resendApiKey?: string; resendFromEmail?: string; route?: string; screenshotStorageId?: string; skipAutoProcess?: boolean; title: string; type: "feature_request" | "change_request" | "general"; url: string; viewportHeight: number; viewportWidth: number; }, string, Name >; generateUploadUrl: FunctionReference< "mutation", "internal", {}, string, Name >; get: FunctionReference< "query", "internal", { feedbackId: string }, { _creationTime: number; _id: string; aiActionItems?: Array; aiAnalyzedAt?: number; aiEstimatedEffort?: "low" | "medium" | "high"; aiImpactAnalysis?: string; aiSuggestedPriority?: "nice_to_have" | "important" | "critical"; aiSummary?: string; aiThreadId?: string; browserInfo: string; consoleErrors?: string; createdAt: number; description: string; isArchived?: boolean; networkState: string; notificationsSentAt?: number; priority: "nice_to_have" | "important" | "critical"; reporterEmail: string; reporterId: string; reporterName: string; reporterType: "staff" | "customer"; route?: string; screenshotStorageId?: string; status: | "open" | "under_review" | "planned" | "in_progress" | "completed" | "declined"; title: string; type: "feature_request" | "change_request" | "general"; updatedAt: number; url: string; viewportHeight: number; viewportWidth: number; } | null, Name >; getAiAnalysis: FunctionReference< "query", "internal", { feedbackId: string }, { aiActionItems: Array | null; aiAnalyzedAt: number | null; aiEstimatedEffort: "low" | "medium" | "high" | null; aiImpactAnalysis: string | null; aiSuggestedPriority: "nice_to_have" | "important" | "critical" | null; aiSummary: string | null; notificationsSentAt: number | null; } | null, Name >; getScreenshotUrl: FunctionReference< "query", "internal", { storageId: string }, string | null, Name >; list: FunctionReference< "query", "internal", { includeArchived?: boolean; limit?: number; priority?: "nice_to_have" | "important" | "critical"; status?: | "open" | "under_review" | "planned" | "in_progress" | "completed" | "declined"; type?: "feature_request" | "change_request" | "general"; }, Array<{ _creationTime: number; _id: string; aiActionItems?: Array; aiAnalyzedAt?: number; aiEstimatedEffort?: "low" | "medium" | "high"; aiImpactAnalysis?: string; aiSuggestedPriority?: "nice_to_have" | "important" | "critical"; aiSummary?: string; aiThreadId?: string; browserInfo: string; consoleErrors?: string; createdAt: number; description: string; isArchived?: boolean; networkState: string; notificationsSentAt?: number; priority: "nice_to_have" | "important" | "critical"; reporterEmail: string; reporterId: string; reporterName: string; reporterType: "staff" | "customer"; route?: string; screenshotStorageId?: string; status: | "open" | "under_review" | "planned" | "in_progress" | "completed" | "declined"; title: string; type: "feature_request" | "change_request" | "general"; updatedAt: number; url: string; viewportHeight: number; viewportWidth: number; }>, Name >; unarchive: FunctionReference< "mutation", "internal", { feedbackId: string }, null, Name >; updateStatus: FunctionReference< "mutation", "internal", { feedbackId: string; status: | "open" | "under_review" | "planned" | "in_progress" | "completed" | "declined"; }, null, Name >; }; inputRequests: { cancel: FunctionReference< "mutation", "internal", { requestId: string }, null, Name >; get: FunctionReference< "query", "internal", { requestId: string }, { _creationTime: number; _id: string; agentName: string; config?: { fields?: Array<{ label: string; name: string; placeholder?: string; required: boolean; type: string; }>; multiline?: boolean; options?: Array<{ description?: string; label: string; value: string; }>; placeholder?: string; }; createdAt: number; expiresAt?: number; inputType: "text" | "choice" | "form"; prompt: string; respondedAt?: number; response?: string; status: "pending" | "answered" | "expired" | "cancelled"; threadId: string; toolCallId: string; userId?: string; } | null, Name >; getPendingForThread: FunctionReference< "query", "internal", { threadId: string }, { _creationTime: number; _id: string; agentName: string; config?: { fields?: Array<{ label: string; name: string; placeholder?: string; required: boolean; type: string; }>; multiline?: boolean; options?: Array<{ description?: string; label: string; value: string; }>; placeholder?: string; }; createdAt: number; expiresAt?: number; inputType: "text" | "choice" | "form"; prompt: string; respondedAt?: number; response?: string; status: "pending" | "answered" | "expired" | "cancelled"; threadId: string; toolCallId: string; userId?: string; } | null, Name >; submitResponse: FunctionReference< "mutation", "internal", { requestId: string; response: string }, { success: boolean; threadId: string; toolCallId: string }, Name >; }; supportTeams: { create: FunctionReference< "mutation", "internal", { bugReportSeverities: Array<"low" | "medium" | "high" | "critical">; feedbackTypes: Array< "feature_request" | "change_request" | "general" >; memberEmails: Array; teamName: string; }, string, Name >; get: FunctionReference< "query", "internal", { teamId: string }, { _creationTime: number; _id: string; bugReportSeverities: Array<"low" | "medium" | "high" | "critical">; createdAt: number; feedbackTypes: Array< "feature_request" | "change_request" | "general" >; isActive: boolean; memberEmails: Array; teamName: string; updatedAt: number; } | null, Name >; list: FunctionReference< "query", "internal", { activeOnly?: boolean }, Array<{ _creationTime: number; _id: string; bugReportSeverities: Array<"low" | "medium" | "high" | "critical">; createdAt: number; feedbackTypes: Array< "feature_request" | "change_request" | "general" >; isActive: boolean; memberEmails: Array; teamName: string; updatedAt: number; }>, Name >; remove: FunctionReference< "mutation", "internal", { teamId: string }, null, Name >; update: FunctionReference< "mutation", "internal", { bugReportSeverities?: Array<"low" | "medium" | "high" | "critical">; feedbackTypes?: Array< "feature_request" | "change_request" | "general" >; isActive?: boolean; memberEmails?: Array; teamId: string; teamName?: string; }, null, Name >; }; };