zklighter-perps 1.0.120 → 1.0.121

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.
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
19
19
  * @interface AccountMetadata
20
20
  */
21
21
  export interface AccountMetadata {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof AccountMetadata
26
+ */
27
+ account_index: number;
22
28
  /**
23
29
  *
24
30
  * @type {string}
@@ -32,34 +38,28 @@ export interface AccountMetadata {
32
38
  */
33
39
  description: string;
34
40
  /**
35
- *
41
+ * Remove After FE uses L1 meta endpoint
36
42
  * @type {boolean}
37
43
  * @memberof AccountMetadata
38
44
  */
39
45
  can_invite: boolean;
40
46
  /**
41
- *
47
+ * Remove After FE uses L1 meta endpoint
42
48
  * @type {string}
43
49
  * @memberof AccountMetadata
44
50
  */
45
51
  referral_points_percentage: string;
46
- /**
47
- *
48
- * @type {number}
49
- * @memberof AccountMetadata
50
- */
51
- max_referral_usage_limit: number;
52
52
  }
53
53
 
54
54
  /**
55
55
  * Check if a given object implements the AccountMetadata interface.
56
56
  */
57
57
  export function instanceOfAccountMetadata(value: object): value is AccountMetadata {
58
+ if (!('account_index' in value) || value['account_index'] === undefined) return false;
58
59
  if (!('name' in value) || value['name'] === undefined) return false;
59
60
  if (!('description' in value) || value['description'] === undefined) return false;
60
61
  if (!('can_invite' in value) || value['can_invite'] === undefined) return false;
61
62
  if (!('referral_points_percentage' in value) || value['referral_points_percentage'] === undefined) return false;
62
- if (!('max_referral_usage_limit' in value) || value['max_referral_usage_limit'] === undefined) return false;
63
63
  return true;
64
64
  }
65
65
 
@@ -73,11 +73,11 @@ export function AccountMetadataFromJSONTyped(json: any, ignoreDiscriminator: boo
73
73
  }
74
74
  return {
75
75
 
76
+ 'account_index': json['account_index'],
76
77
  'name': json['name'],
77
78
  'description': json['description'],
78
79
  'can_invite': json['can_invite'],
79
80
  'referral_points_percentage': json['referral_points_percentage'],
80
- 'max_referral_usage_limit': json['max_referral_usage_limit'],
81
81
  };
82
82
  }
83
83
 
@@ -87,11 +87,11 @@ export function AccountMetadataToJSON(value?: AccountMetadata | null): any {
87
87
  }
88
88
  return {
89
89
 
90
+ 'account_index': value['account_index'],
90
91
  'name': value['name'],
91
92
  'description': value['description'],
92
93
  'can_invite': value['can_invite'],
93
94
  'referral_points_percentage': value['referral_points_percentage'],
94
- 'max_referral_usage_limit': value['max_referral_usage_limit'],
95
95
  };
96
96
  }
97
97
 
@@ -13,12 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { Mapint64AccountMetadata } from './Mapint64AccountMetadata';
16
+ import type { AccountMetadata } from './AccountMetadata';
17
17
  import {
18
- Mapint64AccountMetadataFromJSON,
19
- Mapint64AccountMetadataFromJSONTyped,
20
- Mapint64AccountMetadataToJSON,
21
- } from './Mapint64AccountMetadata';
18
+ AccountMetadataFromJSON,
19
+ AccountMetadataFromJSONTyped,
20
+ AccountMetadataToJSON,
21
+ } from './AccountMetadata';
22
22
 
23
23
  /**
24
24
  *
@@ -40,10 +40,10 @@ export interface AccountMetadatas {
40
40
  message?: string;
41
41
  /**
42
42
  *
43
- * @type {Mapint64AccountMetadata}
43
+ * @type {Array<AccountMetadata>}
44
44
  * @memberof AccountMetadatas
45
45
  */
46
- account_metadatas: Mapint64AccountMetadata;
46
+ account_metadatas: Array<AccountMetadata>;
47
47
  }
48
48
 
