Skip to content

BeechCMS


BeechCMS / @beechcms/core / resolveOperationRisk

Function: resolveOperationRisk() ​

resolveOperationRisk(operation, input): OperationRisk

Resolves the effective risk of an agent operation for one request.

Parameters ​

operation ​

AgentOperationSpec

An agent entry of OPERATION_CATALOG.

input ​

OperationRiskInput

The request query and parsed JSON body (undefined when absent).

Returns ​

OperationRisk

The static risk as is, or the result of the operation's request-dependent rule.