Skip to content

Types

Profile / dashboard feature types.

Interfaces

AnkiExportResponse

Defined in: src/features/profile/types.ts:33

Response from the Anki export endpoint.

Properties

Property Type Defined in
anki_deck_url string src/features/profile/types.ts:34

FileDeleteResponse

Defined in: src/features/profile/types.ts:42

Response from deleting a profile file. deleted_job_ids lists the jobs removed alongside it (a batch parent covers its children), so the caller can prune them from the task tray.

Properties

Property Type Defined in
deleted_job_ids string[] src/features/profile/types.ts:45
message string src/features/profile/types.ts:44
success boolean src/features/profile/types.ts:43

Type Aliases

FileOrigin

type FileOrigin =
  | "upload"
  | "generated"
  | "fixed"
  | "converted"
  | "subtitle"
  | "clip";

Defined in: src/features/profile/types.ts:6

How a file came to be, from the server's origin tag.


ProfileFile

type ProfileFile = object;

Defined in: src/features/profile/types.ts:9

A profile file (/profiles/files).

Properties

Property Type Description Defined in
created_at? string | null - src/features/profile/types.ts:19
folder? string | null - src/features/profile/types.ts:14
id string - src/features/profile/types.ts:10
name string - src/features/profile/types.ts:11
origin? FileOrigin | null How the file was produced, driving its variant label. src/features/profile/types.ts:18
source_file_id? string | null The root media this file derives from, or null when it is a root. src/features/profile/types.ts:16
type string | null - src/features/profile/types.ts:13
url string - src/features/profile/types.ts:12

ProfileTranscript

type ProfileTranscript = object;

Defined in: src/features/profile/types.ts:23

A profile transcript (/profiles/transcripts).

Properties

Property Type Defined in
created_at? string | null src/features/profile/types.ts:29
file_id string src/features/profile/types.ts:25
id string src/features/profile/types.ts:24
llm_explanation? string | null src/features/profile/types.ts:27
text string src/features/profile/types.ts:26
url? string | null src/features/profile/types.ts:28