zklighter-perps 0.573.0-circleci.bb5322b.devin-1790172978-integer-enum-postprocess → 0.573.0-circleci.e73586d.devin-1790172978-integer-enum-postprocess

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/models/Account.ts CHANGED
@@ -36,7 +36,7 @@ export interface Account {
36
36
  * @type {number}
37
37
  * @memberof Account
38
38
  */
39
- account_type: AccountAccountTypeEnum;
39
+ account_type: number;
40
40
  /**
41
41
  *
42
42
  * @type {number}
@@ -102,33 +102,9 @@ export interface Account {
102
102
  * @type {number}
103
103
  * @memberof Account
104
104
  */
105
- account_trading_mode?: AccountAccountTradingModeEnum;
105
+ account_trading_mode?: number;
106
106
  }
107
107
 
108
-
109
- /**
110
- * @export
111
- */
112
- export const AccountAccountTypeEnum = {
113
- Master: 0,
114
- Sub: 1,
115
- PublicPool: 2,
116
- InsuranceFund: 3,
117
- LighterStakingPool: 4,
118
- TreasurySub: 5
119
- } as const;
120
- export type AccountAccountTypeEnum = typeof AccountAccountTypeEnum[keyof typeof AccountAccountTypeEnum];
121
-
122
- /**
123
- * @export
124
- */
125
- export const AccountAccountTradingModeEnum = {
126
- Simple: 0,
127
- Unified: 1
128
- } as const;
129
- export type AccountAccountTradingModeEnum = typeof AccountAccountTradingModeEnum[keyof typeof AccountAccountTradingModeEnum];
130
-
131
-
132
108
  /**
133
109
  * Check if a given object implements the Account interface.
134
110
  */
