zklighter-perps 1.0.119 → 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.
@@ -29,18 +29,21 @@ import {
29
29
  } from '../models/index';
30
30
 
31
31
  export interface ReferralCreateRequest {
32
- auth: string;
33
32
  account_index: number;
33
+ authorization?: string;
34
+ auth?: string;
34
35
  }
35
36
 
36
37
  export interface ReferralGetRequest {
37
- auth: string;
38
38
  account_index: number;
39
+ authorization?: string;
40
+ auth?: string;
39
41
  }
40
42
 
41
43
  export interface ReferralPointsRequest {
42
- auth: string;
43
44
  account_index: number;
45
+ authorization?: string;
46
+ auth?: string;
44
47
  }
45
48
 
46
49
  export interface ReferralUseRequest {
@@ -61,13 +64,6 @@ export class ReferralApi extends runtime.BaseAPI {
61
64
  * referral_create
62
65
  */
63
66
  async referralCreateRaw(requestParameters: ReferralCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReferralCode>> {
64
- if (requestParameters['auth'] == null) {
65
- throw new runtime.RequiredError(
66
- 'auth',
67
- 'Required parameter "auth" was null or undefined when calling referralCreate().'
68
- );
69
- }
70
-
71
67
  if (requestParameters['account_index'] == null) {
72
68
  throw new runtime.RequiredError(
73
69
  'account_index',
@@ -79,6 +75,10 @@ export class ReferralApi extends runtime.BaseAPI {
79
75
 
80
76
  const headerParameters: runtime.HTTPHeaders = {};
81
77
 
78
+ if (requestParameters['authorization'] != null) {
79
+ headerParameters['authorization'] = String(requestParameters['authorization']);
80
+ }
81
+
82
82
  const consumes: runtime.Consume[] = [
83
83
  { contentType: 'multipart/form-data' },
84
84
  ];
@@ -126,13 +126,6 @@ export class ReferralApi extends runtime.BaseAPI {
126
126
  * referral_get
127
127
  */
128
128
  async referralGetRaw(requestParameters: ReferralGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReferralCode>> {
129
- if (requestParameters['auth'] == null) {
130
- throw new runtime.RequiredError(
131
- 'auth',
132
- 'Required parameter "auth" was null or undefined when calling referralGet().'
133
- );
134
- }
135
-
136
129
  if (requestParameters['account_index'] == null) {
137
130
  throw new runtime.RequiredError(
138
131
  'account_index',
@@ -152,6 +145,10 @@ export class ReferralApi extends runtime.BaseAPI {
152
145
 
153
146
  const headerParameters: runtime.HTTPHeaders = {};
154
147
 
148
+ if (requestParameters['authorization'] != null) {
149
+ headerParameters['authorization'] = String(requestParameters['authorization']);
150
+ }
151
+
155
152
  const response = await this.request({
156
153
  path: `/api/v1/referral/get`,
157
154
  method: 'GET',
@@ -176,13 +173,6 @@ export class ReferralApi extends runtime.BaseAPI {
176
173
  * referral_points
177
174
  */
178
175
  async referralPointsRaw(requestParameters: ReferralPointsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReferralPoints>> {
179
- if (requestParameters['auth'] == null) {
180
- throw new runtime.RequiredError(
181
- 'auth',
182
- 'Required parameter "auth" was null or undefined when calling referralPoints().'
183
- );
184
- }
185
-
186
176
  if (requestParameters['account_index'] == null) {
187
177
  throw new runtime.RequiredError(
188
178
  'account_index',
@@ -202,6 +192,10 @@ export class ReferralApi extends runtime.BaseAPI {
202
192
 
203
193
  const headerParameters: runtime.HTTPHeaders = {};
204
194
 
195
+ if (requestParameters['authorization'] != null) {
196
+ headerParameters['authorization'] = String(requestParameters['authorization']);
197
+ }
198
+
205
199
  const response = await this.request({
206
200
  path: `/api/v1/referral/points`,
207
201
  method: 'GET',
@@ -64,8 +64,9 @@ export interface BlockTxsRequest {
64
64
 
65
65
  export interface DepositHistoryRequest {
66
66
  account_index: number;
67
- auth: string;
68
67
  l1_address: string;
68
+ authorization?: string;
69
+ auth?: string;
69
70
  cursor?: string;
70
71
  filter?: DepositHistoryFilterEnum;
71
72
  }
@@ -97,6 +98,7 @@ export interface SetAccountMetadataRequest {
97
98
  api_key_index: number;
98
99
  metadata: string;
99
100
  auth: string;
101
+ authorization?: string;
100
102
  }
101
103
 
102
104
  export interface TxRequest {
@@ -115,7 +117,8 @@ export interface TxsRequest {
115
117
 
116
118
  export interface WithdrawHistoryRequest {
117
119
  account_index: number;
118
- auth: string;
120
+ authorizatio?: string;
121
+ auth?: string;
119
122
  cursor?: string;
120
123
  filter?: WithdrawHistoryFilterEnum;
121
124
  }
@@ -310,13 +313,6 @@ export class TransactionApi extends runtime.BaseAPI {
310
313
  );
311
314
  }
312
315
 
313
- if (requestParameters['auth'] == null) {
314
- throw new runtime.RequiredError(
315
- 'auth',
316
- 'Required parameter "auth" was null or undefined when calling depositHistory().'
317
- );
318
- }
319
-
320
316
  if (requestParameters['l1_address'] == null) {
321
317
  throw new runtime.RequiredError(
322
318
  'l1_address',
@@ -348,6 +344,10 @@ export class TransactionApi extends runtime.BaseAPI {
348
344
 
349
345
  const headerParameters: runtime.HTTPHeaders = {};
350
346
 
347
+ if (requestParameters['authorization'] != null) {
348
+ headerParameters['authorization'] = String(requestParameters['authorization']);
349
+ }
350
+
351
351
  const response = await this.request({
352
352
  path: `/api/v1/deposit/history`,
353
353
  method: 'GET',
@@ -638,6 +638,10 @@ export class TransactionApi extends runtime.BaseAPI {
638
638
 
639
639
  const headerParameters: runtime.HTTPHeaders = {};
640
640
 
641
+ if (requestParameters['authorization'] != null) {
642
+ headerParameters['authorization'] = String(requestParameters['authorization']);
643
+ }
644
+
641
645
  const consumes: runtime.Consume[] = [
642
646
  { contentType: 'multipart/form-data' },
643
647
  ];
@@ -836,13 +840,6 @@ export class TransactionApi extends runtime.BaseAPI {
836
840
  );
837
841
  }
838
842
 
839
- if (requestParameters['auth'] == null) {
840
- throw new runtime.RequiredError(
841
- 'auth',
842
- 'Required parameter "auth" was null or undefined when calling withdrawHistory().'
843
- );
844
- }
845
-
846
843
  const queryParameters: any = {};
847
844
 
848
845
  if (requestParameters['account_index'] != null) {
@@ -863,6 +860,10 @@ export class TransactionApi extends runtime.BaseAPI {
863
860
 
864
861
  const headerParameters: runtime.HTTPHeaders = {};
865
862
 
863
+ if (requestParameters['authorizatio'] != null) {
864
+ headerParameters['authorizatio'] = String(requestParameters['authorizatio']);
865
+ }
866
+
866
867
  const response = await this.request({
867
868
  path: `/api/v1/withdraw/history`,
868
869
  method: 'GET',
@@ -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'],