openmixer — generated API reference
    Preparing search index...

    Class InsertRackResource

    The rack entity. The collection mold with ONE law added: a rack the destination cannot afford is refused in a CODE, before anything is written (issue #339). The judgement runs ahead of the mold's own decode loop's write, so a refusal leaves the rack exactly as it was and the operator is told which destination could not take it.

    The operator's OVERRIDE has no entity spelling yet: it is an argument of the moment, not state a PATCH converges on, so a verb carrying override: true keeps the legacy door (see the file header's open questions in the PR).

    Hierarchy (View Summary)

    Index
    confirm: ConfirmGate | undefined

    The confirm gate a write here must pass, when the row declared one — see ConsoleResource.confirm. Declared on the row and executed by the registry; every mold carries it the same way, so a gated operation and a gated record are one clause.

    lifecycle: ResourceLifecycle | undefined

    The row's CREATE/DELETE doors, when it declared any.

    path: string

    The path template, e.g. /channel/{kind}/{index}/headAmp. Braced segments become ResourceId keys. One template per entity type; instances differ only by id.

    policy: ResourcePolicy | undefined

    The row's declared bookkeeping policy — see ResourcePolicy.

    • Whether these variables NAME an instance of this entity — the address codec's own answer, independent of whether this console holds that instance. See ConsoleResource.addresses.

      Parameters

      Returns boolean

    • The canonical spelling of an instance id — the ONE name every broadcast frame carries, whichever door (raw wire segments, model values) the write came through. A resource that omits this broadcasts the caller's id verbatim.

      Parameters

      Returns Readonly<Record<string, string | number>> | undefined

    • The OFFER: plugins.values is the roster narrowed to what fits this strip, from the same door and the same predicate the PATCH refusal uses (amendment 2026-09-02, catalog spec), so a surface that binds this list never renders a choice the door refuses.

      Parameters

      Returns ReadonlyMap<string, FieldCapability>

    • The station's own instance list, canonically spelled — the snapshot's half of read.

      Returns Iterable<Readonly<Record<string, string | number>>, any, any> | undefined

    • Project the state onto the audio — the southbound half. Called by the registry after every accepted patch that changed something. The implementation re-reads its own state and drives the backend from that read; there is no state argument to trust. A resource whose state has no audio consequence returns PROJECTED; an unwired backend returns notProjected so the refusal is visible on the first attempt.

      Synchronous by contract. Hardware that lands later uses a queued sink: dispatch now, and the landing (confirmation or refusal) reaches every client as the next frame of the same instance via ResourceRegistry.reproject.

      Parameters

      Returns ProjectionResult

    • Read the ONE state. undefined when the instance does not exist — the layer turns that into a not-found rather than an empty object, so "absent" and "default" stay distinct. Pure: a read may not bind, seed, or persist anything.

      Parameters

      Returns InsertRack | undefined