zklighter-perps 1.0.340 → 1.0.342

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/openapi.json CHANGED
@@ -1355,6 +1355,92 @@
1355
1355
  "description": "Platform-wide competitions (not guild-scoped), newest first; competition_id narrows to one (any scope)"
1356
1356
  }
1357
1357
  },
1358
+ "/api/v1/connectX": {
1359
+ "post": {
1360
+ "summary": "connectX",
1361
+ "operationId": "connectX",
1362
+ "responses": {
1363
+ "200": {
1364
+ "description": "A successful response.",
1365
+ "schema": {
1366
+ "$ref": "#/definitions/RespConnectX"
1367
+ }
1368
+ },
1369
+ "400": {
1370
+ "description": "Bad request",
1371
+ "schema": {
1372
+ "$ref": "#/definitions/ResultCode"
1373
+ }
1374
+ }
1375
+ },
1376
+ "parameters": [
1377
+ {
1378
+ "name": "authorization",
1379
+ "in": "header",
1380
+ "required": false,
1381
+ "type": "string"
1382
+ },
1383
+ {
1384
+ "name": "body",
1385
+ "in": "body",
1386
+ "required": true,
1387
+ "schema": {
1388
+ "$ref": "#/definitions/ReqConnectX"
1389
+ }
1390
+ }
1391
+ ],
1392
+ "tags": [
1393
+ "account"
1394
+ ],
1395
+ "consumes": [
1396
+ "multipart/form-data"
1397
+ ],
1398
+ "description": "Start connecting an X account to the wallet: returns the X OAuth authorize URL (PKCE). redirect_uri must be allowlisted."
1399
+ }
1400
+ },
1401
+ "/api/v1/connectXCallback": {
1402
+ "post": {
1403
+ "summary": "connectXCallback",
1404
+ "operationId": "connectXCallback",
1405
+ "responses": {
1406
+ "200": {
1407
+ "description": "A successful response.",
1408
+ "schema": {
1409
+ "$ref": "#/definitions/RespConnectXCallback"
1410
+ }
1411
+ },
1412
+ "400": {
1413
+ "description": "Bad request",
1414
+ "schema": {
1415
+ "$ref": "#/definitions/ResultCode"
1416
+ }
1417
+ }
1418
+ },
1419
+ "parameters": [
1420
+ {
1421
+ "name": "authorization",
1422
+ "in": "header",
1423
+ "required": false,
1424
+ "type": "string"
1425
+ },
1426
+ {
1427
+ "name": "body",
1428
+ "in": "body",
1429
+ "required": true,
1430
+ "schema": {
1431
+ "$ref": "#/definitions/ReqConnectXCallback"
1432
+ }
1433
+ }
1434
+ ],
1435
+ "tags": [
1436
+ "account"
1437
+ ],
1438
+ "consumes": [
1439
+ "multipart/form-data"
1440
+ ],
1441
+ "description": "Finish connecting an X account with the code and state X returned to redirect_uri"
1442
+ }
1443
+ },
1358
1444
  "/api/v1/createIntentAddress": {
1359
1445
  "post": {
1360
1446
  "summary": "createIntentAddress",
@@ -1548,6 +1634,49 @@
1548
1634
  "description": "Get deposit supporting networks"
1549
1635
  }
1550
1636
  },
