@lavapayments/nodejs 2.2.0 → 2.3.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
@@ -10,6 +10,7 @@ interface Config {
10
10
  type ForwardTokenOptions = {
11
11
  connection_secret: string;
12
12
  product_secret: string;
13
+ provider_key?: string;
13
14
  };
14
15
  declare class Lava {
15
16
  private readonly secretKey;
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ interface Config {
10
10
  type ForwardTokenOptions = {
11
11
  connection_secret: string;
12
12
  product_secret: string;
13
+ provider_key?: string;
13
14
  };
14
15
  declare class Lava {
15
16
  private readonly secretKey;
package/dist/index.js CHANGED
@@ -226,7 +226,8 @@ var Lava = class {
226
226
  const tokenData = {
227
227
  secret_key: this.secretKey,
228
228
  connection_secret: options.connection_secret,
229
- product_secret: options.product_secret
229
+ product_secret: options.product_secret,
230
+ provider_key: options.provider_key
230
231
  };
231
232
  return Buffer.from(JSON.stringify(tokenData)).toString("base64");
232
233
  }
package/dist/index.mjs CHANGED
@@ -199,7 +199,8 @@ var Lava = class {
199
199
  const tokenData = {
200
200
  secret_key: this.secretKey,
201
201
  connection_secret: options.connection_secret,
202
- product_secret: options.product_secret
202
+ product_secret: options.product_secret,
203
+ provider_key: options.provider_key
203
204
  };
204
205
  return Buffer.from(JSON.stringify(tokenData)).toString("base64");
205
206
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lavapayments/nodejs",
3
- "version": "2.2.0",
3
+ "version": "2.3.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",