Interface: SessionEventActionContext
Makaio Framework / contracts / SessionEventActionContext
Interface: SessionEventActionContext
Section titled “Interface: SessionEventActionContext”Defined in: ../../../packages/contracts/src/extension/contributions/session-event-action-types.ts:81
Context passed to a session event action factory.
Properties
Section titled “Properties”bus:
IMakaioBus
Defined in: ../../../packages/contracts/src/extension/contributions/session-event-action-types.ts:83
Bus instance for registering action handlers.
createAction
Section titled “createAction”createAction: <
TMode,TRoles>(options) =>CreateSessionEventActionResult
Defined in: ../../../packages/contracts/src/extension/contributions/session-event-action-types.ts:95
Register one executable action with the owning session-event-action service.
The service package owns the bus subjects and callback plumbing; extension contributors receive this factory through the contribution context instead of importing service implementation modules directly.
Type Parameters
Section titled “Type Parameters”TMode extends "single" | "multi"
TRoles
Section titled “TRoles”TRoles extends MessageRole[]
Parameters
Section titled “Parameters”options
Section titled “options”SessionEventActionOptions<TMode, TRoles>
Action declaration and runtime callbacks.
Returns
Section titled “Returns”CreateSessionEventActionResult
Serializable declaration plus unregister hook.
extensionName
Section titled “extensionName”extensionName:
string
Defined in: ../../../packages/contracts/src/extension/contributions/session-event-action-types.ts:85
Name of the extension registering the action.