zklighter-perps 1.0.115 → 1.0.117

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.
@@ -103,6 +103,7 @@ export interface PositionFundingRequest {
103
103
  export interface PublicPoolsRequest {
104
104
  index: number;
105
105
  limit: number;
106
+ auth?: string;
106
107
  filter?: PublicPoolsFilterEnum;
107
108
  account_index?: number;
108
109
  }
@@ -593,6 +594,10 @@ export class AccountApi extends runtime.BaseAPI {
593
594
 
594
595
  const queryParameters: any = {};
595
596
 
597
+ if (requestParameters['auth'] != null) {
598
+ queryParameters['auth'] = requestParameters['auth'];
599
+ }
600
+
596
601
  if (requestParameters['filter'] != null) {
597
602
  queryParameters['filter'] = requestParameters['filter'];
598
603
  }
package/apis/OrderApi.ts CHANGED
@@ -83,9 +83,9 @@ export interface RecentTradesRequest {
83
83
  }
84
84
 
85
85
  export interface TradesRequest {
86
- auth: string;
87
86
  sort_by: TradesSortByEnum;
88
87
  limit: number;
88
+ auth?: string;
89
89
  market_id?: number;
90
90
  account_index?: number;
91
91
  order_index?: number;
@@ -511,13 +511,6 @@ export class OrderApi extends runtime.BaseAPI {
511
511
  * trades
512
512
  */
513
513
  async tradesRaw(requestParameters: TradesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Trades>> {
514
- if (requestParameters['auth'] == null) {
515
- throw new runtime.RequiredError(
516
- 'auth',
517
- 'Required parameter "auth" was null or undefined when calling trades().'
518
- );
519
- }
520
-
521
514
  if (requestParameters['sort_by'] == null) {
522
515
  throw new runtime.RequiredError(
523
516
  'sort_by',
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
19
19
  * @interface ReqGetPublicPools
20
20
  */
21
21
  export interface ReqGetPublicPools {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ReqGetPublicPools
26
+ */
27
+ auth?: string;
22
28
  /**
23
29
  *
24
30
  * @type {string}
@@ -77,6 +83,7 @@ export function ReqGetPublicPoolsFromJSONTyped(json: any, ignoreDiscriminator: b
77
83
  }
78
84
  return {
79
85
 
86
+ 'auth': json['auth'] == null ? undefined : json['auth'],
80
87
  'filter': json['filter'] == null ? undefined : json['filter'],
81
88
  'index': json['index'],
82
89
  'limit': json['limit'],
@@ -90,6 +97,7 @@ export function ReqGetPublicPoolsToJSON(value?: ReqGetPublicPools | null): any {
90
97
  }
91
98
  return {
92
99
 
100
+ 'auth': value['auth'],
93
101
  'filter': value['filter'],
94
102
  'index': value['index'],
95
103
  'limit': value['limit'],
@@ -24,7 +24,7 @@ export interface ReqGetTrades {
24
24
  * @type {string}
25
25
  * @memberof ReqGetTrades
26
26
  */
27
- auth: string;
27
+ auth?: string;
28
28
  /**
29
29
  *
30
30
  * @type {number}
@@ -106,7 +106,6 @@ export type ReqGetTradesSortDirEnum = typeof ReqGetTradesSortDirEnum[keyof typeo
106
106
  * Check if a given object implements the ReqGetTrades interface.
107
107
  */
108
108
  export function instanceOfReqGetTrades(value: object): value is ReqGetTrades {
109
- if (!('auth' in value) || value['auth'] === undefined) return false;
110
109
  if (!('sort_by' in value) || value['sort_by'] === undefined) return false;
111
110
  if (!('limit' in value) || value['limit'] === undefined) return false;
112
111
  return true;
@@ -122,7 +121,7 @@ export function ReqGetTradesFromJSONTyped(json: any, ignoreDiscriminator: boolea
122
121
  }
123
122
  return {
124
123
 
125
- 'auth': json['auth'],
124
+ 'auth': json['auth'] == null ? undefined : json['auth'],
126
125
  'market_id': json['market_id'] == null ? undefined : json['market_id'],
127
126
  'account_index': json['account_index'] == null ? undefined : json['account_index'],
128
127
  'order_index': json['order_index'] == null ? undefined : json['order_index'],
package/openapi.json CHANGED
@@ -1787,6 +1787,12 @@
1787
1787
  }
1788
1788
  },
1789
1789
  "parameters": [
1790
+ {
1791
+ "name": "auth",
1792
+ "in": "query",
1793
+ "required": false,
1794
+ "type": "string"
1795
+ },
1790
1796
  {
1791
1797
  "name": "filter",
1792
1798
  "in": "query",
@@ -2168,7 +2174,7 @@
2168
2174
  {
2169
2175
  "name": "auth",
2170
2176
  "in": "query",
2171
- "required": true,
2177
+ "required": false,
2172
2178
  "type": "string"
2173
2179
  },
2174
2180
  {
@@ -6034,6 +6040,9 @@
6034
6040
  "ReqGetPublicPools": {
6035
6041
  "type": "object",
6036
6042
  "properties": {
6043
+ "auth": {
6044
+ "type": "string"
6045
+ },
6037
6046
  "filter": {
6038
6047
  "type": "string",
6039
6048
  "enum": [
@@ -6237,7 +6246,6 @@
6237
6246
  },
6238
6247
  "title": "ReqGetTrades",
6239
6248
  "required": [
6240
- "auth",
6241
6249
  "sort_by",
6242
6250
  "limit"
6243
6251
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.115",
3
+ "version": "1.0.117",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {