Skip to content

Interface: ContextRuleInput

Makaio Framework


Makaio Framework / services-core/context-rules / ContextRuleInput

Defined in: ../../../packages/services/core/src/context-rules/types.ts:111

Write payload for creating or updating a context rule.

action: ContextRuleAction

Defined in: ../../../packages/services/core/src/context-rules/types.ts:121

Delivery action attached to matching rules.


condition: Condition

Defined in: ../../../packages/services/core/src/context-rules/types.ts:119

Predicate tree that decides whether the rule matches.


optional description?: string

Defined in: ../../../packages/services/core/src/context-rules/types.ts:117

Optional description for diagnostics or UI display.


enabled: boolean

Defined in: ../../../packages/services/core/src/context-rules/types.ts:125

Whether the rule is active during resolution.


id: string

Defined in: ../../../packages/services/core/src/context-rules/types.ts:113

Stable rule identifier.


name: string

Defined in: ../../../packages/services/core/src/context-rules/types.ts:115

Human-readable rule name.


priority: number

Defined in: ../../../packages/services/core/src/context-rules/types.ts:123

Deterministic ordering key for matching rules.


optional projectId?: string

Defined in: ../../../packages/services/core/src/context-rules/types.ts:103

Project identifier for project scope and optionally project-bound session scope.

ContextRuleScopeFields.projectId


scope: ContextRuleScope

Defined in: ../../../packages/services/core/src/context-rules/types.ts:101

Hierarchical scope deciding when the rule is a candidate.

ContextRuleScopeFields.scope


optional sessionId?: string

Defined in: ../../../packages/services/core/src/context-rules/types.ts:105

Session identifier for session-scoped rules.

ContextRuleScopeFields.sessionId