@lavapayments/nodejs 3.1.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 +1 -1
- package/dist/index.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type ApiVersion = "2025-04-
|
|
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
|
|
164
|
+
model?: string;
|
|
164
165
|
endpoint: string;
|
|
165
166
|
response_id?: string;
|
|
166
167
|
model_usage: {
|
|
@@ -186,8 +187,11 @@ type RestRequest = {
|
|
|
186
187
|
tier: {
|
|
187
188
|
start: number;
|
|
188
189
|
rate: string;
|
|
190
|
+
type: "tokens_1m" | "characters_1m" | "minutes";
|
|
189
191
|
};
|
|
190
192
|
tokens: number;
|
|
193
|
+
characters: number;
|
|
194
|
+
seconds: number;
|
|
191
195
|
cost: string;
|
|
192
196
|
}[];
|
|
193
197
|
};
|
|
@@ -199,7 +203,7 @@ type RestRequest = {
|
|
|
199
203
|
total_wallet_cost: string;
|
|
200
204
|
total_merchant_cost: string;
|
|
201
205
|
metadata: Record<string, string>;
|
|
202
|
-
timestamp
|
|
206
|
+
timestamp?: string;
|
|
203
207
|
created_at: string;
|
|
204
208
|
};
|
|
205
209
|
type RestUsage = {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type ApiVersion = "2025-04-
|
|
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
|
|
164
|
+
model?: string;
|
|
164
165
|
endpoint: string;
|
|
165
166
|
response_id?: string;
|
|
166
167
|
model_usage: {
|
|
@@ -186,8 +187,11 @@ type RestRequest = {
|
|
|
186
187
|
tier: {
|
|
187
188
|
start: number;
|
|
188
189
|
rate: string;
|
|
190
|
+
type: "tokens_1m" | "characters_1m" | "minutes";
|
|
189
191
|
};
|
|
190
192
|
tokens: number;
|
|
193
|
+
characters: number;
|
|
194
|
+
seconds: number;
|
|
191
195
|
cost: string;
|
|
192
196
|
}[];
|
|
193
197
|
};
|
|
@@ -199,7 +203,7 @@ type RestRequest = {
|
|
|
199
203
|
total_wallet_cost: string;
|
|
200
204
|
total_merchant_cost: string;
|
|
201
205
|
metadata: Record<string, string>;
|
|
202
|
-
timestamp
|
|
206
|
+
timestamp?: string;
|
|
203
207
|
created_at: string;
|
|
204
208
|
};
|
|
205
209
|
type RestUsage = {
|