MiniAppContext
The full context the host passes to the MiniApp during the handshake. It is returned fromapp.init() and available via app.getContext().
MiniAppUser
The user’s internal ID in Exode. For an unauthenticated visitor (a page with the
“Available without login” option) it is
0, and the other fields are empty.MiniAppTheme
MiniAppConfig
Platform
native means Exode is running inside a native shell (for example, an iOS/Android app). Otherwise it is web.
A host 0.4+ passes the device system (ios / android / web) in the os field.MiniAppViewport
Where the frame stands and what covers it (host 0.4+). Updated by theviewport:changed event.
MiniAppCapability
What the host can do for the app (host 0.4+):popup, prompt, haptic, header, backButton, mainButton,
composer, composer.attachments, composer.voice, composer.dictation, composer.voiceOnly,
composer.dictation.audio, composer.voiceOnly.review, composer.voiceOnly.noCancel, fullscreen, orientation,
openLink, share, clipboard. Check with app.isSupported(capability); where each capability is available — on the
Native look page.
school
Theschool field contains the school’s public data used by the Exode app itself (for example, name, domain,
preferenceSettings). The SDK types it as Record<string, unknown>: the set of fields is not fixed by the contract,
so check that the field you need is present before using it.
Host events (MiniAppEventMap)
Sent by the host when data changes. The MiniApp subscribes viaapp.on(event, handler).
MiniApp → host commands (MiniAppCommandMap)
Called via theapp.route and app.ui namespaces, and since SDK 0.4 also app.popup, app.haptic, app.header,
app.backButton, app.mainButton, app.composer and app.viewport.
minimize collapses the app window and works only for pages with the
“Floating window”, “Side panel” or “Fullscreen” window type (see Custom pages).
For the “Page” type the command does nothing. A collapsed window is not unloaded: the iframe stays alive,
its state is preserved, and the app receives visibility:changed with visible: false.BridgeMessage
The low-levelpostMessage message format. You usually do not need it, but it is useful for debugging.
Importing types
Updated: 2026-10-22 23:06 UTC