@mixrpay/agent-sdk 0.8.2 → 0.8.3

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
@@ -525,7 +525,7 @@ function getAmountUsd(requirements) {
525
525
  }
526
526
 
527
527
  // src/agent-wallet.ts
528
- var SDK_VERSION = "0.8.2";
528
+ var SDK_VERSION = "0.8.3";
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 = {
@@ -1451,7 +1451,7 @@ var AgentWallet = class {
1451
1451
  try {
1452
1452
  const infoResponse = await fetch(`${this.baseUrl}/api/v1/session-key/info`, {
1453
1453
  headers: {
1454
- "X-Session-Key": this.sessionKey.address
1454
+ "X-Session-Key": this.sessionKey.address.toLowerCase()
1455
1455
  }
1456
1456
  });
1457
1457
  if (!infoResponse.ok) {
@@ -1529,7 +1529,7 @@ var AgentWallet = class {
1529
1529
  try {
1530
1530
  const response = await fetch(`${this.baseUrl}/api/v1/session-key/info`, {
1531
1531
  headers: {
1532
- "X-Session-Key": this.sessionKey.address
1532
+ "X-Session-Key": this.sessionKey.address.toLowerCase()
1533
1533
  }
1534
1534
  });
1535
1535
  if (response.ok) {
@@ -1584,7 +1584,7 @@ var AgentWallet = class {
1584
1584
  try {
1585
1585
  const response = await fetch(`${this.baseUrl}/api/v1/session-key/stats`, {
1586
1586
  headers: {
1587
- "X-Session-Key": this.sessionKey.address
1587
+ "X-Session-Key": this.sessionKey.address.toLowerCase()
1588
1588
  }
1589
1589
  });
1590
1590
  if (response.ok) {
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.2";
383
+ declare const SDK_VERSION = "0.8.3";
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.2";
383
+ declare const SDK_VERSION = "0.8.3";
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.2";
491
+ var SDK_VERSION = "0.8.3";
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 = {
@@ -1414,7 +1414,7 @@ var AgentWallet = class {
1414
1414
  try {
1415
1415
  const infoResponse = await fetch(`${this.baseUrl}/api/v1/session-key/info`, {
1416
1416
  headers: {
1417
- "X-Session-Key": this.sessionKey.address
1417
+ "X-Session-Key": this.sessionKey.address.toLowerCase()
1418
1418
  }
1419
1419
  });
1420
1420
  if (!infoResponse.ok) {
@@ -1492,7 +1492,7 @@ var AgentWallet = class {
1492
1492
  try {
1493
1493
  const response = await fetch(`${this.baseUrl}/api/v1/session-key/info`, {
1494
1494
  headers: {
1495
- "X-Session-Key": this.sessionKey.address
1495
+ "X-Session-Key": this.sessionKey.address.toLowerCase()
1496
1496
  }
1497
1497
  });
1498
1498
  if (response.ok) {
@@ -1547,7 +1547,7 @@ var AgentWallet = class {
1547
1547
  try {
1548
1548
  const response = await fetch(`${this.baseUrl}/api/v1/session-key/stats`, {
1549
1549
  headers: {
1550
- "X-Session-Key": this.sessionKey.address
1550
+ "X-Session-Key": this.sessionKey.address.toLowerCase()
1551
1551
  }
1552
1552
  });
1553
1553
  if (response.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mixrpay/agent-sdk",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
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",