Skip to main content

Actor

@rotorsoft/act-root


@rotorsoft/act-root / act/src / Actor

Type Alias: Actor

Actor = z.infer<typeof ActorSchema>

Defined in: libs/act/src/types/action.ts:39

Represents an actor (user or system) performing an action.

Actors provide audit trail and authorization context. Every action must specify who is performing it for accountability and access control.

Examples

const actor: Actor = {
id: "user-123",
name: "Alice Smith"
};
const systemActor: Actor = {
id: "system",
name: "Background Job"
};