@haven_ai/sdk 0.1.20-alpha.0 → 0.1.21-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -951,7 +951,8 @@ var HavenClient = class {
951
951
  const raw = await this.post("/payments", {
952
952
  token: request.token,
953
953
  amount: request.amount,
954
- to: request.to
954
+ to: request.to,
955
+ ...request.idempotencyKey ? { idempotency_key: request.idempotencyKey } : {}
955
956
  });
956
957
  if (raw.status === "pending_approval") {
957
958
  this.throwPaymentStateError("Payment", raw);