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?
optionalautoApproveThreshold?:number
Defined in: pqsafe/agent-pay/src/approval.ts:845
Payments ≤ this amount execute without approval. Default: Infinity (all autonomous)
onApprovalResult?
optionalonApprovalResult?: (info,approved) =>void
Defined in: pqsafe/agent-pay/src/approval.ts:851
Called when operator approves or rejects
Parameters
info
approved
boolean
Returns
void
onApprovalSent?
optionalonApprovalSent?: (info) =>void
Defined in: pqsafe/agent-pay/src/approval.ts:849
Called when approval is sent — useful for logging/telemetry
Parameters
info
Returns
void
telegramBotToken?
optionaltelegramBotToken?:string
Defined in: pqsafe/agent-pay/src/approval.ts:841
Telegram bot token from
Bot Father
telegramChatId?
optionaltelegramChatId?:string
Defined in: pqsafe/agent-pay/src/approval.ts:843
Chat ID to send approval requests to (personal DM, group, or channel)
timeoutSeconds?
optionaltimeoutSeconds?:number
Defined in: pqsafe/agent-pay/src/approval.ts:847
Seconds to wait for approval before rejecting. Default: 300 (5 min)