mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-26 21:39:43 +02:00
feat: add library artifact model
This commit is contained in:
parent
e04627e185
commit
fd9763417b
1 changed files with 21 additions and 0 deletions
21
surfsense_web/features/artifacts-library/model/artifact.ts
Normal file
21
surfsense_web/features/artifacts-library/model/artifact.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/** Deliverable kinds surfaced in the search-space-wide artifacts library. */
|
||||
export type LibraryArtifactKind = "report" | "resume" | "podcast" | "video" | "image";
|
||||
|
||||
export type LibraryArtifactStatus = "ready" | "running" | "error";
|
||||
|
||||
/**
|
||||
* A deliverable aggregated from the search space's list endpoints. The heavy
|
||||
* content (report body, audio, video frames, image bytes) is fetched lazily by
|
||||
* the viewer when a card is opened.
|
||||
*/
|
||||
export interface LibraryArtifact {
|
||||
/** Stable list key — `${kind}-${entityId}`. */
|
||||
key: string;
|
||||
kind: LibraryArtifactKind;
|
||||
entityId: number;
|
||||
title: string;
|
||||
status: LibraryArtifactStatus;
|
||||
createdAt: string;
|
||||
/** Report panel content type — "typst" for resumes, "markdown" otherwise. */
|
||||
contentType: "markdown" | "typst";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue