zklighter-perps 1.0.247 → 1.0.249

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.
@@ -35,14 +35,12 @@ export interface PushnotifRegisterRequest {
35
35
 
36
36
  export interface PushnotifSettingsGetRequest {
37
37
  account_index: number;
38
- expo_token: string;
39
38
  authorization?: string;
40
39
  auth?: string;
41
40
  }
42
41
 
43
42
  export interface PushnotifSettingsPostRequest {
44
43
  account_index: number;
45
- expo_token: string;
46
44
  enabled: boolean;
47
45
  auth?: string;
48
46
  }
@@ -154,13 +152,6 @@ export class PushnotifApi extends runtime.BaseAPI {
154
152
  );
155
153
  }
156
154
 
157
- if (requestParameters['expo_token'] == null) {
158
- throw new runtime.RequiredError(
159
- 'expo_token',
160
- 'Required parameter "expo_token" was null or undefined when calling pushnotifSettingsGet().'
161
- );
162
- }
163
-
164
155
  const queryParameters: any = {};
165
156
 
166
157
  if (requestParameters['authorization'] != null) {
@@ -175,10 +166,6 @@ export class PushnotifApi extends runtime.BaseAPI {
175
166
  queryParameters['account_index'] = requestParameters['account_index'];
176
167
  }
177
168
 
178
- if (requestParameters['expo_token'] != null) {
179
- queryParameters['expo_token'] = requestParameters['expo_token'];
180
- }
181
-
182
169
  const headerParameters: runtime.HTTPHeaders = {};
183
170
 
184
171
  const response = await this.request({
@@ -212,13 +199,6 @@ export class PushnotifApi extends runtime.BaseAPI {
212
199
  );
213
200
  }
214
201
 
215
- if (requestParameters['expo_token'] == null) {
216
- throw new runtime.RequiredError(
217
- 'expo_token',
218
- 'Required parameter "expo_token" was null or undefined when calling pushnotifSettingsPost().'
219
- );
220
- }
221
-
222
202
  if (requestParameters['enabled'] == null) {
223
203
  throw new runtime.RequiredError(
224
204
  'enabled',
@@ -252,10 +232,6 @@ export class PushnotifApi extends runtime.BaseAPI {
252
232
  formParams.append('account_index', requestParameters['account_index'] as any);
253
233
  }
254
234
 
255
- if (requestParameters['expo_token'] != null) {
256
- formParams.append('expo_token', requestParameters['expo_token'] as any);
257
- }
258
-
259
235
  if (requestParameters['enabled'] != null) {
260
236
  formParams.append('enabled', requestParameters['enabled'] as any);
261
237
  }
@@ -85,6 +85,12 @@ export interface AccountLimits {
85
85
  * @memberof AccountLimits
86
86
  */
87
87
  effective_lit_stakes: string;
88
+ /**
89
+ *
90
+ * @type {number}
91
+ * @memberof AccountLimits
92
+ */
93
+ user_tier_last_update: number;
88
94
  }
89
95
 
90
96
  /**
@@ -101,6 +107,7 @@ export function instanceOfAccountLimits(value: object): value is AccountLimits {
101
107
  if (!('current_taker_fee_tick' in value) || value['current_taker_fee_tick'] === undefined) return false;
102
108
  if (!('leased_lit' in value) || value['leased_lit'] === undefined) return false;
103
109
  if (!('effective_lit_stakes' in value) || value['effective_lit_stakes'] === undefined) return false;
110
+ if (!('user_tier_last_update' in value) || value['user_tier_last_update'] === undefined) return false;
104
111
  return true;
105
112
  }
106
113
 
@@ -125,6 +132,7 @@ export function AccountLimitsFromJSONTyped(json: any, ignoreDiscriminator: boole
125
132
  'current_taker_fee_tick': json['current_taker_fee_tick'],
126
133
  'leased_lit': json['leased_lit'],
127
134
  'effective_lit_stakes': json['effective_lit_stakes'],
135
+ 'user_tier_last_update': json['user_tier_last_update'],
128
136
  };
129
137
  }
130
138
 
@@ -145,6 +153,7 @@ export function AccountLimitsToJSON(value?: AccountLimits | null): any {
145
153
  'current_taker_fee_tick': value['current_taker_fee_tick'],
146
154
  'leased_lit': value['leased_lit'],
147
155
  'effective_lit_stakes': value['effective_lit_stakes'],
156
+ 'user_tier_last_update': value['user_tier_last_update'],
148
157
  };
149
158
  }
150
159
 
@@ -31,12 +31,6 @@ export interface ReqGetPushNotifSettings {
31
31
  * @memberof ReqGetPushNotifSettings
32
32
  */
33
33
  account_index: number;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof ReqGetPushNotifSettings
38
- */
39
- expo_token: string;
40
34
  }
41
35
 
42
36
  /**
@@ -44,7 +38,6 @@ export interface ReqGetPushNotifSettings {
44
38
  */
45
39
  export function instanceOfReqGetPushNotifSettings(value: object): value is ReqGetPushNotifSettings {
46
40
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
47
- if (!('expo_token' in value) || value['expo_token'] === undefined) return false;
48
41
  return true;
49
42
  }
50
43
 
@@ -60,7 +53,6 @@ export function ReqGetPushNotifSettingsFromJSONTyped(json: any, ignoreDiscrimina
60
53
 
61
54
  'auth': json['auth'] == null ? undefined : json['auth'],
62
55
  'account_index': json['account_index'],
63
- 'expo_token': json['expo_token'],
64
56
  };
65
57
  }
66
58
 
@@ -72,7 +64,6 @@ export function ReqGetPushNotifSettingsToJSON(value?: ReqGetPushNotifSettings |
72
64
 
73
65
  'auth': value['auth'],
74
66
  'account_index': value['account_index'],
75
- 'expo_token': value['expo_token'],
76
67
  };
77
68
  }
78
69
 
@@ -31,12 +31,6 @@ export interface RespGetPushNotifSettings {
31
31
  * @memberof RespGetPushNotifSettings
32
32
  */
33
33
  message?: string;
34
- /**
35
- *
36
- * @type {number}
37
- * @memberof RespGetPushNotifSettings
38
- */
39
- account_index: number;
40
34
  /**
41
35
  *
42
36
  * @type {boolean}
@@ -50,7 +44,6 @@ export interface RespGetPushNotifSettings {
50
44
  */
51
45
  export function instanceOfRespGetPushNotifSettings(value: object): value is RespGetPushNotifSettings {
52
46
  if (!('code' in value) || value['code'] === undefined) return false;
53
- if (!('account_index' in value) || value['account_index'] === undefined) return false;
54
47
  if (!('enabled' in value) || value['enabled'] === undefined) return false;
55
48
  return true;
56
49
  }
@@ -67,7 +60,6 @@ export function RespGetPushNotifSettingsFromJSONTyped(json: any, ignoreDiscrimin
67
60
 
68
61
  'code': json['code'],
69
62
  'message': json['message'] == null ? undefined : json['message'],
70
- 'account_index': json['account_index'],
71
63
  'enabled': json['enabled'],
72
64
  };
73
65
  }
@@ -80,7 +72,6 @@ export function RespGetPushNotifSettingsToJSON(value?: RespGetPushNotifSettings
80
72
 
81
73
  'code': value['code'],
82
74
  'message': value['message'],
83
- 'account_index': value['account_index'],
84
75
  'enabled': value['enabled'],
85
76
  };
86
77
  }
package/openapi.json CHANGED
@@ -3080,12 +3080,6 @@
3080
3080
  "required": true,
3081
3081
  "type": "integer",
3082
3082
  "format": "int64"
3083
- },
3084
- {
3085
- "name": "expo_token",
3086
- "in": "query",
3087
- "required": true,
3088
- "type": "string"
3089
3083
  }
3090
3084
  ],
3091
3085
  "tags": [
@@ -4904,6 +4898,10 @@
4904
4898
  },
4905
4899
  "effective_lit_stakes": {
4906
4900
  "type": "string"
4901
+ },
4902
+ "user_tier_last_update": {
4903
+ "type": "integer",
4904
+ "format": "int64"
4907
4905
  }
4908
4906
  },
4909
4907
  "title": "AccountLimits",
@@ -4917,7 +4915,8 @@
4917
4915
  "current_maker_fee_tick",
4918
4916
  "current_taker_fee_tick",
4919
4917
  "leased_lit",
4920
- "effective_lit_stakes"
4918
+ "effective_lit_stakes",
4919
+ "user_tier_last_update"
4921
4920
  ]
4922
4921
  },
4923
4922
  "AccountMarginStats": {
@@ -10842,15 +10841,11 @@
10842
10841
  "account_index": {
10843
10842
  "type": "integer",
10844
10843
  "format": "int64"
10845
- },
10846
- "expo_token": {
10847
- "type": "string"
10848
10844
  }
10849
10845
  },
10850
10846
  "title": "ReqGetPushNotifSettings",
10851
10847
  "required": [
10852
- "account_index",
10853
- "expo_token"
10848
+ "account_index"
10854
10849
  ]
10855
10850
  },
10856
10851
  "ReqGetRFQ": {
@@ -11536,9 +11531,6 @@
11536
11531
  "type": "integer",
11537
11532
  "format": "int64"
11538
11533
  },
11539
- "expo_token": {
11540
- "type": "string"
11541
- },
11542
11534
  "enabled": {
11543
11535
  "type": "boolean",
11544
11536
  "format": "boolean"
@@ -11547,7 +11539,6 @@
11547
11539
  "title": "ReqUpdatePushNotifSettings",
11548
11540
  "required": [
11549
11541
  "account_index",
11550
- "expo_token",
11551
11542
  "enabled"
11552
11543
  ]
11553
11544
  },
@@ -12010,10 +12001,6 @@
12010
12001
  "message": {
12011
12002
  "type": "string"
12012
12003
  },
12013
- "account_index": {
12014
- "type": "integer",
12015
- "format": "int64"
12016
- },
12017
12004
  "enabled": {
12018
12005
  "type": "boolean",
12019
12006
  "format": "boolean"
@@ -12022,7 +12009,6 @@
12022
12009
  "title": "RespGetPushNotifSettings",
12023
12010
  "required": [
12024
12011
  "code",
12025
- "account_index",
12026
12012
  "enabled"
12027
12013
  ]
12028
12014
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.247",
3
+ "version": "1.0.249",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {