@lavapayments/nodejs 3.2.0 → 4.0.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/README.md CHANGED
@@ -16,7 +16,7 @@ npm install @lavapayments/nodejs
16
16
  import { Lava } from '@lavapayments/nodejs';
17
17
 
18
18
  const lava = new Lava('your_secret_key', {
19
- apiVersion: '2025-04-21.v1',
19
+ apiVersion: '2025-04-28.v1',
20
20
  });
21
21
  ```
22
22
 
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- type ApiVersion = "2025-04-21.v1";
1
+ type ApiVersion = "2025-04-28.v1";
2
2
  interface Config {
3
3
  apiVersion: ApiVersion;
4
4
  /**
@@ -156,11 +156,12 @@ type RestConnection = {
156
156
  };
157
157
  type RestRequest = {
158
158
  request_id: string;
159
+ status: "pending" | "completed" | "error";
159
160
  connection_id?: string;
160
161
  product_id?: string;
161
162
  provider: string;
162
163
  provider_key_type: "managed" | "unmanaged";
163
- model: string;
164
+ model?: string;
164
165
  endpoint: string;
165
166
  response_id?: string;
166
167
  model_usage: {
@@ -202,7 +203,7 @@ type RestRequest = {
202
203
  total_wallet_cost: string;
203
204
  total_merchant_cost: string;
204
205
  metadata: Record<string, string>;
205
- timestamp: string;
206
+ timestamp?: string;
206
207
  created_at: string;
207
208
  };
208
209
  type RestUsage = {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- type ApiVersion = "2025-04-21.v1";
1
+ type ApiVersion = "2025-04-28.v1";
2
2
  interface Config {
3
3
  apiVersion: ApiVersion;
4
4
  /**
@@ -156,11 +156,12 @@ type RestConnection = {
156
156
  };
157
157
  type RestRequest = {
158
158
  request_id: string;
159
+ status: "pending" | "completed" | "error";
159
160
  connection_id?: string;
160
161
  product_id?: string;
161
162
  provider: string;
162
163
  provider_key_type: "managed" | "unmanaged";
163
- model: string;
164
+ model?: string;
164
165
  endpoint: string;
165
166
  response_id?: string;
166
167
  model_usage: {
@@ -202,7 +203,7 @@ type RestRequest = {
202
203
  total_wallet_cost: string;
203
204
  total_merchant_cost: string;
204
205
  metadata: Record<string, string>;
205
- timestamp: string;
206
+ timestamp?: string;
206
207
  created_at: string;
207
208
  };
208
209
  type RestUsage = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lavapayments/nodejs",
3
- "version": "3.2.0",
3
+ "version": "4.0.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",