zklighter-perps 1.0.133 → 1.0.134
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/apis/TransactionApi.ts +4 -11
- package/openapi.json +2 -3
- package/package.json +1 -1
package/apis/TransactionApi.ts
CHANGED
|
@@ -97,8 +97,8 @@ export interface SetAccountMetadataRequest {
|
|
|
97
97
|
target_account_index: number;
|
|
98
98
|
api_key_index: number;
|
|
99
99
|
metadata: string;
|
|
100
|
-
auth: string;
|
|
101
100
|
authorization?: string;
|
|
101
|
+
auth?: string;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
export interface TxRequest {
|
|
@@ -117,7 +117,7 @@ export interface TxsRequest {
|
|
|
117
117
|
|
|
118
118
|
export interface WithdrawHistoryRequest {
|
|
119
119
|
account_index: number;
|
|
120
|
-
|
|
120
|
+
authorization?: string;
|
|
121
121
|
auth?: string;
|
|
122
122
|
cursor?: string;
|
|
123
123
|
filter?: WithdrawHistoryFilterEnum;
|
|
@@ -627,13 +627,6 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
627
627
|
);
|
|
628
628
|
}
|
|
629
629
|
|
|
630
|
-
if (requestParameters['auth'] == null) {
|
|
631
|
-
throw new runtime.RequiredError(
|
|
632
|
-
'auth',
|
|
633
|
-
'Required parameter "auth" was null or undefined when calling setAccountMetadata().'
|
|
634
|
-
);
|
|
635
|
-
}
|
|
636
|
-
|
|
637
630
|
const queryParameters: any = {};
|
|
638
631
|
|
|
639
632
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -860,8 +853,8 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
860
853
|
|
|
861
854
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
862
855
|
|
|
863
|
-
if (requestParameters['
|
|
864
|
-
headerParameters['
|
|
856
|
+
if (requestParameters['authorization'] != null) {
|
|
857
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
865
858
|
}
|
|
866
859
|
|
|
867
860
|
const response = await this.request({
|
package/openapi.json
CHANGED
|
@@ -2722,7 +2722,7 @@
|
|
|
2722
2722
|
},
|
|
2723
2723
|
"parameters": [
|
|
2724
2724
|
{
|
|
2725
|
-
"name": "
|
|
2725
|
+
"name": "authorization",
|
|
2726
2726
|
"description": " make required after integ is done",
|
|
2727
2727
|
"in": "header",
|
|
2728
2728
|
"required": false,
|
|
@@ -7045,8 +7045,7 @@
|
|
|
7045
7045
|
"master_account_index",
|
|
7046
7046
|
"target_account_index",
|
|
7047
7047
|
"api_key_index",
|
|
7048
|
-
"metadata"
|
|
7049
|
-
"auth"
|
|
7048
|
+
"metadata"
|
|
7050
7049
|
]
|
|
7051
7050
|
},
|
|
7052
7051
|
"ReqUseReferralCode": {
|