LuxelEspañol

Luxel v0.2 · Reference · part 7 of 14

API reference (7)

ExportKindDescription
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. */
TextLeafinterface—
ValueOftypeWhat a path takes. */
VersionedIteminterfaceAn item of a versioned collection: its key, the version of the row behind it, its fields. */
viewRefconst—
ViewRefinterfaceA view, as the generated views object exposes it. */
ViewSpecinterface—
withoutEventIdfunctionSprint 12 (LUXEL-E055 at run time, ADR-050): a read has no event id. The build refuses a read handler whose own text reads it; code it calls (a helper, hand-written bindings) is caught here instead: reading eventId throws a clear error, while 'eventId' in x stays false and spreads never see it. /
withRequestIdentityfunctionSprint 13.5 (ADR-065): a session copy for a handler, with the request's identity when it has one (not enumerable). */
WriteOutcometype—

@luxel-framework/gateway

luxel-host, sessions, rate limits (what bindings use).

ExportKindDescription
ACCOUNT_DELAY_MAX_MSconstSprint 11 (ADR-049): the longest an attempt waits for its account's next slot (accountLimit "delay"). */
addLogIdentityfunctionADR-065 §24 (class L): adds values that identify the current request's user or session (see logIdentity). Strings only, of 3 to 2048 characters; at most 256 a request. Outside a request's context it does nothing. /
addLogSecretfunctionS1o (ADR-065 §20): adds a credential to the current request's secrets, from the moment it is known to be one: luxel-host starts each request with none and the identity gate adds the token it VERIFIED for the request (and its segments of 16 characters or more). A value a client merely sent (an Authorization header that verified as nothing) is never a secret: otherwise a client could name any text of a response (a CSP directive) and have it treated as its credential. Outside a request's context it does nothing. /
addressGroupfunctionSprint 11 (red team RT-5): the key of an address for rate limits. An IPv6 client usually holds a whole /64, so its buckets are per /64; an IPv4-mapped IPv6 address is its IPv4 address. /
API_HEADERSconstAPI response header policy (ADR-006): the same minimal set as the lab's baselines (examples/shared/server/api-headers.mjs). Documents keep securityHeaders(); JSON answers are never rendered, so they carry only nosniff, no-store and same-origin CORP (they hold user data). /
Bindingsinterface—
BodyResulttype—
BUILD_DIGESTconst—
buildAppfunctionEverything public, hashed and validated. Pure: reads files, starts nothing. */
buildDigestfunctionThe build digest: sha256 of provenance.json (or of build.json for an unsigned build), hex. */
BuiltAppinterface—
canonicalJsonfunctionJSON with sorted keys and no spaces: the bytes that are hashed and signed. */
checkBuildFilesfunctionStep 1, before anything of the build is loaded or run: the signature, then every build file (changed, missing or added). Returns the problems and, when the signature verifies, the provenance and the build digest. Never names a key or a file's content. /
checkDependenciesfunctionThe installed dependencies against the signed provenance: missing, changed or added files. */
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.