Skip to content

Session

The demo's in-memory write store. The hybrid policy lets harmless writes (save a clip, delete, edit the template) feel real for the session and reset on reload. Mutable profile collections start from their recorded GET fixtures and apply an overlay of session additions/deletions.

Variables

session

const session: object;

Defined in: src/demo/api/session.ts:50

Type Declaration

Name Type Description Defined in
clips() () => unknown[] - src/demo/api/session.ts:52
files() () => unknown[] - src/demo/api/session.ts:51
template() () => unknown - src/demo/api/session.ts:54
transcripts() () => unknown[] - src/demo/api/session.ts:53
addClip() ( blob, startTime, endTime, breakdown) => object Registers a session-saved clip. The recorder produced a real blob, so we mint an object URL for it and play it back locally this session. src/demo/api/session.ts:98
addFile() (name, type?) => Record\<string, unknown> Registers an uploaded profile file and returns a synthesized record. src/demo/api/session.ts:79
clearTemplate() () => void - src/demo/api/session.ts:74
deleteClip() (id) => void - src/demo/api/session.ts:61
deleteFile() (id) => object - src/demo/api/session.ts:56
deleteTranscript() (id) => void - src/demo/api/session.ts:65
saveSubtitle() (name) => Record\<string, unknown> Records a saved subtitle file and returns a synthesized record. src/demo/api/session.ts:121
setTemplate() (body) => unknown - src/demo/api/session.ts:69