Luxel v0.2 · Reference · part 7 of 14
API reference (7)
| Export | Kind | Description |
|---|
| stepsWithinBounds | function | The 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). / |
| StoredResult | type | What is stored for a replay (JSON): the changes and the version, a refusal, or a conflict. */ |
| TextLeaf | interface | — |
| ValueOf | type | What a path takes. */ |
| VersionedItem | interface | An item of a versioned collection: its key, the version of the row behind it, its fields. */ |
| viewRef | const | — |
| ViewRef | interface | A view, as the generated views object exposes it. */ |
| ViewSpec | interface | — |
| withoutEventId | function | Sprint 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. / |
| withRequestIdentity | function | Sprint 13.5 (ADR-065): a session copy for a handler, with the request's identity when it has one (not enumerable). */ |
| WriteOutcome | type | — |
@luxel-framework/gateway
luxel-host, sessions, rate limits (what bindings use).
| Export | Kind | Description |
|---|
| ACCOUNT_DELAY_MAX_MS | const | Sprint 11 (ADR-049): the longest an attempt waits for its account's next slot (accountLimit "delay"). */ |
| addLogIdentity | function | ADR-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. / |
| addLogSecret | function | S1o (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. / |
| addressGroup | function | Sprint 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_HEADERS | const | API 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). / |
| Bindings | interface | — |
| BodyResult | type | — |
| BUILD_DIGEST | const | — |
| buildApp | function | Everything public, hashed and validated. Pure: reads files, starts nothing. */ |
| buildDigest | function | The build digest: sha256 of provenance.json (or of build.json for an unsigned build), hex. */ |
| BuiltApp | interface | — |
| canonicalJson | function | JSON with sorted keys and no spaces: the bytes that are hashed and signed. */ |
| checkBuildFiles | function | Step 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. / |
| checkDependencies | function | The installed dependencies against the signed provenance: missing, changed or added files. */ |
Edit this page on GitHub