49
49
  /**
@@ -67,7 +67,7 @@ export function AccountMetadatasFromJSONTyped(json: any, ignoreDiscriminator: bo
67
67
 
68
68
  'code': json['code'],
69
69
  'message': json['message'] == null ? undefined : json['message'],
70
- 'account_metadatas': Mapint64AccountMetadataFromJSON(json['account_metadatas']),
70
+ 'account_metadatas': ((json['account_metadatas'] as Array<any>).map(AccountMetadataFromJSON)),
71
71
  };
72
72
  }
73
73
 
@@ -79,7 +79,7 @@ export function AccountMetadatasToJSON(value?: AccountMetadatas | null): any {
79
79
 
80
80
  'code': value['code'],
81
81
  'message': value['message'],
82
- 'account_metadatas': Mapint64AccountMetadataToJSON(value['account_metadatas']),
82
+ 'account_metadatas': ((value['account_metadatas'] as Array<any>).map(AccountMetadataToJSON)),
83
83
  };
84
84
  }
85
85
 
@@ -98,6 +98,12 @@ export interface DetailedAccount {
98
98
  * @memberof DetailedAccount
99
99
  */
100
100
  collateral: string;
101
+ /**
102
+ *
103
+ * @type {number}
104
+ * @memberof DetailedAccount
105
+ */
106
+ account_index: number;
101
107
  /**
102
108
  *
103
109
  * @type {string}
@@ -111,23 +117,17 @@ export interface DetailedAccount {
111
117
  */
112
118
  description: string;
113
119
  /**
114
- *
120
+ * Remove After FE uses L1 meta endpoint
115
121
  * @type {boolean}
116
122
  * @memberof DetailedAccount
117
123
  */
118
124
  can_invite: boolean;
119
125
  /**
120
- *
126
+ * Remove After FE uses L1 meta endpoint
121
127
  * @type {string}
122
128
  * @memberof DetailedAccount
123
129
  */
124
130
  referral_points_percentage: string;
125
- /**
126
- *
127
- * @type {number}
128
- * @memberof DetailedAccount
129
- */
130
- max_referral_usage_limit: number;
131
131
  /**
132
132
  *
133
133
  * @type {Array<AccountPosition>}
@@ -167,11 +167,11 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
167
167
  if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
168
168
  if (!('status' in value) || value['status'] === undefined) return false;
169
169
  if (!('collateral' in value) || value['collateral'] === undefined) return false;
170
+ if (!('account_index' in value) || value['account_index'] === undefined) return false;
170
171
  if (!('name' in value) || value['name'] === undefined) return false;
171
172
  if (!('description' in value) || value['description'] === undefined) return false;
172
173
  if (!('can_invite' in value) || value['can_invite'] === undefined) return false;
173
174
  if (!('referral_points_percentage' in value) || value['referral_points_percentage'] === undefined) return false;
174
- if (!('max_referral_usage_limit' in value) || value['max_referral_usage_limit'] === undefined) return false;
175
175
  if (!('positions' in value) || value['positions'] === undefined) return false;
176
176
  if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
177
177
  if (!('pool_info' in value) || value['pool_info'] === undefined) return false;
@@ -199,11 +199,11 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
199
199
  'pending_order_count': json['pending_order_count'],
200
200
  'status': json['status'],
201
201
  'collateral': json['collateral'],
202
+ 'account_index': json['account_index'],
202
203
  'name': json['name'],
203
204
  'description': json['description'],
204
205
  'can_invite': json['can_invite'],
205
206
  'referral_points_percentage': json['referral_points_percentage'],
206
- 'max_referral_usage_limit': json['max_referral_usage_limit'],
207
207
  'positions': ((json['positions'] as Array<any>).map(AccountPositionFromJSON)),
208
208
  'total_asset_value': json['total_asset_value'],
209
209
  'pool_info': PublicPoolInfoFromJSON(json['pool_info']),
@@ -227,11 +227,11 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
227
227
  'pending_order_count': value['pending_order_count'],
228
228
  'status': value['status'],
229
229
  'collateral': value['collateral'],
230
+ 'account_index': value['account_index'],
230
231
  'name': value['name'],
231
232
  'description': value['description'],
232
233
  'can_invite': value['can_invite'],
233
234
  'referral_points_percentage': value['referral_points_percentage'],
234
- 'max_referral_usage_limit': value['max_referral_usage_limit'],
235
235
  'positions': ((value['positions'] as Array<any>).map(AccountPositionToJSON)),
236
236
  'total_asset_value': value['total_asset_value'],
237
237
  'pool_info': PublicPoolInfoToJSON(value['pool_info']),
@@ -0,0 +1,79 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface L1Metadata
20
+ */
21
+ export interface L1Metadata {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof L1Metadata
26
+ */
27
+ l1_address: string;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof L1Metadata
32
+ */
33
+ can_invite: boolean;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof L1Metadata
38
+ */
39
+ referral_points_percentage: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the L1Metadata interface.
44
+ */
45
+ export function instanceOfL1Metadata(value: object): value is L1Metadata {
46
+ if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
47
+ if (!('can_invite' in value) || value['can_invite'] === undefined) return false;
48
+ if (!('referral_points_percentage' in value) || value['referral_points_percentage'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function L1MetadataFromJSON(json: any): L1Metadata {
53
+ return L1MetadataFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function L1MetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): L1Metadata {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'l1_address': json['l1_address'],
63
+ 'can_invite': json['can_invite'],
64
+ 'referral_points_percentage': json['referral_points_percentage'],
65
+ };
66
+ }
67
+
68
+ export function L1MetadataToJSON(value?: L1Metadata | null): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+
74
+ 'l1_address': value['l1_address'],
75
+ 'can_invite': value['can_invite'],
76
+ 'referral_points_percentage': value['referral_points_percentage'],
77
+ };
78
+ }
79
+
@@ -92,6 +92,12 @@ export interface PublicPool {
92
92
  * @memberof PublicPool
93
93
  */
94
94
  collateral: string;
95
+ /**
96
+ *
97
+ * @type {number}
98
+ * @memberof PublicPool
99
+ */
100
+ account_index: number;
95
101
  /**
96
102
  *
97
103
  * @type {string}
@@ -105,23 +111,17 @@ export interface PublicPool {
105
111
  */
106
112
  description: string;
107
113
  /**
108
- *
114
+ * Remove After FE uses L1 meta endpoint
109
115
  * @type {boolean}
110
116
  * @memberof PublicPool
111
117
  */
112
118
  can_invite: boolean;
113
119
  /**
114
- *
120
+ * Remove After FE uses L1 meta endpoint
115
121
  * @type {string}
116
122
  * @memberof PublicPool
117
123
  */
118
124
  referral_points_percentage: string;
119
- /**
120
- *
121
- * @type {number}
122
- * @memberof PublicPool
123
- */
124
- max_referral_usage_limit: number;
125
125
  /**
126
126
  *
127
127
  * @type {string}
@@ -155,11 +155,11 @@ export function instanceOfPublicPool(value: object): value is PublicPool {
155
155
  if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
156
156
  if (!('status' in value) || value['status'] === undefined) return false;
157
157
  if (!('collateral' in value) || value['collateral'] === undefined) return false;
158
+ if (!('account_index' in value) || value['account_index'] === undefined) return false;
158
159
  if (!('name' in value) || value['name'] === undefined) return false;
159
160
  if (!('description' in value) || value['description'] === undefined) return false;
160
161
  if (!('can_invite' in value) || value['can_invite'] === undefined) return false;
161
162
  if (!('referral_points_percentage' in value) || value['referral_points_percentage'] === undefined) return false;
162
- if (!('max_referral_usage_limit' in value) || value['max_referral_usage_limit'] === undefined) return false;
163
163
  if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
164
164
  if (!('pool_info' in value) || value['pool_info'] === undefined) return false;
165
165
  return true;
@@ -185,11 +185,11 @@ export function PublicPoolFromJSONTyped(json: any, ignoreDiscriminator: boolean)
185
185
  'pending_order_count': json['pending_order_count'],
186
186
  'status': json['status'],
187
187
  'collateral': json['collateral'],
188
+ 'account_index': json['account_index'],
188
189
  'name': json['name'],
189
190
  'description': json['description'],
190
191
  'can_invite': json['can_invite'],
191
192
  'referral_points_percentage': json['referral_points_percentage'],
192
- 'max_referral_usage_limit': json['max_referral_usage_limit'],
193
193
  'total_asset_value': json['total_asset_value'],
194
194
  'pool_info': PublicPoolInfoFromJSON(json['pool_info']),
195
195
  'account_share': json['account_share'] == null ? undefined : PublicPoolShareFromJSON(json['account_share']),
@@ -212,11 +212,11 @@ export function PublicPoolToJSON(value?: PublicPool | null): any {
212
212
  'pending_order_count': value['pending_order_count'],
213
213
  'status': value['status'],
214
214
  'collateral': value['collateral'],
215
+ 'account_index': value['account_index'],
215
216
  'name': value['name'],
216
217
  'description': value['description'],
217
218
  'can_invite': value['can_invite'],
218
219
  'referral_points_percentage': value['referral_points_percentage'],
219
- 'max_referral_usage_limit': value['max_referral_usage_limit'],
220
220
  'total_asset_value': value['total_asset_value'],
221
221
  'pool_info': PublicPoolInfoToJSON(value['pool_info']),
222
222
  'account_share': PublicPoolShareToJSON(value['account_share']),
@@ -32,11 +32,11 @@ export interface ReqGetAccountActiveOrders {
32
32
  */
33
33
  market_id: number;
34
34
  /**
35
- *
35
+ * made optional to support header auth clients
36
36
  * @type {string}
37
37
  * @memberof ReqGetAccountActiveOrders
38
38
  */
39
- auth: string;
39
+ auth?: string;
40
40
  }
41
41
 
42
42
  /**
@@ -45,7 +45,6 @@ export interface ReqGetAccountActiveOrders {
45
45
  export function instanceOfReqGetAccountActiveOrders(value: object): value is ReqGetAccountActiveOrders {
46
46
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
47
47
  if (!('market_id' in value) || value['market_id'] === undefined) return false;
48
- if (!('auth' in value) || value['auth'] === undefined) return false;
49
48
  return true;
50
49
  }
51
50
 
@@ -61,7 +60,7 @@ export function ReqGetAccountActiveOrdersFromJSONTyped(json: any, ignoreDiscrimi
61
60
 
62
61
  'account_index': json['account_index'],
63
62
  'market_id': json['market_id'],
64
- 'auth': json['auth'],
63
+ 'auth': json['auth'] == null ? undefined : json['auth'],
65
64
  };
66
65
  }
67
66
 
@@ -20,11 +20,11 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface ReqGetAccountInactiveOrders {
22
22
  /**
23
- *
23
+ * made optional to support header auth clients
24
24
  * @type {string}
25
25
  * @memberof ReqGetAccountInactiveOrders
26
26
  */
27
- auth: string;
27
+ auth?: string;
28
28
  /**
29
29
  *
30
30
  * @type {number}
@@ -67,7 +67,6 @@ export interface ReqGetAccountInactiveOrders {
67
67
  * Check if a given object implements the ReqGetAccountInactiveOrders interface.
68
68
  */
69
69
  export function instanceOfReqGetAccountInactiveOrders(value: object): value is ReqGetAccountInactiveOrders {
70
- if (!('auth' in value) || value['auth'] === undefined) return false;
71
70
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
72
71
  if (!('limit' in value) || value['limit'] === undefined) return false;
73
72
  return true;
@@ -83,7 +82,7 @@ export function ReqGetAccountInactiveOrdersFromJSONTyped(json: any, ignoreDiscri
83
82
  }
84
83
  return {
85
84
 
86
- 'auth': json['auth'],
85
+ 'auth': json['auth'] == null ? undefined : json['auth'],
87
86
  'account_index': json['account_index'],
88
87
  'market_id': json['market_id'] == null ? undefined : json['market_id'],
89
88
  'ask_filter': json['ask_filter'] == null ? undefined : json['ask_filter'],
@@ -26,11 +26,11 @@ export interface ReqGetAccountLimits {
26
26
  */
27
27
  account_index: number;
28
28
  /**
29
- *
29
+ * made optional to support header auth clients
30
30
  * @type {string}
31
31
  * @memberof ReqGetAccountLimits
32
32
  */
33
- auth: string;
33
+ auth?: string;
34
34
  }
35
35
 
36
36
  /**
@@ -38,7 +38,6 @@ export interface ReqGetAccountLimits {
38
38
  */
39
39
  export function instanceOfReqGetAccountLimits(value: object): value is ReqGetAccountLimits {
40
40
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
41
- if (!('auth' in value) || value['auth'] === undefined) return false;
42
41
  return true;
43
42
  }
44
43
 
@@ -53,7 +52,7 @@ export function ReqGetAccountLimitsFromJSONTyped(json: any, ignoreDiscriminator:
53
52
  return {
54
53
 
55
54
  'account_index': json['account_index'],
56
- 'auth': json['auth'],
55
+ 'auth': json['auth'] == null ? undefined : json['auth'],
57
56
  };
58
57
  }
59
58
 
@@ -26,11 +26,11 @@ export interface ReqGetDepositHistory {
26
26
  */
27
27
  account_index: number;
28
28
  /**
29
- *
29
+ * made optional to support header auth clients
30
30
  * @type {string}
31
31
  * @memberof ReqGetDepositHistory
32
32
  */
33
- auth: string;
33
+ auth?: string;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -68,7 +68,6 @@ export type ReqGetDepositHistoryFilterEnum = typeof ReqGetDepositHistoryFilterEn
68
68
  */
69
69
  export function instanceOfReqGetDepositHistory(value: object): value is ReqGetDepositHistory {
70
70
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
71
- if (!('auth' in value) || value['auth'] === undefined) return false;
72
71
  if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
73
72
  return true;
74
73
  }
@@ -84,7 +83,7 @@ export function ReqGetDepositHistoryFromJSONTyped(json: any, ignoreDiscriminator
84
83
  return {
85
84
 
86
85
  'account_index': json['account_index'],
87
- 'auth': json['auth'],
86
+ 'auth': json['auth'] == null ? undefined : json['auth'],
88
87
  'l1_address': json['l1_address'],
89
88
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
90
89
  'filter': json['filter'] == null ? undefined : json['filter'],
@@ -26,11 +26,11 @@ export interface ReqGetFastWithdrawInfo {
26
26
  */
27
27
  account_index: number;
28
28
  /**
29
- *
29
+ * made optional to support header auth clients
30
30
  * @type {string}
31
31
  * @memberof ReqGetFastWithdrawInfo
32
32
  */
33
- auth: string;
33
+ auth?: string;
34
34
  }
35
35
 
36
36
  /**
@@ -38,7 +38,6 @@ export interface ReqGetFastWithdrawInfo {
38
38
  */
39
39
  export function instanceOfReqGetFastWithdrawInfo(value: object): value is ReqGetFastWithdrawInfo {
40
40
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
41
- if (!('auth' in value) || value['auth'] === undefined) return false;
42
41
  return true;
43
42
  }
44
43
 
@@ -53,7 +52,7 @@ export function ReqGetFastWithdrawInfoFromJSONTyped(json: any, ignoreDiscriminat
53
52
  return {
54
53
 
55
54
  'account_index': json['account_index'],
56
- 'auth': json['auth'],
55
+ 'auth': json['auth'] == null ? undefined : json['auth'],
57
56
  };
58
57
  }
59
58
 
@@ -0,0 +1,69 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ReqGetL1Metadata
20
+ */
21
+ export interface ReqGetL1Metadata {
22
+ /**
23
+ * made optional to support header auth clients
24
+ * @type {string}
25
+ * @memberof ReqGetL1Metadata
26
+ */
27
+ auth?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ReqGetL1Metadata
32
+ */
33
+ l1_address: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ReqGetL1Metadata interface.
38
+ */
39
+ export function instanceOfReqGetL1Metadata(value: object): value is ReqGetL1Metadata {
40
+ if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function ReqGetL1MetadataFromJSON(json: any): ReqGetL1Metadata {
45
+ return ReqGetL1MetadataFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function ReqGetL1MetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetL1Metadata {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'auth': json['auth'] == null ? undefined : json['auth'],
55
+ 'l1_address': json['l1_address'],
56
+ };
57
+ }
58
+
59
+ export function ReqGetL1MetadataToJSON(value?: ReqGetL1Metadata | null): any {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+
65
+ 'auth': value['auth'],
66
+ 'l1_address': value['l1_address'],
67
+ };
68
+ }
69
+
@@ -20,11 +20,11 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface ReqGetReferralCode {
22
22
  /**
23
- *
23
+ * made optional to support header auth clients
24
24
  * @type {string}
25
25
  * @memberof ReqGetReferralCode
26
26
  */
27
- auth: string;
27
+ auth?: string;
28
28
  /**
29
29
  *
30
30
  * @type {number}
@@ -37,7 +37,6 @@ export interface ReqGetReferralCode {
37
37
  * Check if a given object implements the ReqGetReferralCode interface.
38
38
  */
39
39
  export function instanceOfReqGetReferralCode(value: object): value is ReqGetReferralCode {
40
- if (!('auth' in value) || value['auth'] === undefined) return false;
41
40
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
42
41
  return true;
43
42
  }
@@ -52,7 +51,7 @@ export function ReqGetReferralCodeFromJSONTyped(json: any, ignoreDiscriminator:
52
51
  }
53
52
  return {
54
53
 
55
- 'auth': json['auth'],
54
+ 'auth': json['auth'] == null ? undefined : json['auth'],
56
55
  'account_index': json['account_index'],
57
56
  };
58
57
  }
@@ -20,11 +20,11 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface ReqGetReferralPoints {
22
22
  /**
23
- *
23
+ * made optional to support header auth clients
24
24
  * @type {string}
25
25
  * @memberof ReqGetReferralPoints
26
26
  */
27
- auth: string;
27
+ auth?: string;
28
28
  /**
29
29
  *
30
30
  * @type {number}
@@ -37,7 +37,6 @@ export interface ReqGetReferralPoints {
37
37
  * Check if a given object implements the ReqGetReferralPoints interface.
38
38
  */
39
39
  export function instanceOfReqGetReferralPoints(value: object): value is ReqGetReferralPoints {
40
- if (!('auth' in value) || value['auth'] === undefined) return false;
41
40
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
42
41
  return true;
43
42
  }
@@ -52,7 +51,7 @@ export function ReqGetReferralPointsFromJSONTyped(json: any, ignoreDiscriminator
52
51
  }
53
52
  return {
54
53
 
55
- 'auth': json['auth'],
54
+ 'auth': json['auth'] == null ? undefined : json['auth'],
56
55
  'account_index': json['account_index'],
57
56
  };
58
57
  }
@@ -26,11 +26,11 @@ export interface ReqGetWithdrawHistory {
26
26
  */
27
27
  account_index: number;
28
28
  /**
29
- *
29
+ * made optional to support header auth clients
30
30
  * @type {string}
31
31
  * @memberof ReqGetWithdrawHistory
32
32
  */
33
- auth: string;
33
+ auth?: string;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -62,7 +62,6 @@ export type ReqGetWithdrawHistoryFilterEnum = typeof ReqGetWithdrawHistoryFilter
62
62
  */
63
63
  export function instanceOfReqGetWithdrawHistory(value: object): value is ReqGetWithdrawHistory {
64
64
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
65
- if (!('auth' in value) || value['auth'] === undefined) return false;
66
65
  return true;
67
66
  }
68
67
 
@@ -77,7 +76,7 @@ export function ReqGetWithdrawHistoryFromJSONTyped(json: any, ignoreDiscriminato
77
76
  return {
78
77
 
79
78
  'account_index': json['account_index'],
80
- 'auth': json['auth'],
79
+ 'auth': json['auth'] == null ? undefined : json['auth'],
81
80
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
82
81
  'filter': json['filter'] == null ? undefined : json['filter'],
83
82
  };