Skip to content

Api

Profile data API — files, transcripts, clips, and the Anki export. (LLM template CRUD lives in shared/llm/api.)

Functions

deleteClip()

function deleteClip(clipId): Promise<void>;

Defined in: src/features/profile/api.ts:36

Deletes a clip by id (DELETE /profiles/clips/{id}).

Parameters

Parameter Type
clipId string

Returns

Promise\<void>


deleteFile()

function deleteFile(fileId): Promise<void>;

Defined in: src/features/profile/api.ts:16

Deletes a profile file by id (DELETE /profiles/files/{id}).

Parameters

Parameter Type
fileId string

Returns

Promise\<void>


deleteTranscript()

function deleteTranscript(transcriptId): Promise<void>;

Defined in: src/features/profile/api.ts:26

Deletes a transcript by id (DELETE /profiles/transcripts/{id}).

Parameters

Parameter Type
transcriptId string

Returns

Promise\<void>


exportAnki()

function exportAnki(): Promise<AnkiExportResponse>;

Defined in: src/features/profile/api.ts:41

Exports all clips as an Anki deck (GET /profiles/anki_export).

Returns

Promise\<AnkiExportResponse>


listClips()

function listClips(): Promise<Clip[]>;

Defined in: src/features/profile/api.ts:31

Lists the active profile's saved clips (GET /profiles/clips).

Returns

Promise\<Clip[]>


listFiles()

function listFiles(): Promise<ProfileFile[]>;

Defined in: src/features/profile/api.ts:11

Lists the active profile's files (GET /profiles/files).

Returns

Promise\<ProfileFile[]>


listTranscripts()

function listTranscripts(): Promise<ProfileTranscript[]>;

Defined in: src/features/profile/api.ts:21

Lists the active profile's transcripts (GET /profiles/transcripts).

Returns

Promise\<ProfileTranscript[]>