Skip to main content
The SDK is fully typed. This page maps each public type to the entry point that exports it, so you always know where to import from.

Quick map

Answer types

The core answer shape and its concrete variants. These come from the underlying runtime but are re-exported by the SDK so you never import @youssefalmia/* directly.
RuntimeAnswer[] is what EdpireQuestion’s onAnswersChange gives you and what /check and submit accept.

Embedded Player types

Full shapes: see Embedded Player.

Custom Flow helpers

buildSubmitPayload(stored: StoredAnswer[]) converts a flat array into the nested { exerciseAnswers: [...] } format. (client.submit() also accepts the flat array directly, so you rarely need to call this yourself.)

React component prop types

See React Components for both tables.

Feedback types

The per-node feedback shapes used by AssessmentShell (SubmitResult.exerciseFeedback).
EmbedResult.exercise_feedback (Embedded Player) is the snake_case equivalent of this same structure. AssessmentShell’s SubmitResult uses camelCase because you construct it in your own onSubmit handler.

Branding & theming types

See Branding.

Server Client types

All exported from @edpire/sdk/client: