LoadTarget
@rotorsoft/act-root / act/src / LoadTarget
Type Alias: LoadTarget<TActor>
LoadTarget<
TActor> =object
Defined in: libs/act/src/types/action.ts:78
Auth-aware target for IAct.load. Symmetric with Target (used by
IAct.do) but without expectedVersion — load is a read, not a write —
and with optional asOf for time-travel.
Passing a LoadTarget (rather than a bare stream string) is the
framework's explicit "I'm reading on behalf of this actor" signal. The
read-path runs the state's .discloses(predicate) against this actor;
sensitive fields come back as plaintext when authorized, [REDACTED]
otherwise. The bare-string load form always default-denies (everything
comes back [REDACTED]), so callers who need plaintext access must
explicitly construct a LoadTarget. actor is optional — anonymous
background calls (close-cycle replay, internal restart seeding) pass
just the stream and get the default-deny path.
Type Parameters
TActor
The actor type bound at act().withActor<TActor>().
Properties
actor?
readonlyoptionalactor?:TActor
Defined in: libs/act/src/types/action.ts:80
asOf?
readonlyoptionalasOf?:AsOf
Defined in: libs/act/src/types/action.ts:81
stream
readonlystream:string
Defined in: libs/act/src/types/action.ts:79