@lavapayments/nodejs 1.0.1 → 1.1.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.d.mts CHANGED
@@ -110,6 +110,7 @@ interface Wallet {
110
110
  }
111
111
  interface Connection {
112
112
  connection_id: string;
113
+ connection_secret: string;
113
114
  reference_id?: string;
114
115
  wallet: Wallet;
115
116
  next_usage_reset: string;
package/dist/index.d.ts CHANGED
@@ -110,6 +110,7 @@ interface Wallet {
110
110
  }
111
111
  interface Connection {
112
112
  connection_id: string;
113
+ connection_secret: string;
113
114
  reference_id?: string;
114
115
  wallet: Wallet;
115
116
  next_usage_reset: string;
package/dist/index.js CHANGED
@@ -159,7 +159,7 @@ var Lava = class {
159
159
  constructor(secretKey, config) {
160
160
  this.secretKey = secretKey;
161
161
  this.apiVersion = config.apiVersion;
162
- const isTestMode = secretKey.startsWith("test_");
162
+ const isTestMode = secretKey.startsWith("aks_test_");
163
163
  this.baseUrl = config.baseUrl || (isTestMode ? "https://sandbox-api.lavapayments.com/v1/" : "https://api.lavapayments.com/v1/");
164
164
  this.checkout = new Resources.CheckoutResource(this);
165
165
  this.connections = new Resources.ConnectionsResource(this);
package/dist/index.mjs CHANGED
@@ -132,7 +132,7 @@ var Lava = class {
132
132
  constructor(secretKey, config) {
133
133
  this.secretKey = secretKey;
134
134
  this.apiVersion = config.apiVersion;
135
- const isTestMode = secretKey.startsWith("test_");
135
+ const isTestMode = secretKey.startsWith("aks_test_");
136
136
  this.baseUrl = config.baseUrl || (isTestMode ? "https://sandbox-api.lavapayments.com/v1/" : "https://api.lavapayments.com/v1/");
137
137
  this.checkout = new Resources.CheckoutResource(this);
138
138
  this.connections = new Resources.ConnectionsResource(this);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lavapayments/nodejs",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Backend SDK for Lava Payments API - enabling usage-based billing for AI services",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",