@mixrpay/agent-sdk 0.8.0 → 0.8.1

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.

Potentially problematic release.


This version of @mixrpay/agent-sdk might be problematic. Click here for more details.

package/dist/index.cjs CHANGED
@@ -525,7 +525,7 @@ function getAmountUsd(requirements) {
525
525
  }
526
526
 
527
527
  // src/agent-wallet.ts
528
- var SDK_VERSION = "0.8.0";
528
+ var SDK_VERSION = "0.8.1";
529
529
  var DEFAULT_BASE_URL = process.env.MIXRPAY_BASE_URL || "https://www.mixrpay.com";
530
530
  var DEFAULT_TIMEOUT = 3e4;
531
531
  var NETWORKS = {
@@ -1449,7 +1449,7 @@ var AgentWallet = class {
1449
1449
  async getBalance() {
1450
1450
  this.logger.debug("Fetching wallet balance...");
1451
1451
  try {
1452
- const response = await fetch(`${this.baseUrl}/v1/wallet/balance`, {
1452
+ const response = await fetch(`${this.baseUrl}/api/v1/wallet/balance`, {
1453
1453
  headers: {
1454
1454
  "X-Session-Key": this.sessionKey.address
1455
1455
  }
@@ -1516,7 +1516,7 @@ var AgentWallet = class {
1516
1516
  }
1517
1517
  this.logger.debug("Fetching session key info...");
1518
1518
  try {
1519
- const response = await fetch(`${this.baseUrl}/v1/session-key/info`, {
1519
+ const response = await fetch(`${this.baseUrl}/api/v1/session-key/info`, {
1520
1520
  headers: {
1521
1521
  "X-Session-Key": this.sessionKey.address
1522
1522
  }
@@ -1571,7 +1571,7 @@ var AgentWallet = class {
1571
1571
  async getSpendingStats() {
1572
1572
  this.logger.debug("Fetching spending stats...");
1573
1573
  try {
1574
- const response = await fetch(`${this.baseUrl}/v1/session-key/stats`, {
1574
+ const response = await fetch(`${this.baseUrl}/api/v1/session-key/stats`, {
1575
1575
  headers: {
1576
1576
  "X-Session-Key": this.sessionKey.address
1577
1577
  }
package/dist/index.d.cts CHANGED
@@ -380,7 +380,7 @@ interface SessionStats {
380
380
  */
381
381
 
382
382
  /** Current SDK version */
383
- declare const SDK_VERSION = "0.8.0";
383
+ declare const SDK_VERSION = "0.8.1";
384
384
  /** Supported networks */
385
385
  declare const NETWORKS: {
386
386
  readonly BASE_MAINNET: {
package/dist/index.d.ts CHANGED
@@ -380,7 +380,7 @@ interface SessionStats {
380
380
  */
381
381
 
382
382
  /** Current SDK version */
383
- declare const SDK_VERSION = "0.8.0";
383
+ declare const SDK_VERSION = "0.8.1";
384
384
  /** Supported networks */
385
385
  declare const NETWORKS: {
386
386
  readonly BASE_MAINNET: {
package/dist/index.js CHANGED
@@ -488,7 +488,7 @@ function getAmountUsd(requirements) {
488
488
  }
489
489
 
490
490
  // src/agent-wallet.ts
491
- var SDK_VERSION = "0.8.0";
491
+ var SDK_VERSION = "0.8.1";
492
492
  var DEFAULT_BASE_URL = process.env.MIXRPAY_BASE_URL || "https://www.mixrpay.com";
493
493
  var DEFAULT_TIMEOUT = 3e4;
494
494
  var NETWORKS = {
@@ -1412,7 +1412,7 @@ var AgentWallet = class {
1412
1412
  async getBalance() {
1413
1413
  this.logger.debug("Fetching wallet balance...");
1414
1414
  try {
1415
- const response = await fetch(`${this.baseUrl}/v1/wallet/balance`, {
1415
+ const response = await fetch(`${this.baseUrl}/api/v1/wallet/balance`, {
1416
1416
  headers: {
1417
1417
  "X-Session-Key": this.sessionKey.address
1418
1418
  }
@@ -1479,7 +1479,7 @@ var AgentWallet = class {
1479
1479
  }
1480
1480
  this.logger.debug("Fetching session key info...");
1481
1481
  try {
1482
- const response = await fetch(`${this.baseUrl}/v1/session-key/info`, {
1482
+ const response = await fetch(`${this.baseUrl}/api/v1/session-key/info`, {
1483
1483
  headers: {
1484
1484
  "X-Session-Key": this.sessionKey.address
1485
1485
  }
@@ -1534,7 +1534,7 @@ var AgentWallet = class {
1534
1534
  async getSpendingStats() {
1535
1535
  this.logger.debug("Fetching spending stats...");
1536
1536
  try {
1537
- const response = await fetch(`${this.baseUrl}/v1/session-key/stats`, {
1537
+ const response = await fetch(`${this.baseUrl}/api/v1/session-key/stats`, {
1538
1538
  headers: {
1539
1539
  "X-Session-Key": this.sessionKey.address
1540
1540
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mixrpay/agent-sdk",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "MixrPay Agent SDK - Enable AI agents to make x402 payments with session keys",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",