/** * Create a new bug report. * This mutation is intentionally public (no auth required) because: * 1. We want to capture bugs even when auth might be broken * 2. The reporter info is passed explicitly from the client */ export declare const create: import("convex/server").RegisteredMutation<"public", { route?: string; consoleErrors?: string; screenshotStorageId?: import("convex/values").GenericId<"_storage">; openRouterApiKey?: string; resendApiKey?: string; resendFromEmail?: string; skipAutoProcess?: boolean; description: string; severity: "low" | "medium" | "high" | "critical"; reporterType: "staff" | "customer"; title: string; reporterId: string; reporterEmail: string; reporterName: string; url: string; browserInfo: string; viewportWidth: number; viewportHeight: number; networkState: string; }, Promise>>; /** * List bug reports with optional filters. * By default, archived items are excluded unless includeArchived is true. */ export declare const list: import("convex/server").RegisteredQuery<"public", { severity?: "low" | "medium" | "high" | "critical"; status?: "open" | "in-progress" | "resolved" | "closed"; limit?: number; includeArchived?: boolean; }, Promise>; /** * Get a single bug report by ID. */ export declare const get: import("convex/server").RegisteredQuery<"public", { reportId: import("convex/values").GenericId<"bugReports">; }, Promise<{ _id: import("convex/values").GenericId<"bugReports">; _creationTime: number; isArchived?: boolean; route?: string; consoleErrors?: string; screenshotStorageId?: import("convex/values").GenericId<"_storage">; aiSummary?: string; aiRootCauseAnalysis?: string; aiReproductionSteps?: string[]; aiSuggestedFix?: string; aiEstimatedEffort?: "low" | "medium" | "high"; aiSuggestedSeverity?: "low" | "medium" | "high" | "critical"; aiAnalyzedAt?: number; aiThreadId?: string; notificationsSentAt?: number; ticketNumber?: string; description: string; severity: "low" | "medium" | "high" | "critical"; status: "open" | "in-progress" | "resolved" | "closed"; reporterType: "staff" | "customer"; title: string; reporterId: string; reporterEmail: string; reporterName: string; url: string; browserInfo: string; viewportWidth: number; viewportHeight: number; networkState: string; createdAt: number; updatedAt: number; }>>; /** * Update bug report status. */ export declare const updateStatus: import("convex/server").RegisteredMutation<"public", { status: "open" | "in-progress" | "resolved" | "closed"; reportId: import("convex/values").GenericId<"bugReports">; }, Promise>; /** * Generate upload URL for screenshot. */ export declare const generateUploadUrl: import("convex/server").RegisteredMutation<"public", {}, Promise>; /** * Get screenshot URL from storage ID. */ export declare const getScreenshotUrl: import("convex/server").RegisteredQuery<"public", { storageId: import("convex/values").GenericId<"_storage">; }, Promise>; /** * Archive a bug report. */ export declare const archive: import("convex/server").RegisteredMutation<"public", { reportId: import("convex/values").GenericId<"bugReports">; }, Promise>; /** * Unarchive a bug report. */ export declare const unarchive: import("convex/server").RegisteredMutation<"public", { reportId: import("convex/values").GenericId<"bugReports">; }, Promise>; /** * Get AI analysis for a specific bug report. */ export declare const getAiAnalysis: import("convex/server").RegisteredQuery<"public", { reportId: import("convex/values").GenericId<"bugReports">; }, Promise<{ aiSummary: string; aiRootCauseAnalysis: string; aiReproductionSteps: string[]; aiSuggestedFix: string; aiEstimatedEffort: "low" | "medium" | "high"; aiSuggestedSeverity: "low" | "medium" | "high" | "critical"; aiAnalyzedAt: number; notificationsSentAt: number; }>>; /** * Internal mutation to update bug report with AI analysis results */ export declare const updateWithAnalysis: import("convex/server").RegisteredMutation<"internal", { aiSummary: string; aiRootCauseAnalysis: string; aiReproductionSteps: string[]; aiSuggestedFix: string; aiEstimatedEffort: "low" | "medium" | "high"; aiSuggestedSeverity: "low" | "medium" | "high" | "critical"; aiThreadId: string; bugReportId: import("convex/values").GenericId<"bugReports">; }, Promise>; /** * Internal query to list bug reports (for HTTP API). */ export declare const listInternal: import("convex/server").RegisteredQuery<"internal", { severity?: "low" | "medium" | "high" | "critical"; status?: "open" | "in-progress" | "resolved" | "closed"; limit?: number; includeArchived?: boolean; }, Promise>; /** * Public mutation to update bug report status by ticket number. * Used by consumer apps via component API and HTTP API. */ export declare const updateStatusByTicketNumber: import("convex/server").RegisteredMutation<"public", { status: "open" | "in-progress" | "resolved" | "closed"; ticketNumber: string; }, Promise<{ success: boolean; ticketNumber: string; }>>; /** * Public mutation to archive/unarchive bug report by ticket number. * Used by consumer apps via component API and HTTP API. */ export declare const setArchivedByTicketNumber: import("convex/server").RegisteredMutation<"public", { isArchived: boolean; ticketNumber: string; }, Promise<{ success: boolean; ticketNumber: string; isArchived: boolean; }>>; /** * Internal mutation to mark notifications as sent */ export declare const markNotificationsSent: import("convex/server").RegisteredMutation<"internal", { bugReportId: import("convex/values").GenericId<"bugReports">; }, Promise>; //# sourceMappingURL=bugReports.d.ts.map