1637
+ "/api/v1/disconnectX": {
1638
+ "post": {
1639
+ "summary": "disconnectX",
1640
+ "operationId": "disconnectX",
1641
+ "responses": {
1642
+ "200": {
1643
+ "description": "A successful response.",
1644
+ "schema": {
1645
+ "$ref": "#/definitions/ResultCode"
1646
+ }
1647
+ },
1648
+ "400": {
1649
+ "description": "Bad request",
1650
+ "schema": {
1651
+ "$ref": "#/definitions/ResultCode"
1652
+ }
1653
+ }
1654
+ },
1655
+ "parameters": [
1656
+ {
1657
+ "name": "authorization",
1658
+ "in": "header",
1659
+ "required": false,
1660
+ "type": "string"
1661
+ },
1662
+ {
1663
+ "name": "body",
1664
+ "in": "body",
1665
+ "required": true,
1666
+ "schema": {
1667
+ "$ref": "#/definitions/ReqDisconnectX"
1668
+ }
1669
+ }
1670
+ ],
1671
+ "tags": [
1672
+ "account"
1673
+ ],
1674
+ "consumes": [
1675
+ "multipart/form-data"
1676
+ ],
1677
+ "description": "Disconnect the wallet's X account"
1678
+ }
1679
+ },
1551
1680
  "/api/v1/event/create": {
1552
1681
  "post": {
1553
1682
  "summary": "event_create",
@@ -5601,6 +5730,42 @@
5601
5730
  "description": "Get public pools metadata"
5602
5731
  }
5603
5732
  },
5733
+ "/api/v1/publicProfiles": {
5734
+ "get": {
5735
+ "summary": "publicProfiles",
5736
+ "operationId": "publicProfiles",
5737
+ "responses": {
5738
+ "200": {
5739
+ "description": "A successful response.",
5740
+ "schema": {
5741
+ "$ref": "#/definitions/RespGetPublicProfiles"
5742
+ }
5743
+ },
5744
+ "400": {
5745
+ "description": "Bad request",
5746
+ "schema": {
5747
+ "$ref": "#/definitions/ResultCode"
5748
+ }
5749
+ }
5750
+ },
5751
+ "parameters": [
5752
+ {
5753
+ "name": "l1_addresses",
5754
+ "description": " comma-separated, max 100",
5755
+ "in": "query",
5756
+ "required": true,
5757
+ "type": "string"
5758
+ }
5759
+ ],
5760
+ "tags": [
5761
+ "account"
5762
+ ],
5763
+ "consumes": [
5764
+ "multipart/form-data"
5765
+ ],
5766
+ "description": "Get public profiles (display name source, username, verified X handle) for up to 100 L1 addresses. No auth."
5767
+ }
5768
+ },
5604
5769
  "/api/v1/pushnotif/register": {
5605
5770
  "post": {
5606
5771
  "summary": "pushnotif_register",
@@ -8489,6 +8654,10 @@
8489
8654
  "instance": {
8490
8655
  "type": "string",
8491
8656
  "description": " non-core instance the l1 address belongs to, e.g. \"us\""
8657
+ },
8658
+ "profile": {
8659
+ "$ref": "#/definitions/PublicProfile",
8660
+ "description": " wallet-level public identity, set on the master account only"
8492
8661
  }
8493
8662
  },
8494
8663
  "title": "AccountMetadata",
@@ -8503,7 +8672,8 @@
8503
8672
  "agent_enabled",
8504
8673
  "created_at",
8505
8674
  "metadata",
8506
- "instance"
8675
+ "instance",
8676
+ "profile"
8507
8677
  ]
8508
8678
  },
8509
8679
  "AccountMetadatas": {
@@ -10586,6 +10756,10 @@
10586
10756
  "type": "string",
10587
10757
  "description": " non-core instance the l1 address belongs to, e.g. \"us\""
10588
10758
  },
10759
+ "profile": {
10760
+ "$ref": "#/definitions/PublicProfile",
10761
+ "description": " wallet-level public identity, set on the master account only"
10762
+ },
10589
10763
  "positions": {
10590
10764
  "type": "array",
10591
10765
  "items": {
@@ -10667,6 +10841,7 @@
10667
10841
  "created_at",
10668
10842
  "metadata",
10669
10843
  "instance",
10844
+ "profile",
10670
10845
  "positions",
10671
10846
  "assets",
10672
10847
  "total_asset_value",
@@ -11847,6 +12022,9 @@
11847
12022
  "volume": {
11848
12023
  "type": "integer",
11849
12024
  "format": "int64"
12025
+ },
12026
+ "profile": {
12027
+ "$ref": "#/definitions/PublicProfile"
11850
12028
  }
11851
12029
  },
11852
12030
  "title": "GuildDuelMemberScore",
@@ -11856,7 +12034,8 @@
11856
12034
  "pnl",
11857
12035
  "capital",
11858
12036
  "roi",
11859
- "volume"
12037
+ "volume",
12038
+ "profile"
11860
12039
  ]
11861
12040
  },
11862
12041
  "GuildDuelOffer": {
@@ -12047,13 +12226,17 @@
12047
12226
  },
12048
12227
  "selected_by_l1": {
12049
12228
  "type": "string"
12229
+ },
12230
+ "profile": {
12231
+ "$ref": "#/definitions/PublicProfile"
12050
12232
  }
12051
12233
  },
12052
12234
  "title": "GuildDuelRosterMember",
12053
12235
  "required": [
12054
12236
  "l1_address",
12055
12237
  "guild_id",
12056
- "selected_by_l1"
12238
+ "selected_by_l1",
12239
+ "profile"
12057
12240
  ]
12058
12241
  },
12059
12242
  "GuildDuelScore": {
@@ -12108,6 +12291,9 @@
12108
12291
  },
12109
12292
  "stake_tx_hash": {
12110
12293
  "type": "string"
12294
+ },
12295
+ "leader_profile": {
12296
+ "$ref": "#/definitions/PublicProfile"
12111
12297
  }
12112
12298
  },
12113
12299
  "title": "GuildDuelSide",
@@ -12118,7 +12304,8 @@
12118
12304
  "roster_size",
12119
12305
  "roster_locked_at",
12120
12306
  "stake_status",
12121
- "stake_tx_hash"
12307
+ "stake_tx_hash",
12308
+ "leader_profile"
12122
12309
  ]
12123
12310
  },
12124
12311
  "GuildDuelStakeInfo": {
@@ -12229,6 +12416,9 @@
12229
12416
  },
12230
12417
  "redeemed_by_l1": {
12231
12418
  "type": "string"
12419
+ },
12420
+ "bound_profile": {
12421
+ "$ref": "#/definitions/PublicProfile"
12232
12422
  }
12233
12423
  },
12234
12424
  "title": "GuildInviteCode",
@@ -12239,7 +12429,8 @@
12239
12429
  "created_by_l1",
12240
12430
  "status",
12241
12431
  "created_at",
12242
- "expires_at"
12432
+ "expires_at",
12433
+ "bound_profile"
12243
12434
  ]
12244
12435
  },
12245
12436
  "GuildJoinRequest": {
@@ -12272,6 +12463,9 @@
12272
12463
  "expires_at": {
12273
12464
  "type": "integer",
12274
12465
  "format": "int64"
12466
+ },
12467
+ "profile": {
12468
+ "$ref": "#/definitions/PublicProfile"
12275
12469
  }
12276
12470
  },
12277
12471
  "title": "GuildJoinRequest",
@@ -12283,7 +12477,8 @@
12283
12477
  "status",
12284
12478
  "source",
12285
12479
  "created_at",
12286
- "expires_at"
12480
+ "expires_at",
12481
+ "profile"
12287
12482
  ]
12288
12483
  },
12289
12484
  "GuildLeaderboardEntry": {
@@ -12385,6 +12580,9 @@
12385
12580
  "duel_opt_in": {
12386
12581
  "type": "boolean",
12387
12582
  "format": "boolean"
12583
+ },
12584
+ "profile": {
12585
+ "$ref": "#/definitions/PublicProfile"
12388
12586
  }
12389
12587
  },
12390
12588
  "title": "GuildMember",
@@ -12392,7 +12590,8 @@
12392
12590
  "l1_address",
12393
12591
  "role",
12394
12592
  "joined_at",
12395
- "duel_opt_in"
12593
+ "duel_opt_in",
12594
+ "profile"
12396
12595
  ]
12397
12596
  },
12398
12597
  "GuildPnlStats": {
@@ -15714,6 +15913,43 @@
15714
15913
  "entry_timestamp"
15715
15914
  ]
15716
15915
  },
