zklighter-perps 1.0.177 → 1.0.178

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.
@@ -70,6 +70,8 @@ export interface ReferralUseRequest {
70
70
  l1_address: string;
71
71
  referral_code: string;
72
72
  x: string;
73
+ authorization?: string;
74
+ auth?: string;
73
75
  discord?: string;
74
76
  telegram?: string;
75
77
  signature?: string;
@@ -412,6 +414,10 @@ export class ReferralApi extends runtime.BaseAPI {
412
414
 
413
415
  const headerParameters: runtime.HTTPHeaders = {};
414
416
 
417
+ if (requestParameters['authorization'] != null) {
418
+ headerParameters['authorization'] = String(requestParameters['authorization']);
419
+ }
420
+
415
421
  const consumes: runtime.Consume[] = [
416
422
  { contentType: 'multipart/form-data' },
417
423
  ];
@@ -426,6 +432,10 @@ export class ReferralApi extends runtime.BaseAPI {
426
432
  formParams = new URLSearchParams();
427
433
  }
428
434
 
435
+ if (requestParameters['auth'] != null) {
436
+ formParams.append('auth', requestParameters['auth'] as any);
437
+ }
438
+
429
439
  if (requestParameters['l1_address'] != null) {
430
440
  formParams.append('l1_address', requestParameters['l1_address'] as any);
431
441
  }
@@ -37,6 +37,12 @@ export interface Announcement {
37
37
  * @memberof Announcement
38
38
  */
39
39
  created_at: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof Announcement
44
+ */
45
+ expired_at: number;
40
46
  }
41
47
 
42
48
  /**
@@ -46,6 +52,7 @@ export function instanceOfAnnouncement(value: object): value is Announcement {
46
52
  if (!('title' in value) || value['title'] === undefined) return false;
47
53
  if (!('content' in value) || value['content'] === undefined) return false;
48
54
  if (!('created_at' in value) || value['created_at'] === undefined) return false;
55
+ if (!('expired_at' in value) || value['expired_at'] === undefined) return false;
49
56
  return true;
50
57
  }
51
58
 
@@ -62,6 +69,7 @@ export function AnnouncementFromJSONTyped(json: any, ignoreDiscriminator: boolea
62
69
  'title': json['title'],
63
70
  'content': json['content'],
64
71
  'created_at': json['created_at'],
72
+ 'expired_at': json['expired_at'],
65
73
  };
66
74
  }
67
75
 
@@ -74,6 +82,7 @@ export function AnnouncementToJSON(value?: Announcement | null): any {
74
82
  'title': value['title'],
75
83
  'content': value['content'],
76
84
  'created_at': value['created_at'],
85
+ 'expired_at': value['expired_at'],
77
86
  };
78
87
  }
79
88
 
package/models/Trade.ts CHANGED
@@ -73,6 +73,18 @@ export interface Trade {
73
73
  * @memberof Trade
74
74
  */
75
75
  bid_id: number;
76
+ /**
77
+ *
78
+ * @type {number}
79
+ * @memberof Trade
80
+ */
81
+ ask_client_id: number;
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof Trade
86
+ */
87
+ bid_client_id: number;
76
88
  /**
77
89
  *
78
90
  * @type {number}
@@ -191,6 +203,8 @@ export function instanceOfTrade(value: object): value is Trade {
191
203
  if (!('usd_amount' in value) || value['usd_amount'] === undefined) return false;
192
204
  if (!('ask_id' in value) || value['ask_id'] === undefined) return false;
193
205
  if (!('bid_id' in value) || value['bid_id'] === undefined) return false;
206
+ if (!('ask_client_id' in value) || value['ask_client_id'] === undefined) return false;
207
+ if (!('bid_client_id' in value) || value['bid_client_id'] === undefined) return false;
194
208
  if (!('ask_account_id' in value) || value['ask_account_id'] === undefined) return false;
195
209
  if (!('bid_account_id' in value) || value['bid_account_id'] === undefined) return false;
196
210
  if (!('is_maker_ask' in value) || value['is_maker_ask'] === undefined) return false;
@@ -226,6 +240,8 @@ export function TradeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tra
226
240
  'usd_amount': json['usd_amount'],
227
241
  'ask_id': json['ask_id'],
228
242
  'bid_id': json['bid_id'],
243
+ 'ask_client_id': json['ask_client_id'],
244
+ 'bid_client_id': json['bid_client_id'],
229
245
  'ask_account_id': json['ask_account_id'],
230
246
  'bid_account_id': json['bid_account_id'],
231
247
  'is_maker_ask': json['is_maker_ask'],
@@ -259,6 +275,8 @@ export function TradeToJSON(value?: Trade | null): any {
259
275
  'usd_amount': value['usd_amount'],
260
276
  'ask_id': value['ask_id'],
261
277
  'bid_id': value['bid_id'],
278
+ 'ask_client_id': value['ask_client_id'],
279
+ 'bid_client_id': value['bid_client_id'],
262
280
  'ask_account_id': value['ask_account_id'],
263
281
  'bid_account_id': value['bid_account_id'],
264
282
  'is_maker_ask': value['is_maker_ask'],
package/openapi.json CHANGED
@@ -2480,6 +2480,13 @@
2480
2480
  }
2481
2481
  },
2482
2482
  "parameters": [
2483
+ {
2484
+ "name": "authorization",
2485
+ "description": " make required after integ is done",
2486
+ "in": "header",
2487
+ "required": false,
2488
+ "type": "string"
2489
+ },
2483
2490
  {
2484
2491
  "name": "body",
2485
2492
  "in": "body",
@@ -3673,13 +3680,18 @@
3673
3680
  "created_at": {
3674
3681
  "type": "integer",
3675
3682
  "format": "int64"
3683
+ },
3684
+ "expired_at": {
3685
+ "type": "integer",
3686
+ "format": "int64"
3676
3687
  }
3677
3688
  },
3678
3689
  "title": "Announcement",
3679
3690
  "required": [
3680
3691
  "title",
3681
3692
  "content",
3682
- "created_at"
3693
+ "created_at",
3694
+ "expired_at"
3683
3695
  ]
3684
3696
  },
3685
3697
  "Announcements": {
@@ -7860,6 +7872,10 @@
7860
7872
  "ReqUseReferralCode": {
7861
7873
  "type": "object",
7862
7874
  "properties": {
7875
+ "auth": {
7876
+ "type": "string",
7877
+ "description": " made optional to support header auth clients"
7878
+ },
7863
7879
  "l1_address": {
7864
7880
  "type": "string"
7865
7881
  },
@@ -8413,6 +8429,16 @@
8413
8429
  "format": "int64",
8414
8430
  "example": "245"
8415
8431
  },
8432
+ "ask_client_id": {
8433
+ "type": "integer",
8434
+ "format": "int64",
8435
+ "example": "145"
8436
+ },
8437
+ "bid_client_id": {
8438
+ "type": "integer",
8439
+ "format": "int64",
8440
+ "example": "245"
8441
+ },
8416
8442
  "ask_account_id": {
8417
8443
  "type": "integer",
8418
8444
  "format": "int64",
@@ -8496,6 +8522,8 @@
8496
8522
  "usd_amount",
8497
8523
  "ask_id",
8498
8524
  "bid_id",
8525
+ "ask_client_id",
8526
+ "bid_client_id",
8499
8527
  "ask_account_id",
8500
8528
  "bid_account_id",
8501
8529
  "is_maker_ask",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.177",
3
+ "version": "1.0.178",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {