DefineActionOptions<Mode, HasProgress, F, Id, Stages, Input, Output>
Type Alias: DefineActionOptions<Mode, HasProgress, F, Id, Stages, Input, Output>
DefineActionOptions<
Mode,HasProgress,F,Id,Stages,Input,Output> =object&Modeextends"inputless"?HasProgressextendstrue?object:object:Modeextends"scalar"?HasProgressextendstrue?object:object:Modeextends"host"?HasProgressextendstrue?never:object:never
Defined in: src/action/definition.ts:232
The complete options record accepted by one defineAction() overload.
Mode selects the invocation door and HasProgress selects whether the
mutation receives the narrow lifecycle capability.
Type Declaration
does
readonlydoes:string
Stable, app-authored sentence describing the action's meaning.
guard?
readonlyoptionalguard?:ActionGuardContract
needs?
readonlyoptionalneeds?:Readonly<Record<string, {from?:string;kind:string;schema?:unknown; }>>
Inert, named inputs reserved for a future channel broker. Layer 1 stores these declarations but never matches a surface, collects a value, or changes action availability from them.
principal?
readonlyoptionalprincipal?:PrincipalPolicy&object|PrincipalPolicy&object|PrincipalPolicy&object
Invocation authority and decision ownership.
produces?
readonlyoptionalproduces?:object
Inert output declaration reserved for a future channel broker. Layer 1 records it without routing or rendering it.
produces.kind
readonlykind:string
produces.schema?
readonlyoptionalschema?:unknown
role?
readonlyoptionalrole?:CanonicalRole
Type Parameters
Mode
Mode extends ActionInvocationMode
HasProgress
HasProgress extends boolean
F
F extends (...args) => any
Id
Id extends string = string
Stages
Stages extends readonly string[] = readonly string[]
Input
Input = unknown
Output
Output = ReturnType<F>