@agorio/sdkDocs


Interface: DelegationLink

DelegatedMandate — a third party (e.g. a procurement system) authorizes a payment on behalf of the buyer. (v0.10)

Carries a delegation chain describing who delegated authority to whom and the scope/limit of that authority. The signature on a DelegatedMandate is produced by the delegate; receivers verify the delegate’s key and then walk delegation.chain to confirm the authority traces back to the buyer.

Properties

delegate

delegate: string

Party receiving authority.

Defined in

src/client/ap2-client.ts:79


delegator

delegator: string

Party granting authority (DID, agent id, or org id).

Defined in

src/client/ap2-client.ts:77


expiresAt?

optional expiresAt: string

Optional ISO-8601 expiry for this delegation link.

Defined in

src/client/ap2-client.ts:85


maxAmount?

optional maxAmount: string

Optional spend cap for this link, as a decimal string.

Defined in

src/client/ap2-client.ts:83


scope?

optional scope: string

Optional scope descriptor (e.g. ‘purchase’, ‘refund’).

Defined in

src/client/ap2-client.ts:81