Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

1007 B
Raw Blame
export interface IFile {
  create_date: string;
  create_time: number;
  created_by: string;
  id: string;
  kbs_info: { kb_id: string; kb_name: string }[];
  location: string;
  name: string;
  parent_id: string;
  size: number;
  tenant_id: string;
  type: string;
  update_date: string;
  update_time: number;
  source_type: string;
  has_child_folder?: boolean;
  operator_permission?: number;
}

export interface IFolder {
  create_date: string;
  create_time: number;
  created_by: string;
  id: string;
  location: string;
  name: string;
  parent_id: string;
  size: number;
  tenant_id: string;
  type: string;
  update_date: string;
  update_time: number;
  source_type: string;
  operator_permission?: number;
}

export type IFetchFileListResult = {
  files: IFile[];
  parent_folder: IFolder;
  total: number;
  // Set by the file-list hook when the requested folder no longer exists so
  // the page can redirect to the root folder instead of rendering an error.
  folderNotFound?: boolean;
};