Constraints
@mandaitor/sdk / Constraints
Interface: Constraints
Defined in: @mandaitor/sdk/dist/types.d.ts:96
The boundaries on a mandate.
Not every field here is enforced by POST /verify. The ones that are:
time, require_mfa, and escalation_rules[].deviation_above_percent.
Fields marked @deprecated below are accepted and stored but evaluated by
nothing on the verify path — the creation response names them in
unsupported_constraints, and every verification response reports
evaluated_constraints and unevaluated_constraints.
They are deprecated as of 2026-09-10 and will be rejected at creation after the 90-day deprecation window that applies to Stable endpoints.
Properties
custom?
optionalcustom?:Record<string,unknown>
Defined in: @mandaitor/sdk/dist/types.d.ts:144
Custom constraint extensions.
Accepted and stored verbatim, and evaluated by nothing. Anything set here
appears in unsupported_constraints on the creation response.
escalation_rules?
optionalescalation_rules?:EscalationRule[]
Defined in: @mandaitor/sdk/dist/types.d.ts:119
Partially enforced. deviation_above_percent is evaluated by
POST /verify when the request supplies context.deviation_percent.
amount_above, and since E2.15 wallet_above (above it, the approval is
confirmed with the approver's EUDI Wallet), are evaluated only by the
execution path (POST /executions), in its own shape (see the execution
guide).
rate_limits?
optionalrate_limits?:Record<string,RateLimit>
Defined in: @mandaitor/sdk/dist/types.d.ts:129
Deprecated
Not enforced by POST /verify. For request-rate limiting see
the Rate Limiting guide — those limits are enforced per tenant at the
gateway, not per mandate.
The execution path (POST /executions) reads max_count, a list of
{ count, window } this type does not describe yet, and refuses a
mandate carrying any other key here (see the execution guide).
require_human_confirmation?
optionalrequire_human_confirmation?:boolean
Defined in: @mandaitor/sdk/dist/types.d.ts:131
Deprecated
Not enforced. Accepted and stored; no code path evaluates it.
require_mfa?
optionalrequire_mfa?:boolean
Defined in: @mandaitor/sdk/dist/types.d.ts:137
When true, verification requires MFA proof in context.
Callers must provide one of: context.amr (containing "mfa"),
context.loa ("SUBSTANTIAL" or "HIGH"), or context.mfa_timestamp.
time?
optionaltime?:TimeConstraint
Defined in: @mandaitor/sdk/dist/types.d.ts:98
Enforced. The mandate's validity window.
transaction_limits?
optionaltransaction_limits?:Record<string,TransactionLimit>
Defined in: @mandaitor/sdk/dist/types.d.ts:110
Deprecated
Not enforced by POST /verify, which never has. A
Proof-of-Mandate issued by /verify lists this under
unenforced_constraints rather than in constraints_snapshot, so a
relying party is not misled into treating it as checked.
The execution path (POST /executions) reads max_amount and
max_total in its own shapes, which this type does not describe yet:
money with a decimal-string value, and a list of
{ amount, window } (see the execution guide).