LuxelEspañol

Luxel v0.1 · Reference · part 6 of 12

API reference (6)

ExportKindDescription
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—
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—
SignInPrincipalinterfaceSprint 10: who signs in (the session store keeps it; the page never sees it). */
ExportKindDescription
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. */
stepsWithinBoundsfunctionThe same rule for an event's answer, step by step. Per collection, the keys the list holds as far as the server knows: all of them when the list is KNOWN, and then every insert and remove applies to that known list and the count is exact. A list is known when the answer gives it whole (set, sync), or when the event carried it (held: the rows of a row collection with inputs, sent by the browser as the event's rows input and already limited to maxItems by the decoder). For a list that is not known, only the inserted keys are counted (the least the page's list holds), and the function returns what the answer inserts into and removes from it: the caller settles those against the view's state after the event (answerMatchesState). /
StoredResulttypeWhat is stored for a replay (JSON): the changes and the version, a refusal, or a conflict. */
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. Luxel 0.1.0-beta.1 is a beta: no external security review yet.