DecisionRequest
@mandaitor/sdk / DecisionRequest
Interface: DecisionRequest
Defined in: @mandaitor/sdk/dist/decisions.d.ts:16
What the enforcement point asks Mandaitor to decide (mandaitor.decision-request/v1).
Properties
action
action:
string
Defined in: @mandaitor/sdk/dist/decisions.d.ts:20
A taxonomy business action, e.g. procurement.requisition.release.
agent
agent:
string
Defined in: @mandaitor/sdk/dist/decisions.d.ts:18
The agent the enforcement point acts for, by its DID.
audience
audience:
string
Defined in: @mandaitor/sdk/dist/decisions.d.ts:30
The enforcement point itself: the only one that may act on the authorization.
facts
facts:
Record<string,DecisionFactValue>
Defined in: @mandaitor/sdk/dist/decisions.d.ts:28
What the enforcement point read from its own system, by name. amount,
when a mandate limits amounts, is money. All of them are bound into the
request digest.
mandate_id?
optionalmandate_id?:string
Defined in: @mandaitor/sdk/dist/decisions.d.ts:32
The mandate the enforcement point believes covers the operation. A hint only.
purpose?
optionalpurpose?:string
Defined in: @mandaitor/sdk/dist/decisions.d.ts:34
Recorded with the decision; never used to decide.
resource
resource:
string
Defined in: @mandaitor/sdk/dist/decisions.d.ts:22
The one resource the operation acts on. No *, no \{placeholder\}.