openmixer — generated API reference
    Preparing search index...

    Class OperationResource<A, P, R>

    Type Parameters

    Hierarchy (View Summary)

    Implements

    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.

    transient: true

    A run's story is the caller's, not the board's — see ConsoleResource.transient.

    • 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

    • Every instance this operation has, when it declared an enumeration.

      Returns readonly Readonly<Record<string, string | number>>[] | undefined

    • 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 OperationState<P, R> | undefined