@lavapayments/nodejs 0.1.1 → 0.1.2

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
@@ -26,6 +26,8 @@ interface Connection {
26
26
  connection_id: string;
27
27
  reference_id?: string;
28
28
  wallet: Wallet;
29
+ next_usage_reset: string;
30
+ previous_usage_reset: string;
29
31
  created_at: string;
30
32
  }
31
33
  interface ConnectionsListParams {
@@ -69,7 +71,7 @@ interface Request {
69
71
  product_id: string;
70
72
  model: string;
71
73
  endpoint: string;
72
- response_id: string;
74
+ response_id: string | null;
73
75
  model_usage: ModelUsage;
74
76
  fee: Fee;
75
77
  service_charge: ServiceCharge;
@@ -90,8 +92,10 @@ interface RequestsListResponse {
90
92
  }
91
93
  interface UsageData {
92
94
  date: string;
95
+ total_requests: number;
93
96
  total_usage_tokens: number;
94
97
  total_usage_cost: string;
98
+ total_fee_amount: string;
95
99
  total_service_charge_amount: string;
96
100
  total_request_cost: string;
97
101
  }
package/dist/index.d.ts CHANGED
@@ -26,6 +26,8 @@ interface Connection {
26
26
  connection_id: string;
27
27
  reference_id?: string;
28
28
  wallet: Wallet;
29
+ next_usage_reset: string;
30
+ previous_usage_reset: string;
29
31
  created_at: string;
30
32
  }
31
33
  interface ConnectionsListParams {
@@ -69,7 +71,7 @@ interface Request {
69
71
  product_id: string;
70
72
  model: string;
71
73
  endpoint: string;
72
- response_id: string;
74
+ response_id: string | null;
73
75
  model_usage: ModelUsage;
74
76
  fee: Fee;
75
77
  service_charge: ServiceCharge;
@@ -90,8 +92,10 @@ interface RequestsListResponse {
90
92
  }
91
93
  interface UsageData {
92
94
  date: string;
95
+ total_requests: number;
93
96
  total_usage_tokens: number;
94
97
  total_usage_cost: string;
98
+ total_fee_amount: string;
95
99
  total_service_charge_amount: string;
96
100
  total_request_cost: string;
97
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lavapayments/nodejs",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
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",