Skip to content

ApprovalConfig

PQSafe AgentPay API Reference v0.1.0


PQSafe AgentPay API Reference / ApprovalConfig

Interface: ApprovalConfig

Defined in: pqsafe/agent-pay/src/approval.ts:839

Properties

autoApproveThreshold?

optional autoApproveThreshold?: number

Defined in: pqsafe/agent-pay/src/approval.ts:845

Payments ≤ this amount execute without approval. Default: Infinity (all autonomous)


onApprovalResult?

optional onApprovalResult?: (info, approved) => void

Defined in: pqsafe/agent-pay/src/approval.ts:851

Called when operator approves or rejects

Parameters

info

ApprovalInfo

approved

boolean

Returns

void


onApprovalSent?

optional onApprovalSent?: (info) => void

Defined in: pqsafe/agent-pay/src/approval.ts:849

Called when approval is sent — useful for logging/telemetry

Parameters

info

ApprovalInfo

Returns

void


telegramBotToken?

optional telegramBotToken?: string

Defined in: pqsafe/agent-pay/src/approval.ts:841

Telegram bot token from

Bot Father


telegramChatId?

optional telegramChatId?: string

Defined in: pqsafe/agent-pay/src/approval.ts:843

Chat ID to send approval requests to (personal DM, group, or channel)


timeoutSeconds?

optional timeoutSeconds?: number

Defined in: pqsafe/agent-pay/src/approval.ts:847

Seconds to wait for approval before rejecting. Default: 300 (5 min)