15916
+ "PublicProfile": {
15917
+ "type": "object",
15918
+ "properties": {
15919
+ "l1_address": {
15920
+ "type": "string"
15921
+ },
15922
+ "username": {
15923
+ "type": "string"
15924
+ },
15925
+ "display_name_source": {
15926
+ "type": "string",
15927
+ "enum": [
15928
+ "address",
15929
+ "username",
15930
+ "ens",
15931
+ "x"
15932
+ ],
15933
+ "description": " ens is resolved by the client from l1_address on chain 1"
15934
+ },
15935
+ "x_user_id": {
15936
+ "type": "string",
15937
+ "description": " verified through X OAuth; link by id, the handle can change hands after a rename"
15938
+ },
15939
+ "x_handle": {
15940
+ "type": "string",
15941
+ "description": " as of connecting"
15942
+ }
15943
+ },
15944
+ "title": "PublicProfile",
15945
+ "required": [
15946
+ "l1_address",
15947
+ "username",
15948
+ "display_name_source",
15949
+ "x_user_id",
15950
+ "x_handle"
15951
+ ]
15952
+ },
15717
15953
  "PushNotifDeliveryResult": {
15718
15954
  "type": "object",
15719
15955
  "properties": {
@@ -16223,6 +16459,50 @@
16223
16459
  "new_tier"
16224
16460
  ]
16225
16461
  },
16462
+ "ReqConnectX": {
16463
+ "type": "object",
16464
+ "properties": {
16465
+ "account_index": {
16466
+ "type": "integer",
16467
+ "format": "int64"
16468
+ },
16469
+ "redirect_uri": {
16470
+ "type": "string"
16471
+ },
16472
+ "auth": {
16473
+ "type": "string"
16474
+ }
16475
+ },
16476
+ "title": "ReqConnectX",
16477
+ "required": [
16478
+ "account_index",
16479
+ "redirect_uri"
16480
+ ]
16481
+ },
16482
+ "ReqConnectXCallback": {
16483
+ "type": "object",
16484
+ "properties": {
16485
+ "account_index": {
16486
+ "type": "integer",
16487
+ "format": "int64"
16488
+ },
16489
+ "code": {
16490
+ "type": "string"
16491
+ },
16492
+ "state": {
16493
+ "type": "string"
16494
+ },
16495
+ "auth": {
16496
+ "type": "string"
16497
+ }
16498
+ },
16499
+ "title": "ReqConnectXCallback",
16500
+ "required": [
16501
+ "account_index",
16502
+ "code",
16503
+ "state"
16504
+ ]
16505
+ },
16226
16506
  "ReqCreateAirdropAllocations": {
16227
16507
  "type": "object",
16228
16508
  "properties": {
@@ -16489,6 +16769,22 @@
16489
16769
  "id"
16490
16770
  ]
16491
16771
  },
16772
+ "ReqDisconnectX": {
16773
+ "type": "object",
16774
+ "properties": {
16775
+ "account_index": {
16776
+ "type": "integer",
16777
+ "format": "int64"
16778
+ },
16779
+ "auth": {
16780
+ "type": "string"
16781
+ }
16782
+ },
16783
+ "title": "ReqDisconnectX",
16784
+ "required": [
16785
+ "account_index"
16786
+ ]
16787
+ },
16492
16788
  "ReqDoFaucet": {
16493
16789
  "type": "object",
16494
16790
  "properties": {
@@ -18248,6 +18544,19 @@
18248
18544
  "limit"
18249
18545
  ]
18250
18546
  },
18547
+ "ReqGetPublicProfiles": {
18548
+ "type": "object",
18549
+ "properties": {
18550
+ "l1_addresses": {
18551
+ "type": "string",
18552
+ "description": " comma-separated, max 100"
18553
+ }
18554
+ },
18555
+ "title": "ReqGetPublicProfiles",
18556
+ "required": [
18557
+ "l1_addresses"
18558
+ ]
18559
+ },
18251
18560
  "ReqGetPushNotifSettings": {
18252
18561
  "type": "object",
18253
18562
  "properties": {
@@ -19856,6 +20165,52 @@
19856
20165
  "code"
19857
20166
  ]
19858
20167
  },
