LuxelEspañol

Luxel v0.2 · Reference · part 6 of 14

API reference (6)

ExportKindDescription
MoneyLeafinterface—
NumberLeafinterfaceSprint 7: a raw finite number for a number slot. */
NumbersLeafinterfaceSprint 7: a list of raw finite numbers for a number-list slot. */
OptionsLeafinterfaceSprint 7: the options of a select. */
PendingKeystypeWhat an answer does to a collection it did not give whole: the keys it leaves inserted and removed. */
PolicyContractinterfaceAn event's authorization policy, as the compiler copies it from the contract (Sprint 7). */
QuantityLeafinterfaceSprint 7: a number shown as text, formatted by the host. */
ReadContexttypeSprint 11 (ADR-050): the context of a READ (effect: 'read': a search, a page, a recalculation). No event id: a read has no effect to deduplicate. tx is the store's read-only connection (an EventStore that can, runs it in a READ ONLY transaction: a write fails and changes nothing). It can change what the page shows (set, insert…), never stored data. luxel build refuses a read handler that writes (LUXEL-E055). /
RejectCodetypeBusiness refusals a handler may return; the protocol's other codes are the framework's. */
Rejectioninterface—
RequestIdentityinterfaceSprint 13.5 (ADR-065): the verified token of the request (structural copy of @luxel-framework/gateway's type). */
rowsHeldfunctionThe rows an event carried, per collection zone: a rows input is named after its collection (the compiler's rule), so the compiled manifest alone says which collection an event holds whole. /
Scopeinterface—
ScopeFntypeObject authorization (Sprint 7): for each resource kind the contract's refs name, the ids the session may use. Called with every id an event carries, inside its transaction (or connection, for a read); any id not returned refuses the event (VALIDATION with the generic message: the same answer for an id that does not exist and one of another scope). /
screenDefinitionsfunctionEvery definition of the app's screens: { ‹view id>: ‹the screen file's default export> }. */
ServerColumnContractinterface—
ServerFieldContractinterface—
ServerRowContractinterface—
ServerViewAdapterinterfaceThe gateway's ViewAdapter shape (kept structural: @luxel-framework/server does not depend on the gateway). */
ServerViewContractinterfaceThe server-only contract the compiler writes (.luxel/events.json), per view. */
Sessioninterface—
ExportKindDescription
SignInPrincipalinterfaceSprint 10: who signs in (the session store keeps it; the page never sees it). */
SnapshotinterfaceA load's answer (Sprint 7): the state and the version it was read with, from one statement. */
stateWithinBoundsfunctionTHE rule (one place, every adapter): a state never leaves the server with a collection over its declared bound. The gateway calls it on every state it is about to send or fill a page with, whoever wrote the adapter (defineLoad, a screen, or a hand-written one in bindings.views). /
StaticLoadContexttypeSprint 11 (SEC-STATIC-REVIEW, ADR-049): the context of a STATIC view's load. It runs once, at start-up, and what it returns is shown to everyone: there is no session (no user, roles or scopes). Reading ctx.session throws; luxel build refuses a static load that reads it (LUXEL-E056). /
stepsOfOpsfunctionThe steps of an answer's ops (what the gateway is about to encode), for stepsWithinBounds. */
Edit this page on GitHub

This page: 7.9 KB of JavaScript (Luxel's shared runtime), 0 KB from your app.

Measured when the site is built: the runtime files this page loads, compressed as they are sent.

Made by IntiOps. The Luxel 0.1.0 betas are on npm (0.1.0-beta.1, 0.1.0-beta.2), with an alpha of 0.2 (0.2.0-alpha.1): no external security review yet.