@@ -108,7 +108,7 @@ export interface AccountPosition {
108
108
  * @type {number}
109
109
  * @memberof AccountPosition
110
110
  */
111
- margin_mode: AccountPositionMarginModeEnum;
111
+ margin_mode: number;
112
112
  /**
113
113
  *
114
114
  * @type {number}
@@ -129,17 +129,6 @@ export interface AccountPosition {
129
129
  total_discount: string;
130
130
  }
131
131
 
132
-
133
- /**
134
- * @export
135
- */
136
- export const AccountPositionMarginModeEnum = {
137
- Cross: 0,
138
- Isolated: 1
139
- } as const;
140
- export type AccountPositionMarginModeEnum = typeof AccountPositionMarginModeEnum[keyof typeof AccountPositionMarginModeEnum];
141
-
142
-
143
132
  /**
144
133
  * Check if a given object implements the AccountPosition interface.
145
134
  */
@@ -67,7 +67,7 @@ export interface AccountStats {
67
67
  * @type {number}
68
68
  * @memberof AccountStats
69
69
  */
70
- account_trading_mode?: AccountStatsAccountTradingModeEnum;
70
+ account_trading_mode?: number;
71
71
  /**
72
72
  *
73
73
  * @type {AccountMarginStats}
@@ -82,17 +82,6 @@ export interface AccountStats {
82
82
  total_stats: AccountMarginStats;
83
83
  }
84
84
 
85
-
86
- /**
87
- * @export
88
- */
89
- export const AccountStatsAccountTradingModeEnum = {
90
- Simple: 0,
91
- Unified: 1
92
- } as const;
93
- export type AccountStatsAccountTradingModeEnum = typeof AccountStatsAccountTradingModeEnum[keyof typeof AccountStatsAccountTradingModeEnum];
94
-
95
-
96
85
  /**
97
86
  * Check if a given object implements the AccountStats interface.
98
87
  */
@@ -30,7 +30,7 @@ export interface AtomicOrderLeg {
30
30
  * @type {number}
31
31
  * @memberof AtomicOrderLeg
32
32
  */
33
- is_ask: AtomicOrderLegIsAskEnum;
33
+ is_ask: number;
34
34
  /**
35
35
  *
36
36
  * @type {number}
@@ -45,17 +45,6 @@ export interface AtomicOrderLeg {
45
45
  percentage: number;
46
46
  }
47
47
 
48
-
49
- /**
50
- * @export
51
- */
52
- export const AtomicOrderLegIsAskEnum = {
53
- Bid: 0,
54
- Ask: 1
55
- } as const;
56
- export type AtomicOrderLegIsAskEnum = typeof AtomicOrderLegIsAskEnum[keyof typeof AtomicOrderLegIsAskEnum];
57
-
58
-
59
48
  /**
60
49
  * Check if a given object implements the AtomicOrderLeg interface.
61
50
  */
@@ -110,11 +110,11 @@ export interface BinaryOptionMarketStats {
110
110
  */
111
111
  status: BinaryOptionMarketStatsStatusEnum;
112
112
  /**
113
- * None until the market settles
113
+ * 0 unresolved, 1 NO, 2 YES
114
114
  * @type {number}
115
115
  * @memberof BinaryOptionMarketStats
116
116
  */
117
- outcome: BinaryOptionMarketStatsOutcomeEnum;
117
+ outcome: number;
118
118
  }
119
119
 
120
120
 
@@ -129,16 +129,6 @@ export const BinaryOptionMarketStatsStatusEnum = {
129
129
  } as const;
130
130
  export type BinaryOptionMarketStatsStatusEnum = typeof BinaryOptionMarketStatsStatusEnum[keyof typeof BinaryOptionMarketStatsStatusEnum];
131
131
 
132
- /**
133
- * @export
134
- */
135
- export const BinaryOptionMarketStatsOutcomeEnum = {
136
- None: 0,
137
- No: 1,
138
- Yes: 2
139
- } as const;
140
- export type BinaryOptionMarketStatsOutcomeEnum = typeof BinaryOptionMarketStatsOutcomeEnum[keyof typeof BinaryOptionMarketStatsOutcomeEnum];
141
-
142
132
 
143
133
  /**
144
134
  * Check if a given object implements the BinaryOptionMarketStats interface.
@@ -36,7 +36,7 @@ export interface BoOutcomePnL {
36
36
  * @type {number}
37
37
  * @memberof BoOutcomePnL
38
38
  */
39
- outcome: BoOutcomePnLOutcomeEnum;
39
+ outcome: number;
40
40
  /**
41
41
  *
42
42
  * @type {number}
@@ -63,18 +63,6 @@ export interface BoOutcomePnL {
63
63
  total_pnl: string;
64
64
  }
65
65
 
66
-
67
- /**
68
- * @export
69
- */
70
- export const BoOutcomePnLOutcomeEnum = {
71
- None: 0,
72
- No: 1,
73
- Yes: 2
74
- } as const;
75
- export type BoOutcomePnLOutcomeEnum = typeof BoOutcomePnLOutcomeEnum[keyof typeof BoOutcomePnLOutcomeEnum];
76
-
77
-
78
66
  /**
79
67
  * Check if a given object implements the BoOutcomePnL interface.
80
68
  */
package/models/Bridge.ts CHANGED
@@ -116,8 +116,8 @@ export interface Bridge {
116
116
  * @export
117
117
  */
118
118
  export const BridgeVersionEnum = {
119
- V1: 1,
120
- V2: 2
119
+ NUMBER_1: 1,
120
+ NUMBER_2: 2
121
121
  } as const;
122
122
  export type BridgeVersionEnum = typeof BridgeVersionEnum[keyof typeof BridgeVersionEnum];
123
123
 
@@ -85,7 +85,7 @@ export interface DetailedAccount {
85
85
  * @type {number}
86
86
  * @memberof DetailedAccount
87
87
  */
88
- account_type: DetailedAccountAccountTypeEnum;
88
+ account_type: number;
89
89
  /**
90
90
  *
91
91
  * @type {number}
@@ -151,7 +151,7 @@ export interface DetailedAccount {
151
151
  * @type {number}
152
152
  * @memberof DetailedAccount
153
153
  */
154
- account_trading_mode?: DetailedAccountAccountTradingModeEnum;
154
+ account_trading_mode?: number;
155
155
  /**
156
156
  *
157
157
  * @type {number}
@@ -286,30 +286,6 @@ export interface DetailedAccount {
286
286
  approved_integrators?: Array<ApprovedIntegrator>;
287
287
  }
288
288
 
289
-
290
- /**
291
- * @export
292
- */
293
- export const DetailedAccountAccountTypeEnum = {
294
- Master: 0,
295
- Sub: 1,
296
- PublicPool: 2,
297
- InsuranceFund: 3,
298
- LighterStakingPool: 4,
299
- TreasurySub: 5
300
- } as const;
301
- export type DetailedAccountAccountTypeEnum = typeof DetailedAccountAccountTypeEnum[keyof typeof DetailedAccountAccountTypeEnum];
302
-
303
- /**
304
- * @export
305
- */
306
- export const DetailedAccountAccountTradingModeEnum = {
307
- Simple: 0,
308
- Unified: 1
309
- } as const;
310
- export type DetailedAccountAccountTradingModeEnum = typeof DetailedAccountAccountTradingModeEnum[keyof typeof DetailedAccountAccountTradingModeEnum];
311
-
312
-
313
289
  /**
314
290
  * Check if a given object implements the DetailedAccount interface.
315
291
  */
@@ -169,7 +169,7 @@ export interface EventOrderBookEntry {
169
169
  * @type {number}
170
170
  * @memberof EventOrderBookEntry
171
171
  */
172
- outcome: EventOrderBookEntryOutcomeEnum;
172
+ outcome: number;
173
173
  /**
174
174
  *
175
175
  * @type {number}
@@ -234,16 +234,6 @@ export const EventOrderBookEntryStatusEnum = {
234
234
  } as const;
235
235
  export type EventOrderBookEntryStatusEnum = typeof EventOrderBookEntryStatusEnum[keyof typeof EventOrderBookEntryStatusEnum];
236
236
 
237
- /**
238
- * @export
239
- */
240
- export const EventOrderBookEntryOutcomeEnum = {
241
- None: 0,
242
- No: 1,
243
- Yes: 2
244
- } as const;
245
- export type EventOrderBookEntryOutcomeEnum = typeof EventOrderBookEntryOutcomeEnum[keyof typeof EventOrderBookEntryOutcomeEnum];
246
-
247
237
 
248
238
  /**
249
239
  * Check if a given object implements the EventOrderBookEntry interface.
@@ -24,7 +24,7 @@ export interface MarketConfig {
24
24
  * @type {number}
25
25
  * @memberof MarketConfig
26
26
  */
27
- market_margin_mode: MarketConfigMarketMarginModeEnum;
27
+ market_margin_mode: number;
28
28
  /**
29
29
  *
30
30
  * @type {number}
@@ -69,17 +69,6 @@ export interface MarketConfig {
69
69
  rfq_enabled: boolean;
70
70
  }
71
71
 
72
-
73
- /**
74
- * @export
75
- */
76
- export const MarketConfigMarketMarginModeEnum = {
77
- All: 0,
78
- IsolatedForNonPools: 1
79
- } as const;
80
- export type MarketConfigMarketMarginModeEnum = typeof MarketConfigMarketMarginModeEnum[keyof typeof MarketConfigMarketMarginModeEnum];
81
-
82
-
83
72
  /**
84
73
  * Check if a given object implements the MarketConfig interface.
85
74
  */
@@ -162,7 +162,7 @@ export interface OrderBook {
162
162
  * @type {number}
163
163
  * @memberof OrderBook
164
164
  */
165
- outcome: OrderBookOutcomeEnum;
165
+ outcome: number;
166
166
  /**
167
167
  *
168
168
  * @type {number}
@@ -221,16 +221,6 @@ export const OrderBookStatusEnum = {
221
221
  } as const;
222
222
  export type OrderBookStatusEnum = typeof OrderBookStatusEnum[keyof typeof OrderBookStatusEnum];
223
223
 
224
- /**
225
- * @export
226
- */
227
- export const OrderBookOutcomeEnum = {
228
- None: 0,
229
- No: 1,
230
- Yes: 2
231
- } as const;
232
- export type OrderBookOutcomeEnum = typeof OrderBookOutcomeEnum[keyof typeof OrderBookOutcomeEnum];
233
-
234
224
 
235
225
  /**
236
226
  * Check if a given object implements the OrderBook interface.
@@ -169,7 +169,7 @@ export interface PerpsOrderBookDetail {
169
169
  * @type {number}
170
170
  * @memberof PerpsOrderBookDetail
171
171
  */
172
- outcome: PerpsOrderBookDetailOutcomeEnum;
172
+ outcome: number;
173
173
  /**
174
174
  *
175
175
  * @type {number}
@@ -372,16 +372,6 @@ export const PerpsOrderBookDetailStatusEnum = {
372
372
  } as const;
373
373
  export type PerpsOrderBookDetailStatusEnum = typeof PerpsOrderBookDetailStatusEnum[keyof typeof PerpsOrderBookDetailStatusEnum];
374
374
 
375
- /**
376
- * @export
377
- */
378
- export const PerpsOrderBookDetailOutcomeEnum = {
379
- None: 0,
380
- No: 1,
381
- Yes: 2
382
- } as const;
383
- export type PerpsOrderBookDetailOutcomeEnum = typeof PerpsOrderBookDetailOutcomeEnum[keyof typeof PerpsOrderBookDetailOutcomeEnum];
384
-
385
375
 
386
376
  /**
387
377
  * Check if a given object implements the PerpsOrderBookDetail interface.
@@ -43,7 +43,7 @@ export interface PublicPoolInfo {
43
43
  * @type {number}
44
44
  * @memberof PublicPoolInfo
45
45
  */
46
- status: PublicPoolInfoStatusEnum;
46
+ status: number;
47
47
  /**
48
48
  *
49
49
  * @type {string}
@@ -100,17 +100,6 @@ export interface PublicPoolInfo {
100
100
  strategies: Array<Strategy>;
101
101
  }
102
102
 
103
-
104
- /**
105
- * @export
106
- */
107
- export const PublicPoolInfoStatusEnum = {
108
- Active: 0,
109
- Frozen: 1
110
- } as const;
111
- export type PublicPoolInfoStatusEnum = typeof PublicPoolInfoStatusEnum[keyof typeof PublicPoolInfoStatusEnum];
112
-
113
-
114
103
  /**
115
104
  * Check if a given object implements the PublicPoolInfo interface.
116
105
  */
@@ -67,7 +67,7 @@ export interface PublicPoolMetadata {
67
67
  * @type {number}
68
68
  * @memberof PublicPoolMetadata
69
69
  */
70
- account_type: PublicPoolMetadataAccountTypeEnum;
70
+ account_type: number;
71
71
  /**
72
72
  *
73
73
  * @type {string}
@@ -97,7 +97,7 @@ export interface PublicPoolMetadata {
97
97
  * @type {number}
98
98
  * @memberof PublicPoolMetadata
99
99
  */
100
- status: PublicPoolMetadataStatusEnum;
100
+ status: number;
101
101
  /**
102
102
  *
103
103
  * @type {string}
@@ -142,30 +142,6 @@ export interface PublicPoolMetadata {
142
142
  assets: Array<AccountAsset>;
143
143
  }
144
144
 
145
-
146
- /**
147
- * @export
148
- */
149
- export const PublicPoolMetadataAccountTypeEnum = {
150
- Master: 0,
151
- Sub: 1,
152
- PublicPool: 2,
153
- InsuranceFund: 3,
154
- LighterStakingPool: 4,
155
- TreasurySub: 5
156
- } as const;
157
- export type PublicPoolMetadataAccountTypeEnum = typeof PublicPoolMetadataAccountTypeEnum[keyof typeof PublicPoolMetadataAccountTypeEnum];
158
-
159
- /**
160
- * @export
161
- */
162
- export const PublicPoolMetadataStatusEnum = {
163
- Active: 0,
164
- Frozen: 1
165
- } as const;
166
- export type PublicPoolMetadataStatusEnum = typeof PublicPoolMetadataStatusEnum[keyof typeof PublicPoolMetadataStatusEnum];
167
-
168
-
169
145
  /**
170
146
  * Check if a given object implements the PublicPoolMetadata interface.
171
147
  */
@@ -55,7 +55,7 @@ export interface RFQEntry {
55
55
  * @type {number}
56
56
  * @memberof RFQEntry
57
57
  */
58
- direction: RFQEntryDirectionEnum;
58
+ direction: number;
59
59
  /**
60
60
  *
61
61
  * @type {string}
@@ -101,16 +101,6 @@ export interface RFQEntry {
101
101
  }
102
102
 
103
103
 
104
- /**
105
- * @export
106
- */
107
- export const RFQEntryDirectionEnum = {
108
- Hidden: -1,
109
- Sell: 0,
110
- Buy: 1
111
- } as const;
112
- export type RFQEntryDirectionEnum = typeof RFQEntryDirectionEnum[keyof typeof RFQEntryDirectionEnum];
113
-
114
104
  /**
115
105
  * @export
116
106
  */
@@ -67,7 +67,7 @@ export interface RespCreateRFQ {
67
67
  * @type {number}
68
68
  * @memberof RespCreateRFQ
69
69
  */
70
- direction: RespCreateRFQDirectionEnum;
70
+ direction: number;
71
71
  /**
72
72
  *
73
73
  * @type {string}
@@ -113,16 +113,6 @@ export interface RespCreateRFQ {
113
113
  }
114
114
 
115
115
 
116
- /**
117
- * @export
118
- */
119
- export const RespCreateRFQDirectionEnum = {
120
- Hidden: -1,
121
- Sell: 0,
122
- Buy: 1
123
- } as const;
124
- export type RespCreateRFQDirectionEnum = typeof RespCreateRFQDirectionEnum[keyof typeof RespCreateRFQDirectionEnum];
125
-
126
116
  /**
127
117
  * @export
128
118
  */
@@ -67,7 +67,7 @@ export interface RespGetRFQ {
67
67
  * @type {number}
68
68
  * @memberof RespGetRFQ
69
69
  */
70
- direction: RespGetRFQDirectionEnum;
70
+ direction: number;
71
71
  /**
72
72
  *
73
73
  * @type {string}
@@ -113,16 +113,6 @@ export interface RespGetRFQ {
113
113
  }
114
114
 
115
115
 
116
- /**
117
- * @export
118
- */
119
- export const RespGetRFQDirectionEnum = {
120
- Hidden: -1,
121
- Sell: 0,
122
- Buy: 1
123
- } as const;
124
- export type RespGetRFQDirectionEnum = typeof RespGetRFQDirectionEnum[keyof typeof RespGetRFQDirectionEnum];
125
-
126
116
  /**
127
117
  * @export
128
118
  */
@@ -67,7 +67,7 @@ export interface RespRespondToRFQ {
67
67
  * @type {number}
68
68
  * @memberof RespRespondToRFQ
69
69
  */
70
- direction: RespRespondToRFQDirectionEnum;
70
+ direction: number;
71
71
  /**
72
72
  *
73
73
  * @type {string}
@@ -113,16 +113,6 @@ export interface RespRespondToRFQ {
113
113
  }
114
114
 
115
115
 
116
- /**
117
- * @export
118
- */
119
- export const RespRespondToRFQDirectionEnum = {
120
- Hidden: -1,
121
- Sell: 0,
122
- Buy: 1
123
- } as const;
124
- export type RespRespondToRFQDirectionEnum = typeof RespRespondToRFQDirectionEnum[keyof typeof RespRespondToRFQDirectionEnum];
125
-
126
116
  /**
127
117
  * @export
128
118
  */
@@ -67,7 +67,7 @@ export interface RespUpdateRFQ {
67
67
  * @type {number}
68
68
  * @memberof RespUpdateRFQ
69
69
  */
70
- direction: RespUpdateRFQDirectionEnum;
70
+ direction: number;
71
71
  /**
72
72
  *
73
73
  * @type {string}
@@ -113,16 +113,6 @@ export interface RespUpdateRFQ {
113
113
  }
114
114
 
115
115
 
116
- /**
117
- * @export
118
- */
119
- export const RespUpdateRFQDirectionEnum = {
120
- Hidden: -1,
121
- Sell: 0,
122
- Buy: 1
123
- } as const;
124
- export type RespUpdateRFQDirectionEnum = typeof RespUpdateRFQDirectionEnum[keyof typeof RespUpdateRFQDirectionEnum];
125
-
126
116
  /**
127
117
  * @export
128
118
  */
@@ -162,7 +162,7 @@ export interface SpotOrderBookDetail {
162
162
  * @type {number}
163
163
  * @memberof SpotOrderBookDetail
164
164
  */
165
- outcome: SpotOrderBookDetailOutcomeEnum;
165
+ outcome: number;
166
166
  /**
167
167
  *
168
168
  * @type {number}
@@ -281,16 +281,6 @@ export const SpotOrderBookDetailStatusEnum = {
281
281
  } as const;
282
282
  export type SpotOrderBookDetailStatusEnum = typeof SpotOrderBookDetailStatusEnum[keyof typeof SpotOrderBookDetailStatusEnum];
283
283
 
284
- /**
285
- * @export
286
- */
287
- export const SpotOrderBookDetailOutcomeEnum = {
288
- None: 0,
289
- No: 1,
290
- Yes: 2
291
- } as const;
292
- export type SpotOrderBookDetailOutcomeEnum = typeof SpotOrderBookDetailOutcomeEnum[keyof typeof SpotOrderBookDetailOutcomeEnum];
293
-
294
284
 
295
285
  /**
296
286
  * Check if a given object implements the SpotOrderBookDetail interface.
package/openapi.json CHANGED
@@ -7175,24 +7175,8 @@
7175
7175
  },
7176
7176
  "account_type": {
7177
7177
  "type": "integer",
7178
- "format": "int32",
7179
- "example": "1",
7180
- "enum": [
7181
- 0,
7182
- 1,
7183
- 2,
7184
- 3,
7185
- 4,
7186
- 5
7187
- ],
7188
- "x-enum-varnames": [
7189
- "Master",
7190
- "Sub",
7191
- "PublicPool",
7192
- "InsuranceFund",
7193
- "LighterStakingPool",
7194
- "TreasurySub"
7195
- ]
7178
+ "format": "uint8",
7179
+ "example": "1"
7196
7180
  },
7197
7181
  "index": {
7198
7182
  "type": "integer",
@@ -7243,16 +7227,8 @@
7243
7227
  },
7244
7228
  "account_trading_mode": {
7245
7229
  "type": "integer",
7246
- "format": "int32",
7247
- "example": "1",
7248
- "enum": [
7249
- 0,
7250
- 1
7251
- ],
7252
- "x-enum-varnames": [
7253
- "Simple",
7254
- "Unified"
7255
- ]
7230
+ "format": "uint8",
7231
+ "example": "1"
7256
7232
  }
7257
7233
  },
7258
7234
  "title": "Account",
@@ -7795,15 +7771,7 @@
7795
7771
  "margin_mode": {
7796
7772
  "type": "integer",
7797
7773
  "format": "int32",
7798
- "example": "1",
7799
- "enum": [
7800
- 0,
7801
- 1
7802
- ],
7803
- "x-enum-varnames": [
7804
- "Cross",
7805
- "Isolated"
7806
- ]
7774
+ "example": "1"
7807
7775
  },
7808
7776
  "margin_set_flag": {
7809
7777
  "type": "integer",
@@ -7869,16 +7837,8 @@
7869
7837
  },
7870
7838
  "account_trading_mode": {
7871
7839
  "type": "integer",
7872
- "format": "int32",
7873
- "example": "1",
7874
- "enum": [
7875
- 0,
7876
- 1
7877
- ],
7878
- "x-enum-varnames": [
7879
- "Simple",
7880
- "Unified"
7881
- ]
7840
+ "format": "uint8",
7841
+ "example": "1"
7882
7842
  },
7883
7843
  "cross_stats": {
7884
7844
  "$ref": "#/definitions/AccountMarginStats"
@@ -8388,15 +8348,11 @@
8388
8348
  },
8389
8349
  "is_ask": {
8390
8350
  "type": "integer",
8391
- "format": "int32",
8351
+ "format": "int8",
8392
8352
  "example": "1",
8393
8353
  "enum": [
8394
- 0,
8395
- 1
8396
- ],
8397
- "x-enum-varnames": [
8398
- "Bid",
8399
- "Ask"
8354
+ "0",
8355
+ "1"
8400
8356
  ]
8401
8357
  },
8402
8358
  "base_amount": {
@@ -8512,19 +8468,9 @@
8512
8468
  },
8513
8469
  "outcome": {
8514
8470
  "type": "integer",
8515
- "format": "int32",
8471
+ "format": "uint8",
8516
8472
  "example": "1",
8517
- "enum": [
8518
- 0,
8519
- 1,
8520
- 2
8521
- ],
8522
- "description": " None until the market settles",
8523
- "x-enum-varnames": [
8524
- "None",
8525
- "No",
8526
- "Yes"
8527
- ]
8473
+ "description": " 0 unresolved, 1 NO, 2 YES"
8528
8474
  }
8529
8475
  },
8530
8476
  "title": "BinaryOptionMarketStats",
@@ -8690,17 +8636,7 @@
8690
8636
  },
8691
8637
  "outcome": {
8692
8638
  "type": "integer",
8693
- "format": "int32",
8694
- "enum": [
8695
- 0,
8696
- 1,
8697
- 2
8698
- ],
8699
- "x-enum-varnames": [
8700
- "None",
8701
- "No",
8702
- "Yes"
8703
- ]
8639
+ "format": "int16"
8704
8640
  },
8705
8641
  "end_timestamp": {
8706
8642
  "type": "integer",
@@ -8739,12 +8675,8 @@
8739
8675
  "type": "integer",
8740
8676
  "format": "int32",
8741
8677
  "enum": [
8742
- 1,
8743
- 2
8744
- ],
8745
- "x-enum-varnames": [
8746
- "V1",
8747
- "V2"
8678
+ "1",
8679
+ "2"
8748
8680
  ]
8749
8681
  },
8750
8682
  "source": {
@@ -9435,24 +9367,8 @@
9435
9367
  },
9436
9368
  "account_type": {
9437
9369
  "type": "integer",
9438
- "format": "int32",
9439
- "example": "1",
9440
- "enum": [
9441
- 0,
9442
- 1,
9443
- 2,
9444
- 3,
9445
- 4,
9446
- 5
9447
- ],
9448
- "x-enum-varnames": [
9449
- "Master",
9450
- "Sub",
9451
- "PublicPool",
9452
- "InsuranceFund",
9453
- "LighterStakingPool",
9454
- "TreasurySub"
9455
- ]
9370
+ "format": "uint8",
9371
+ "example": "1"
9456
9372
  },
9457
9373
  "index": {
9458
9374
  "type": "integer",
@@ -9503,16 +9419,8 @@
9503
9419
  },
9504
9420
  "account_trading_mode": {
9505
9421
  "type": "integer",
9506
- "format": "int32",
9507
- "example": "1",
9508
- "enum": [
9509
- 0,
9510
- 1
9511
- ],
9512
- "x-enum-varnames": [
9513
- "Simple",
9514
- "Unified"
9515
- ]
9422
+ "format": "uint8",
9423
+ "example": "1"
9516
9424
  },
9517
9425
  "account_index": {
9518
9426
  "type": "integer",
@@ -10006,18 +9914,8 @@
10006
9914
  },
10007
9915
  "outcome": {
10008
9916
  "type": "integer",
10009
- "format": "int32",
10010
- "example": "1",
10011
- "enum": [
10012
- 0,
10013
- 1,
10014
- 2
10015
- ],
10016
- "x-enum-varnames": [
10017
- "None",
10018
- "No",
10019
- "Yes"
10020
- ]
9917
+ "format": "uint8",
9918
+ "example": "1"
10021
9919
  },
10022
9920
  "operator_account_index": {
10023
9921
  "type": "integer",
@@ -11469,15 +11367,7 @@
11469
11367
  "properties": {
11470
11368
  "market_margin_mode": {
11471
11369
  "type": "integer",
11472
- "format": "int32",
11473
- "enum": [
11474
- 0,
11475
- 1
11476
- ],
11477
- "x-enum-varnames": [
11478
- "All",
11479
- "IsolatedForNonPools"
11480
- ]
11370
+ "format": "int32"
11481
11371
  },
11482
11372
  "insurance_fund_account_index": {
11483
11373
  "type": "integer",
@@ -12071,18 +11961,8 @@
12071
11961
  },
12072
11962
  "outcome": {
12073
11963
  "type": "integer",
12074
- "format": "int32",
12075
- "example": "1",
12076
- "enum": [
12077
- 0,
12078
- 1,
12079
- 2
12080
- ],
12081
- "x-enum-varnames": [
12082
- "None",
12083
- "No",
12084
- "Yes"
12085
- ]
11964
+ "format": "uint8",
11965
+ "example": "1"
12086
11966
  },
12087
11967
  "operator_account_index": {
12088
11968
  "type": "integer",
@@ -12748,18 +12628,8 @@
12748
12628
  },
12749
12629
  "outcome": {
12750
12630
  "type": "integer",
12751
- "format": "int32",
12752
- "example": "1",
12753
- "enum": [
12754
- 0,
12755
- 1,
12756
- 2
12757
- ],
12758
- "x-enum-varnames": [
12759
- "None",
12760
- "No",
12761
- "Yes"
12762
- ]
12631
+ "format": "uint8",
12632
+ "example": "1"
12763
12633
  },
12764
12634
  "operator_account_index": {
12765
12635
  "type": "integer",
@@ -13485,16 +13355,8 @@
13485
13355
  "properties": {
13486
13356
  "status": {
13487
13357
  "type": "integer",
13488
- "format": "int32",
13489
- "example": "0",
13490
- "enum": [
13491
- 0,
13492
- 1
13493
- ],
13494
- "x-enum-varnames": [
13495
- "Active",
13496
- "Frozen"
13497
- ]
13358
+ "format": "uint8",
13359
+ "example": "0"
13498
13360
  },
13499
13361
  "operator_fee": {
13500
13362
  "type": "string",
@@ -13584,24 +13446,8 @@
13584
13446
  },
13585
13447
  "account_type": {
13586
13448
  "type": "integer",
13587
- "format": "int32",
13588
- "example": "1",
13589
- "enum": [
13590
- 0,
13591
- 1,
13592
- 2,
13593
- 3,
13594
- 4,
13595
- 5
13596
- ],
13597
- "x-enum-varnames": [
13598
- "Master",
13599
- "Sub",
13600
- "PublicPool",
13601
- "InsuranceFund",
13602
- "LighterStakingPool",
13603
- "TreasurySub"
13604
- ]
13449
+ "format": "uint8",
13450
+ "example": "1"
13605
13451
  },
13606
13452
  "name": {
13607
13453
  "type": "string"
@@ -13622,16 +13468,8 @@
13622
13468
  },
13623
13469
  "status": {
13624
13470
  "type": "integer",
13625
- "format": "int32",
13626
- "example": "0",
13627
- "enum": [
13628
- 0,
13629
- 1
13630
- ],
13631
- "x-enum-varnames": [
13632
- "Active",
13633
- "Frozen"
13634
- ]
13471
+ "format": "uint8",
13472
+ "example": "0"
13635
13473
  },
13636
13474
  "operator_fee": {
13637
13475
  "type": "string",
@@ -13758,17 +13596,7 @@
13758
13596
  },
13759
13597
  "direction": {
13760
13598
  "type": "integer",
13761
- "format": "int32",
13762
- "enum": [
13763
- -1,
13764
- 0,
13765
- 1
13766
- ],
13767
- "x-enum-varnames": [
13768
- "Hidden",
13769
- "Sell",
13770
- "Buy"
13771
- ]
13599
+ "format": "int16"
13772
13600
  },
13773
13601
  "base_amount": {
13774
13602
  "type": "string"
@@ -17379,17 +17207,7 @@
17379
17207
  },
17380
17208
  "direction": {
17381
17209
  "type": "integer",
17382
- "format": "int32",
17383
- "enum": [
17384
- -1,
17385
- 0,
17386
- 1
17387
- ],
17388
- "x-enum-varnames": [
17389
- "Hidden",
17390
- "Sell",
17391
- "Buy"
17392
- ]
17210
+ "format": "int16"
17393
17211
  },
17394
17212
  "base_amount": {
17395
17213
  "type": "string"
@@ -17985,17 +17803,7 @@
17985
17803
  },
17986
17804
  "direction": {
17987
17805
  "type": "integer",
17988
- "format": "int32",
17989
- "enum": [
17990
- -1,
17991
- 0,
17992
- 1
17993
- ],
17994
- "x-enum-varnames": [
17995
- "Hidden",
17996
- "Sell",
17997
- "Buy"
17998
- ]
17806
+ "format": "int16"
17999
17807
  },
18000
17808
  "base_amount": {
18001
17809
  "type": "string"
@@ -18413,17 +18221,7 @@
18413
18221
  },
18414
18222
  "direction": {
18415
18223
  "type": "integer",
18416
- "format": "int32",
18417
- "enum": [
18418
- -1,
18419
- 0,
18420
- 1
18421
- ],
18422
- "x-enum-varnames": [
18423
- "Hidden",
18424
- "Sell",
18425
- "Buy"
18426
- ]
18224
+ "format": "int16"
18427
18225
  },
18428
18226
  "base_amount": {
18429
18227
  "type": "string"
@@ -18755,17 +18553,7 @@
18755
18553
  },
18756
18554
  "direction": {
18757
18555
  "type": "integer",
18758
- "format": "int32",
18759
- "enum": [
18760
- -1,
18761
- 0,
18762
- 1
18763
- ],
18764
- "x-enum-varnames": [
18765
- "Hidden",
18766
- "Sell",
18767
- "Buy"
18768
- ]
18556
+ "format": "int16"
18769
18557
  },
18770
18558
  "base_amount": {
18771
18559
  "type": "string"
@@ -19289,18 +19077,8 @@
19289
19077
  },
19290
19078
  "outcome": {
19291
19079
  "type": "integer",
19292
- "format": "int32",
19293
- "example": "1",
19294
- "enum": [
19295
- 0,
19296
- 1,
19297
- 2
19298
- ],
19299
- "x-enum-varnames": [
19300
- "None",
19301
- "No",
19302
- "Yes"
19303
- ]
19080
+ "format": "uint8",
19081
+ "example": "1"
19304
19082
  },
19305
19083
  "operator_account_index": {
19306
19084
  "type": "integer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "0.573.0-circleci.bb5322b.devin-1790172978-integer-enum-postprocess",
3
+ "version": "0.573.0-circleci.e73586d.devin-1790172978-integer-enum-postprocess",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {