zklighter-perps 1.0.184 → 1.0.186

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.
@@ -44,17 +44,17 @@ export interface ReqGetAccountTxs {
44
44
  */
45
45
  value?: string;
46
46
  /**
47
- *
48
- * @type {Array<number>}
47
+ * made optional to support header auth clients
48
+ * @type {string}
49
49
  * @memberof ReqGetAccountTxs
50
50
  */
51
- types?: Array<number>;
51
+ auth?: string;
52
52
  /**
53
53
  *
54
- * @type {string}
54
+ * @type {Array<number>}
55
55
  * @memberof ReqGetAccountTxs
56
56
  */
57
- auth?: string;
57
+ types?: Array<number>;
58
58
  }
59
59
 
60
60
 
@@ -88,8 +88,8 @@ export function ReqGetAccountTxsFromJSONTyped(json: any, ignoreDiscriminator: bo
88
88
  'limit': json['limit'] == null ? undefined : json['limit'],
89
89
  'by': json['by'] == null ? undefined : json['by'],
90
90
  'value': json['value'] == null ? undefined : json['value'],
91
- 'types': json['types'] == null ? undefined : json['types'],
92
91
  'auth': json['auth'] == null ? undefined : json['auth'],
92
+ 'types': json['types'] == null ? undefined : json['types'],
93
93
  };
94
94
  }
95
95
 
@@ -103,8 +103,8 @@ export function ReqGetAccountTxsToJSON(value?: ReqGetAccountTxs | null): any {
103
103
  'limit': value['limit'],
104
104
  'by': value['by'],
105
105
  'value': value['value'],
106
- 'types': value['types'],
107
106
  'auth': value['auth'],
107
+ 'types': value['types'],
108
108
  };
109
109
  }
110
110
 
@@ -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 ReqGetAirdropPercentages
20
+ */
21
+ export interface ReqGetAirdropPercentages {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ReqGetAirdropPercentages
26
+ */
27
+ l1_address: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ReqGetAirdropPercentages
32
+ */
33
+ auth?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ReqGetAirdropPercentages interface.
38
+ */
39
+ export function instanceOfReqGetAirdropPercentages(value: object): value is ReqGetAirdropPercentages {
40
+ if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function ReqGetAirdropPercentagesFromJSON(json: any): ReqGetAirdropPercentages {
45
+ return ReqGetAirdropPercentagesFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function ReqGetAirdropPercentagesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetAirdropPercentages {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'l1_address': json['l1_address'],
55
+ 'auth': json['auth'] == null ? undefined : json['auth'],
56
+ };
57
+ }
58
+
59
+ export function ReqGetAirdropPercentagesToJSON(value?: ReqGetAirdropPercentages | null): any {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+
65
+ 'l1_address': value['l1_address'],
66
+ 'auth': value['auth'],
67
+ };
68
+ }
69
+
@@ -0,0 +1,61 @@
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 ReqGetApiTokens
20
+ */
21
+ export interface ReqGetApiTokens {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ReqGetApiTokens
26
+ */
27
+ account_index: number;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ReqGetApiTokens interface.
32
+ */
33
+ export function instanceOfReqGetApiTokens(value: object): value is ReqGetApiTokens {
34
+ if (!('account_index' in value) || value['account_index'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ReqGetApiTokensFromJSON(json: any): ReqGetApiTokens {
39
+ return ReqGetApiTokensFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ReqGetApiTokensFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetApiTokens {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'account_index': json['account_index'],
49
+ };
50
+ }
51
+
52
+ export function ReqGetApiTokensToJSON(value?: ReqGetApiTokens | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'account_index': value['account_index'],
59
+ };
60
+ }
61
+
@@ -19,18 +19,18 @@ import { mapValues } from '../runtime';
19
19
  * @interface ReqGetDepositHistory
20
20
  */
21
21
  export interface ReqGetDepositHistory {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof ReqGetDepositHistory
26
- */
27
- account_index: number;
28
22
  /**
29
23
  * made optional to support header auth clients
30
24
  * @type {string}
31
25
  * @memberof ReqGetDepositHistory
32
26
  */
33
27
  auth?: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ReqGetDepositHistory
32
+ */
33
+ account_index: number;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -82,8 +82,8 @@ export function ReqGetDepositHistoryFromJSONTyped(json: any, ignoreDiscriminator
82
82
  }
83
83
  return {
84
84
 
85
- 'account_index': json['account_index'],
86
85
  'auth': json['auth'] == null ? undefined : json['auth'],
86
+ 'account_index': json['account_index'],
87
87
  'l1_address': json['l1_address'],
88
88
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
89
89
  'filter': json['filter'] == null ? undefined : json['filter'],
@@ -96,8 +96,8 @@ export function ReqGetDepositHistoryToJSON(value?: ReqGetDepositHistory | null):
96
96
  }
97
97
  return {
98
98
 
99
- 'account_index': value['account_index'],
100
99
  'auth': value['auth'],
100
+ 'account_index': value['account_index'],
101
101
  'l1_address': value['l1_address'],
102
102
  'cursor': value['cursor'],
103
103
  'filter': value['filter'],
@@ -19,18 +19,18 @@ import { mapValues } from '../runtime';
19
19
  * @interface ReqGetFastWithdrawInfo
20
20
  */
21
21
  export interface ReqGetFastWithdrawInfo {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof ReqGetFastWithdrawInfo
26
- */
27
- account_index: number;
28
22
  /**
29
23
  * made optional to support header auth clients
30
24
  * @type {string}
31
25
  * @memberof ReqGetFastWithdrawInfo
32
26
  */
33
27
  auth?: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ReqGetFastWithdrawInfo
32
+ */
33
+ account_index: number;
34
34
  }
35
35
 
36
36
  /**
@@ -51,8 +51,8 @@ export function ReqGetFastWithdrawInfoFromJSONTyped(json: any, ignoreDiscriminat
51
51
  }
52
52
  return {
53
53
 
54
- 'account_index': json['account_index'],
55
54
  'auth': json['auth'] == null ? undefined : json['auth'],
55
+ 'account_index': json['account_index'],
56
56
  };
57
57
  }
58
58
 
@@ -62,8 +62,8 @@ export function ReqGetFastWithdrawInfoToJSON(value?: ReqGetFastWithdrawInfo | nu
62
62
  }
63
63
  return {
64
64
 
65
- 'account_index': value['account_index'],
66
65
  'auth': value['auth'],
66
+ 'account_index': value['account_index'],
67
67
  };
68
68
  }
69
69
 
@@ -20,7 +20,7 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface ReqGetPositionFunding {
22
22
  /**
23
- *
23
+ * made optional to support header auth clients
24
24
  * @type {string}
25
25
  * @memberof ReqGetPositionFunding
26
26
  */
@@ -20,7 +20,7 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface ReqGetPublicPoolsMetadata {
22
22
  /**
23
- *
23
+ * made optional to support header auth clients
24
24
  * @type {string}
25
25
  * @memberof ReqGetPublicPoolsMetadata
26
26
  */
@@ -20,7 +20,7 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface ReqGetTrades {
22
22
  /**
23
- *
23
+ * made optional to support header auth clients
24
24
  * @type {string}
25
25
  * @memberof ReqGetTrades
26
26
  */
@@ -20,7 +20,7 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface ReqGetTransferFeeInfo {
22
22
  /**
23
- *
23
+ * made optional to support header auth clients
24
24
  * @type {string}
25
25
  * @memberof ReqGetTransferFeeInfo
26
26
  */
@@ -19,18 +19,18 @@ import { mapValues } from '../runtime';
19
19
  * @interface ReqGetTransferHistory
20
20
  */
21
21
  export interface ReqGetTransferHistory {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof ReqGetTransferHistory
26
- */
27
- account_index: number;
28
22
  /**
29
23
  * made optional to support header auth clients
30
24
  * @type {string}
31
25
  * @memberof ReqGetTransferHistory
32
26
  */
33
27
  auth?: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ReqGetTransferHistory
32
+ */
33
+ account_index: number;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -57,8 +57,8 @@ export function ReqGetTransferHistoryFromJSONTyped(json: any, ignoreDiscriminato
57
57
  }
58
58
  return {
59
59
 
60
- 'account_index': json['account_index'],
61
60
  'auth': json['auth'] == null ? undefined : json['auth'],
61
+ 'account_index': json['account_index'],
62
62
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
63
63
  };
64
64
  }
@@ -69,8 +69,8 @@ export function ReqGetTransferHistoryToJSON(value?: ReqGetTransferHistory | null
69
69
  }
70
70
  return {
71
71
 
72
- 'account_index': value['account_index'],
73
72
  'auth': value['auth'],
73
+ 'account_index': value['account_index'],
74
74
  'cursor': value['cursor'],
75
75
  };
76
76
  }
@@ -19,18 +19,18 @@ import { mapValues } from '../runtime';
19
19
  * @interface ReqGetWithdrawHistory
20
20
  */
21
21
  export interface ReqGetWithdrawHistory {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof ReqGetWithdrawHistory
26
- */
27
- account_index: number;
28
22
  /**
29
23
  * made optional to support header auth clients
30
24
  * @type {string}
31
25
  * @memberof ReqGetWithdrawHistory
32
26
  */
33
27
  auth?: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ReqGetWithdrawHistory
32
+ */
33
+ account_index: number;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -75,8 +75,8 @@ export function ReqGetWithdrawHistoryFromJSONTyped(json: any, ignoreDiscriminato
75
75
  }
76
76
  return {
77
77
 
78
- 'account_index': json['account_index'],
79
78
  'auth': json['auth'] == null ? undefined : json['auth'],
79
+ 'account_index': json['account_index'],
80
80
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
81
81
  'filter': json['filter'] == null ? undefined : json['filter'],
82
82
  };
@@ -88,8 +88,8 @@ export function ReqGetWithdrawHistoryToJSON(value?: ReqGetWithdrawHistory | null
88
88
  }
89
89
  return {
90
90
 
91
- 'account_index': value['account_index'],
92
91
  'auth': value['auth'],
92
+ 'account_index': value['account_index'],
93
93
  'cursor': value['cursor'],
94
94
  'filter': value['filter'],
95
95
  };
@@ -0,0 +1,85 @@
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
+ import type { ApiToken } from './ApiToken';
17
+ import {
18
+ ApiTokenFromJSON,
19
+ ApiTokenFromJSONTyped,
20
+ ApiTokenToJSON,
21
+ } from './ApiToken';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface RespGetApiTokens
27
+ */
28
+ export interface RespGetApiTokens {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof RespGetApiTokens
33
+ */
34
+ code: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof RespGetApiTokens
39
+ */
40
+ message?: string;
41
+ /**
42
+ *
43
+ * @type {Array<ApiToken>}
44
+ * @memberof RespGetApiTokens
45
+ */
46
+ api_tokens: Array<ApiToken>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the RespGetApiTokens interface.
51
+ */
52
+ export function instanceOfRespGetApiTokens(value: object): value is RespGetApiTokens {
53
+ if (!('code' in value) || value['code'] === undefined) return false;
54
+ if (!('api_tokens' in value) || value['api_tokens'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function RespGetApiTokensFromJSON(json: any): RespGetApiTokens {
59
+ return RespGetApiTokensFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function RespGetApiTokensFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespGetApiTokens {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'code': json['code'],
69
+ 'message': json['message'] == null ? undefined : json['message'],
70
+ 'api_tokens': ((json['api_tokens'] as Array<any>).map(ApiTokenFromJSON)),
71
+ };
72
+ }
73
+
74
+ export function RespGetApiTokensToJSON(value?: RespGetApiTokens | null): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+ return {
79
+
80
+ 'code': value['code'],
81
+ 'message': value['message'],
82
+ 'api_tokens': ((value['api_tokens'] as Array<any>).map(ApiTokenToJSON)),
83
+ };
84
+ }
85
+
@@ -0,0 +1,141 @@
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 RespPostApiToken
20
+ */
21
+ export interface RespPostApiToken {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof RespPostApiToken
26
+ */
27
+ code: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof RespPostApiToken
32
+ */
33
+ message?: string;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof RespPostApiToken
38
+ */
39
+ token_id: number;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof RespPostApiToken
44
+ */
45
+ api_token: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof RespPostApiToken
50
+ */
51
+ name: string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof RespPostApiToken
56
+ */
57
+ account_index: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof RespPostApiToken
62
+ */
63
+ expiry: number;
64
+ /**
65
+ *
66
+ * @type {boolean}
67
+ * @memberof RespPostApiToken
68
+ */
69
+ sub_account_access: boolean;
70
+ /**
71
+ *
72
+ * @type {boolean}
73
+ * @memberof RespPostApiToken
74
+ */
75
+ revoked: boolean;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof RespPostApiToken
80
+ */
81
+ scopes: string;
82
+ }
83
+
84
+ /**
85
+ * Check if a given object implements the RespPostApiToken interface.
86
+ */
87
+ export function instanceOfRespPostApiToken(value: object): value is RespPostApiToken {
88
+ if (!('code' in value) || value['code'] === undefined) return false;
89
+ if (!('token_id' in value) || value['token_id'] === undefined) return false;
90
+ if (!('api_token' in value) || value['api_token'] === undefined) return false;
91
+ if (!('name' in value) || value['name'] === undefined) return false;
92
+ if (!('account_index' in value) || value['account_index'] === undefined) return false;
93
+ if (!('expiry' in value) || value['expiry'] === undefined) return false;
94
+ if (!('sub_account_access' in value) || value['sub_account_access'] === undefined) return false;
95
+ if (!('revoked' in value) || value['revoked'] === undefined) return false;
96
+ if (!('scopes' in value) || value['scopes'] === undefined) return false;
97
+ return true;
98
+ }
99
+
100
+ export function RespPostApiTokenFromJSON(json: any): RespPostApiToken {
101
+ return RespPostApiTokenFromJSONTyped(json, false);
102
+ }
103
+
104
+ export function RespPostApiTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespPostApiToken {
105
+ if (json == null) {
106
+ return json;
107
+ }
108
+ return {
109
+
110
+ 'code': json['code'],
111
+ 'message': json['message'] == null ? undefined : json['message'],
112
+ 'token_id': json['token_id'],
113
+ 'api_token': json['api_token'],
114
+ 'name': json['name'],
115
+ 'account_index': json['account_index'],
116
+ 'expiry': json['expiry'],
117
+ 'sub_account_access': json['sub_account_access'],
118
+ 'revoked': json['revoked'],
119
+ 'scopes': json['scopes'],
120
+ };
121
+ }
122
+
123
+ export function RespPostApiTokenToJSON(value?: RespPostApiToken | null): any {
124
+ if (value == null) {
125
+ return value;
126
+ }
127
+ return {
128
+
129
+ 'code': value['code'],
130
+ 'message': value['message'],
131
+ 'token_id': value['token_id'],
132
+ 'api_token': value['api_token'],
133
+ 'name': value['name'],
134
+ 'account_index': value['account_index'],
135
+ 'expiry': value['expiry'],
136
+ 'sub_account_access': value['sub_account_access'],
137
+ 'revoked': value['revoked'],
138
+ 'scopes': value['scopes'],
139
+ };
140
+ }
141
+