20168
+ "RespConnectX": {
20169
+ "type": "object",
20170
+ "properties": {
20171
+ "code": {
20172
+ "type": "integer",
20173
+ "format": "int32",
20174
+ "example": "200"
20175
+ },
20176
+ "message": {
20177
+ "type": "string"
20178
+ },
20179
+ "authorize_url": {
20180
+ "type": "string"
20181
+ }
20182
+ },
20183
+ "title": "RespConnectX",
20184
+ "required": [
20185
+ "code",
20186
+ "authorize_url"
20187
+ ]
20188
+ },
20189
+ "RespConnectXCallback": {
20190
+ "type": "object",
20191
+ "properties": {
20192
+ "code": {
20193
+ "type": "integer",
20194
+ "format": "int32",
20195
+ "example": "200"
20196
+ },
20197
+ "message": {
20198
+ "type": "string"
20199
+ },
20200
+ "x_user_id": {
20201
+ "type": "string"
20202
+ },
20203
+ "x_handle": {
20204
+ "type": "string"
20205
+ }
20206
+ },
20207
+ "title": "RespConnectXCallback",
20208
+ "required": [
20209
+ "code",
20210
+ "x_user_id",
20211
+ "x_handle"
20212
+ ]
20213
+ },
19859
20214
  "RespCreateEvent": {
19860
20215
  "type": "object",
19861
20216
  "properties": {
@@ -20564,6 +20919,31 @@
20564
20919
  "metrics"
20565
20920
  ]
20566
20921
  },
20922
+ "RespGetPublicProfiles": {
20923
+ "type": "object",
20924
+ "properties": {
20925
+ "code": {
20926
+ "type": "integer",
20927
+ "format": "int32",
20928
+ "example": "200"
20929
+ },
20930
+ "message": {
20931
+ "type": "string"
20932
+ },
20933
+ "profiles": {
20934
+ "type": "array",
20935
+ "items": {
20936
+ "$ref": "#/definitions/PublicProfile"
20937
+ },
20938
+ "description": " only wallets with a profile set"
20939
+ }
20940
+ },
20941
+ "title": "RespGetPublicProfiles",
20942
+ "required": [
20943
+ "code",
20944
+ "profiles"
20945
+ ]
20946
+ },
20567
20947
  "RespGetPushNotifSettings": {
20568
20948
  "type": "object",
20569
20949
  "properties": {
@@ -24331,6 +24711,26 @@
24331
24711
  "type": "integer",
24332
24712
  "format": "int64",
24333
24713
  "example": "0"
24714
+ },
24715
+ "twap_fee_ticks": {
24716
+ "type": "integer",
24717
+ "format": "int32",
24718
+ "example": "0"
24719
+ },
24720
+ "taker_latency_ms": {
24721
+ "type": "integer",
24722
+ "format": "int32",
24723
+ "example": "140"
24724
+ },
24725
+ "send_tx_rate_limit": {
24726
+ "type": "integer",
24727
+ "format": "int64",
24728
+ "example": "4000"
24729
+ },
24730
+ "max_sub_accounts": {
24731
+ "type": "integer",
24732
+ "format": "int32",
24733
+ "example": "64"
24334
24734
  }
24335
24735
  },
24336
24736
  "title": "UserFeeTier",
@@ -24340,7 +24740,11 @@
24340
24740
  "maker_fee_ticks",
24341
24741
  "taker_fee_ticks",
24342
24742
  "required_lit_stakes",
24343
- "required_volume"
24743
+ "required_volume",
24744
+ "twap_fee_ticks",
24745
+ "taker_latency_ms",
24746
+ "send_tx_rate_limit",
24747
+ "max_sub_accounts"
24344
24748
  ]
24345
24749
  },
24346
24750
  "UserReferrals": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.340",
3
+ "version": "1.0.342",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {