zklighter-perps 1.0.299 → 1.0.301

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.
@@ -301,4 +301,3 @@ models/WithdrawHistory.ts
301
301
  models/WithdrawHistoryItem.ts
302
302
  models/ZkLighterInfo.ts
303
303
  models/index.ts
304
- runtime.ts
@@ -21,3 +21,8 @@
21
21
  #docs/*.md
22
22
  # Then explicitly reverse the ignore rule for a single file:
23
23
  #!docs/README.md
24
+
25
+ # runtime.ts is hand-patched to declare `RequestCredentials` locally instead of taking it
26
+ # from lib.dom, so React Native consumers (perps-fe-mobile) can compile without the DOM lib.
27
+ # This file is spec-independent boilerplate, so freezing it costs us nothing per regeneration.
28
+ runtime.ts
package/apis/OrderApi.ts CHANGED
@@ -1064,6 +1064,8 @@ export const ExchangeMetricsKindEnum = {
1064
1064
  MakerFee: 'maker_fee',
1065
1065
  TakerFee: 'taker_fee',
1066
1066
  LiquidationFee: 'liquidation_fee',
1067
+ AttributionMakerFee: 'attribution_maker_fee',
1068
+ AttributionTakerFee: 'attribution_taker_fee',
1067
1069
  TradeCount: 'trade_count',
1068
1070
  LiquidationCount: 'liquidation_count',
1069
1071
  LiquidationVolume: 'liquidation_volume',
@@ -68,6 +68,8 @@ export const ReqGetExchangeMetricsKindEnum = {
68
68
  MakerFee: 'maker_fee',
69
69
  TakerFee: 'taker_fee',
70
70
  LiquidationFee: 'liquidation_fee',
71
+ AttributionMakerFee: 'attribution_maker_fee',
72
+ AttributionTakerFee: 'attribution_taker_fee',
71
73
  TradeCount: 'trade_count',
72
74
  LiquidationCount: 'liquidation_count',
73
75
  LiquidationVolume: 'liquidation_volume',
package/openapi.json CHANGED
@@ -1647,6 +1647,8 @@
1647
1647
  "maker_fee",
1648
1648
  "taker_fee",
1649
1649
  "liquidation_fee",
1650
+ "attribution_maker_fee",
1651
+ "attribution_taker_fee",
1650
1652
  "trade_count",
1651
1653
  "liquidation_count",
1652
1654
  "liquidation_volume",
@@ -12213,6 +12215,8 @@
12213
12215
  "maker_fee",
12214
12216
  "taker_fee",
12215
12217
  "liquidation_fee",
12218
+ "attribution_maker_fee",
12219
+ "attribution_taker_fee",
12216
12220
  "trade_count",
12217
12221
  "liquidation_count",
12218
12222
  "liquidation_volume",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.299",
3
+ "version": "1.0.301",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {
@@ -22,6 +22,6 @@
22
22
  },
23
23
  "homepage": "https://github.com/elliottech/zklighter-perps-ts#readme",
24
24
  "devDependencies": {
25
- "typescript": "5.9.3"
25
+ "typescript": "7.0.2"
26
26
  }
27
27
  }
package/runtime.ts CHANGED
@@ -13,6 +13,10 @@
13
13
  */
14
14
 
15
15
 
16
+ // Declared locally rather than taken from lib.dom, so consumers compiled without the DOM lib
17
+ // (e.g. React Native, where it is spelled `RequestCredentials_`) can use this package.
18
+ export type RequestCredentials = 'omit' | 'same-origin' | 'include';
19
+
16
20
  export const BASE_PATH = "https://mainnet.zklighter.elliot.ai".replace(/\/+$/, "");
17
21
 
18
22
  export interface ConfigurationParameters {
package/tsconfig.json CHANGED
@@ -7,7 +7,6 @@
7
7
  // from previous generations and no longer in .openapi-generator/FILES) are not
8
8
  // part of the public API surface and are intentionally not checked.
9
9
  "compilerOptions": {
10
- "esModuleInterop": false,
11
10
  "skipLibCheck": true,
12
11
  "target": "ESNext",
13
12
  "allowJs": false,