import { AxiosRequestConfig } from "axios"; import type { ArtifactType, EmbeddingsCacheResponse } from "./interface.js"; export interface PaginatedResponse { count: number; next: string | null; previous: string | null; results: T[]; } export interface AxiosResponse { data: T; status: number; statusText: string; headers: Record; config: AxiosRequestConfig; } export interface BaseModel { id: number; uuid: string; timestamp: string; lastMod: string; } export interface PublicUserInfo { uuid: string; email: string; firstName: string; lastName: string; company: string; } export interface Message { uuid: string; sender: string; role: string; content: string; cleanedTickedContent: string | null; jsonContent: Record | null; timestamp: string; lastMod: string; } export interface Conversation { uuid: string; creatorUuid: string; user: number; company: number; messages: Message[]; timestamp: string; lastMod: string; } export interface Issue { uuid: string; project: number; title?: string; message?: string; environment: string; status: "open" | "ongoing" | "resolved" | "archived"; level: Level; priority: "low" | "medium" | "high" | "alert"; codeSingleLine: string | undefined; lineNumber: number; columnNumber: number; eventsCount: number; filePath: string; firstSeen: string; lastSeen: string; tags?: Record; participants: number[]; timestamp: string; lastMod: string; overview: LogOverview; solution?: IssueSolution; suggestions?: IssueSuggestion[]; } /** * Snippet update for a file change */ export interface SnippetUpdate { startLine: number; endLine: number; newContent: string; prevContent: string; } /** * File change for an issue solution */ export interface FileChange { filePath: string; snippetsToUpdate: SnippetUpdate[]; } /** * Fix for an issue */ export interface IssueSolution { uuid: string; changes: FileChange[]; } /** * Issue suggestion */ export interface IssueSuggestion { filePath: string; errorCount: number; lineNumber: string; columnNumber: string; message: string; } /** * Paginated response for issues */ export interface PaginatedIssueResponse extends PaginatedResponse { } /** * Paginated response for issue suggestions */ export interface PaginatedIssueSuggestionResponse extends PaginatedResponse { } export type Level = "DEBUG" | "INFO" | "WARNING" | "ERROR" | "FATAL" | "METRIC"; export interface LogOverview { title: string; message: string; args: unknown[]; kwargs: Record; stackTrace: string | null; exceptionType?: string | null; handled?: string | null; mechanism?: string | null; environment?: string | null; traceId?: string | null; celeryTaskId?: string | null; runtimeVersion?: string | null; serverName?: string | null; eventId?: string | null; timestamp?: string | null; level?: Level | null; filePath?: string | null; messagePreview?: string | null; } export interface FileResult { uuid: string; company: number; level: Level | null; title: string; message: string | null; lineNumber: number | null; columnNumber: number | null; errorCount: number; suggestions: Array<{ lineNumber: number; message: string; filePath: string; errorCount: number; }>; overview: LogOverview; } export interface Index { id: string; name: string; description: string; embeddings: EmbeddingsCacheResponse; timestamp: string; lastMod: string; } export interface CoverageResponse { uuid: string; company: string; filePath: string; repoName: string; branchName: string; testFilePath: string; testFileContent: string; coverage: null; timestamp: string; lastMod: string; } export interface Host { id: number; name: string; } export interface E2eTest { id: string; uuid: string; project: number; projectName?: string | null; tunnelKey?: string | null; curRun?: E2eRun | null; host?: Host | null; name: string; description?: string | null; agent?: number | null; agentTaskDescription?: string | null; testScript: string; timestamp: string; lastMod: string; createdBy?: number | null; } export type E2eRunStatus = 'pending' | 'running' | 'completed'; export type E2eRunOutcome = 'pending' | 'skipped' | 'unknown' | 'pass' | 'fail'; export type E2eRunType = 'generate' | 'run'; export interface E2eRunMetrics { executionTime: number; numSteps: number; } export interface E2eRun { id: number; uuid: string; timestamp: string; lastMod: string; key: string; runType: E2eRunType; test?: E2eTest | null; tunnelKey?: string | null; status: E2eRunStatus; outcome: E2eRunOutcome; conversations?: Conversation[]; startedBy?: number | null; runOnHost?: number | null; targetUrl?: string | null; runGif?: string | null; runScript?: string | null; runJson?: string | null; metrics?: E2eRunMetrics | null; } export interface E2eTestSuite { uuid: string; id: number; name: string; description?: string | null; project: number; host?: number | null; createdBy?: PublicUserInfo | null; completed?: boolean; completedAt?: string | null; tests?: E2eTest[]; key: string; feature?: TestFeature | null; testType?: TestType | null; userRole?: UserRole | null; deviceType?: DeviceType | null; region?: Region | null; featureId?: number | null; testTypeId?: number | null; userRoleId?: number | null; deviceTypeId?: number | null; regionId?: number | null; timestamp: string; lastMod: string; tunnelKey?: string | null; } export interface E2eTestCommitSuite { id: number; uuid: string; commitHash: string | null; commitHashShort: string | null; project: number; projectName: string | null; description: string; summarizedChanges: string | null; tests: E2eTest[]; tunnelKey: string | null; key: string | null; runStatus: E2eRunStatus; createdBy: PublicUserInfo | null; timestamp: string; lastMod: string; } export interface SimpleE2eTestCommitSuite { id: number; uuid: string; commitHash: string | null; commitHashShort: string | null; project: number; projectName: string | null; summarizedChanges: string | null; tunnelKey: string | null; key: string | null; runStatus: E2eRunStatus; testCount: number; createdBy: PublicUserInfo | null; timestamp: string; lastMod: string; } export interface TestFeature { id: number; name: string; description?: string; } export interface TestType { id: number; name: string; } export interface UserRole { id: number; name: string; } export interface DeviceType { id: number; name: string; } export interface Region { id: number; name: string; } export interface CommitInfo { hash: string; message: string; author: string; date: string; files: string[]; diff: string; } export interface WorkingChange { status: string; file: string; diff?: string; } export interface WorkingChanges { changes: WorkingChange[]; branchInfo: { branch: string; commitHash: string; }; } //# sourceMappingURL=types.d.ts.map